For the script to work with Ubuntu 22.04, remove brltty

In order to use the serial connection with the Owon Digital Multimeter you will have to remove "brltty" from Ubuntu 22.04.
"sudo apt remove brltty"
Apparently this program prevents the use of the CH340 serial driver in general (nothing to do with the script).
Tested and working fine now. Thanks for the script!

Wow that Britty (Braille reader) is really badly designed, breaking all the other stuff. Thanks for the info.
On Monday, 5 June 2023 at 14:18:25 BST, jaap59<EMAIL_ADDRESS>wrote:

In order to use the serial connection with the Owon Digital Multimeter you will have to remove "brltty" from Ubuntu 22.04.
"sudo apt remove brltty"
Apparently this program prevents the use of the CH340 serial driver in general (nothing to do with the script).
Tested and working fine now. Thanks for the script!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

Issue closed now the work around is known.


Bug: numbered list markers all become "1."

[ ] I have verified that I am on the latest version of the Linter

Describe the Bug
numbered list markers all become "1."
How to Reproduce

if you use linter, the numbered list markers become like the following image.

how to fix it?

Hey @jatolispark , what are your ordered list style settings?

Ok, I found and solved it. The previous setting was "lazy", I changed it to ascending and it worked.


Remove apache/thrift replacement rule

What changed?

Why?

How did you test it?

Potential risks

Release notes

Documentation Changes

not yet


Reaction roles

Mee6 can do this but it should be easy enough to have Androgee do it as well

added this in pr #8


Add support for io_pgetevents_time64 syscall

32-bit architectures that are y2038 safe don't include syscalls that use
32-bit time_t. Instead these architectures have suffixed syscalls that
always use a 64-bit time_t. In the case of the io_getevents syscall the
syscall has been replaced with the io_pgetevents_time64 syscall instead.
This patch changes the io_getevents() function to use the correct
syscall based on the avaliable syscalls and the time_t size. We will
only use the new 64-bit time_t syscall if the architecture is using a
64-bit time_t. This is to avoid having to deal with 32/64-bit
conversions. In the future if a 32-bit time_t architecture wants to use
the 64-bit syscalls we can handle the conversion.
This fixes build failures on 32-bit RISC-V.
Signed-off-by: Alistair Francis<EMAIL_ADDRESS>

I have updated the commit, to address some of your concerns. I haven't addressed the 32-bit time_t yet. Let me know what you would like me to do.

Just pushed a v3 with better error handling

Ping?

Merged to master.
Thanks for the fix.

@alistair23 @paulidale @levitte Have you seen the comment https://github.com/openssl/openssl/commit/5b5e2985f355c8e99c196d9ce5d02c15bebadfbc#commitcomment-44782859 by @arndb (Arnd Bergmann) about this change?

The patch looks wrong to me: __NR_io_pgetevents_time64 must be used whenever time_t is 64-bit wide on a 32-bit architecture, while __NR_io_getevents/__NR_io_pgetevents must be used when time_t is the same width as 'long'.
Checking whether __NR_io_getevents is defined is wrong for all architectures other than riscv

Cc: @jacmet

I didn't see the comment, I am looking at it now.


Add manifest for ZAP

Signed-off-by: Simon Bennetts<EMAIL_ADDRESS>Microsoft Reviewers: Open in CodeFlow

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

@denelon could you let us know why the pipeline was unhappy when we'd included both x86 and x64?

@kingthorin that was actually explained in one of the error messages: "Manifest: We don't support more than one installer for now." :)

Oh okay.

I got an "Installer failed with exit code: 83" in my test VM. Did you test this on your local machine with winget install -m <manifest>? Are there any library requirements?

Well it’s a Java app so needs Java available to run. Install-wise it uses install4j which I believe needs Java as well (and last I checked either Oracle or an Open variant that sets the Oracle reg keys). I don’t know if @psiinon had tested.

I've managed to get winget installed from the repo. The manifest is failing for me too, even though I have java installed :/
It just says "Error opening media file." and refers to a log file that doesnt appear to exist :(
I'll try creating a ZAP release with the JRE included...

Removing passed label until the JRE fix is available.

@KevinLaMS is there a plan to allow packages to declare a dependency? So the ZAP package (or similar) could state that it requires a JRE? Or is there some other plan to address this?

My plan was to try to generate a Windows installer with the JRE included .. but I got distracted by other things :/
Will try to get back to this asap...

I'm adding label for "Dependencies". The manifest schema also needs to be updated.

Uhhh, ZAP 2.9.0 already got added in #1014 (@KevinLaMS 😠)
Submitted ZAP 2.10.0 with Dependency and correct information at #13654
Should we delete Zap.Zap until this PR gets approved under OWASP.ZAP?
https://github.com/microsoft/winget-cli/issues/163

@OfficialEsco If ZAP 2.9.0 requires dependencies, it would likely be best to remove it. What kind of dependency does it have?
The tags in this manifest should be converted to an array as well.
I also created this Issue to help #13861

@denelon they both require Java minimum version 1.8, the installer will not start if Java is not installed

@OfficialEsco thanks for the quick reply. I think this might be a quick win for dependencies. We aren't going to try and figure out which version of Java to install. It will likely be the "informational" type of dependency. A warning will be presented and the user could say [y]es to continue.
https://github.com/microsoft/winget-cli/blob/master/doc/specs/%23163 - Dependencies.md

@denelon sounds good, we're v happy to trial this :) Is there an eta for this feature? How would it be best for us to track it?
We can update this PR for both the Java dependency and to pick up the latest version of ZAP...

@psiinon we have an engineer just about ready to start work on dependencies. Once we have the "informational" warning behavior, we may decide to review any of the manifests with dependencies to see if they can be included. There is still additional work to update the validation pipelines, so that would be the next step in the process.

@ItzLevvie could you point us to some docs or an example where Java is a dependency?

an example where Java is a dependency?

An example can be seen here (as well as its implementation): https://github.com/microsoft/winget-pkgs/pull/15785/files#diff-0d6ed1b64324bef7309b48244334cf17dbd9c0a016bb2343b55fc26d7b70a235R5-R7
Please do note that package dependencies probably won't be out until Q3 or Q4 of 2022; so we're still many months away from that which means adding that piece of snippet will still make the PR not pass through Azure Pipelines.

Okay, we’ll continue to standby. Please feel feee to update us as things get close.

[Policy] Needs-CLA

[Policy] reset feedback

Is this likely to get merged?
Because we're now on ZAP v2.13.0 😛
I can push an update, or can wait for it to be merged and then make a new PR .. whichever is most likely to not cause more delays...

I'd say make the PR up to date with the Dependency to see if everything goes trough as expected

Updated to the latest version of ZAP

I'd recommend updating the manifest to schema version 1.4.0 since this one is ancient and not valid anymore. Singletons is also going away later.
You also need to include the Java dependency for it to pass.

@OfficialEsco links would be appreciated. I submitted this over 3 years ago, its not surprising that things have changed, but getting back up to speed on it is also challenging...

Understandable =)
Here is the docs for the 1.4.0 schema with examples https://github.com/microsoft/winget-pkgs/tree/master/doc/manifest/schema/1.4.0
Here are the tools to automatically create manifests https://github.com/microsoft/winget-pkgs#authoring-a-manifest

FYI on holiday this week, but will aim to update this as soon as I can..

Quick Manifest:

OWASP.ZAP.installer.yaml
# Created with YamlCreate.ps1 v2.2.8 $debug=NVS1.LF.7-3-4.Unix
# yaml-language-server: $schema=https://aka.ms/winget-manifest.installer.1.4.0.schema.json

PackageIdentifier: OWASP.ZAP
PackageVersion: 2.13.0
InstallerType: exe
InstallModes:
- silent
InstallerSwitches:
  Silent: -q
  SilentWithProgress: -q
UpgradeBehavior: install
ReleaseDate: 2023-07-12
Dependencies:
  PackageDependencies:
  - PackageIdentifier: Oracle.JavaRuntimeEnvironment
Installers:
- Architecture: x64
  InstallerUrl: https://github.com/zaproxy/zaproxy/releases/download/v2.13.0/ZAP_2_13_0_windows.exe
  InstallerSha256: 5E1DF341B91F65FE0768CB659AF41E7671D475074CEAB1B332B6520BCEDF1DAC
ManifestType: installer
ManifestVersion: 1.4.0

OWASP.ZAP.locale.en-us.yaml
# Created with YamlCreate.ps1 v2.2.8 $debug=NVS1.LF.7-3-4.Unix
# yaml-language-server: $schema=https://aka.ms/winget-manifest.defaultLocale.1.4.0.schema.json

PackageIdentifier: OWASP.ZAP
PackageVersion: 2.13.0
PackageLocale: en-US
Publisher: OWASP
PublisherUrl: https://github.com/zaproxy/zaproxy
PublisherSupportUrl: https://github.com/zaproxy/zaproxy/issues
# PrivacyUrl:
Author: OWASP
PackageName: ZAP
PackageUrl: https://github.com/zaproxy/zaproxy
License: Apache License 2.0
LicenseUrl: https://raw.githubusercontent.com/zaproxy/zaproxy/main/LICENSE
# Copyright:
CopyrightUrl: https://raw.githubusercontent.com/zaproxy/zaproxy/main/LICENSE
ShortDescription: The worlds most frequently used web app scanner. Free and Open Source.
# Description:
# Moniker:
Tags:
- dast
- owasp
- scanner
- security
# ReleaseNotes:
ReleaseNotesUrl: https://www.zaproxy.org/docs/desktop/releases/2.13.0/
# PurchaseUrl:
# InstallationNotes:
# Documentations:
ManifestType: defaultLocale
ManifestVersion: 1.4.0

OWASP.ZAP.yaml
# Created with YamlCreate.ps1 v2.2.8 $debug=NVS1.LF.7-3-4.Unix
# yaml-language-server: $schema=https://aka.ms/winget-manifest.version.1.4.0.schema.json

PackageIdentifier: OWASP.ZAP
PackageVersion: 2.13.0
DefaultLocale: en-US
ManifestType: version
ManifestVersion: 1.4.0

Manifest is invalid. Manifest file missing required field: PackageIdentifier

[Policy] Blocking-Issue

@OfficialEsco ZAP is no longer part of OWASP. Are we ok just using "ZAP" as the identifier?

Updated - hope thats ok 😁

@wingetbot run

@psiinon
Manifest: The filename must match the PackageIdentifier and ManifestType properties from the manifest.
actual 'ZAP.ZAP.locale.en-us.yaml'
expected 'ZAP.ZAP.locale.en-US.yaml'

Lets see if that works..

@wingetbot run

@OfficialEsco I cant see any evidence? Am I missing something?

Automatic Validation ended with:

2023-08-08 04:14:13.126 [CLI ] ShellExecute installer failed: 83

Manual Validation failed with the same error. Manually installing failed with this error:

I believe Oracle.JavaRuntimeEnvironment is only Java 8 while Java 11 is required here. Should a different JRE be used for the dependency?

Yes, we need a min of Java 11.
Are there any v11 JREs available? If so what should I specify (or how can I find that out for myself).
Many thanks.

We only have the classic JRE + JDK from Oracle, what do you the developer recommend?
https://github.com/microsoft/winget-pkgs/tree/master/manifests/o/Oracle
We also have a bunch of other Java brands, we could use Microsoft's OpenJDK?
https://github.com/microsoft/winget-pkgs/tree/master/manifests/m/Microsoft/OpenJDK
All you have to do is add the PackageIdentifier of the package, so for example Microsoft.OpenJDK.11.
I'm not sure if the feature of using Microsoft.OpenJDK is implemented yet, it was supposed to pick any in that branch

Trying Microsoft.OpenJDK.11 😁

@wingetbot run

It seems it's now failing because the installer requires admin privileges (exit code 0x8A150006). Is that supported? Do we need to specify something in the manifest?

Thought it was worth a try 😉

This is probably not relevant but
2023-08-09 03:26:36.097 [CLI ] Starting: 'C:\Users\VALIDA~1\AppData\Local\Temp\WinGet\ZAP.ZAP.2.13.0\ZAP_2_13_0_windows.exe' with arguments '-q'
2023-08-09 03:26:41.648 [CLI ] ShellExecute installer failed: 83
2023-08-09 03:26:41.649 [CLI ] Terminating context: 0x8a150006 at D:\a\_work\1\s\external\pkg\src\AppInstallerCLICore\Workflows\InstallFlow.cpp:1bf

Maybe it is:
The process of an installer returns 0 if the installation was completed successfully, 1 if the installation fails and 83 if the installer could not find a suitable JVM to run.

https://www.ej-technologies.com/resources/install4j/help/doc/installers/errors.html
I thought this was the actual problem:
Installation failed with exit code -1978335226

@wingetbot run

I'm unsure if Dependencies are enabled in Validation as its in experimental, @stephengillie should be able to answer that in a few hours

We're getting close to dependencies shipping in WinGet 1.6.
After the client starts to roll out and gets >50% market penetration (~ 2 weeks after release) we will open up dependencies in all manifests. We're currently grandfathering packages that had the field well ahead of "full" support while we were working on the feature.

Thanks @denelon - what do you recommend we do right now? Is there a workaround?

I'd love to say I have the "right" answer here, but it's a bit tricky. We don't really know if the user has dependencies enabled in their client to have a subjective "install notes" that would inform them about the need to enable dependencies, and if the package install fails without having Java installed, we don't get a good experience.
I'd say it's a question of what percentage of people installing this package would not have Java installed, and how popular is the package?
Responding to complaints that it failed to install is time consuming and takes away from product development.
@OfficialEsco what are your thoughts here as a long-time contributor/moderator?

If there is a single return response for missing dependency, then I'd be OK adding that to the manifest and adding the dependency and doing a manual approval.
@Trenly I think this pattern might make sense for some of the other packages with dependencies until we get validation working with the dependency install flow logic.

I think that makes sense. However, I don't know how common it is to have a return code specifically for missing dependency as opposed to other installation errors. Even looking at the MSI documentation I don't see a code specific for missing dependency - only 1603 for installation failure

Have applied that suggestion...

@psiinon if you enable the dependencies feature in WinGet and install this package via a local manifest on a clean machine, does it correctly install the Java requirement and the package?

PS D:\Git\winget-pkgs> .\Tools\PRTest.ps1 756 -EnableExperimentalFeatures -WinGetVersion 1.6 -Prerelease

After agreeing to msstore agreements - it installs normally
--> Installing WinGet
--> Disabling safety warning when running installer
Tip: you can type 'Update-EnvironmentVariables' to update your environment variables, such as after installing a new software.

--> Configuring Winget
Enabled admin setting 'LocalManifestFiles'.
Enabled admin setting 'LocalArchiveMalwareScanOverride'.

--> Installing the Manifest 2.13.0

Found ZAP [ZAP.ZAP] Version 2.13.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
This package requires the following dependencies:
  - Packages
      EclipseAdoptium.Temurin.11.JRE
The `msstore` source requires that you view the following agreements before using.
Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
The source requires the current machine's 2-letter geographic region to be sent to the backend service to function properly (ex. "US").

Do you agree to all the source agreements terms?
[Y] Yes  [N] No: y
Installing dependencies:
(1/1) Found Eclipse Temurin JRE with Hotspot 11 [EclipseAdoptium.Temurin.11.JRE] Version <IP_ADDRESS>
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.19+7/OpenJDK11U-jdk_x64_windows_hotspot_11.0.19_7.msi
  ██████████████████████████████   166 MB /  166 MB
Successfully verified installer hash
Starting package install...
Successfully installed

Downloading https://github.com/zaproxy/zaproxy/releases/download/v2.13.0/ZAP_2_13_0_windows.exe
  ██████████████████████████████   194 MB /  194 MB
Successfully verified installer hash
Starting package install...
Successfully installed

--> Refreshing environment variables

--> Comparing ARP Entries

DisplayName                                      DisplayVersion Publisher        ProductCode
-----------                                      -------------- ---------        -----------
OWASP Zed Attack Proxy 2.13.0                    2.13.0         OWASP ZAP        OWASP ZAP
Eclipse Temurin JDK with Hotspot 11.0.19+7 (x64) <IP_ADDRESS>      Eclipse Adoptium {9A277E09-3F69-4362-8074-A49E765350B0}

OK, since we're so close to getting dependencies in, and this PR has had so much activity, I'm inclined to approve.
@Stephen Gillie if you've gotten past all our mandatory policy checks, this one is OK to go ahead and merge. If you haven't, reach out to me so we can find a way to verify everything.

I spoke too soon. @Trenly has some changes requested.

I spoke too soon. @Trenly has some changes requested.

Sorry to spoil your plans 😢
Once changes are accepted, I think it should be good to merge

OK, have applied those 2 suggestions...

Automatic Validation ended with:

Installation failed with exit code -1978334972
2023-08-16 00:36:22.254 [CLI ] ShellExecute installer failed: 83

Manual Validation couldn't replicate the error. The package installed and launched normally.

@wingetbot waivers Add Validation-Installation-Error

Woohoo!
Thanks everyone for your assistance getting this merged!


'media' functionality not recognisable in scala 2.13

When upgrading to Scala 2.13 I'm getting an error on all media functionality when calling it in an inline stylesheet, e.g.
trait SharedStyleSetting extends StyleSheet.Inline {

  import dsl._

  ..
  val hideOnSmallDevice = style(
      media.maxWidth(xs_breakPoint._1)(
        display.none
      )
  )
  ..
}

I can see that media is now (in Scala 2.13) an Any type as opposed to DslBase.MediaQueryEmpty.type as it previously was (in Scala 2.12). The files look identical so I'm thinking that it could be a conflict issue.
  Seq(
        libraryDependencies ++= Seq(
          "com.github.japgolly.scalajs-react" %%% "core" % scalaJsReactV,
          "com.github.japgolly.scalajs-react" %%% "extra" % scalaJsReactV,
          "com.github.japgolly.scalajs-react" %%% "ext-monocle-cats" % scalaJsReactV,
          "com.github.japgolly.scalacss" %%% "core" % scalacssV,
          "com.github.japgolly.scalacss" %%% "ext-react" % scalacssV,
          ..
       )
  )
).enablePlugins(ScalaJSPlugin, JSDependenciesPlugin, ScalaJSBundlerPlugin, BuildInfoPlugin)
..

Any ideas on this?

Just me then I guess..


Add property to disable JdbcEnvironmentRepository

I'm using an embed spring-cloud-config server in my project (not the jdbc backend), and I'm using spring-data-jpa for other use in this project.
But the JdbcEnvironmentRepository will always be created cause it is triggerd by JdbcTemplate:
//org.springframework.cloud.config.server.config.EnvironmentRepositoryConfiguration
public class EnvironmentRepositoryConfiguration {

    @Configuration(proxyBeanMethods = false)
    @ConditionalOnClass(JdbcTemplate.class)
    static class JdbcFactoryConfig {

        @Bean
        @ConditionalOnBean(JdbcTemplate.class)// considering use other triggers?
        public JdbcEnvironmentRepositoryFactory jdbcEnvironmentRepositoryFactory(
                JdbcTemplate jdbc) {
            return new JdbcEnvironmentRepositoryFactory(jdbc);
        }

    }
}

So, how can I disable the JdbcEnvironmentRepository except excluding jpa?
Additional context
Dependency versions:
spring-cloud-config-server:2.2.2.RELEASE
spring-boot-starter-data-jpa:2.2.6.RELEASE
spring-cloud version: Hoxton.SR4

Please don't cross post. You can close the stack overflow issue to track an enhancement here

Ok, I've just closed the question on stackoverflow.
So is there any way to solve this problem now, or maybe in future release? @spencergibb

@spencergibb Can I help with this issue?

Sure

@spencergibb I have created a PR for review: https://github.com/spring-cloud/spring-cloud-config/pull/1623


Add space in help string

This PR adds a space in --launcher.
Before:
  --launcher LAUNCHER   (optional) choose launcher backend for multi-
                        nodetraining. Options currently include PDSH, OpenMPI,
                        MVAPICH.

After:
  --launcher LAUNCHER   (optional) choose launcher backend for multi-
                        node training. Options currently include PDSH, OpenMPI,
                        MVAPICH.

Thanks for your contribution! :)


Blocks in "Echo of the Light - prototype" do not show up

Expected Behavior
The blocks show up (when you have the "Pen Text Engine" sprite selected), looking something like this:

Actual Behavior
The blocks don't show up at all! Note that the the scripts run, though - if you click the green flag, the project will function correctly. So I think this is a problem in scratch-blocks, preventing the blocks from blocks from showing up, but they exist in the VM properly.
Steps to Reproduce
Load the project in Scratch 3.0: https://llk.github.io/scratch-gui/develop/#269991846
Operating System and Browser
I can repro this in Firefox (65.0b2). The original post pointing out this compatibility issue was from done while Chrome 70.0.3538.110.

Copied from a post on the Scratch forums, quoted below:

When I try to load this project in the beta editor, the editor comes up completely blank. It's like all the scripts in the project have been completely deleted by something. Miraculously, the costumes and variables are untouched - the single costume is still there and unchanged, and none of the variables in the project have been deleted. It's only the scripts themselves that have been deleted. I've tried duplicating the project; the duplicate has the same problem. I've also tried backpacking the scripts over to another project - initially, that seems to solve the problem, but after backpacking several scripts over the new project ends up just like the original project. Strangely, I've noticed that if you interact with the project as if it were running and then click the stop button, it displays a snapshot of the project as if it were actually working in the editor.

OP also said they don't think they used any hacked blocks.

I'm fairly sure I didn't use any hacked blocks, and I doubt that there are too many scripts given that another project with 31 scripts works fine… (the troublesome one has 18…)

This might be related to #1380, since it's the same error in the console ("XML Parsing Error: not well-formed"). I didn't see any obviously hacked or suspicious blocks when checking each script in 2.0, though (and definitely no "key () pressed?" with a weird input value), so I don't think it's exactly the same thing.

From investigation by @Mr-Dave2, it looks like this might be a case of LLK/scratch-vm#1077: https://github.com/LLK/scratch-vm/issues/1077#issuecomment-447148921

/cc @ktbee @kchadha

The issue with this project has been resolved with (see PRs below).
LLK/scratch-vm#1973
LLK/scratch-gui#4486
LLK/scratch-vm#1983
LLK/scratch-parser#53


Request a rewrite setting for nginx.

Problem
No matter how I set it, rewrite doesn't work. There is no problem when using Apache, but after I recently set the server to nginx, I tried a variety of configurations, including the configuration file examples in Doc, which do not work. In addition, it can be determined that it is not my server's problem, because the rewrite state of CMS of other sites is normal. So now I'm requesting a rewrite part of the nginx configuration file. Thank you.
Technical Details

Pagekit version:1.0.17
Webserver:NGINX 1.17
Database:MySQL 5.6
PHP Version:PHP 7.2

Oh, sorry, I didn't notice the need for that extension. After installation, the problem has been solved.


Refactor media events

This is a work item for #685.
Pages:
Web Audio API Events

[ ] https://developer.mozilla.org/en-US/docs/Web/Events/audioprocess
[ ] https://developer.mozilla.org/en-US/docs/Web/Events/complete
Note: onEnded?

HTMLMediaElement Events

[ ] https://developer.mozilla.org/en-US/docs/Web/Events/canplay
[ ] https://developer.mozilla.org/en-US/docs/Web/Events/canplaythrough
[ ] https://developer.mozilla.org/en-US/docs/Web/Events/durationchange
[ ] https://developer.mozilla.org/en-US/docs/Web/Events/emptied
[ ] https://developer.mozilla.org/en-US/docs/Web/Events/ended*
[ ] https://developer.mozilla.org/en-US/docs/Web/Events/loadeddata
[ ] https://developer.mozilla.org/en-US/docs/Web/Events/loadedmetadata
[ ] https://developer.mozilla.org/en-US/docs/Web/Events/pause
[ ] https://developer.mozilla.org/en-US/docs/Web/Events/play
[ ] https://developer.mozilla.org/en-US/docs/Web/Events/playing
[ ] https://developer.mozilla.org/en-US/docs/Web/Events/ratechange
[ ] https://developer.mozilla.org/en-US/docs/Web/Events/seeked
[ ] https://developer.mozilla.org/en-US/docs/Web/Events/seeking
[ ] https://developer.mozilla.org/en-US/docs/Web/Events/stalled
[ ] https://developer.mozilla.org/en-US/docs/Web/Events/suspend
[ ] https://developer.mozilla.org/en-US/docs/Web/Events/timeupdate
[ ] https://developer.mozilla.org/en-US/docs/Web/Events/volumechange
[ ] https://developer.mozilla.org/en-US/docs/Web/Events/waiting

For HTMLMediaElement pages:

[X] - page exists
[X] - moved to https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/XXX_event
[X] - translations checked
[X] - see also is updated
[X] - Tags (Audio, Video, Events, Reference, HTMLMediaElement)
[] - Audio example
[] - Video example

Add links to all events from:

[] - https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/
[] - https://developer.mozilla.org/en-US/docs/Web/API/HTMLAudioElement/
[] - https://developer.mozilla.org/en-US/docs/Web/Element/video/
[] - https://developer.mozilla.org/en-US/docs/Web/Element/audio/

FUTURE TASKS:

[] - Update {{EventRef}} to create 3 different ended event links.
[] - updae {{APIRef("Media Capture and Streams")}} to move ended event to media capture version

I'm taking the liberty to report here, please let me know if this irrelevant/wrong.
Regarding the playing event, there are now 3 pages under the HTML:

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video/playing_event (the original page which has been moved)
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video/playing (a newly created page)
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video/playingevent (a newly created page)
Those seem to be duplicates.

Moreover, if I correctly understood Will's procedure and the target of this event, those pages should be located under
https://developer.mozilla.org/en-US/docs/Web/API/Element (or https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement if the rule is not to be taken literally).
I understand time's a finite resource for everyone and that this just occurred yesterday and may perfectly be a temporary situation, however I would be grateful if such a work in progress could be flagged on the page (e.g. using the {{Draft}} macro or any similar tag/macro).
Thanks a lot in advance and "bon courage" with all this work of refactoring :)

Thanks for bringing this up, @SphinxKnight :+1:
You're on point here, the move was supposed to go to the Web/API/ tree not the Web/HTML/ tree.
For determining the target interface where to put this, I'm double-checking with the specs as these old MDN event docs can be wrong. I think the relevant spec for media events is this one: https://html.spec.whatwg.org/multipage/media.html#mediaevents and there it says "The following events fire on media elements" which refers to https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement
So, https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/playing_event would be correct here, I believe.
Does all this make sense to you, @estelle?

The triplicate issue should not have happened, but my understading is that these events are event on the HTML Media elements of  and  and not written in code as HTMLMediaElement, and therefore will be more useful attached to these two elements that developer will reference..
https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Media_events are the events.
The listeners are written as:
var vid1 = document.getElementsByTagName("video")[0];
vid1.addEventListener("seeked", function() { console.log('seeked'); });
vid1.addEventListener("canplaythrough", function(evt) {console.log(evt);})
vid1.currentTime = 5;
or
// not the right way, and not adding this to MDN
var vid1 = document.getElementsByTagName("video")[0];
vid1.onseeked = function() { console.log('seeked'); });
vid1.oncanplaythrough = function(evt) {console.log(evt);})
vid1.currentTime = 10.0;
 and  have the events listed at https://html.spec.whatwg.org/multipage/media.html#mediaevents.
Web authors are going to use the code similar to
myMedia[0].addEventListener(event, functionname);
where
myMedia  = document.querySelectorAll('video, audio'); or something similar - using video and audio, not HTMLMediaElement
therefore the events listed in the ticket (with the exception of audioprocess and complete) should be attached to both video and audio, and HTMLMediaElement as well. But will be more helpful to developers under each element, with examples for that element.

The  and  pages link to https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement and https://developer.mozilla.org/en-US/docs/Web/API/HTMLAudioElement respectively, which state the inheritance from HTMLMediaElement and HTMLElement. So it is definitely there, and I see posting it all under media element, but we need to also post under both video and audio, and under HTMLVideoElement and HTMLAudioElement, in some form, because that is too far of a stretch for devs to locate the events available on video and audio.

https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/video/canplay_event

[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/video/canplaythrough_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/video/durationchange_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/video/emptied_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/video/ended_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/video/loadeddata_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/video/loadedmetadata_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/video/pause_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/video/play_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/video/playing_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/video/ratechange_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/video/seeked_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/video/seeking_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/video/stalled_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/video/suspend_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/video/timeupdate_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/video/volumechange_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/video/waiting_event
[] - page exists
[] - translations checked
[] - see also is updated

https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/audio/canplay_event

[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/audio/canplaythrough_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/audio/durationchange_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/audio/emptied_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/audio/ended_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/audio/loadeddata_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/audio/loadedmetadata_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/audio/pause_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/audio/play_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/audio/playing_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/audio/ratechange_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/audio/seeked_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/audio/seeking_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/audio/stalled_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/audio/suspend_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/audio/timeupdate_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/audio/volumechange_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Elements/audio/waiting_event
[] - page exists
[] - translations checked
[] - see also is updated

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video/canplay_event

[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video/canplaythrough_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video/durationchange_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video/emptied_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video/ended_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video/loadeddata_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video/loadedmetadata_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video/pause_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video/play_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video/playing_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video/ratechange_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video/seeked_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video/seeking_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video/stalled_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video/suspend_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video/timeupdate_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video/volumechange_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video/waiting_event
[] - page exists
[] - translations checked
[] - see also is updated

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/canplay_event

[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/canplaythrough_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/durationchange_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/emptied_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/ended_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/loadeddata_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/loadedmetadata_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/pause_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/play_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/playing_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/ratechange_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/seeked_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/seeking_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/stalled_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/suspend_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/timeupdate_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/volumechange_event
[] - page exists
[] - translations checked
[] - see also is updated
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/waiting_event
[] - page exists
[] - translations checked
[] - see also is updated

@estelle Let's just back up a second and check in with what you are doing. I'm only saying this because from our conversation last night, it sounded like we were saying that you'd put duplicates of each event page hanging off HTMLVideoElement and HTMLAudioElement, so e.g.

https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/canplay_event
https://developer.mozilla.org/en-US/docs/Web/API/HTMLAudioElement/canplay_event

But it looks like you are putting them on HTMLMediaElement, e.g.

https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/canplay_event

This is actually OK, because HTMLMediaElement is not a mixin, but rather an inherited interface (my mistake, sorry about that).
I would say that you should add something prominent to the HTMLAudioElement and HTMLVideoElement pages making it clear that these events are available on those interfaces. Either a link to the events section on HTMLMediaElement page, or even repeating the whole section.
You should definitely also make sure they are linked from the  and  pages.
There don't appear to be any specialist events defined on HTMLAudioElement and HTMLVideoElement, which simplifies things somewhat. You do need to create pages for the EME-specific events, see https://dxr.mozilla.org/mozilla-central/source/dom/webidl/HTMLMediaElement.webidl#156.
Another thing to think about is that, while the spec doesn't officially define on... event handler properties for these events, they do exist. So we probably need pages for each of these too.
And I've also noticed that each of the event pages will be a lot of work, because they are done in an old style and need updating to the new style we agreed on (see https://developer.mozilla.org/en-US/docs/Web/API/Window/vrdisplayactivate_event as an example).
In short, this is a huge amount of work, and I feel kinda guilty dumping this one on you ;-)
I have some time on Monday/Tuesday next week and would like to offer to help you get some of these done. Let me know where you've got to by the end of your work time this week, and I can jump on board and dig into some of these if needed.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/canplay_event

[X] - Deleted
[X] - International Deleted

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/canplaythrough_event

[X] - Deleted
[X] - International Deleted

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/durationchange_event

[X] - Deleted
[X] - International Deleted

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/emptied_event

[X] - Deleted
[X] - International Deleted

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/ended_event

[X] - Deleted
[X] - International Deleted

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/loadeddata_event

[X] - Deleted
[X] - International Deleted

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/loadedmetadata_event

[X] - Deleted
[X] - International Deleted

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/pause_event

[X] - Deleted
[X] - International Deleted

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/play_event

[X] - Deleted
[X] - International Deleted

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/playing_event

[X] - Deleted
[X] - International Deleted

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/ratechange_event

[X] - Deleted
[X] - International Deleted

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/seeked_event

[X] - Deleted
[X] - International Deleted

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/seeking_event

[X] - Deleted
[X] - International Deleted

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/stalled_event

[X] - Deleted
[X] - International Deleted

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/suspend_event

[X] - Deleted
[X] - International Deleted

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/timeupdate_event

[X] - Deleted
[X] - International Deleted

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/volumechange_event

[X] - Deleted
[X] - International Deleted

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio/waiting_event

[X] - Deleted
[X] - International Deleted


Updated README

Just added some a couple of things to the README that were missing.

Thank you your suggestions. I add the missing curly brackets into the  .sailsrc but I think, the adapter parameter is not required in connection config, and you don't need to switch off the blueprints.
(Of course, it is not working, but it is not connected to this hook. I can sugegst you the following package: https://github.com/cesardeazevedo/sails-hook-sequelize-blueprints)


I18n Addon

How the system works.

During the loading of the webpage a small JS script at line 50 on index.html checks what language the users browser is, it then checks if there is an active language file in the array activeLangs. This check is in place so that some language files that haven't been updated to new code could be disabled if there are major changes. Then it writes a script tag to include that file, if the language isn't active yet, then it defaults back to {en-US}.

On line 721 of the index.html It calls the translation script from /scripts/i18n.js. This script reads through the html file and looks for data-i18n information in the tags and replaces the text with what is in the translation.js object. If the object doesn't have something it leaves it as the default. The translation.js allows for simple HTML tags like b and i. It is sanitized by element.innerHTML in the browser.

Sorry, by "dynamic translated" I meant updated when you switch language, we should totally stick with this style of translation

The nature of this PR / i18n makes it almost impossible to truly "finalise" (there are constant UI updates, rewrites, word changing and more) as such I'm happy to merge this PR exclusively as long as "existing" translations and features are working.
We can handle "catching up" with UI changes and additions in consecutive PRs, and translators can also do the same, missed or old translations will just be replaced with the English version, worst case scenario.
There are two conflicts currently (as GitHub shows above), once these are resolved, I'll give this PR my tACK.

:coin: 1,750 PIV bounty fulfilled and sent


The 2.0.3 version info has not been updated to be displayed in Safari

Version

[ ] Version 1
[x ] Version 2

My Problem
I know this is a minor one, but still it is misleading. The 2.0.3 version info has not been updated to be properly displayed in the Safari's extensions tab. It's still displaying the 2.0.2

Thanks for reporting this. I'm pretty sure I updated the Safari extension version too here: https://github.com/televator-apps/vimari/commit/8122fd5b3470222c11e34e61f96a3ac52efd66f8.
A few troubleshooting questions:

What file path shows up when you click the Uninstall button? I'm wondering whether Safari is picking up the 2.0.2 version somewhere instead of the 2.0.3 version you've downloaded.
Can you try restarting Safari and see if the version changes?

In general, I find the Safari extension mechanism very buggy for updating versions, and often have to restart Safari when developing to make things work properly.

Yep, restarting Safari, updated the version number correctly. 👍
Closing this one.


Allow old time, allows building with bundled time back to GHC-7.4

Hmm, Travis seems to run at https://travis-ci.org/vshabanov/HsOpenSSL but doesn't report back to GitHub.

Thank you. Just uploaded HsOpenSSL-<IP_ADDRESS> on Hackage.


Fix/Update selector of comment text area

the comment text area has the following class
form-control TextareaWidget_textarea__{some random string}
in https://github.com/openreview/openreview-web/pull/1318
so update the selector to use a partial class match

I don't think it is backward compatible. Could you please try getting the element using both strategies? if one is not found then try the other. Otherwise we can not merge this PR until the new note editor is merged into master


Generators - Delete page, UI not refreshed. Bug?

I noticed that when you click to delete a page that was added through Generators, the UI is not refreshed and there is no indication that page is deleted. Though it actually works which can be confirmed by refreshing the UI admin page..
I tested on the enduro_sample/generators, and i noticed the same behaviour. Not sure if this is a bug or feature request. Thoughts?

I've encountered this as well. I would consider this a bug. It should bring you back to the upcoming dashboard or index at the very least.

Thanks for confirming this. :) Btw should I close this issue or wait until fix is done?


add options such that src,dest and file list(in a file) are taken as args for move-files

add options such that src,dest and file list(in a file) are taken as args for move-files

addressed by #7


Add class to current selected

I want to add class selected to current item that I am choosing. The code is

I would suggest to put a flag on the card object. Something like:
...
$scope.selectPhoto = function selectPhoto (card) {
    // TODO: "unselect all cards"
    card.selected = true;
};

HTML:


[audio] Unable to hear any sound

Please, before submitting a new issue verify and check:

[x] I tested it on latest raylib version from master branch (c66eb491), 4.5.0 branch and Homebrew formula
[x] I checked there is no similar issue already reported
[x] I checked the documentation on the wiki
[x] My code has no errors or misuse of raylib

Issue description
I can't hear any sound on any of the audio examples. No errors either.
Environment
Model Name: MacBook Pro
Model Identifier: MacBookPro18,2
Chip: Apple M1 Max
Total Number of Cores:	10 (8 performance and 2 efficiency)
Memory:	64 GB
System Firmware Version: 10151.1.1
OS Loader Version:	 10151.1.1
macOS Sonoma 14.0 (23A344) (didn't work with macOS Ventura either)
Issue Screenshot

Code Example
examples/audio/audio_mixed_processor.c
examples/audio/audio_module_playing.c
examples/audio/audio_music_stream.c
examples/audio/audio_raw_stream.c
examples/audio/audio_sound_loading.c
examples/audio/audio_sound_multi.c
examples/audio/audio_stream_effects.c

Logs
/Users/wilson/projects/github/raysan5/raylib/cmake-build-debug/examples/audio_music_stream
INFO: Initializing raylib 5.0-dev
INFO: Platform backend: DESKTOP (GLFW)
INFO: Supported raylib modules:
INFO:     > rcore:..... loaded (mandatory)
INFO:     > rlgl:...... loaded (mandatory)
INFO:     > rshapes:... loaded (optional)
INFO:     > rtextures:. loaded (optional)
INFO:     > rtext:..... loaded (optional)
INFO:     > rmodels:... loaded (optional)
INFO:     > raudio:.... loaded (optional)
INFO: DISPLAY: Device initialized successfully
INFO:     > Display size: 1728 x 1117
INFO:     > Screen size:  800 x 450
INFO:     > Render size:  800 x 450
INFO:     > Viewport offsets: 0, 0
INFO: GLAD: OpenGL extensions loaded successfully
INFO: GL: Supported extensions count: 43
INFO: GL: OpenGL device information:
INFO:     > Vendor:   Apple
INFO:     > Renderer: Apple M1 Max
INFO:     > Version:  4.1 Metal - 86
INFO:     > GLSL:     4.10
INFO: GL: VAO extension detected, VAO functions loaded successfully
INFO: GL: NPOT textures extension detected, full NPOT textures supported
INFO: GL: DXT compressed textures supported
INFO: TEXTURE: [ID 1] Texture loaded successfully (1x1 | R8G8B8A8 | 1 mipmaps)
INFO: TEXTURE: [ID 1] Default texture loaded successfully
INFO: SHADER: [ID 1] Vertex shader compiled successfully
INFO: SHADER: [ID 2] Fragment shader compiled successfully
INFO: SHADER: [ID 3] Program shader loaded successfully
INFO: SHADER: [ID 3] Default shader loaded successfully
INFO: RLGL: Render batch vertex buffers loaded successfully in RAM (CPU)
INFO: RLGL: Render batch vertex buffers loaded successfully in VRAM (GPU)
INFO: RLGL: Default OpenGL state initialized successfully
INFO: TEXTURE: [ID 2] Texture loaded successfully (128x128 | GRAY_ALPHA | 1 mipmaps)
INFO: FONT: Default font loaded successfully (224 glyphs)
INFO: PLATFORM: DESKTOP: Application initialized successfully
INFO: AUDIO: Device initialized successfully
INFO:     > Backend:       miniaudio / Null
INFO:     > Format:        32-bit IEEE Floating Point -> 32-bit IEEE Floating Point
INFO:     > Channels:      2 -> 2
INFO:     > Sample rate:   48000 -> 48000
INFO:     > Periods size:  1440
INFO: STREAM: Initialized successfully (44100 Hz, 32 bit, Stereo)
INFO: FILEIO: [resources/country.mp3] Music file loaded successfully
INFO:     > Sample rate:   44100 Hz
INFO:     > Sample size:   32 bits
INFO:     > Channels:      2 (Stereo)
INFO:     > Total frames:  4128768
INFO: TIMER: Target time per frame: 33.333 milliseconds

Troubleshooting
As suggested in Discord, I tried to set AUDIO_DEVICE_SAMPLE_RATE  in config.h to different values, including matching the same rate of the loaded file, but nothing worked.
Please note that I'm not a C developer. I am developing ruby bindings for raylib and I noticed that none of my audio examples worked.

This user has also reported the same problem https://discord.com/channels/426912293134270465/1164761771073089546/1164761771073089546

I can hear the web audio tho, just not the desktop version.

@wilsonsilva did you test the C examples?

@wilsonsilva See https://github.com/mackron/miniaudio/issues/750 and https://github.com/gen2brain/raylib-go/issues/274.

@raysan5 Yes, I tested all the C examples in the audio folder. All run without errors but I can't hear any sound.

@gen2brain Thanks. I confirm that adding:
# Adding suggested flags
add_definitions(-DMA_NO_RUNTIME_LINKING)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -framework CoreFoundation -framework CoreAudio -framework AudioToolbox")

To the top of my root CMakeLists.txt fixed the issue.
The logs changed from:
INFO: AUDIO: Device initialized successfully
INFO:     > Backend:       miniaudio / Null

to
INFO: AUDIO: Device initialized successfully
INFO:     > Backend:       miniaudio / Core Audio

@raysan5 I'll leave it up to you to decide if this is an issue that warrants a global fix or I just happen to be an unlucky rare exception 😂

@wilsonsilva This is strange because miniaudio should be able to dynamically request required libraries at runtime. As far as I know it works as expected for other macOS users.
Are you linking raylib statically or dynamically?

@raysan5 I suppose that I'm doing both.
Statically
When I add these lines to CMakeLists.txt:
add_definitions(-DMA_NO_RUNTIME_LINKING)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -framework CoreAudio -framework AudioToolbox")

And I reload the CLion configuration, I see this log:
/Users/wilson/Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=/Users/wilson/Applications/CLion.app/Contents/bin/ninja/mac/ninja -G Ninja -S /Users/wilson/projects/github/raysan5/raylib -B /Users/wilson/projects/github/raysan5/raylib/cmake-build-debug
-- The C compiler identification is AppleClang <IP_ADDRESS>00040
-- The CXX compiler identification is AppleClang <IP_ADDRESS>00040
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test COMPILER_HAS_THOSE_TOGGLES
-- Performing Test COMPILER_HAS_THOSE_TOGGLES - Success
-- Testing if -Werror=pointer-arith can be used -- compiles
-- Testing if -Werror=implicit-function-declaration can be used -- compiles
-- Testing if -fno-strict-aliasing can be used -- compiles
-- Using raylib's GLFW
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Including Cocoa support
CMake Warning (dev) at cmake/LibraryConfigurations.cmake:22 (MESSAGE):
  OpenGL is deprecated starting with macOS 10.14 (Mojave)!
Call Stack (most recent call first):
  src/CMakeLists.txt:48 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Audio Backend: miniaudio
-- Building raylib static library
-- Generated build type: Debug
-- Compiling with the flags:
--   PLATFORM=PLATFORM_DESKTOP
--   GRAPHICS=GRAPHICS_API_OPENGL_33
-- Building examples is enabled
-- Looking for CLOCK_MONOTONIC
-- Looking for CLOCK_MONOTONIC - found
-- Looking for QueryPerformanceCounter
-- Looking for QueryPerformanceCounter - not found
-- Looking for stdatomic.h
-- Looking for stdatomic.h - found
-- Testing if -std=c11 can be used -- compiles
CMake Warning (dev) at examples/CMakeLists.txt:44 (MESSAGE):
  OpenGL is deprecated starting with macOS 10.14 (Mojave)!
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done (1.0s)
-- Generating done (0.1s)
-- Build files have been written to: /Users/wilson/projects/github/raysan5/raylib/cmake-build-debug

[Finished]

Then, I can run all audio examples with no issues. I do it via CLion GUI.
Dynamically
This is my current goal. I am developing raylib-ruby. I'm converting all audio examples from C to Ruby. I don't get errors, but there's no sound.
The instructions on how to compile the library dynamically are not very clear on the wiki. I tried to modify the homebrew formula and I also tried a bash script. The examples run but there's no audio:
INFO: AUDIO: Device initialized successfully
INFO:     > Backend:       miniaudio / Null

# Used a different name to avoid conflicts
class Laylib < Formula
  desc "Simple and easy-to-use library to learn videogames programming"
  homepage "https://www.raylib.com/"
  url "https://github.com/raysan5/raylib/archive/4.5.0.tar.gz"
  sha256 "0df98bfc553db31356cab46a2f9ed6d932065f186a0fff24bafa05f8a60e16d1"
  license "Zlib"
  head "https://github.com/raysan5/raylib.git", branch: "master"

  bottle do
    sha256 cellar: :any,                 arm64_sonoma:   "662558c42eb94dd57d74769c8be1fa56dc511b2c532016725ea2f795ddc981d4"
    sha256 cellar: :any,                 arm64_ventura:  "a3f03b9f6fc41dd1884d4c1694aa44a1ad0a035ddb1dc4dda690898d000cd407"
    sha256 cellar: :any,                 arm64_monterey: "10a1d493f6abdfd66b2d0639d848c5972e65df7a475b1e77210da59e60ff57b3"
    sha256 cellar: :any,                 arm64_big_sur:  "b50c3a4cea028ce463bce5f8cd857d61c9c0ac10fcab6f491cb62c98b08c3d08"
    sha256 cellar: :any,                 sonoma:         "f6d9ec0179498117c61f08faacf4c3b5bb95d99a4804f961005c8541755f4c1e"
    sha256 cellar: :any,                 ventura:        "a5fa31296b157523b968e2ba6a913e11140a06b46600d14fff7dfca08dec16d3"
    sha256 cellar: :any,                 monterey:       "af0630c193767d75d93bead04d6b5ace6fa0db4f789f35a8980ec771b37face1"
    sha256 cellar: :any,                 big_sur:        "f62b1dde82d0f33e6fbda710e75b0a2f4a7559dc6588201419bce5f2f9ca4b92"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "2d9f930f5a0e98eece43c16318eaaf42e94629d7f45e07c0b6765ee36fe70ece"
  end

  depends_on "cmake" => :build

  on_linux do
    depends_on "libx11"
    depends_on "libxcursor"
    depends_on "libxi"
    depends_on "libxinerama"
    depends_on "libxrandr"
    depends_on "mesa"
    depends_on "mesa-glu"
  end

  def install
    args = std_cmake_args + [
      "-S", ".",
      "-DMA_NO_RUNTIME_LINKING=ON",
      "-DCMAKE_EXE_LINKER_FLAGS=#{Shellwords.shellescape("-framework CoreAudio -framework AudioToolbox")}",
      "-DBUILD_SHARED_LIBS=ON",
      "-DMACOS_FATLIB=OFF",
      "-DBUILD_EXAMPLES=OFF",
      "-DBUILD_GAMES=OFF"
    ]

    system "cmake", *args, "-B", "build"
    system "cmake", "--build", "build"
    system "cmake", "--install", "build"

    args_static = args.dup
    args_static[args_static.index("-DBUILD_SHARED_LIBS=ON")] = "-DBUILD_SHARED_LIBS=OFF"

    system "cmake", *args_static, "-B", "build-static"
    system "cmake", "--build", "build-static"
    lib.install "build-static/raylib/libraylib.a"
  end

  # def install
  #   system "cmake", "-S", ".", "-B", "build",
  #          "-DBUILD_SHARED_LIBS=ON",
  #          "-DMACOS_FATLIB=OFF",
  #          "-DBUILD_EXAMPLES=OFF",
  #          "-DBUILD_GAMES=OFF",
  #          "-DMA_NO_RUNTIME_LINKING:BOOL=ON",
  #          "-DCMAKE_EXE_LINKER_FLAGS=-framework CoreFoundation -framework CoreAudio -framework AudioToolbox",
  #          *std_cmake_args
  #   system "cmake", "--build", "build"
  #   system "cmake", "--install", "build"
  #   system "cmake", "-S", ".", "-B", "build-static",
  #          "-DBUILD_SHARED_LIBS=OFF",
  #          "-DMACOS_FATLIB=OFF",
  #          "-DBUILD_EXAMPLES=OFF",
  #          "-DBUILD_GAMES=OFF",
  #          "-DMA_NO_RUNTIME_LINKING:BOOL=ON",
  #          "-DCMAKE_EXE_LINKER_FLAGS=-framework CoreFoundation -framework CoreAudio -framework AudioToolbox",
  #          *std_cmake_args
  #   system "cmake", "--build", "build-static"
  #   lib.install "build-static/raylib/libraylib.a"
  # end

  test do
    (testpath/"test.c").write <<~EOS
      #include <stdlib.h>
      #include <raylib.h>
      int main(void)
      {
          int num = GetRandomValue(42, 1337);
          return 42 <= num && num <= 1337 ? EXIT_SUCCESS : EXIT_FAILURE;
      }
    EOS
    flags = if OS.mac?
      %w[
        -framework Cocoa
        -framework IOKit
        -framework OpenGL
        -framework CoreFoundation
        -framework CoreAudio
        -framework AudioToolbox
      ]
    else
      %w[
        -lm
        -ldl
        -lGL
        -lpthread
      ]
    end
    system ENV.cc, "test.c", "-o", "test", "-L#{lib}", "-lraylib", *flags
    system "./test"
  end
end

mkdir -p build
cd build
export MACOSX_DEPLOYMENT_TARGET=14.0
cmake \
-D CMAKE_C_FLAGS="" \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_OSX_ARCHITECTURES="x86_64;arm64" \
-D BUILD_SHARED_LIBS=ON \
-D BUILD_EXAMPLES=OFF \
-D CMAKE_C_COMPILER=clang \
-D CMAKE_CXX_FLAGS="-DMA_NO_RUNTIME_LINKING" \
-D CMAKE_EXE_LINKER_FLAGS="${CMAKE_EXE_LINKER_FLAGS} -framework CoreAudio -framework AudioToolbox" \
../
make
sudo cp raylib/libraylib.dylib /usr/local/lib

@raysan5 This is already fixed in the dev branch https://github.com/mackron/miniaudio/commit/b792ccd483d2703885a6aea878f38471f3aff18a, it affects the latest macOS versions.

I haven't read through all of the details here, but if you're running on an Apple platform and you're not hearing anything, the most likely reason is because it's failing to link at runtime and is falling back to the null backend. The changed noted by @gen2brain has a workaround that apparently works, but another option is to link at compile time instead of at runtime. More info here in section 2.2: https://miniaud.io/docs/manual/#Building

@gen2brain @mackron thanks for your answers! yeah, that seems the issue!

After fighting with the build flags, I finally managed to compile the macOS dylib by copying miniaudio.h from the dev branch onto src/external.h and then running:
mkdir -p build
cd build
cmake \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_OSX_ARCHITECTURES="x86_64;arm64" \
-D BUILD_SHARED_LIBS=ON \
-D BUILD_EXAMPLES=OFF \
../
make
sudo cp raylib/libraylib.dylib /usr/local/lib

Thanks everyone for your help.

Updated to latest miniaudio dev as proposed by @gen2brain. It should work now...


Add text() function to documentation

Via the various documentation pages for objects which support text, the text() function/setter method isn't currently documented.
For example on the getting started page it includes the following code exert:

...showing a call to Blocks.Section().text('some text').
However if we look at the Section() documentation page setter methods, the text() function is missing: https://www.blockbuilder.dev/#/blocks/section

Thanks! I've been swamped the last few weeks, so sorry for the late reply. I'll take a look at the doc generator to see why that method isn't showing up in the docs, but it definitely is an available method :)
Thanks for bringing this to my attention!

Updated!


feat: Notecard-only power outage monitoring

A simple guide on using a Notecard to monitor mains power outages.

 NF16 - Power Outage Monitor


Visualization results

Hi, thanks for your amazing work. In the results section of the paper, a comparison with other methods such as sparseneus and mvsnerf has been done. I wanted to enquire about the results for mvsnerf and how you acquired them. I tried running marching cubes mvsnerf with a density threshold of 10 and am not getting satisfactory results. If possible, I'd be also grateful if you would be willing to share the code to do the same.
Thank you in advance

Hi. For the results for MVSNeRF, IBRNet, we actually borrow the results from SparseNeuS paper. So maybe you can directly ask the authors of SparseNeuS. To be honest, I think choosing the threshold is quite tricky.

Hi, thank you so much for the quick response. I understand, I'll try and ask the authors of sparseneus.


VM - Can't expand screen size :(

Even if I go full screen or try the 'Fit window to machine' option, the display size is fixed and won't take up my entire browser space available:

The resolution is tight on this machine, so being able to fill the browser window would be nice.

vendor agreed to improve this experience for when we go live


The Game Changer FCH Submission

LoggingLocationData.zip

@xylieong Can you change the title to our group name? Thanks

alright done


AttributeError: 'Browser' object has no attribute 'setDefaultNavigationTimeout'

Hi Gurus,
I having this error message whenever trying to set the timeout of the either browser or the page.
AttributeError: 'Browser' object has no attribute 'setDefaultNavigationTimeout'
Following is my code snippet:
from bs4 import BeautifulSoup
from playwright.sync_api import sync_playwright
import validators
import os
import asyncio
from playwright.async_api import async_playwright
from pprint import pprint
pages = set()

# Use sync version of Playwright
def get_links(page_url):
    global pages
    valid=validators.url(page_url)
    if valid==True:
        #with async_playwright() as p:
        with sync_playwright() as p:
            # Launch the browser
            browser = p.chromium.launch()
            #browser.setDefaultTimeout(0)
            browser.setDefaultNavigationTimeout(0)
            # Open a new browser page
            page = browser.new_page()
            page.setDefaultTimeout(0)
            # Open our test file in the opened page
            page.goto(page_url)
            page_content = page.content()

both of browser.setDefaultNavigationTimeout(0) and  page.setDefaultTimeout(0) is throwing above error while the manual provided on https://playwright.dev/docs/api/class-page#page-set-default-timeout page says one can SET the time out but it appears I am doing it wrong. Please advise me how to set the time out.
thanks

here is screen shot of the error message.

Hello,
browser.setDefaultNavigationTimeout(0)  # browser have litteraly no attribute setDefaultNavigationTimeout
Its The Page which Have this Attribute:
await page.setDefaultNavigationTimeout(0)
And You also have to use "Async await" and have to wait whenever anything is returning a Promise, You can also use "then and catch" for Promise Handling.


Why not use rsample() PyTorch

Is there a reason for manually implementing reparameterization instead of using the rsample method provided in PyTorch?

I'm pretty sure they are equivalent, it's just the original paper details this reparameterization trick https://arxiv.org/abs/1312.6114. IIRC rsample takes the variance (std^2), but that's not a big deal.

Closing as the answer is given by @botkevin


WIP: Update referee flow

This updates the referee flow, now that references are given after an offer has been accepted rather than before an application has been submitted.
Given that references are now purely for safeguarding purposes rather than to assess candidates, the reference should be changed to focus more on providing shorter, factual information. This could now be optional.
The examples in the bulleted list could vary depending on the reference type (academic, professional, school-based or character).
Screenshots (work in progress)

More work in progress:
Initial page
This now summarises what the reference contains, in case users didn't read the email fully.

How the candidate knows you
Minor spacing tweak

Safeguarding concerns
Question wording updated. Added hint text (draft).

Additional information
No longer optional.

More work-in-progress:


warnings: list of warning that should be ignored

When Invenio is running, there are some common warning that we could "safely" (to be checked in details) ignore or at least somehow configure:

InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. Normally we know for which servers we are adding verify_certs=False and why.

@ntarocco Hey, we've tried to find this warning, but we're not getting it. Do you remember where it was issued from?

Minimal example to reproduce warning:
from elasticsearch import Elasticsearch
from elasticsearch.connection import RequestsHttpConnection

es = Elasticsearch(
    hosts=[
        dict(
            host='...', port=443,
            http_auth=('...', '...'),
            use_ssl=True,
            verify_certs=False,
        ),
    ],
    connection_class=RequestsHttpConnection,
)
es.search(index="records", body={"query": {"match_all": {}}})

Also, you need a cluster with a self-signed certificate.

So after investigating a bit, I'm tempted to say that we should not fix this warning. It's a real warning that you are doing insecure stuff. I'd rather document how you can fix it in the case you are using self-signed certificates.

In 7.x+ version of the client library, you can get rid of the UserWarning by use of the ssl_show_warn parameter
use_ssl=True,
verify_certs=False,
ssl_show_warn=False,

You can disable the urllib3 warning like this:
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)


Error: ENOENT: no such file or directory, open 'https://[FILE_URL]'

When targeting the file locally, I  have no issue, but when I target the server hosted version, I  get the following error. Is there something different I  need to do when the file is hosted?
Error: ENOENT: no such file or directory, open 'https://[FILE_URL]'
This is my code
const movementOrders = excelToJson({ 			sourceFile: args.url, 			sheets: ['Data'] 		});
Thanks!

Hi @rmoylan,
Yes, you would need to download the file first, and then when the download is finished, you can pass the local file path to the lib. It's not prepared to handle URLs.

@DiegoZoracKy Got it thanks!


Use upstream cranelift

Now that https://github.com/CraneStation/cranelift/pull/795 (I128) is merged, we can finally use upstream Cranelift again.

Blocked on https://github.com/CraneStation/cranelift/issues/1002

Should work with next nightly.


Two additional login errors on hot standby instance, followup to #3118

Environment

Python version: 3.5.2
NetBox version: 2.5.12

Steps to Reproduce

Set up netbox on a remote system (master), and create a user account on that system
Set up postgresql on localhost as a hot standby replica of the master system database
Set up netbox on localhost. In configuration.py, set MAINTENANCE_MODE to True and SESSION_FILE_PATH to a writable directory.
Reload apache (or whatever WSGI server you have configured)
Try to login to netbox

Expected Behavior
I expected that logins would work successfully.
Observed Behavior
(This is copied from comments that I added to #3118 after it was closed. Perhaps they weren't seen?)
Logins fail. There seems to be at least two other places in the code, apart from what was addressed in #3118, where django tries to save information associated with a user login to the database. Here are the stack traces of those two cases:
Case 1
Authenticating with a local DB password. The key line seems to be line 110 of /usr/local/lib/python3.5/dist-packages/django/contrib/auth/base_user.py. Reading the comments, it seems to be associated with a password hash upgrade. But I also tried logging into the master instance (to flush out any password hash changes) and then logging in again to the standby instance. But I still get the same error.
Internal Server Error: /login/
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
psycopg2.InternalError: cannot execute UPDATE in a read-only transaction

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py", line 115, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py", line 113, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python3.5/dist-packages/django/views/generic/base.py", line 71, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/django/utils/decorators.py", line 45, in _wrapper
    return bound_method(*args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
    return view(request, *args, **kwargs)
  File "/opt/netbox/netbox/users/views.py", line 32, in dispatch
    return super().dispatch(*args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/django/views/generic/base.py", line 97, in dispatch
    return handler(request, *args, **kwargs)
  File "/opt/netbox/netbox/users/views.py", line 43, in post
    if form.is_valid():
  File "/usr/local/lib/python3.5/dist-packages/django/forms/forms.py", line 185, in is_valid
    return self.is_bound and not self.errors
  File "/usr/local/lib/python3.5/dist-packages/django/forms/forms.py", line 180, in errors
    self.full_clean()
  File "/usr/local/lib/python3.5/dist-packages/django/forms/forms.py", line 382, in full_clean
    self._clean_form()
  File "/usr/local/lib/python3.5/dist-packages/django/forms/forms.py", line 409, in _clean_form
    cleaned_data = self.clean()
  File "/usr/local/lib/python3.5/dist-packages/django/contrib/auth/forms.py", line 196, in clean
    self.user_cache = authenticate(self.request, username=username, password=password)
  File "/usr/local/lib/python3.5/dist-packages/django/contrib/auth/__init__.py", line 73, in authenticate
    user = backend.authenticate(request, **credentials)
  File "/usr/local/lib/python3.5/dist-packages/django/contrib/auth/backends.py", line 26, in authenticate
    if user.check_password(password) and self.user_can_authenticate(user):
  File "/usr/local/lib/python3.5/dist-packages/django/contrib/auth/base_user.py", line 111, in check_password
    return check_password(raw_password, self.password, setter)
  File "/usr/local/lib/python3.5/dist-packages/django/contrib/auth/hashers.py", line 61, in check_password
    setter(password)
  File "/usr/local/lib/python3.5/dist-packages/django/contrib/auth/base_user.py", line 110, in setter
    self.save(update_fields=["password"])
  File "/usr/local/lib/python3.5/dist-packages/django/contrib/auth/base_user.py", line 66, in save
    super().save(*args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/django/db/models/base.py", line 741, in save
    force_update=force_update, update_fields=update_fields)
  File "/usr/local/lib/python3.5/dist-packages/django/db/models/base.py", line 779, in save_base
    force_update, using, update_fields,
  File "/usr/local/lib/python3.5/dist-packages/django/db/models/base.py", line 851, in _save_table
    forced_update)
  File "/usr/local/lib/python3.5/dist-packages/django/db/models/base.py", line 900, in _do_update
    return filtered._update(values) > 0
  File "/usr/local/lib/python3.5/dist-packages/django/db/models/query.py", line 760, in _update
    return query.get_compiler(self.db).execute_sql(CURSOR)
  File "/usr/local/lib/python3.5/dist-packages/django/db/models/sql/compiler.py", line 1429, in execute_sql
    cursor = super().execute_sql(result_type)
  File "/usr/local/lib/python3.5/dist-packages/django/db/models/sql/compiler.py", line 1100, in execute_sql
    cursor.execute(sql, params)
  File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py", line 67, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py", line 76, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/usr/local/lib/python3.5/dist-packages/django/db/utils.py", line 89, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.InternalError: cannot execute UPDATE in a read-only transaction

Case 2
Authenticating with an LDAP password. The key line here seems to be line 612 of /usr/local/lib/python3.5/dist-packages/django_auth_ldap/backend.py. It seems to think it needs to 'build' this user instead of just 'populating' it. Not sure what's going on here because I've already logged in as this user on the master instance several times. So whatever state it needs should have already been built in the database by now. Not sure why it wants to try to build state now on the standby instance.
Internal Server Error: /login/
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
psycopg2.InternalError: cannot execute UPDATE in a read-only transaction

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py", line 115, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py", line 113, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python3.5/dist-packages/django/views/generic/base.py", line 71, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/django/utils/decorators.py", line 45, in _wrapper
    return bound_method(*args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
    return view(request, *args, **kwargs)
  File "/opt/netbox/netbox/users/views.py", line 32, in dispatch
    return super().dispatch(*args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/django/views/generic/base.py", line 97, in dispatch
    return handler(request, *args, **kwargs)
  File "/opt/netbox/netbox/users/views.py", line 43, in post
    if form.is_valid():
  File "/usr/local/lib/python3.5/dist-packages/django/forms/forms.py", line 185, in is_valid
    return self.is_bound and not self.errors
  File "/usr/local/lib/python3.5/dist-packages/django/forms/forms.py", line 180, in errors
    self.full_clean()
  File "/usr/local/lib/python3.5/dist-packages/django/forms/forms.py", line 382, in full_clean
    self._clean_form()
  File "/usr/local/lib/python3.5/dist-packages/django/forms/forms.py", line 409, in _clean_form
    cleaned_data = self.clean()
  File "/usr/local/lib/python3.5/dist-packages/django/contrib/auth/forms.py", line 196, in clean
    self.user_cache = authenticate(self.request, username=username, password=password)
  File "/usr/local/lib/python3.5/dist-packages/django/contrib/auth/__init__.py", line 73, in authenticate
    user = backend.authenticate(request, **credentials)
  File "/usr/local/lib/python3.5/dist-packages/django_auth_ldap/backend.py", line 150, in authenticate
    user = self.authenticate_ldap_user(ldap_user, password)
  File "/usr/local/lib/python3.5/dist-packages/django_auth_ldap/backend.py", line 210, in authenticate_ldap_user
    return ldap_user.authenticate(password)
  File "/usr/local/lib/python3.5/dist-packages/django_auth_ldap/backend.py", line 350, in authenticate
    self._get_or_create_user()
  File "/usr/local/lib/python3.5/dist-packages/django_auth_ldap/backend.py", line 612, in _get_or_create_user
    self._user.save()
  File "/usr/local/lib/python3.5/dist-packages/django/contrib/auth/base_user.py", line 66, in save
    super().save(*args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/django/db/models/base.py", line 741, in save
    force_update=force_update, update_fields=update_fields)
  File "/usr/local/lib/python3.5/dist-packages/django/db/models/base.py", line 779, in save_base
    force_update, using, update_fields,
  File "/usr/local/lib/python3.5/dist-packages/django/db/models/base.py", line 851, in _save_table
    forced_update)
  File "/usr/local/lib/python3.5/dist-packages/django/db/models/base.py", line 900, in _do_update
    return filtered._update(values) > 0
  File "/usr/local/lib/python3.5/dist-packages/django/db/models/query.py", line 760, in _update
    return query.get_compiler(self.db).execute_sql(CURSOR)
  File "/usr/local/lib/python3.5/dist-packages/django/db/models/sql/compiler.py", line 1429, in execute_sql
    cursor = super().execute_sql(result_type)
  File "/usr/local/lib/python3.5/dist-packages/django/db/models/sql/compiler.py", line 1100, in execute_sql
    cursor.execute(sql, params)
  File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py", line 67, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py", line 76, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/usr/local/lib/python3.5/dist-packages/django/db/utils.py", line 89, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.InternalError: cannot execute UPDATE in a read-only transaction

Reading the comments, it seems to be associated with a password hash upgrade.

Agreed, this seems to be the root cause. Unfortunately there's nothing we can do to work around this reasonably.

But I also tried logging into the master instance (to flush out any password hash changes) and then logging in again to the standby instance. But I still get the same error.

I can confirm that this worked for me: After upgrading Django and logging into the master instance, I was able to log into the standby without issue. (I did also then confirm that the standby database is still in read-only mode; trying to create a new object raises an exception.)
You might want to double-check that the standby database is being updated by the master as expected. That is, check that the user account has the same exact hash value in both databases.

I did a quick check of the password field in the auth_user table on both the master and standby and they're identical. I'll try to do some more troubleshooting when I get a chance.
Any ideas on the LDAP-related error (Case 2)?

I did some further investigation and was able to resolve both issues:
Case 1 -- I logged in again to the master instance and logged in to the standby instance, and this time it worked. It successfully upgraded the hash on the master instance (increased the number of PBKDF2 iterations) and replicated the password to the standby instance. Not exactly sure why it didn't work previously, but it seems solid now.
Case 2 -- I was able to get this to work by setting AUTH_LDAP_ALWAYS_UPDATE_USER = False in ldap_config.py on the standby instance.


Added new bug template

I edited parts of our bug template to make them more user friendly. Specifically, I added the notes into comments so users didn't have to delete anything and could just fill in the template, and changed the wording to have clearer sections on what info is required to submit a bug.

LGTM.


web link cant update it self

Web link cant update it self cant update the map on your phone by enable the URL
When you refresh your browser it says no active client for "the name of the name of the link"
This happens when i leave pc alone and go out to find the pokemon i looking for
after the pokemon that i look for catch reopen browser and reload the page because i almost all the pokemon show expired and after refresh web page wont load....
What happens please tell me....
Thank you!

This seems to be a common issue for people using Ngrok or LocalTunnel There are already a few issue for this, try checking the closed issues first to see if someone has solved this already.
If I find a ticket for reference I'll link it.

AVellucci     to me, your reply doesn't make sense.
all most of us are probably doing is downloading the release and install/running it.
I've been on OS X version since 0.1.6 and i have no idea of Ngrok or LocalTunnel.
You make it sound like we have a choice or should know which one.

@JaymerJaymer how do you make your map available for mobile? if you use the Mobile button you will get a localtunnel or ngrok link.
If you use the checkbox at the bottom of the login that requires portforwarding to work outside your network.


FYI, bad documentation link

I was looking at the github release page, which links to https://flask.palletsprojects.com/en/3.0.x/changes/#version-3-0-0
This page gives me a page not found error.

Fixed.


Add apt addon safelist support for Xenial

Relevant env vars have already been added to the Heroku apps.

See https://github.com/travis-ci/travis-ci/issues/9827


Add DocsDocumenter action

This PR adds a second action in which builds Documenter.jl docs, then insert the navbar before deploying.
Usage in another repo would just then be
on:
  push:
    branches: [main]

jobs:
  build-docs:
    permissions:
      contents: write
    runs-on: ubuntu-latest

    steps:
      - name: Build Documenter.jl docs
        uses: TuringLang/DocsNav/DocsDocumenter

I am pretty sure that this should work across pretty much every TuringLang repo!
@shravanngoswamii This isn't a complete PR, just a proof of principle – but if you agree with the principle of doing this, then I can:

rename the repo just to 'actions' (then it can become a catch-all for all the actions we want to have)
update the README accordingly (this pr is shockingly underdocumented 😄)

but if you agree with the principle of doing this

To be honest, I never thought of doing it this way😅, but it's a great idea! This will help us maintain consistency in building docs for all repos! When I was writing initial DocsNav scripts, I noticed that many repo's uses different and old version of Documenter, this approach will fix this too! Let's do it!

Okay. I'll merge this, tag a new version and then test it out on AbstractPPL :)


[DataProtectionBackup]Fix for issue 36360

Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.

API change check
APIView has identified API level changes in this PR and created following API reviews.
Azure.ResourceManager.DataProtectionBackup

Fix for #36360

/azp run net - resourcemanager - mgmt - ci


How to customize lvscare image

<!-- Here is for bug reports and feature requests ONLY!

How to customize lvscare image，I need to modify the lvscare mirror address
## Issue Description

Type: *feature request*

### Describe what feature you want

### Additional context

Add any other context or screenshots about the feature request here.

It seems that this ability is not yet supported.
FYI https://github.com/sealerio/sealer/blob/main/pkg/registry/local.go#L183C1-L185

I try env RegistryURL=my-repository replacs


Prevent orphaned contact cards

DRAFT until #3169 is merged
Short description

Prevent the deletion of contacts as long as pages/pois/events still referr to it. Note that no list of objects referring to the contact in question is shown in the error message, since we show that list in the contact details anyways.
Proposed changes

prevent deletion of contacts in the edit view
prevent deletion in the bulk action view

Side effects

none

Resolved issues

Fixes: #3260

Pull Request Review Guidelines

@charludo
Could you add the same check for archiving too? 😸

@charludo Could you add the same check for archiving too? 😸

done


XML SI issues

Genre (5.13)
The specification gives the form as:
<genre href="urn:tva:metadata:cs:ContentCS:2004:3.6.10">Hit-Chart/Song Requests</genre>
The EBU have something akin to the old DAB EPG format:
<genre href="urn:tva:metadata:cs:ContentCS:2011:2.1.4">
<name>Documentary</name>
</genre>
Radiodns (6.6)
The EBU have:
<radiodns fqdn="franceculture.frsrf.radio.ebu.io.” serviceIdentifier="franceculture_frsrf_ebu_102"/>
The FQDN must be a valid internet domain (although, see below).  The trailing period makes this not valid.
The Service Identifier must be a maximum of 16 characters in the range [a-z][0-9]. What they have is too long and contains underscores.

This is solved in the latest release.
We removed the 'name' tag and shortened the serviceidentifier and removed underscores.

It works, thanks


Broken documentation link

http://research.microsoft.com/en-us/um/redmond/projects/MSCompBio/PySnpTools/
The link takes me here instead: https://www.microsoft.com/en-us/research/

Thanks for the report. We've fixed the link (it now points to http://microsoftgenomics.github.io/PySnpTools/)


Track unapproved deployments

The PR aims to record the deploy alerts in the deploy snapshots
DeployAlertEvent
  - deploy snapshot uuid
  - message

Snapshots::Deploy
  - deploy_alert - string

To do this a uuid is added to all events. The uuid from the deploy event will be saved in the deploy snapshot. It will be used to refer to the snapshot in a later stage from the deploy alert event.
Old deploy snapshot for the moment will not have a uuid. Maybe they could be migrated based on the timestamps :man_shrugging:
Events are now applied in order. New repositories will not apply all the old
events from the start by default. You'll have to do a recreate manually.
Add Repositories::Base - all repositories inherit from this one
Use global event pointer and do not use the per repository event counts
The code for tracking events per repository is still there. Most
probably it could be removed. Only the global event pointer is used in
the updater.

@popovm @0mega 👀  Do you agree with such a change in the Repositories::Updater?
I am not sure why I did it, I "remembered" just now that only the only the Repositories::Base was needed to apply issue - DeployRepository and DeployAlertRepository use the same store => same table_name.
Todo:

[ ] add few more specs
[ ] decide whether to keep the event counts per repository

[ ] custom identifiers for repositories the table name is not that good

[ ] recreate the database from the events (maybe try on a test database first)

What if we put the global pointer to the newest event for now? When we are confident that the database could be recreated safely, we would recreate it and get the historic deployment alerts?


add memory qos strategy

Signed-off-by: saintube<EMAIL_ADDRESS>Ⅰ. Describe what this PR does
add Memory QoS strategy to enhance resource assurance for k8s pods.

MinLimtPercent: allow pods to lock some memory cache from global reclaim.
ThrottlingPercent: allow pods to throttle memory allocation before reaching the memory limit.
WmarkRatio: allow pods to get memory reclaimed asynchronously before direct reclaim.
WmarkMinAdj: allow a node to prioritize global reclaim and make less disruption for high-priority pods.

Some of the above abilities require a kernel of cloud kernel/ Open Anolis OS.

related work: https://github.com/kubernetes/enhancements/pull/2571
Ⅱ. Does this pull request fix one issue?

fixes #55
Ⅲ. Describe how to verify it

Enable feature-gate CgroupReconcile in Koordlet.
Turn on MemoryQOS in configmap slo-controller-config.
Try colocation.

e.g.
apiVersion: v1
data:
  resource-qos-config: |-
    {
      "clusterStrategy": {
        "lsClass": {
           "memoryQOS": {
             "enable": true
           }
         }
      }
    }
kind: ConfigMap
metadata:
  name: slo-controller-config
  namespace: koordinator-system

Ⅳ. Special notes for reviews
None

Codecov Report

Merging #101 (c099fbc) into main (ccbad0c) will increase coverage by 3.16%.
The diff coverage is 70.54%.

:exclamation: Current head c099fbc differs from pull request most recent head 29ff24f. Consider uploading reports for the commit 29ff24f to get more accurate results

@@            Coverage Diff             @@
##             main     #101      +/-   ##
==========================================
+ Coverage   44.19%   47.35%   +3.16%
==========================================
  Files          73       75       +2
  Lines        5965     6671     +706
==========================================
+ Hits         2636     3159     +523
- Misses       3036     3197     +161
- Partials      293      315      +22

Flag
Coverage Δ

unittests
47.35% <70.54%> (+3.16%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

pkg/koordlet/resmanager/resmanager.go
2.75% <0.00%> (+0.02%)
:arrow_up:

pkg/util/config.go
0.00% <0.00%> (ø)

pkg/util/container.go
25.00% <0.00%> (-1.82%)
:arrow_down:

pkg/util/pod.go
10.44% <0.00%> (-0.58%)
:arrow_down:

pkg/util/system/cgroup.go
70.00% <0.00%> (ø)

pkg/util/system/cgroup_resource.go
0.00% <ø> (ø)

pkg/slo-controller/nodeslo/nodeslo_controller.go
60.15% <42.85%> (-0.97%)
:arrow_down:

pkg/koordlet/resmanager/config.go
57.14% <50.00%> (+3.29%)
:arrow_up:

pkg/koordlet/resmanager/types.go
57.57% <64.70%> (+16.03%)
:arrow_up:

...kg/koordlet/resmanager/resource_update_executor.go
66.89% <80.82%> (+23.84%)
:arrow_up:

... and 7 more

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 ccbad0c...29ff24f. Read the comment docs.

/lgtm

/approve


cut a new release :-)

@kelseyhightower  (hi!) could you perhaps cut please a new release to consume #3 . thanks in advance!

@AntonioMeireles good call that would be nice!


Infinite loop loading Sarven Shepherd "Programming mistake finding a build type!"

Sarven Shepherd won't load (even first time) for me and infinite loop detected.
Logged in: YES
Browser: Chrome Version 86.0.4240.111 (Official Build) (x86_64)
OS: macOS Catalina 10.15.7
Dev Console:
Anubis's Cyril| Assigned power 65 to wave wave3 with difficulty 0
aether-app-59b52c79a8e22f39b229.bundle.js:123 |Anubis's Cyril| Assigned power 3500 to wave yak0 with difficulty 0
aether-app-59b52c79a8e22f39b229.bundle.js:123 |Anubis's Cyril| Assigned power 3500 to wave yak1 with difficulty 0
aether_worker.js:9 Modern javascript detected, aw yeah!
2aether-app-59b52c79a8e22f39b229.bundle.js:123 |Anubis's Cyril| Programming mistake finding a build type! NaN 2 [object Object],[object Object]
aether_worker.js:26 Using modern language plugin: python
app.js:38 Saw view load event #infinite-loop-modal #infinite-loop-modal
aether-app-59b52c79a8e22f39b229.bundle.js:123 |Anubis's Cyril| Modern javascript detected, aw yeah!

This might be a rare bug on certain random seeds? I can't reproduce or figure out why the error is happening. What's your CodeCombat username?

cloneclon
On Fri, Nov 27, 2020, 10:51 PM Nick Winter<EMAIL_ADDRESS>wrote:

This might be a rare bug on certain random seeds? I can't reproduce or
figure out why the error is happening. What's your CodeCombat username?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/codecombat/codecombat/issues/6043#issuecomment-734871360,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APKCXCJVJEXJGUONRLWJU5DSR64I3ANCNFSM4TPGACZA
.

I see the issue, thanks! Fixed now.

Good job, Nick!
On Wed, Dec 9, 2020, 7:19 AM Nick Winter<EMAIL_ADDRESS>wrote:

I see the issue, thanks! Fixed now.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/codecombat/codecombat/issues/6043#issuecomment-741210328,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APKCXCLTDV7H4DQYKRPBYZDST2YBTANCNFSM4TPGACZA
.


Closing right upper double quote in tooltip

When uploading files, the tooltip of the  shows the HTML entity code &rdqou instead of ”

I would be happy to open a PR for this, but I cannot find this particular string anywhere in the current code.

thanks for spotting this!