Cloud SQL DB instance connection

Description

Create a Cloud SQL DB instance in GCP project: bytecoders-coms4156
Updates to application.properties to no longer utilize local Postgres. Now, all DB interactions are hosted in Cloud SQL
Updates to pom.xml to pull in necessary GCP dependencies
Removed a few lines from application.properties to resolve warning messages: spring.data.jdbc.repositories.enabled=false
Updates to README.md to update our documentation (my auto-format on save reformatted the file). The updates are primarily seen in Connecting Local Service to Cloud SQL and Using the ByteCoders Service Account to Run the Service
Created GitHub action ci-workflow.yml

Checklist

[X] Tests pass
[X] No checkstyle errors
[X] No PMD errors
[X] No compilation/build errors

mvn clean verify output:
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------------< com.bytecoders:pharmaid >-----------------------
[INFO] Building pharmaid 0.0.1-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- clean:3.3.2:clean (default-clean) @ pharmaid ---
[INFO] Deleting<EMAIL_ADDRESS>Drive/learning/school/columbia/semester_1/COMS4156_SWE/projects_COMS4156/COMS4156-TeamProject-ByteCoders/target
[INFO]
[INFO] --- checkstyle:3.2.0:check (validate) @ pharmaid ---
[INFO] Starting audit...
Audit done.
[INFO] You have 0 Checkstyle violations.
[INFO]
[INFO] --- jacoco:0.8.11:prepare-agent (default) @ pharmaid ---
[INFO] argLine set to<EMAIL_ADDRESS>Drive/learning/school/columbia/semester_1/COMS4156_SWE/projects_COMS4156/COMS4156-TeamProject-ByteCoders/target/jacoco.exec"
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ pharmaid ---
[INFO] Copying 1 resource from src/main/resources to target/classes
[INFO] Copying 0 resource from src/main/resources to target/classes
[INFO]
[INFO] --- compiler:3.13.0:compile (default-compile) @ pharmaid ---
[INFO] Recompiling the module because of changed source code.
[INFO] Compiling 17 source files with javac [debug parameters release 17] to target/classes
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ pharmaid ---
[INFO] skip non existing resourceDirectory<EMAIL_ADDRESS>Drive/learning/school/columbia/semester_1/COMS4156_SWE/projects_COMS4156/COMS4156-TeamProject-ByteCoders/src/test/resources
[INFO]
[INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ pharmaid ---
[INFO] Recompiling the module because of changed dependency.
[INFO] Compiling 4 source files with javac [debug parameters release 17] to target/test-classes
[INFO]
[INFO] --- surefire:3.2.5:test (default-test) @ pharmaid ---
[INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
[INFO]
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.bytecoders.pharmaid.util.PasswordUtilsTests
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.193 s -- in com.bytecoders.pharmaid.util.PasswordUtilsTests
[INFO] Running com.bytecoders.pharmaid.service.MedicationServiceTests
Java HotSpot(TM) 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.672 s -- in com.bytecoders.pharmaid.service.MedicationServiceTests
[INFO] Running com.bytecoders.pharmaid.service.UserServiceTests
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.068 s -- in com.bytecoders.pharmaid.service.UserServiceTests
[INFO] Running com.bytecoders.pharmaid.PharmaidContollerTests
Standard Commons Logging discovery in action with spring-jcl: please remove commons-logging.jar from classpath in order to avoid potential conflicts
00:46:50.214 [main] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils -- Could not detect default configuration classes for test class [com.bytecoders.pharmaid.PharmaidContollerTests]: PharmaidContollerTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
00:46:50.363 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper -- Found @SpringBootConfiguration com.bytecoders.pharmaid.PharmaidApplication for test class com.bytecoders.pharmaid.PharmaidContollerTests

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/

 :: Spring Boot ::                (v3.3.4)

2024-10-22T00:46:50.709-04:00  INFO 61065 --- [pharmaid] [           main] c.b.pharmaid.PharmaidContollerTests      : Starting PharmaidContollerTests using Java 17.0.12 with PID 61065 (started by zcox in<EMAIL_ADDRESS>Drive/learning/school/columbia/semester_1/COMS4156_SWE/projects_COMS4156/COMS4156-TeamProject-ByteCoders)
2024-10-22T00:46:50.710-04:00  INFO 61065 --- [pharmaid] [           main] c.b.pharmaid.PharmaidContollerTests      : The following 1 profile is active: "postgres"
2024-10-22T00:46:51.065-04:00  INFO 61065 --- [pharmaid] [           main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode
2024-10-22T00:46:51.066-04:00  INFO 61065 --- [pharmaid] [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2024-10-22T00:46:51.098-04:00  INFO 61065 --- [pharmaid] [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 26 ms. Found 3 JPA repository interfaces.
2024-10-22T00:46:51.341-04:00  INFO 61065 --- [pharmaid] [           main] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default]
2024-10-22T00:46:51.381-04:00  INFO 61065 --- [pharmaid] [           main] org.hibernate.Version                    : HHH000412: Hibernate ORM core version 6.5.3.Final
2024-10-22T00:46:51.407-04:00  INFO 61065 --- [pharmaid] [           main] o.h.c.internal.RegionFactoryInitiator    : HHH000026: Second-level cache disabled
2024-10-22T00:46:51.487-04:00  INFO 61065 --- [pharmaid] [           main] o.s.o.j.p.SpringPersistenceUnitInfo      : No LoadTimeWeaver setup: ignoring JPA class transformer
2024-10-22T00:46:51.507-04:00  INFO 61065 --- [pharmaid] [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
2024-10-22T00:46:51.538-04:00  INFO 61065 --- [pharmaid] [           main] c.g.cloud.sql.core.CoreSocketFactory     : First Cloud SQL connection, generating RSA key pair.
2024-10-22T00:46:52.885-04:00  INFO 61065 --- [pharmaid] [           main] com.zaxxer.hikari.pool.HikariPool        : HikariPool-1 - Added connection org.postgresql.jdbc.PgConnection@688d3e2a
2024-10-22T00:46:52.886-04:00  INFO 61065 --- [pharmaid] [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
2024-10-22T00:46:52.954-04:00  WARN 61065 --- [pharmaid] [           main] org.hibernate.orm.deprecation            : HHH90000025: PostgreSQLDialect does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default)
2024-10-22T00:46:53.451-04:00  INFO 61065 --- [pharmaid] [           main] o.h.e.t.j.p.i.JtaPlatformInitiator       : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration)
2024-10-22T00:46:54.052-04:00  INFO 61065 --- [pharmaid] [           main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2024-10-22T00:46:54.321-04:00  WARN 61065 --- [pharmaid] [           main] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
2024-10-22T00:46:54.518-04:00  INFO 61065 --- [pharmaid] [           main] c.g.c.s.core.DefaultCredentialsProvider  : Default credentials provider for service account<EMAIL_ADDRESS>2024-10-22T00:46:54.518-04:00  INFO 61065 --- [pharmaid] [           main] c.g.c.s.core.DefaultCredentialsProvider  : Scopes in use by default credentials: [https://www.googleapis.com/auth/pubsub, https://www.googleapis.com/auth/spanner.admin, https://www.googleapis.com/auth/spanner.data, https://www.googleapis.com/auth/datastore, https://www.googleapis.com/auth/sqlservice.admin, https://www.googleapis.com/auth/devstorage.read_only, https://www.googleapis.com/auth/devstorage.read_write, https://www.googleapis.com/auth/cloudruntimeconfig, https://www.googleapis.com/auth/trace.append, https://www.googleapis.com/auth/cloud-platform, https://www.googleapis.com/auth/cloud-vision, https://www.googleapis.com/auth/bigquery, https://www.googleapis.com/auth/monitoring.write]
2024-10-22T00:46:54.531-04:00  INFO 61065 --- [pharmaid] [           main] c.g.c.s.a.c.GcpContextAutoConfiguration  : The default project ID is bytecoders-coms4156
2024-10-22T00:46:54.588-04:00  INFO 61065 --- [pharmaid] [           main] c.b.pharmaid.PharmaidContollerTests      : Started PharmaidContollerTests in 4.069 seconds (process running for 5.928)
[INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.683 s -- in com.bytecoders.pharmaid.PharmaidContollerTests
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 16, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO]
[INFO] --- jar:3.4.2:jar (default-jar) @ pharmaid ---
[INFO] Building jar<EMAIL_ADDRESS>Drive/learning/school/columbia/semester_1/COMS4156_SWE/projects_COMS4156/COMS4156-TeamProject-ByteCoders/target/pharmaid-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- spring-boot:3.3.4:repackage (repackage) @ pharmaid ---
[INFO] Replacing main artifact<EMAIL_ADDRESS>Drive/learning/school/columbia/semester_1/COMS4156_SWE/projects_COMS4156/COMS4156-TeamProject-ByteCoders/target/pharmaid-0.0.1-SNAPSHOT.jar with repackaged archive, adding nested dependencies in BOOT-INF/.
[INFO] The original artifact has been renamed to<EMAIL_ADDRESS>Drive/learning/school/columbia/semester_1/COMS4156_SWE/projects_COMS4156/COMS4156-TeamProject-ByteCoders/target/pharmaid-0.0.1-SNAPSHOT.jar.original
[INFO]
[INFO] --- assembly:3.6.0:single (default) @ pharmaid ---
[INFO] Building jar<EMAIL_ADDRESS>Drive/learning/school/columbia/semester_1/COMS4156_SWE/projects_COMS4156/COMS4156-TeamProject-ByteCoders/target/pharmaid-0.0.1-SNAPSHOT-jar-with-dependencies.jar
[INFO]
[INFO] --- jacoco:0.8.11:report (report) @ pharmaid ---
[INFO] Loading execution data file<EMAIL_ADDRESS>Drive/learning/school/columbia/semester_1/COMS4156_SWE/projects_COMS4156/COMS4156-TeamProject-ByteCoders/target/jacoco.exec
[INFO] Analyzed bundle 'pharmaid' with 8 classes
[INFO]
[INFO] >>> pmd:3.25.0:check (default) > :pmd @ pharmaid >>>
[INFO]
[INFO] --- pmd:3.25.0:pmd (pmd) @ pharmaid ---
[INFO] PMD version: 7.3.0
[WARNING] Unable to find a URL to the parent project. The parent menu will NOT be added.
[INFO] Rendering content with org.apache.maven.skins:maven-fluido-skin:jar:2.0.0-M9 skin
[INFO]
[INFO] <<< pmd:3.25.0:check (default) < :pmd @ pharmaid <<<
[INFO]
[INFO]
[INFO] --- pmd:3.25.0:check (default) @ pharmaid ---
[INFO]
[INFO] >>> pmd:3.25.0:cpd-check (default) > :cpd @ pharmaid >>>
[INFO]
[INFO] --- pmd:3.25.0:cpd (cpd) @ pharmaid ---
[WARNING] The option skipLexicalErrors is deprecated. Use failOnError instead.
[WARNING] Unable to find a URL to the parent project. The parent menu will NOT be added.
[INFO] Rendering content with org.apache.maven.skins:maven-fluido-skin:jar:2.0.0-M9 skin
[INFO]
[INFO] <<< pmd:3.25.0:cpd-check (default) < :cpd @ pharmaid <<<
[INFO]
[INFO]
[INFO] --- pmd:3.25.0:cpd-check (default) @ pharmaid ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  16.612 s
[INFO] Finished at: 2024-10-22T00:47:02-04:00
[INFO] ------------------------------------------------------------------------

LGTM - will approve once the build passes


Is RNN operator of CPU  version in developing？

Though the speed of RNN and 3D CNN of cpu version may be very slow, I think high level operator of CPU version is in need for algorithm tests and little projects.

This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!

@artzers Please add more details on algorithm tests

We have CPU RNN API in frontend such as in mx.rnn and mx.gluon.rnn.


Merging about us component to master

This is actually my first pull request. I made an about us component. Please review when you can.

@kdv24 I'll go ahead and make that change later. Really appreciate the feedback since I'm still learning how to properly do pull requests on gitHub and want to learn as much as possible when working on this project. I'll make sure to provide more context for next time!

@kdv24 I just made the changes.
There should be three commits. One was to capitalize the AboutUs component on declaration. The other was to update my branch with master and the final was to add the AboutUs component in our main index page. Feel free to review and then merge. Thanks!

@kevy7 this looks great :thumbs_up:
One last comment on PRs- a good naming convention for your branch is to name it based on the feature or bug you're working on.  For example, this branch would be called about-us or feature/about-us.  It's not a big deal, but makes it easier to identify a branch's purpose.
Also, in terms of providing context in a PR, a good practice can be to link to the "issue" from Projects. For this one: https://github.com/kdv24/Jr-Developer-Site/projects/1#card-22639460.
Really great work!


(#422) yarn preview-upgrade improvements

Description Of Changes
This adjust the yarn preview-upgrade command to first remove the yarn.lock file in the chosen repository before upgrading choco-theme. By doing this, it ensures all dependencies are upgraded of choco-theme and not just choco-theme itself. This is desired in most cases.
Also, the CCM repository has been added to the list of configs, so that is caught when using the --all or --ccm flag on yarn commands.
Motivation and Context
This command was not properly updating dependences and needed to be fixed.
Testing

Pull down this branch.
On CCM, make sure you are on the develop branch and you have the latest changes pulled in from upstream.
In choco-theme, run yarn preview-upgrade 0.8.1 --ccm
You should see multiple things changed in the yarn.lock file in the CCM project repository.

Operating Systems Testing
Windows 10
Change Types Made

[x] Bug fix (non-breaking change).
[ ] Feature / Enhancement (non-breaking change).
[ ] Breaking change (fix or feature that could cause existing functionality to change).
[ ] Documentation changes.
[ ] PowerShell code changes.

Change Checklist

[ ] Requires a change to the documentation.
[ ] Documentation has been updated.
[ ] Tests to cover my changes, have been added.
[ ] All new and existing tests passed?
[ ] PowerShell code changes: PowerShell v3 compatibility checked?

Related Issue
Fixes #422

This is draft due to not being really needed right now. I think this would be best to review in a few days, when some of the dependencies have been bumped by the maintainers. This will give us a better view of how it upgrade dependencies.


Option: Enable PIC compatibel messages on serial interface.

Perhaps it is a good idea to have Opentherm Monitor compatability and have OTGW style serial reporting without parsing the Data-ID's. In other words, an option to enable legacy OTGW reporting over Net2Serial.

@STemplar what do you mean? I don’t understand your request. Please elaborate.

If I understand your request correctly, then I think you looking for option 3) serial2net.
That is ‘legacy’ support. It was the first thing my firmware did, and I continue to support it. You can use OTmonitor (from Schelte Bron) or any other serial over network based integration.
Please confirm if that is what you mean? And if not, then please do elaborate your request.
Robert

Ah, that is it! I needed to use port 25238! You can close this Issue.


[unexpected keyword argument 'syntax'] occurs on Ubuntu 16.04 with protobuf 3 of 4e8497d by installing from source

What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?
#4
Environment info
Operating System: Ubuntu 16.04
Installed version of CUDA and cuDNN: CUDA 8 & CUDNN 5.1

The commit hash (git rev-parse HEAD)
Download the zip file by http. Version:4e8497d

The output of bazel version
Build label: 0.3.2
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri Oct 7 17:25:10 2016<PHONE_NUMBER>)
Build timestamp:<PHONE_NUMBER>
Build timestamp as int:<PHONE_NUMBER>

What other attempted solutions have you tried?
Change /usr/bin/protoc & /usr/include/google version from 2 to 3.
Logs or other output that would be helpful
[2,290 / 2,578] Still waiting for 196 jobs to complete:
Running (standalone):
Target //tensorflow/tools/pip_package:build_pip_package up-to-date:
bazel-bin/tensorflow/tools/pip_package/build_pip_package
INFO: Elapsed time: 2425.533s, Critical Path: 2122.33s
####Problem
python -c "import tensorflow"
I tensorflow/stream_executor/dso_loader.cc:125] successfully opened CUDA library libcublas.so locally
I tensorflow/stream_executor/dso_loader.cc:125] successfully opened CUDA library libcudnn.so locally
I tensorflow/stream_executor/dso_loader.cc:125] successfully opened CUDA library libcufft.so locally
I tensorflow/stream_executor/dso_loader.cc:125] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:125] successfully opened CUDA library libcurand.so locally
Traceback (most recent call last):
File "", line 1, in
File "/home/name/.local/lib/python2.7/site-packages/tensorflow/init.py", line 23, in
from tensorflow.python import *
File "/home/name/.local/lib/python2.7/site-packages/tensorflow/python/init.py", line 63, in
from tensorflow.core.framework.graph_pb2 import *
File "/home/name/.local/lib/python2.7/site-packages/tensorflow/core/framework/graph_pb2.py", line 16, in
from tensorflow.core.framework import node_def_pb2 as tensorflow_dot_core_dot_framework_dot_node__def__pb2
File "/home/name/.local/lib/python2.7/site-packages/tensorflow/core/framework/node_def_pb2.py", line 16, in
from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr__value__pb2
File "/home/name/.local/lib/python2.7/site-packages/tensorflow/core/framework/attr_value_pb2.py", line 16, in
from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2
File "/home/name/.local/lib/python2.7/site-packages/tensorflow/core/framework/tensor_pb2.py", line 16, in
from tensorflow.core.framework import resource_handle_pb2 as tensorflow_dot_core_dot_framework_dot_resource__handle__pb2
File "/home/name/.local/lib/python2.7/site-packages/tensorflow/core/framework/resource_handle_pb2.py", line 22, in
serialized_pb=_b('\n/tensorflow/core/framework/resource_handle.proto\x12\ntensorflow"m\n\x0eResourceHandle\x12\x0e\n\x06\x64\x65vice\x18\x01 \x01(\t\x12\x11\n\tcontainer\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x11\n\thash_code\x18\x04 \x01(\x04\x12\x17\n\x0fmaybe_type_name\x18\x05 \x01(\tB4\n\x18org.tensorflow.frameworkB\x13ResourceHandleProtoP\x01\xf8\x01\x01\x62\x06proto3')
TypeError: init() got an unexpected keyword argument 'syntax'

Could you post your _pb2.py files?

Thx, @drpngx
resource_handle_pb2.txt
pls, :)

It looks like you're loading a python protobuf that doesn't have "syntax". Could you look at https://github.com/tensorflow/tensorflow/issues/57?

While, I tried, still not work:
$ python
Python 2.7.12 (default, Jul  1 2016, 15:12:24)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import google.protobuf
>>> print google.protobuf.__version__
3.1.0

$ protoc --version
libprotoc 3.1.0

$ pip show numpy protobuf
Name: numpy
Version: 1.11.2
Summary: NumPy: array processing for numbers, strings, records, and objects.
Home-page: http://www.numpy.org
Author: NumPy Developers
Author-email<EMAIL_ADDRESS>Installer: pip

Name: protobuf
Version: 3.1.0
Summary: Protocol Buffers
Home-page: https://developers.google.com/protocol-buffers/
Author<EMAIL_ADDRESS>Author-email<EMAIL_ADDRESS>Installer: pip

After pip uninstall protobuf, pip uninstall tensorflow, & reComplied the tensorflow-master/configure,
according to os_setup , still not work, but release no module problem:
$ python -c "import tensorflow"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named tensorflow

you need to pip re-install the tensorflow:
bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg
pip install /tmp/tensorflow_pkg/tensorflow-*.whl

OK, afer series opts, mainly about solution is protoc need to update to version 3 & replace apt install libprotoc by download from https://github.com/google/protobuf, & rebuild tensorflow.
this issue may be cause by the libprotoc of ubuntu version 2 but python protobuf version 3 compliing.
Anyway, thx @drpngx


Hide executable window

Hi! I automated the launch of my process with pm2 and it opens a window. I use this to detect key combinations when playing games and sometimes, if my program crashes, it restarts showing the black window in the middle of the screen (a big problem in my case because I use a wheel, not a mouse/keyboard, so I cannot close it).
This change works and makes the library safer :)
Thanks for your work!

Seems like a small non-invasive change, thanks for the update!

Any plan to release this?

Any plan to release this?

Honestly, I doubt I'll find the time to. If anyone is willing to maintain a fork, or maintain this repo directly, happy to transfer ownership. But the reality is I haven't touched nodeJS for the best part of 2 years and thusly have little interest in maintaining this library anymore. It's possible I will archive the repo.


Playback after pause stutters badly

` public static async void play(songItem trackToPlay, CancellationToken cancellationToken, CancellationToken pauseToken, CancellationToken resumeToken)
{
using (var audioFile = new AudioFileReader(trackToPlay.fileName))
using (var outputDevice = new WaveOutEvent())
{
outputDevice.DeviceNumber = -1;
outputDevice.DesiredLatency = 1000;
outputDevice.Init(audioFile);
outputDevice.Play();
            while (outputDevice.PlaybackState == PlaybackState.Playing||outputDevice.PlaybackState==PlaybackState.Paused)
            {
                if (cancellationToken.IsCancellationRequested) { break; }
                if (pauseToken.IsCancellationRequested) { outputDevice.Pause();}
                if (resumeToken.IsCancellationRequested) { outputDevice.Play(); }
                System.Threading.Thread.Sleep(1);

            }
        }
        return;
    } `

This is my code, when I pause the waveout device, and resume it, it stutters very badly, and resumes normal playback only when I skip to the next track.

Why are you using cancellation tokens for pause and resume? When you pause, this code will sit in a loop repeatedly calling Pause (you should only do that once), and then when you resume, the pause token will still be in a requested cancel state, so now the loop will be pausing and playing in a tight loop. So very bad stuttering is to be expected.

I'll look into alternatives, although I do dispose of the token on resuming, it seems fine now that I increased the loop to 500ms and there is almost no stuttering, and it's not regular
Daniel Shroff

From: Mark Heath<EMAIL_ADDRESS>Sent: Friday, July 26, 2019 3:02:42 PM
To: naudio/NAudio<EMAIL_ADDRESS>Cc: Daniel Shroff<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [naudio/NAudio] Playback after pause stutters badly (#509)
Why are you using cancellation tokens for pause and resume? When you pause, this code will sit in a loop repeatedly calling Pause (you should only do that once), and then when you resume, the pause token will still be in a requested cancel state, so now the loop will be pausing and playing in a tight loop. So very bad stuttering is to be expected.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/naudio/NAudio/issues/509?email_source=notifications&email_token=AGXJYWXH2PBXZVQ4VTLOI2TQBLADVA5CNFSM4IHAKTB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD24BIDI#issuecomment-515380237, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGXJYWTV7NXBDUR4HRGNLRTQBLADVANCNFSM4IHAKTBQ.

I put a watch on the cancellation tokens and they both show as false after pausing and resuming


[BUG] On Pump Gamemode, if you hold a panel beforehand, Tap Notes close to a Long Note Head of the same panel will make the Tap Note unmissable

Is there an existing issue for this?

[X] I have searched the existing issues and none matched.

Operating System
Windows 11
CPU
i5 12600k
GPU
RTX 3070
Storage
1TB GAMMIX NVME SSD
Game Version
5.0.0-041
Game Mode
pump
Theme
Soundwaves and Infinitesimal
Describe the problem
Pump Long Notes work correctly on OutFox in the sense that they can be held beforehand and will always award you with Perfects for each tick as long as you're holding the correct panel, regardless of timing, or misses if you're not holding the correct panel.
However, it seems that the Checkpoint detection for Long Notes is interfering with nearby Tap Notes, causing them to also become "just hold the panel to get". Also, when the panel is held, it seems like these tap notes are awarding the user with either greats or perfects depending on proximity with the long note and bpm.
Describe what should happen
Tap Notes have to be pressed on time to earn positive judgements, regardless of how close they are to Long Notes. Holding a panel beforehand shouldn't affect this, the tap note should just return a Miss in this case. It's only the Long Notes that are supposed to be timing independent and award with perfects as long as the panel is held.
Relevant Log output
Chart used for this test was the Single 18 (Edit 18) chart on this ssc: https://github.com/SheepyChris/PIU-Simfiles/blob/main/05 - NX~NX2/(1) E02 - Beat the Ghost/E02 - Beat the Ghost.ssc
I recorded some videos of the behavior both on gameplay and edit mode to help squash this.
Edit mode and brief explanation: https://www.youtube.com/watch?v=TYLF0S1JAAU
Gameplay screen: https://www.youtube.com/watch?v=-E24IGmHg9s

Additional investigation done:
-> This does not happens if the tap notes close to the long note head are of a different button. Holding both the button from the long note and the tap note will not catch the tap note, it will miss. Only if they're the same button do the holding technique gets both tap and long.
-> This does not affect long note tails. So if I edit the above stepchart putting the tap note at the end of the long note and do the same "holding from beginning to end", the tap note will miss. The bug only happens when the tap is near the head.
-> While testing this, I came across a different issue related to long note behavior: it seems that the game is judging perfect/miss for each checkpoint independently for each button. So if you have a triple long note and only hold one button, you'll get the perfects from that button and miss from the others. On real Pump, when there are overlapping long notes of different buttons, it only gives you perfects if all of them are held at that tick. Otherwise, it's all miss.

To help testing this, I'll provide you with a good test song: https://drive.google.com/file/d/10Qx7GQ5oadYQkwi64ha1yesRXG1sfICp/view?usp=sharing
This song has two iconic charts that are actually the same chart, with a slight difference:
The S17 Hidden ( #CHARTNAME:Another Crazy; ) is the original chart which only features long notes. It became a meme because it was possible to FPC by just holding all the panels for the entire song.
The S18 ( #CHARTNAME:XX S18; ) is the chart with a "fix" that was applied in Pump XX: they added a tap note right near every long note head, so you actually have to play the song.
Currently on OutFox, both charts can be cheesed by holding all the buttons because of the bug described in this issue.
I also took the time to test this on Stepmania 5.1 alpha 4 (default theme, pump gamemode) to see if this was a upstream issue, and both charts behave correctly there. S17 you can hold all buttons and get flawless on everything, S18 if you hold all notes you get misses every long note beginning because of the tap notes.


Configuration file generator

I wish RedPen Server can export Configuration file, because configuration web UI is friendly.

Thank you very much for the valuable suggestion @griffin-stewie! I think the automatic configuration generator is good for many users. First I will look into the codes how much costs are needed to implement this feature.

🎉


Example page does not work my fans page

Hello friend, I tried to copy and paste the URL of my fan page but the transmitted videos do not appear
My Fans Page is: https://www.facebook.com/dccontigodeportes
Would the same thing happen when I installed the script on my server?

I can't really say for sure with so little information. If I were to take a shot in the dark I would try checking your Facebook settings for embedding on external websites.


0.4.14 error - uncaughtException: TypeError: Cannot read property 'get' of undefined

Describe the bug
This line throws and error: https://github.com/ardatan/whatwg-node/commit/2ea57a8c47a90031bb271cb78cec2bd1a07e5789#diff-e4b970f03575a2793030b90a4fba4c5034cfa2ebdfd4bd1454a8af2db0660b19R198
[next] error - uncaughtException: TypeError: Cannot read property 'get' of undefined
[next]     at Function.value (/Users/frank/Sites/project-vaessen-gc/node_modules/cross-undici-fetch/dist/create-node-ponyfill.js:198:26)
[next]     at new Headers (/Users/frank/Sites/project-vaessen-gc/node_modules/next/dist/compiled/node-fetch/index.js:1:56447)
[next]     at createHeadersLenient (/Users/frank/Sites/project-vaessen-gc/node_modules/next/dist/compiled/node-fetch/index.js:1:59685)
[next]     at ClientRequest.<anonymous> (/Users/frank/Sites/project-vaessen-gc/node_modules/next/dist/compiled/node-fetch/index.js:1:65909)
[next]     at ClientRequest.emit (events.js:400:28)
[next]     at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:647:27)
[next]     at HTTPParser.parserOnHeadersComplete (_http_common.js:127:17)
[next]     at Socket.socketOnData (_http_client.js:515:22)
[next]     at Socket.emit (events.js:400:28)
[next]     at addChunk (internal/streams/readable.js:293:12)

To Reproduce
Steps to reproduce the behavior: use the latest version of graphql-mesh with nextjs.
Expected behavior
No errors 😉
Environment:

OS: Any
package-name...:
NodeJS: v16

Additional context
When adding a resolution to 0.4.13 it works:
  "resolutions": {
    "cross-undici-fetch": "0.4.13"
  },

I'm encountering the same error using graphql-yoga v2.13.4
TypeError: Cannot read properties of undefined (reading 'get')
    at Function.value (/home/username/Project/node_modules/@graphql-yoga/node/node_modules/cross-undici-fetch/dist/create-node-ponyfill.js:198:26)
    at new Headers (/home/username/Project/node_modules/next/dist/compiled/node-fetch/index.js:1:54826)
    at createHeadersLenient (/home/username/Project/node_modules/next/dist/compiled/node-fetch/index.js:1:58064)
    at ClientRequest.<anonymous> (/home/username/Project/node_modules/next/dist/compiled/node-fetch/index.js:1:64288)
    at ClientRequest.emit (node:events:527:28)
    at ClientRequest.emit (node:domain:475:12)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:631:27)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
    at Socket.socketOnData (node:_http_client:494:22)
    at Socket.emit (node:events:527:28)
error - uncaughtException: TypeError: Cannot read properties of undefined (reading 'get')

I'm encountering the same error using graphql-yoga/node v2.13.4
TypeError: Cannot read properties of undefined (reading 'get')
    at Function.value (/home/username/Project/node_modules/@graphql-yoga/node/node_modules/cross-undici-fetch/dist/create-node-ponyfill.js:198:26)
    at new Headers (/home/username/Project/node_modules/next/dist/compiled/node-fetch/index.js:1:54826)
    at createHeadersLenient (/home/username/Project/node_modules/next/dist/compiled/node-fetch/index.js:1:58064)
    at ClientRequest.<anonymous> (/home/username/Project/node_modules/next/dist/compiled/node-fetch/index.js:1:64288)
    at ClientRequest.emit (node:events:527:28)
    at ClientRequest.emit (node:domain:475:12)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:631:27)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
    at Socket.socketOnData (node:_http_client:494:22)
    at Socket.emit (node:events:527:28)
error - uncaughtException: TypeError: Cannot read properties of undefined (reading 'get')

Same, looks like @graphql-yoga/node uses this as a dependency and works fine on it's own, but if you try to use fetch at any point after @graphql-yoga/node runs the cross-undici-fetch lib, it will throw the error.

Here is a reproduction: https://github.com/n1ru4l/nextjs-cross-undici-fetch-yoga-reproduction

This seems to be resolved within @whatwg-node/fetch (cross-undici-fetch got renamed).


Not working

Hi, I know nobody's here for answering support questions, but well I'm not a python dev, and I'm not able to get this bot to run locally, which means I'm missing out on lot of fun. So some help will be highly appreciated.
I'm stuck at vagrant up step, with the following error:
ffi.h: No such file or directory
I'm on osx.
Thanx!

I don't think the vagrant environment is set up properly. Docker would probably be a better bet since it was worked on by the guy who created the bot in the first place.

Oh, the docker changes aren't merged yet. They're in #231.

@reddraggone9 That's what I was thinking! Thanx I'll build on #231 in that case.

But is that how other people doing? I doubt that

Welcome to Chaos. I imagine everybody's doing things a little bit differently.

Haha, guess I should unleash the Joker within too.

Now with more merged into master!

@tarunbatra if you want to be docker beta tester #1, let us know how it goes Docker README.md

Thanx @amoffat @reddraggone9. Docker helped. :)


Incorrect doc for sw-build.getManifestFileEntries

Library Affected:
sw-build
Browser & Platform:
all browsers
Issue or Feature Request Description:
Docs example (https://googlechrome.github.io/sw-helpers/reference-docs/stable/v0.0.13/module-sw-build.html) shows getManifestFileEntries returning a promise, but currently it appears to just return the array.

I followed the calls in the source code. It appears to be promises all the way down.

I tried to run this sample code:
const swBuild = require('sw-build');

swBuild.getFileManifestEntries({
  rootDirectory: './build/',
  globPatterns: ['**\/*.{html,js,css}'],
  globIgnores: ['admin.html']
})
.then((fileDetails) => {
  // An array of file details include a `url` and `revision` parameter.
});

The code throws an error (swBuild.getFileManifestEntries(...).then is not a function).
Looking at the API doc, it says the method returns an array, not a promise:
https://github.com/GoogleChrome/sw-helpers/blob/master/packages/sw-build/src/lib/get-file-manifest-entries.js#L30
Not sure if it was originally intended to return a promise, but it doesn't currently.

So I'm a bit lost with this one.
The code returns a promise from what I can see and the tests are working with promises, so I'm unsure why you would be getting a promise.
Maybe we just shipped an old version that wasn't a promise and now it is.
Tested with:
const swBuild = require('sw-build');

swBuild.getFileManifestEntries({
  rootDirectory: '.',
  staticFileGlobs: ['**/*']
})
.then((fileDetails) => {
  console.log(fileDetails);
});

@addyosmani can you confirm the same?


Fix datetime conversion with mixed timezones when ignore_tz is not False

When querying multi symbols at the same time, the Pandas Timestamp to datetime64 conversion will fail, when utc=False.
It looks like this is the most stable implementation, because Pandas suggests to use this feature in the future.
Downside: The original timezones are lost. But every datetime has now tz=timezone.utc
Upside: ignore_tz may be obsolete.
I added a test for testing Pandas datetime conversion as well.

Downside: The original timezones are lost. But every datetime has now tz=timezone.utc

That's fine as long as 9:30am EST is aligned with 2:30pm EU (or whatever the Atlantic offset is). ignore_tz means 9:30am EST aligned with 9:30am EU.

Downside: The original timezones are lost. But every datetime has now tz=timezone.utc

That's fine as long as 9:30am EST is aligned with 2:30pm EU (or whatever the Atlantic offset is). ignore_tz means 9:30am EST aligned with 9:30am EU.

That's covered by the test PandasTest.test_mixed_timezones_to_datetime() where the datetime64 utc timestamps are compared to the tz-aware Timestamps.

Approved. Just squash the commits #1084

Approved. Just squash the commits #1084

Can't you just enable squash commits in your repo? https://docs.github.com/de/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/configuring-commit-squashing-for-pull-requests

Hmm. Could, but then the squashed commit message lists each individual commit e.g. Add assertion for timezone. Why would you not want to rewrite the message?

Hmm. Could, but then the squashed commit message lists each individual commit e.g. Add assertion for timezone. Why would you not want to rewrite the message?

It's not something I usually do manually. I have to go back, rebase, commit everything again, force push. I don't even know how to do that. I need to read documentation, have several tries and so on. It just takes time. In Github, you can configure, if the MR title should be taken as Squash commit message. That takes less than 10 seconds.


Close Pull Request should not be in the context menu of a PR

I very often confuse "Close Pull Request" with a way to get back to my previous branch (master) when I checked out a PR. I suggest to move the action especially since it triggers a confirmation as notification in the lower right corner which is bad too. If any, the confirmation should be modal.

Anyhow, lets remove it and let people do this through the full UI where they can also comment.

I ran into this issue once before and I somehow thought "Close Pull Request" is exiting the review mode. Now seems I'm not the only one who has this confusion ;)


tmt run -l finish crashes: Failed to connect socket to '/var/run/libvirt/libvirt-sock-ro': No such file or directory

I am running the pre-view tmt with the copr packages from https://github.com/psss/tmt/pull/642:
testcloud-0.5.0-1.fc33.noarch
tmt-1.3.1-2.fc33.noarch
With that, doing a complete run works fine, but a separate cleanup step after e.g. --until report crashes. Simplest reproducer:
tmt run provision --how virtual --image fedora-33
tmt run -l login  # this works fine
tmt run -l finish

This crashes with
libvirt: XML-RPC error : Failed to connect socket to '/var/run/libvirt/libvirt-sock-ro': No such file or directory
Traceback (most recent call last):
  File "/usr/bin/tmt", line 8, in <module>
    tmt.cli.main()
  File "/usr/lib/python3.9/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3.9/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3.9/site-packages/click/core.py", line 1290, in invoke
    return _process_result(rv)
  File "/usr/lib/python3.9/site-packages/click/core.py", line 1224, in _process_result
    value = ctx.invoke(self.result_callback, value, **ctx.params)
  File "/usr/lib/python3.9/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/lib/python3.9/site-packages/tmt/cli.py", line 291, in finito
    click_context.obj.run.go()
  File "/usr/lib/python3.9/site-packages/tmt/base.py", line 1121, in go
    plan.go()
  File "/usr/lib/python3.9/site-packages/tmt/base.py", line 614, in go
    self.finish.go()
  File "/usr/lib/python3.9/site-packages/tmt/steps/finish/__init__.py", line 69, in go
    guest.stop()
  File "/usr/lib/python3.9/site-packages/tmt/steps/provision/testcloud.py", line 456, in stop
    self.instance.stop()
  File "/usr/lib/python3.9/site-packages/testcloud/instance.py", line 598, in stop
    domain_state = _find_domain(self.name, self.connection)
  File "/usr/lib/python3.9/site-packages/testcloud/instance.py", line 109, in _find_domain
    conn = libvirt.openReadOnly(connection)
  File "/usr/lib64/python3.9/site-packages/libvirt.py", line 290, in openReadOnly
    if ret is None:raise libvirtError('virConnectOpenReadOnly() failed')
libvirt.libvirtError: Failed to connect socket to '/var/run/libvirt/libvirt-sock-ro': No such file or directory

i.e. this is trying to talk to qemu:///system instead of  qemu:///session. After that, the machine is still running:
❱❱❱ virsh list
 Id   Name               State
----------------------------------
 2    TKJauGrKOjoRKveO   running

I can clean this up manually with virsh destroy/undefine and rm -rf /var/tmp/tmt/run* /var/tmp/tmt/testcloud/instances/.

tmt-1.3.1-2.fc33.noarch

This does not seem to be the proper package from copr. I've tested the above-mentioned scenario with the latest content from master and it works fine.
Could you please try with this copr repo? I believe, the error you reported has been already fixed and the copr repo above contains one more fix related to this. Thanks.

Confirmed, thank you! Works fine with tmt-1.3.1-1.20210406121211996945.pr687.74.g84a43ee.fc33.noarch.
I honestly have no idea any more where I got 1.3.1-2.fc33 from, but if it wasn't from updates, I only downloaded some rpms from copr recently.

Good to hear, thanks for the update.


Excess Non-SIMD Q15 insns

This is a duplicate of #110
I probably disagree about multiply Q15 insns. Still Q15 word adds does not seem to be hot spot insns.
It seems like a gate from word-wide non-SIMD to halfword-wide SIMD calculations so they should not be called too frequently.
Thus rv32/kaddh r1 r2 r3 could be replaced with rv32/kaddw r1 r2 r3; rv32/sclip32 r1 r1 15.
Same for other [u]k(add|sub)h insns. (<=9.9.1. names)
rv64 could probably have [su]clip insns that perform XLEN-wide clipping.
It makes the same sequence possible.

May kaddw saves more electricity than kaddh does on physical machine?


Initial inoreader implementation

Pull request to get feedback / help on this.
Currently using API keys under my account, if necessary this can be changed.

Coverage decreased (-0.6%) to 35.74% when pulling 2e0de94ae6cc22be136f649c739f69b8aa4a66cc on bartlibert:master into f40d5eb8962d68ebcb00862e20e1e1bdd11f0c6b on newsboat:master.

Coverage decreased (-0.6%) to 35.74% when pulling 2e0de94ae6cc22be136f649c739f69b8aa4a66cc on bartlibert:master into f40d5eb8962d68ebcb00862e20e1e1bdd11f0c6b on newsboat:master.

Some general answers:
I have about 8 years of professional c++ expercience, so don't worry about getting technical :)
I have a full-time job and a family, so I won't be able to respond to queries/bugs immediately, but if some delay is not an issue, I'm willing to have a look at those.
As for the oauth: I have no experience at all with that, but I'm willing to have a look.
As for the hardcoded tokens: even with oauth, they will still be there, as they are needed to identify the application itself. We might make them user-configurable, but I don't know it this will be useful.

Coverage decreased (-1.3%) to 35.105% when pulling dfdb7c52eb248eafb0fb59b3c4820f74e6042bde on bartlibert:master into f40d5eb8962d68ebcb00862e20e1e1bdd11f0c6b on newsboat:master.

Coverage decreased (-0.6%) to 35.768% when pulling dfdb7c52eb248eafb0fb59b3c4820f74e6042bde on bartlibert:master into f40d5eb8962d68ebcb00862e20e1e1bdd11f0c6b on newsboat:master.

I have a full-time job and a family, so I won't be able to respond to queries/bugs immediately, but if some delay is not an issue, I'm willing to have a look at those.

Delay shouldn't be an issue; thanks! The volume is generally low, I think I saw less than 10 remote API-related bugs in Newsbeuter over 2 years.

As for the hardcoded tokens: even with oauth, they will still be there, as they are needed to identify the application itself. We might make them user-configurable, but I don't know it this will be useful.

Hmm, Inoreader's help page made me think otherwise. I'll look more closely into this in about 18 hours.

As for the hardcoded tokens: even with oauth, they will still be there, as they are needed to identify the application itself.

Upon re-reading their OAuth docs, I see you're right—we'll need to submit CLIENT_ID which we obtain by registering an app.
I agree with you that it doesn't make sense to make the ID configurable. I'll register an app and we'll use the token I get.

Coverage decreased (-0.6%) to 35.768% when pulling 3b49e950229a1a4d1ae66bcc8cf541a1af2e2384 on bartlibert:master into b6c3eb5ba9f93afbf1eaf1503c46e7e96e83f8f8 on newsboat:master.

Looks good!
Have you looked into OAuth yet? In the future, I expect to add more remote APIs that use it, so I looked around for a C++ library that will handle OAuth-specific bits for us, but the only standalone solution I could find (liboauthcpp) doesn't support OAuth 2.0. Looking forward to see what if find or come up with on this front. (I'm not hurrying you, I promise!)

I had a quick look at oauth, but did not find anything useful yet, so I fear it'll have to be implemented from scratch. I can have a look, but don't expect any results soon :(

Coverage decreased (-0.6%) to 35.768% when pulling 814c0cd2a3076e3cf37d59a380bdc77bc86579e5 on bartlibert:master into 9f4a14015e7fcc8cc43e66751fdcb59bad99327d on newsboat:master.

Okay, let's split OAuth into a separate task then (see #35). I'll definitely-certainly-absolutely will test this tomorrow and merge it. Thank you for the work you've already done!

Merged! Thank you very much for implementing this! I've replaced the ID and key with mine, so you can delete yours now.
Did 70 requests just during testing; hope users won't set their reload-time to something silly like 1 minute. :)

Thanks for merging!
Let's hope the limitations are not causing any issues indeed. If people would run into trouble, giving them the possibility to use their own ID and key is a solution that should be considered I guess (albeit a sub par one).

I'll just keep an eye on the stats and request an increase when we approach the limit. It also makes sense to check if we're using the API in the best possible way—perhaps we can get rid of some requests by caching things?


feat: add 1Password

Pretty simple. Here's how I use it in mine:
### add 1password
COPY --from=ghcr.io/briorg/bling:latest /modules/bling/installers/1password.sh /tmp/1password.sh
RUN chmod +x /tmp/1password.sh && \
    ONEPASSWORD_RELEASE_CHANNEL=beta \
    GID_ONEPASSWORD=1500 \
    GID_ONEPASSWORDCLI=1600 \
        /tmp/1password.sh

Looks pretty good, needs to be added commented-out in the default configuration in the bling module docs, though. Did you leave this a draft on purpose?


feat: duplicate selected objects

Description

Feature: Duplicate selected objects to workspaces with write permission.
Bug fix: create and duplicate saved objects to public workspace.
Please note that duplicate all has not been implemented yet, which will be targeted for the next PR.
Issues Resolved

Screenshot

Testing the changes

Check List

[ ] All tests pass

[ ] yarn test:jest
[ ] yarn test:jest_integration
[ ] yarn test:ftr

[ ] New functionality includes testing.
[ ] New functionality has been documented.
[ ] Update CHANGELOG.md
[x] Commits are signed per the DCO using --signoff

Codecov Report

Merging #113 (b043dfc) into workspace (e2f277c) will decrease coverage by 23.13%.
Report is 2 commits behind head on workspace.
The diff coverage is 0.00%.

:exclamation: Current head b043dfc differs from pull request most recent head 0d128fd. Consider uploading reports for the commit 0d128fd to get more accurate results

@@              Coverage Diff               @@
##           workspace     #113       +/-   ##
==============================================
- Coverage      65.77%   42.64%   -23.13%
==============================================
  Files           3336     1597     -1739
  Lines          64493    32325    -32168
  Branches       10264     6058     -4206
==============================================
- Hits           42418    13786    -28632
+ Misses         19502    17497     -2005
+ Partials        2573     1042     -1531

Flag
Coverage Δ

Linux_1
?

Linux_3
42.64% <0.00%> (ø)

Windows_1
?

Windows_2
?

Windows_3
?

Windows_4
?

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

Files Changed
Coverage Δ

...ore/server/saved_objects/permission_control/acl.ts
4.93% <ø> (-60.50%)
:arrow_down:

.../server/saved_objects/permission_control/client.ts
0.00% <0.00%> (-2.71%)
:arrow_down:

... and 2291 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


SCRUM-274 AGM loading, validation, and testing updates

Added synonyms and xrefs to AGM load.
CRUD and bulk validation code and tests written.

@markquintontulloch I am confused by this PR... these validators already existed?

@oblodgett - for AGMs? Did/do they? Where?


May 2022 - Recovery 1

[x] Create a milestone <Month> <Year> Recovery @joaomoreno
[ ] Bump the version number @joaomoreno
[ ] 🔖candidate issues
[ ] Assign candidate issues to the recovery milestone team
[ ] Review the candidate issues, and if they pass the review assign them to the recovery milestone team
[ ] All candidate fixes are peer reviewed and pushed to main and then cherry-picked into the release branch team
[ ] Initiate insiders build from main
[ ] Issues are tested in the insiders team
[ ] Build stable for all platforms from release branch @joaomoreno
[ ] Issues are verified on stable build and the verified label is added @joaomoreno
[ ] Check https://github.com/Microsoft/vscode/compare/release/<x.y> to ensure no other commits have been made in the release branch @joaomoreno
[ ] Update the release notes and include a link to a query for the fixed issues @gregvanl
[ ] Sanity check of installable bits (server instructions)

[ ] Windows 32 bit @joaomoreno

[ ] signed installer 32-bit
[ ] signed user installer 32-bit
[ ] zip 32-bit
[ ] server 32-bit

[ ] Windows 64 bit @joaomoreno

[ ] signed installer 64-bit
[ ] signed user installer 64-bit
[ ] zip 64-bit
[ ] server 64-bit

[ ] Windows ARM64 @joaomoreno

[ ] signed installer ARM64
[ ] signed user installer ARM64
[ ] zip ARM64

[ ] macOS

[ ] Universal @joaomoreno
[ ] Intel @joaomoreno
[ ] Intel server @joaomoreno
[ ] Apple Silicon @joaomoreno

[ ] Linux x64

[ ] deb @joaomoreno
[ ] rpm @joaomoreno
[ ] archives @joaomoreno
[ ] snap (sudo snap install --classic --dangerous <file>.snap) @joaomoreno

[ ] Linux server @joaomoreno

[ ] x64
[ ] x64 Alpine
[ ] ARM32
[ ] ARM64

[ ] Publish website @gregvanl
[ ] Publish stable build @joaomoreno
[ ] Create an official release @joaomoreno

[ ] Create a tag (make sure you pull the release branch first): git tag <x.y.z> release/<x.y>
[ ] Push the tag: git push origin <x.y.z>
[ ] Create a GitHub release: Open the GitHub tags, and click far right ... > Create Release. Use the correct title and description from our release notes. Example

[ ] Close the milestone on GitHub @joaomoreno

I've found a regression in WebViews: https://github.com/microsoft/vscode/issues/151648


Bluetooth: host: Support controllers without LE Set Privacy Mode command

I encountered an issue that Zephyr V2.2.0 BLE host (named A device) cannot connect to a peer (named B device) with an RPA address.
The background is,
a.	Both of peers have performed the bonding procedures and distributed their respective IRKs.
b.	The peer device has been added into resolving list. And resolution of Resolvable Private Addresses has be enabled.
c.	B device is advertising with RPA.
d.	The controller of A device is Marvell 88W8977. According to response of HCI_Read_Local_Supported_Commands, the controller does not support the LE Set Privacy Mode command.
After A device disconnected from B device, I tried to create a new connection by calling bt_conn_create_le on A device side.
But the connection between A device and B device was not established by calling function bt_conn_create_le with the peer address type 0x00 (Public Device Address), or 0x02 (Public Identity Address).
I found if the peer address type parameter of bt_conn_create_le is 0x02, the parameter Peer_Address_Type of the HCI_LE_Create_Connection command will be changed to 0x00.
My question is, why is peer address type 0x02 changed to 0x00 when creating a connection? I suppose the Peer_Address_Type of the HCI_LE_Create_Connection command should be 0x02.
And I did the following additional tests,
If the parameter Peer_Address_Type of the HCI_LE_Create_Connection command was 0x00, the connection between A device and B device was not established.
If the parameter Peer_Address_Type of the HCI_LE_Create_Connection command was 0x02, the connection between A device and B device was established.

@lylezhu2014 Thanks for reporting. You have encountered an ambiguous part of the LE Privacy feature that was later clarified by adding the LE Set Privacy Mode command.
We should use 0x02/0x03 as peer address type when the controller does not support the LE Set PRivacy Mode Command.

@joerchan Do you know which release will add the feature?  Thank you!

@joerchan Do you know which release will add the feature? Thank you!

@lylezhu2014 Hopefully the next one (2.4).

And I did the following additional tests,
If the parameter Peer_Address_Type of the HCI_LE_Create_Connection command was 0x00, the connection between A device and B device was not established.
If the parameter Peer_Address_Type of the HCI_LE_Create_Connection command was 0x02, the connection between A device and B device was established.

Do you have access to a sniffer, could you attach sniffer log of when it works?
Or if you have zephyr host on both sides. Could you use bt_conn_get_info and print all the 4 different addresses that was used, on both sides.
Example from subsys/bluetooth/shell/bt.c on all 4 addresses:
		print_le_addr("Remote", info.le.dst);
		print_le_addr("Local", info.le.src);
		print_le_addr("Remote on-air", info.le.remote);
		print_le_addr("Local on-air", info.le.local);

I cannot provide the sniffer log, but whether it is OK if I provide the HCI raw data?
Here is HCI raw data HCI_log_RT1060_8977_with_peer_add_type_2.txt


[Authorization] Improve 403 response message wih consume permission on ns

Motivation
We should improve the response message of 403 status and mainly for operation with consumption namespace, including GET_TOPICS, CLEAR_BACKLOG, UNSUBSCRIBE.
Documentation

[x] no-need-doc

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

@eolivelli @codelipenghui ptal


pre-commit hooks should not set verbose: true

this is a debugging flag, I'm temporarily removing this from pre-commit.com for now, please fix this and revert this change:  https://github.com/pre-commit/pre-commit.com/commit/3bd42e2731e01d5e44464049c76b341d6e83c5cf

Hi, I already fix this issue from the dev branch https://github.com/hakancelik96/unimport/commit/caf33ef31ed0ed60885de78ccb47ad3e7d1aedc7

it needs to be fixed on the default branch, that's what pre-commit.com and pre-commit use

Okay I will merge it soon.

I merged


Add discard operation

Closes #86

Hello @jan-swiatek!
Thanks for the PR! Just a few minor tweaks:

We need a more explicit label, something like Columns to discard instead of only Columns
We use alphabetical order for the add operation buttons, so Discard should be first
We avoid colors that might conflict with what we already use for warning and error messages in Livebook. Using red is not a problem, but it needs to be more faded and pastel (maybe light-crimson or pastel-crimson)

👋
Sure, I'll change that this afternoon then

Hrm, I am wondering... instead of saying "Discard", maybe we should state the "positive". I.e. the goal is to "Select" which columns to show? Here is an idea:

We call the button "Select"
The label is called "Select columns"
By default, the input has all columns listed - you can click "x" to remove the ones you don't want

What do you think? Would that work?

Hrm, I am wondering... instead of saying "Discard", maybe we should state the "positive". I.e. the goal is to "Select" which columns to show? Here is an idea:

We call the button "Select"
The label is called "Select columns"
By default, the input has all columns listed - you can click "x" to remove the ones you don't want

What do you think? Would that work?

I think it would be confusing because discarding columns is a common operation in the data cleaning process, and we usually have fewer columns to discard than to keep.

I agree. Both operations are possible with Explorer library, but usually only few columns are deleted and looking for them in select tag might be quite uncomfortable.

I agree. Both operations are possible with Explorer library, but usually only few columns are deleted and looking for them in select tag might be quite uncomfortable.

That's why I was thinking about listing all columns upfront, because then you only need to click on the ones you want to delete (no need to use the select input). So deletion is easier (there is no typing) and if you only want to keep certain ones, it should be possible too?

When we emit the code, we can be smart. We can see how many columns we are keeping and how many we are removing and we emit the smallest code. So if we are keeping most columns, we use drop/discard, if we are deleting most, we keep select.

Hi @jan-swiatek. I talked to @cristineguadelupe and we will go with her original proposal:

We need a more explicit label, something like "Columns to discard"
We use alphabetical order for the add operation buttons, so "+ Discard" should be first
The colors need to be more faded and pastel (maybe light-crimson or pastel-crimson)


Disable Attribute

Hello,
Is there any way to make this input a disabled field?
Thanks

I guess you're talking about the dropdown menu items. If so, each DropdownMenuItem has enabled parameter which if you pass false to it, the item will be disabled.

No, I mean the dropdown_button2, I want to make it disabled and enable it when I change another value.

Oh, Alright. If the onChanged callback is null or the list of DropdownButton2.items is null or empty then the dropdown button will be disabled.

Ok, Thank you very much.


There is no support for global security groups

Hi, Caleb,
The current release of cf-mgmt does not have support for global security groups.  These security groups are staging security groups and running security groups in Cloud Foundry configuration.  They are used by all spaces.  Could you please consider supporting them?  It would be good if the json files of these global security groups are in a different folder than in the existing asgs folder.
Thanks!
Joe

Correct.  Currently we only support defining and setting running security groups.  For the feature you are wanting it would be helpful if you added the cf cli commands to ensure we are on the same page about what operations would be executed.

The feature we want is to have a way of running the commands "cf bind-running-security-group" and "cf bind-staging-security-group". This way, when we repave the environment, we will have the global running and staging security groups in our configuration and they will be set automatically. I should note that we use our named security groups in the global running and staging groups. Maybe just have a list of those groups in cf-mgmt.yml? Thanks

Will be added with v0.0.84 which should be released shortly.


VRClientDLLNotFound

When trying to run the example hello.py, I get the following issue:
OpenVR test program
Runtime is installed
Traceback (most recent call last):
File "hello.py", line 15, in
vr_system = openvr.init(openvr.VRApplication_Scene)
File "/usr/local/lib/python3.6/dist-packages/openvr-1.0.701-py3.6.egg/openvr/init.py", line 4973, in init
initInternal(applicationType)
File "/usr/local/lib/python3.6/dist-packages/openvr-1.0.701-py3.6.egg/openvr/init.py", line 5077, in initInternal
_checkInitError(error.value)
File "/usr/local/lib/python3.6/dist-packages/openvr-1.0.701-py3.6.egg/openvr/init.py", line 4959, in _checkInitError
raise OpenVRError("%s (error number %d)" %(getVRInitErrorAsSymbol(error), error))
openvr.OpenVRError: b'VRInitError_Init_VRClientDLLNotFound' (error number 102)
I did some poking at the OpenVR API and it seems like its looking for vrclient.so, which does exist at this path:
~/.local/share/Steam/steamapps/common/SteamVR/tools/bin/linux64
The API seems to support a VR_OVERRIDE environment variable. I tried setting it and got the same result. Checking strace, it looks like the vrclient.so is getting opened.
Probably user error, but I'm stuck and would appreciate any help.

I'm not sure anyone has really got pyopenvr working on linux yet.
Have you got non-python vr applications working on your computer?

I got far enough to see the SteamVR compositor running and verify the HMD was tracking, but nothing on the screen. What I'm trying to do doesn't need and HMD so I didn't pay attention to making that work. Looks like the distro I'm using has a kernel which the prerequisite nvidia drivers don't support.
I'm going to try an older version and give everything a go. I'll report back.

Alright, so I got SteamVR working (for the most part). I'm still getting the same error when launching a script though.
Is anyone else interested in seeing this work on Linux besides me? I'm willing to do some work but I'd likely need support.

@claytmcneil I searched for "linux" in this git repo and found some relevant discussions about getting linux working in issues #5 #22 and #26 . See especially the comments by @nemanja-rakicevic @mungewell @eric-schleicher @abencomo
Perhaps you could create a new page on the wiki https://github.com/cmbruns/pyopenvr/wiki to share and accumulate wisdom about getting pyopenvr working on linux.

Yes that would be great!  I have not ben successful getting pyopenvr running on ubuntu 16.04.  would love that.

 How is libopenvr_api_64.so built? Where's the source / Makefile for it?

I believe it ships as part of the steam client and that the source is not available

Actually, I'm pretty sure its built from this project: https://github.com/ValveSoftware/openvr
I cloned it and attempted to build following the instructions but no luck initially. If someone has built this for Linux, let me know; otherwise I'll have to mess with it.
My plan is to build the lib with some debug in it to figure out why we're crashing.

Ok, think I figured out how to build it. Just need to take some time and debug.

Got it working. Confirmed that it can work on Linux.

Awesome eagerly awaiting being able to run this on linux!  many thanks

@claytmcneil Are you saying that by recompiling libopenvr_api.so yourself you got pyopenvr working?
Are you also using Ubuntu 16.04, like @eric-schleicher  is?

@cmbruns Yes, I'm running on Ubuntu 16.04.
Recompiling libopenvr_api.so isn't the fix, but it did allow me to add some additional error information that allowed me to track it down.
The root problem is that the method of loading shared objects doesn't allow you to add a path at run time. The first instance of this causing problems is when loading libopenvr_api.so itself - I fixed that by adding an absolute path.
Problem is that there are several more libs that the vrserver needs to access and since the path setting isn't working, they weren't being found. Once I symlinked them all, I was able to run the tracker_test.py example.

@eric-schleicher Do you have SteamVR working on Linux?

The recent activity here has prompted me to upgrade my old broken linux partition to Ubuntu 16.04, so I can participate in this momentum. I've just now got SteamVR working on linux, so I'm just about to begin to investigate these library issues too.

Thanks the the valiant efforts of @claytmcneil I too have made some progress. I combined those reports with some calls to ldd, to investigate library dependencies.
After I got steamvr installed and sorta working, I found I needed to install the following packages:

libudev-dev
libvulkan-dev
libsdl2-dev

Further, I needed to symbolically link libudev.so.1 to libudev.so.0; apparently steam vr uses an older version of that library.
I set my LD_LIBRARY_PATH to

/home/cmbruns/.local/share/Steam/steamapps/common/SteamVR/bin/linux64:/home/cmbruns/.local/share/Steam/steamapps/common/tools/bin/linux64:.

Notice the dot at the very end. With the LD_LIBRARY_PATH thus set, I was able to load "libopenvr_api.so" in __init__.py
Then to get the more advanced pyopenvr demo test_obj.py working I installed python modules

numpy
pyopengl
glfw

and packages

libglfw3-dev

The performance is not great. But its working for me now. But only when steamvr is already running. And I can't seem to launch steamvr from steam anymore. I have to try to run a pyopenvr script first, which fails, but causes steamvr to launch. Then, on the second attempt, when steamvr is running, the script succeeds.

Glad to hear I'm not crazy! Yes, SteamVR is a bit of a mess at the moment. When you say can't launch from Steam, I assume you mean can't click the "VR" box in the upper right corner? If so, that seems to indeed be broken although launching from the SteamVR page (clicking the 'Play' button) works. Pairing Controllers and Resetting the Device causes crashes as well.
I'd also recommend launching outside of Steam (that's how I do it).
As for the libs you mentioned, I symlinked to the ones provided by Steam, not sure if that's preferred or not.
What do you mean when you say performance isn't great? I haven't started the actual development I planned, so I'm curious about potential pitfalls.

Even clicking the 'Play' button gives a weird error for me most of the time when trying to launch steamvr on linux. There's some weird stuff going on.
By not-great performance I mean that the the frame rate is low enough to make me a bit ill with even a rather simple OpenGL scene. The SteamVR-for-linux project warns that "OpenGL applications are currently too slow to use interactively", so I was not surprised. They recommend using vulkan, which I do not have time to learn at the moment.
I'd say we are still quite far off from the time when a less heroic linux user will be able to simply 'pip install openvr' and start building vr worlds.

Oh, I got it! Yeah, unfortunately I agree that we're a ways off from that.
However, its prime time for some Lighthouse tracking with Linux!

@eric-schleicher Do you have SteamVR working on Linux?

Yes.  I have it running
Also @claytmcneil  It's been noted (on the openvr sdk github) that you can't launch steamvr from the titlebar.    The best way i found to get it started was to kick it off from Library->Tools->SteamVR from the Steam Client.

Continued from https://github.com/cmbruns/pyopenvr/issues/5#issuecomment-310455839. I got the exactly same error as this issue (VRClientDLLNotFound). My current LD_LIBRARY_PATH is as follows though still having no luck. :
$ echo $LD_LIBRARY_PATH
/home/user-name/venv/lib/python3.5/site-packages/openvr:/home/user-name/.steam/steam/steamapps/common/SteamVR/bin/linux64:/home/user-name/.steam/linux64:/home/user-name/.steam/steam/steamapps/common/SteamVR/tools/bin/linux64:/home/user-name/.steam/ubuntu12_64:.

In the above discussion, @claytmcneil and @cmbruns said they installed missing package into Linux as well as symlinked some libraries. How can I check which package is missing for Linux or which libraries should be symlinked?

@kazon-kmt Did you look at the list  @cmbruns provided above?

Yes, you are right! I installed all three packages mentioned and then simulinked. Not it seems working.
(venv) user-name@user-name:~/pyopenvr/src/samples$ sudo ln -s /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0
(venv) user-name@user-name:~/pyopenvr/src/samples$ python hello.py
OpenVR test program
VR head set found
Runtime is installed
b'/home/user-name/.steam/steam/steamapps/common/SteamVR/'
(1512, 1680)
1
[[1.0, 0.0, 0.0, -0.030949998646974564], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.014999999664723873]]
[[1.0, 0.0, 0.0, -0.030949998646974564], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.014999999664723873]]
[[1.0, 0.0, 0.0, -0.030949998646974564], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.014999999664723873]]
[[1.0, 0.0, 0.0, -0.030949998646974564], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.014999999664723873]]
[[1.0, 0.0, 0.0, -0.030949998646974564], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.014999999664723873]]
[[1.0, 0.0, 0.0, -0.030949998646974564], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.014999999664723873]]
[[1.0, 0.0, 0.0, -0.030949998646974564], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.014999999664723873]]
[[1.0, 0.0, 0.0, -0.030949998646974564], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.014999999664723873]]
[[1.0, 0.0, 0.0, -0.030949998646974564], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.014999999664723873]]
[[1.0, 0.0, 0.0, -0.030949998646974564], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.014999999664723873]]

I think you meant "now" instead of "not". If so, great to hear!

Thank you all for this discussion. If anyone else comes across this thread: this command did the trick for me on Ubuntu 14.04:
sudo ln -s /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0
I also made a tutorial on how to use the trackers without the headset on Ubuntu.


feat: add new design for subcategories page

You can view the figma file here.

The design should be responsive.

ℹ We recommend updating the styling of existing components, otherwise you can add extra components if there is a need.

You also need to implement breadcrumbs based on the current category and subcategory we are currently on.

Any changes to the above design are welcome. Please feel free to share your thoughts, and we will discuss them thoroughly.

⚠ Make sure to push all the changes into dev branch

@rupali-codes Can you assign this issue to me?

@Raj100679
I have assigned you the issue. Please proceed with it, and don't hesitate to tag any of the maintainers if you require any assistance.
Also, remember to switch to dev mode. It will be easier for development.

Top right corner in figma file

Sorry , I totally forgot about it,You can unassign me , I am stuck in end semester exams.

Assistance Needed - "feat: add new design for subcategories page" Issue
Hi Ammol,
I saw the Figma designs for "feat: add new design for subcategories page." Exciting stuff! I'm ready to implement these changes.
Thanks,
MWW

@Mohsin-mw
I have assigned you the issue. Please proceed with it, and don't hesitate to tag any of the maintainers if you require any assistance.

@Raj100679 are you still working on it?

@rupali-codes Mohsin is working on it , i am busy with some other work, If i get free I will pick different issue

@Mohsin-mw are you working on this issue?

@Mohsin-mw are you working on this issue?

@rupali-codes  yup, i'll push the code tomorrow

@Mohsin-mw are you working on this issue?

@rupali-codes yup, i'll make the pull request tomorrow

@Mohsin-mw you working on it?


Update Crunchy PostgreSQL Operator to v4.2.0

Signed-off-by: Chris Bandy<EMAIL_ADDRESS>Thanks submitting your Operator. Please check below list before you create your Pull Request.

Flat operator directory structure is obsolete from 23-rd of October 2019, only nested directory structure will be accepted.

New Submissions

[x] Has you operator nested directory structure?
[ ] Have you selected the Project Community Operator Submissions in your PR on the right-hand menu bar?
[x] Are you familiar with our contribution guidelines?
[x] Have you packaged and deployed your Operator for Operator Framework?

[x] Is your submission signed?

Updates to existing Operators

[ ] Is your new CSV pointing to the previous version with the replaces property?
[x] Is your new CSV referenced in the appropriate channel defined in the package.yaml ?
[x] Have you tested an update to your Operator when deployed via OLM?
[x] Is your submission signed?

Your submission should not

[x] Modify more than one operator
[x] Modify an Operator you don't own
[x] Rename an operator - please remove and add with a different name instead
[x] Submit operators to both upstream-community-operators and community-operators at once
[x] Modify any files outside the above mentioned folders
[x] Contain more than one commit. Please squash your commits.

Operator Description must contain (in order)

[x] Description about the managed Application and where to find more information
[x] Features and capabilities of your Operator and how to use it
[x] Any manual steps about potential pre-requisites for using your Operator

Operator Metadata should contain

[x] Human readable name and 1-liner description about your Operator
[x] Valid category name1
[x] One of the pre-defined capability levels2
[x] Links to the maintainer, source code and documentation
[x] Example templates for all Custom Resource Definitions intended to be used
[x] A quadratic logo

Remember that you can preview your CSV here.
--
1 If you feel your Operator does not fit any of the pre-defined categories, file a PR against this repo and explain your need
2 For more information see here

The Crunchydata has exhibited a ton of new auto-remediation and auto-healing that represent an "auto pilot" level in the capability model. I propose we include that as part of this PR.
Detailed release notes here, but this is the relevant details:

Failed primaries now automatically heal, which significantly reduces the time in which they can rejoin the cluster.

A major change to this container is that the PostgreSQL process is now managed by Patroni. This allows a PostgreSQL cluster that is deployed by the PostgreSQL Operator to manage its own uptime and availability, to elect a new leader in the event of a downtime scenario, and to automatically heal after a failover event.

In addition, Pod anti-affinity and backups with retention policies make this a really exemplary Operator.

Thanks, @robszumski! I've pushed the change in amended commit a61922a.

@cbandy Just some small notes I had from testing the previous version, figured now is as good a time as any to get these updated. These probably also apply to the community-operators version of this PR https://github.com/operator-framework/community-operators/pull/1107 as well as the CSV generation tooling you might be using.

[ ] I believe the tagging in the postgres-operator repository has changed format to vX.Y.Z. Does this documentation line need to be updated?

https://github.com/operator-framework/community-operators/blob/e43847669bbf3b124bd445cbb2e44e675a0eca9b/community-operators/postgresql/4.2.0/postgresoperator.v4.2.0.clusterserviceversion.yaml#L138

[ ] The command here has an extra backslash.

https://github.com/operator-framework/community-operators/blob/e43847669bbf3b124bd445cbb2e44e675a0eca9b/community-operators/postgresql/4.2.0/postgresoperator.v4.2.0.clusterserviceversion.yaml#L217

[ ] PGO_AUTH_SERVER here renders the word AUTH with italics on dashboard. I believe the underscores need to be escaped. or the variable needs to be in backticks.

https://github.com/operator-framework/community-operators/blob/e43847669bbf3b124bd445cbb2e44e675a0eca9b/community-operators/postgresql/4.2.0/postgresoperator.v4.2.0.clusterserviceversion.yaml#L264

[ ] Does the CSV need to include a "replaces" field here?


Don't work with definitions in camtrap-dp-profile

camtrap-dp-profile currently defines organizations and species in a definitions:
https://github.com/tdwg/camtrap-dp/blob/9d1d85a69f84435e2ad72ef0ef9f1de4f10d5f2a/camtrap-dp-profile.json#L6-L7
And then references these definitions later. Other properties are defined in context. I would define all of them in context:
"organizations": {
  "description": "List of organizations related to this data package.",
  "type": "array",
  "items": {
    "type": "object",
    "required": [
      "title",
      "url"
    ],
    "properties": {
      "title": {
        "description": "Organization name.",
        "type": "string",
        "format": "default"

@kbubnicki are you fine with this?

Good point! It will make camtrap-dp-profile easier to read.

Closed in #130


182820037 Text Tile Link Dialog

PT Story: https://www.pivotaltracker.com/story/show/182820037
This PR adds a dialog to the text tile that allows a user to add and modify links to text. Some aspects of the feature are poorly defined and will likely require refinement after receiving feedback from the project team.

Updates the version of slate-editor.
Slightly restructures the text tile's toolbar files.
Adds a link button to the text tile's toolbar.

This button is enabled if a) some text is selected or b) one or more link is selected.

Adds a link dialog.

If no link is selected, the dialog allows the user to create a link by assigning a url to the selected text/elements.
If a link is selected, all extra selected text is ignored, as are all selected links after the first.

In this case, the user can change the url for the selected link using the dialog.
If the user deletes the url and then saves, the link will be removed.

Escapes double quotes from html text content when exporting json.

Please note that a separate PT story has been created to add automated tests for this work: https://www.pivotaltracker.com/story/show/184597001

@kswenson There's a comment with the link icon attribution (wikipedia) at the top of the svg file.


feat: Adding contact links in the footer

What feature?
We can add the social media links and some more information about the org in the footer.Also The footer has a light slate background with white text on it which makes it barely visible to read. We can change the font color of the text or plan a new footer. If you agree then I can make a new design for the footer
Add screenshots

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSoC'23 contributor
[X] I want to work on this issue

we removed light mode theme from footer & also, we are working footer improvement feature. https://github.com/priyankarpal/ProjectsHut/issues/1646


Add confidential blocker pre-receive hook script

Pre-receive hook that will block any new commits that contain passwords,
tokens, or other confidential information matched by regex

#188

Great idea @stoe ,
I tried the pre-receive hook on our GHE setup.
The AWS Secret Access Key part causes a few problems and I was unable to commit anything as it seems to identify any valid source code as a potential issue.
Is it worth commenting out line 26?
Cheers
Pete

I tried the pre-receive hook on our GHE setup.
The AWS Secret Access Key part causes a few problems and I was unable to commit anything as it seems to identify any valid source code as a potential issue.
Is it worth commenting out line 26?

@mzzmjd, absolutely. Feel free to adjust as needed.

Thanks for the addition @stoe and review @mzzmjd


Where should I add ENAS training code

Hi, my question is related to the issue I opend couple days ago #3067. I am using nni v1.9, checking the modules that are imported in nni/examples/nas/enas/search.py like EnasTrainer, there I found train_one_epoch mehtod and validate one epoch method of class Enastrainer implemented. EnasTrainer class inherits Trainer class where train_one_epoch and validate_one_epoch defined as abstract methods. Now I am really confused where should I implement this CIFAR-10 singel model training script.

Single model training script should not rely on Trainer that is designed by NNI. If you read the retrain code in DARTS, you will notice that it is a pure PyTorch script. You should forget about trainer in NNI and do whatever you have done with pure PyTorch.

If I understand it correctly, after searching is done, I should train the searched architecture from scratch just like retrain.py in DARTS example

Yes. You are right.


feat: access onshore and offshore wind profiles

Pull Request doc
Purpose
Retrieve onshore and offshore wind profile for a scenario
What the code is doing
Two functions are implemented:

plant ID are retrieved for each type of turbines
wind profile is queried
an error is raised if no offshore wind profiles id found in the grid

Testing
Manual testing for scenario.
Please propose potential test.
Where to look
Check the powersimdata.scenario.analyze module
Usage Example/Visuals
from powersimdata import Scenario

scenario = Scenario(600)

offshore_wind = scenario.get_wind_offshore()
onshore_wind = scenario.get_wind_onshore()

Time estimate
10 min

I have tested that the error is raised when there is no offshore wind turbine:
>>> from powersimdata import Scenario
>>>
>>> scenario = Scenario(403)
Failed to download ScenarioList.csv from server
Falling back to local cache...
Failed to download ExecuteList.csv from server
Falling back to local cache...
SCENARIO: test | EasternBase_2020_3

--> State
analyze
--> Loading grid
Loading bus
Loading plant
Loading heat_rate_curve
Loading gencost_before
Loading gencost_after
Loading branch
Loading dcline
Loading sub
Loading bus2sub
Failed to download ScenarioList.csv from server
Falling back to local cache...
--> Loading ct
>>> offshore_wind = scenario.get_wind_offshore()
--> Loading wind
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/brdo/CEM/PowerSimData/powersimdata/scenario/analyze.py", line 356, in get_wind_offshore
    raise ValueError("No offshore wind turbines in grid")
ValueError: No offshore wind turbines in grid
>>> onshore_wind = scenario.get_wind_onshore()
--> Loading wind
>>> wind = scenario.get_wind()
--> Loading wind
>>> wind.shape
(8784, 640)
>>> onshore_wind.shape
(8784, 640)

Moving related conversation from Slack here:
@BainanXia  I’m looking at analyze.py and wondering whether we could re-use OutputData call and TransformProfile call in a singe object instantiation.
@rouille InputData and OutputData could definitely be attributes of the Analyze but I would say it is out of the scope of this PR


Colour bundle update x differently

Compare:

With (CocoaPods)

The change in wording also helps when scanning down the left hand side. Making it say Updating instead of Installing gets you an extra point. Tested on 1.10.6

@orta it's saying using because it isn't actually installing anything -- it's using an already downloaded version of that gem. It could stand to say updating since it's changing the lock, but I believe we've nixed this output anyways in 2.0, or relegated it to verbose mode only.

It could stand to say updating since it's changing the lock, but I believe we've nixed this output anyways in 2.0

Cool, cool, sound like you've got it under control.


Fix Multiline file upload in Secret edit page

add option to parse each line of the file as key-value secret

Signed-off-by: Francesco Torchia<EMAIL_ADDRESS>
Summary
Fixes #5921

@torchiaf It looks like this PR can be merged now.


Docs.MS CI Updates for Microsoft.Azure.Batch

CI Update for release of Microsoft.Azure.Batch

Docs Build status updates of commit 13deff9:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

bundlepackages/azure-dotnet.csv
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Un-necessary. Already working.


Pin specific versions of Folly's clang deps

While poking at https://github.com/bkirwi/folly/issues/2, I noticed that ~Ubuntu~ Debian ships multiple versioned packages of clang, so it's actually relatively straightforward to switch back to a compatible version.
I'll still work to get a version of the ML runtime that's compatible with the cutting edge, so things don't bitrot forever and to justify the fairly large amount of time I've already spent, but this should unbreak things in the meantime.

Ubuntu

We actually use debian as the base for the toolchain images.

Updated with the requested changes!


Fixes validation of ampq credentials for OpenStack

Original problem was when verify_credentials method returned false
code in controller went into else branch of begin rescue block and
rendered "successful" flash message.
This patch adds if-else to test result of verify_credentials method call
and renders "unsuccessful" flash message if the result is false.
Also adds tests for this behavior.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1136289

I tested it agains openstack providers.
I run through code to see if I do not break any other providers but everything looks good.
Please, test against other providers.

Doesn't (or maybe, shouldn't) the verification be done in a queue item and not synchronously in the UI? cc @h-kataria

@fryguy currently verification of credentials is being done synchronously in UI.

Corrected what @miq-bot complained about.
@Fryguy this is not question for me, probably :-) I not sure about UX design in this app, I just tried to correct a bug. But I think that user should get response wether credentials are valid or not immediately after she submitted form. I am not sure about other options of doing this available in manageiq other than this. Generally I changed just this part of code and did not dive into researching how to do the whole feature other way.

@blomquisg, @petrblaho +1 on that. Maybe we can create an issue for this being done async. But it's out of scope for this fix.


Bittensor Archive node stuck at block 2585474

Describe the bug
Hi, I'm currently operating a Bittensor node, and it seems to be stuck at block 2585474.
The logs indicate that the best block remains at 2585476, while the finalized block remains at 2585474. Does anyone have any suggestions on how to resolve this issue?
Additionally, I would greatly appreciate it if someone could provide the p2p address of a node that has successfully passed this block. I'd like to try using it as a peer for my node to see if it helps resolve the problem.
Thank you in advance for any assistance!
To Reproduce

Run a bittensor archive node
with parameters

--base-path=/chain-data
--rpc-cors=all
--port=20540
--rpc-port=9933
--ws-port=9944
--ws-external
--rpc-external
--node-key=bb86e433fe0f1f662a6fdf93211d21fa1e72537865f2f58ddec8e63d6eab3348
--pruning=archive
--rpc-methods=Unsafe
--in-peers=25
--out-peers=25
--prometheus-external
--chain=/raw_spec.json
--in-peers-light=0
--max-runtime-instances=128
--ws-max-connections=10000

Expected behavior
Expect the node to keep syncing the latest block
Screenshots
No response
Environment
Ubuntu VERSION="20.04.6 LTS (Focal Fossa)"
Additional context
No response

Move this to bittensor repo

@AlexZhenWang hey buudy，I also encountered the same problem, have you solved it?


run it just once?

thanks for this library... :)
I added this to my project but it does not start before my main activity! how to call it when app starts?
and show it just once! I mean when app is recently installed?

Hi @TheLoyalCruel,
please see this answer on StackOverflow: http://stackoverflow.com/questions/7217578/check-if-application-is-on-its-first-run


SCRUM-1986: AGR Curation Pre-Release v0.13.0 rc1

@abecerra You'll need to remove the current v0.13.0-rc1 tag you just created (currently pointing to commit e893d68) and recreate it once this PR gets merge into beta, as that tag needs to point to the merge commit of this PR (which currently does not exist yet, as it only gets created after approval and merge).

Also, I wonder if there is a point in going through this beta env deployment still, as we're not going to be able to complete this before sprint review this afternoon. Perhaps it would be better for us to bundle it in a single deployment together with the changes about to be demoed (and hence not do a production deployment at the start of the next sprint either).


Symbol not found error with pytorch 1.8.0 but not with 1.7.0

📚 Installation

Environment

OS: Mac OS 11.3.1
Python version: 3.7
PyTorch version: 1.8.0
CUDA/cuDNN version: /
GCC version: see below
How did you try to install PyTorch Geometric and its extensions (wheel, source): wheel
Any other relevant information:

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.5 (clang-1<IP_ADDRESS>)
Target: x86_64-apple-darwin20.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Checklist

[x] I followed the installation guide.
[ ] I cannot find my error message in the FAQ.
[ ] I set up CUDA correctly and can compile CUDA code via nvcc.
[ ] I do have multiple CUDA versions on my machine.

Additional context
I used conda to install pytorch with the environment.yml as follows
name: gnn
channels:
  - pytorch
  - conda-forge
  - defaults
dependencies:
  - python=3.7
  - pip=20.0.2
  - pytorch==1.8.0
  - torchvision==0.9.0
  - torchaudio==0.8.0
  - pip:
      - -r requirements.txt

Then I followed the readme to install pytorch geometric
export CUDA=cpu
pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-1.8.0+${CUDA}.html
pip install torch-sparse -f https://pytorch-geometric.com/whl/torch-1.8.0+${CUDA}.html
pip install torch-cluster -f https://pytorch-geometric.com/whl/torch-1.8.0+${CUDA}.html
pip install torch-spline-conv -f https://pytorch-geometric.com/whl/torch-1.8.0+${CUDA}.html
pip install torch-geometric

But then when I import torch_geometric.data, I got the following error
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/mathpluscode/miniconda3/envs/gnn/lib/python3.7/site-packages/torch_geometric/__init__.py", line 5, in <module>
    import torch_geometric.data
  File "/Users/mathpluscode/miniconda3/envs/gnn/lib/python3.7/site-packages/torch_geometric/data/__init__.py", line 1, in <module>
    from .data import Data
  File "/Users/mathpluscode/miniconda3/envs/gnn/lib/python3.7/site-packages/torch_geometric/data/data.py", line 8, in <module>
    from torch_sparse import coalesce, SparseTensor
  File "/Users/mathpluscode/miniconda3/envs/gnn/lib/python3.7/site-packages/torch_sparse/__init__.py", line 15, in <module>
    f'{library}_{suffix}', [osp.dirname(__file__)]).origin)
  File "/Users/mathpluscode/miniconda3/envs/gnn/lib/python3.7/site-packages/torch/_ops.py", line 104, in load_library
    ctypes.CDLL(path)
  File "/Users/mathpluscode/miniconda3/envs/gnn/lib/python3.7/ctypes/__init__.py", line 364, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(/Users/mathpluscode/miniconda3/envs/gnn/lib/python3.7/site-packages/torch_sparse/_convert_cpu.so, 6): Symbol not found: __ZN2at5emptyEN3c108ArrayRefIxEERKNS0_13TensorOptionsENS0_8optionalINS0_12MemoryFormatEEE
  Referenced from: /Users/mathpluscode/miniconda3/envs/gnn/lib/python3.7/site-packages/torch_sparse/_convert_cpu.so
  Expected in: /Users/mathpluscode/miniconda3/envs/gnn/lib/python3.7/site-packages/torch/lib/libtorch_cpu.dylib
 in /Users/mathpluscode/miniconda3/envs/gnn/lib/python3.7/site-packages/torch_sparse/_convert_cpu.so

I tried conda install -y clang_osx-64 clangxx_osx-64 gfortran_osx-64 but it doesn't help.
However, I do not have such issue, if I downgrade torch to 1.7.0.

Mh, I guess there are some incompatibilities with the macOS version we used to built and your version. Does installing from source via pip install torch-scatter work for you?

Mh, I guess there are some incompatibilities with the macOS version we used to built and your version. Does installing from source via pip install torch-scatter work for you?

Hi thanks for the quick reply.
I tried pip install, but it does not work? I wonder why the log saying macosx_10_9_x86_64 while the system is 11.x?
pip install --no-cache-dir torch-scatter
Collecting torch-scatter
  Downloading torch_scatter-2.0.6.tar.gz (21 kB)
Building wheels for collected packages: torch-scatter
  Building wheel for torch-scatter (setup.py) ... done
  Created wheel for torch-scatter: filename=torch_scatter-2.0.6-cp37-cp37m-macosx_10_9_x86_64.whl size=294173 sha256=2028436c23ab3e8106da431a4209d7d162f1459862b7d9a49809fe2103eca0e4
  Stored in directory: /private/var/folders/hs/7ql8kn593j1dwlxfgy_g62xm0000gn/T/pip-ephem-wheel-cache-lwtlf1hk/wheels/30/6f/0c/dbdc62f111a9f09962331fd1c13b05806d6c2a2340d27fc0dc
Successfully built torch-scatter
Installing collected packages: torch-scatter
Successfully installed torch-scatter-2.0.6

What does not work for you here? Is it the same error? The installation log looks correct to me. Otherwise, you can try to install via pip install --verbose --no-cache-dir torch-scatter to receive a more meaningful installation log.

pip install --verbose --no-cache-dir torch-scatter

Hi @rusty1s , yes, the same error as above in this issue. I attached the log below
Then I did pip install --verbose --no-cache-dir torch-geometric. Still the same error when import torch_geometric.data.
I guess I will use docker and have another try.
log.txt

I managed to make it work with docker in VMs, so I personally will not continue pursuing this bug. Thx for the help and please feel free to close this issue :)


How to change primary-color while application running?

如何动态切换主题颜色（类似于暗/亮色主题的切换，且颜色自定义）？
how to change @primary-color in theme.less dynamically?

@yutingding Please check this post on our blog: https://ng.ant.design/blog/custom-theme/.

@wendzhue Thanks.