Issue on cl.Device at utility

I just wan to try your examples but I have run into issue on OpenCL 1.2 FP device
root:~/pyopencla/ch3# python map_copy.py
Traceback (most recent call last):
  File "map_copy.py", line 9, in <module>
    import utility
  File "/home/root/pyopencla/ch3/utility.py", line 6
    def get_default_device(use_gpu: bool = True) -> cl.Device:
                                  ^
SyntaxError: invalid syntax

and with OpenCL 2.1 FP device as well
(cl) ~/work/pyopencl-in-action/ch3$ python map_copy.py
Using GPU: Intel(R) Gen9 HD Graphics NEO
On platform: Intel(R) OpenCL HD Graphics (OpenCL 2.1)

Traceback (most recent call last):
  File "map_copy.py", line 18, in <module>
    context = cl.Context(devices=[dev], properties=None, dev_type=None, cache_dir=None)
TypeError: __init__(): incompatible constructor arguments. The following argument types are supported:
    1. pyopencl._cl.Context(devices: object=None, properties: object=None, dev_type: object=None)

Invoked with: kwargs: devices=[<pyopencl.Device 'Intel(R) Gen9 HD Graphics NEO' on 'Intel(R) OpenCL HD Graphics' at 0x2644f50>], properties=None, dev_type=None, cache_dir=None

are you able to help on this?

The first issue is due to the foo(bar: type) syntax, which was added in python 3.5. Which python version are you using?
Not sure what the second issue is, the arguments passed to the constructor should be compatible. Try to change the Context arguments to either
context = cl.Context(devices=[dev])
or
context = cl.Context()
and see if that changes anything

I have running it on 2 machines with different flavor of python
1.)
Python 2.7.12 (default, Aug 28 2018, 17:44:47)
[GCC 6.2.0] on linux2
2.)
cl) ~/work/pyopencl-in-action/ch3$ python
Python 3.6.6 | packaged by conda-forge | (default, Oct 12 2018, 14:08:43)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-15)] on linux
Type "help", "copyright", "credits" or "license" for more information.
On Wed, Nov 14, 2018 at 7:06 PM Øystein Sture<EMAIL_ADDRESS>wrote:

The first issue is due to the foo(bar: type) syntax, which was added in
python 3.5. Which python version are you using?
Not sure what the second issue is, the arguments passed to the constructor
should be compatible. Try to change the Context arguments to either
context = cl.Context(devices=[dev])
or
context = cl.Context()
and see if that changes anything
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/oysstu/pyopencl-in-action/issues/2#issuecomment-438760399,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ANk3iQ0RU5DTI2YcwQmLDAqAxdbRBGUeks5uvFuOgaJpZM4YePtQ
.

I did what you suggested - now I have such as
context = cl.Context(devices=[dev])
and it seems working
(cl) ~/work/pyopencl-in-action/ch3$ python map_copy.py
Using GPU: Intel(R) Gen9 HD Graphics NEO
On platform: Intel(R) OpenCL HD Graphics (OpenCL 2.1)
Source array:
[ -0.  -1.  -2.  -3.  -4.  -5.  -6.  -7.  -8.  -9. -10. -11. -12. -13.
-14. -15. -16. -17. -18. -19. -20. -21. -22. -23. -24. -25. -26. -27.
-28. -29. -30. -31. -32. -33. -34. -35. -36. -37. -38. -39. -40. -41.
-42. -43. -44. -45. -46. -47. -48. -49. -50. -51. -52. -53. -54. -55.
-56. -57. -58. -59. -60. -61. -62. -63. -64. -65. -66. -67. -68. -69.
-70. -71. -72. -73. -74. -75. -76. -77. -78. -79. -80. -81. -82. -83.
-84. -85. -86. -87. -88. -89. -90. -91. -92. -93. -94. -95. -96. -97.
-98. -99.]
After copy back:
[ 0.  1.  2.  3.  4.  5.  6.  7.  8.  9. 10. 11. 12. 13. 14. 15. 16. 17.
18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35.
36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53.
54. 55. 56. 57. 58. 59. 60. 61. 62. 63. 64. 65. 66. 67. 68. 69. 70. 71.
72. 73. 74. 75. 76. 77. 78. 79. 80. 81. 82. 83. 84. 85. 86. 87. 88. 89.
90. 91. 92. 93. 94. 95. 96. 97. 98. 99.]
(cl) ~/work/pyopencl-in-action/ch3$
On Wed, Nov 14, 2018 at 7:18 PM Peter Balazovic<EMAIL_ADDRESS>wrote:

I have running it on 2 machines with different flavor of python
1.)
Python 2.7.12 (default, Aug 28 2018, 17:44:47)
[GCC 6.2.0] on linux2
2.)
cl) ~/work/pyopencl-in-action/ch3$ python
Python 3.6.6 | packaged by conda-forge | (default, Oct 12 2018, 14:08:43)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-15)] on linux
Type "help", "copyright", "credits" or "license" for more information.
On Wed, Nov 14, 2018 at 7:06 PM Øystein Sture<EMAIL_ADDRESS>wrote:

The first issue is due to the foo(bar: type) syntax, which was added in
python 3.5. Which python version are you using?
Not sure what the second issue is, the arguments passed to the
constructor should be compatible. Try to change the Context arguments to
either
context = cl.Context(devices=[dev])
or
context = cl.Context()
and see if that changes anything
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/oysstu/pyopencl-in-action/issues/2#issuecomment-438760399,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ANk3iQ0RU5DTI2YcwQmLDAqAxdbRBGUeks5uvFuOgaJpZM4YePtQ
.

Great, closing this issue. Feel free to submit a pull request if you implement any of the listings I haven't touched yet

OK. but preferably I want to get running on python2 :(
On Wed, Nov 14, 2018 at 7:46 PM Øystein Sture<EMAIL_ADDRESS>wrote:

Closed #2 https://github.com/oysstu/pyopencl-in-action/issues/2.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/oysstu/pyopencl-in-action/issues/2#event-1966703407,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ANk3iabhTRN9yFUCjIoiZd0iO6H3TwCuks5uvGUKgaJpZM4YePtQ
.

Pyopencl supports 2.7, so it shouldn't be too hard to get running. Remove the type annotations and import the necessary functions from future. Python 2 is end of life in 2020 and not prioritized by me, so you're on your own here I'm afraid

understand - I use it on embedded device which has just python2 only :(
On Wed, Nov 14, 2018 at 8:42 PM Øystein Sture<EMAIL_ADDRESS>wrote:

Pyopencl supports 2.7, so it shouldn't be too hard to get running. Remove
the type annotations and import the necessary functions from future.
Python 2 is end of life in 2020 and not prioritized by me, so you're on
your own here I'm afraid
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/oysstu/pyopencl-in-action/issues/2#issuecomment-438792580,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ANk3icmY-ZshhEO_cNd6ZtKYJCaNtlHoks5uvHI-gaJpZM4YePtQ
.


Obtain biggest source of journal URL's possible

Thought this could be from JournalTOCs

Vesko has 26786 journals with URLs, only 47 were missing from the total present. This means we essentially have them all.


feat: Move logic of view, download and comments out of views file

Moved comments logic out of views file into models/comments
Changed fields from list type into a tuple

Awesome job, the only comment is to change LmsError into more specific errors.


ARROW-5730: [Python][CI] Selectively skip test cases in the dask integration test

Two tests are failing in dask/dataframe/io/tests/test_parquet.py

test_timestamp_index
Caused by https://github.com/apache/arrow/commit/74841f5bfcfdeab7d90fda9e469a92aef02a23f3.
Seemingly it only affects timestamp indices, and should be handled in _to_ns

test_roundtrip_from_pandas
Caused by the new default value of preserve_index https://github.com/apache/arrow/commit/a02cfe05deacea52008586a79cec8fa09fc00b59
@wesm should we fall back to preserve_index=True with note to remain backward compatible and change in the next release?
cc @jorisvandenbossche

cc @mrocklin

cc @martindurant @rjzamora

Right the timestamp conversion is no longer correct after ARROW-4139, but this should be an easy fix.
I didn't realize that the preserve_index default value was changed - good to know :)

@rjzamora the default is still effectively "True" but we introduced logic to disambiguate the case where we store RangeIndex as metadata. So preserve_index=True will force the index to be serialized as a column, while preserve_index=None will store the index as metadata only. I'll add some documentation about this nuance


[Program]: Write a Dart program to convert string to sentencecase

Description
Write a Dart program to convert string to sentencecase
Sentencecase is a style of writing in which the first letter of the first word is capitalized.
Input  : "hello world"
Output : "Hello world"

How to contribute

Save the solution in program/program/convert-string-to-sentencecase/convert_string_to_sentencecase.dart file

!assign


added FR db-query-builder.md [skip ci]

Q
A

Is bugfix?
yes/no

New feature?
yes/no

Breaks BC?
yes/no

Tests pass?
yes/no

Fixed issues
comma-separated list of tickets # fixed by the PR, if any

Thanks!


Install DeployGate SDK

This enables us to collect crash logs in DeployGate console

Question 🙋
I think FirebaseCrash is enough to collect crash logs 🤔
Is there any other reason to introduce this sdk?

FirebaseCrash is for a production I think.
And if some crash happens, DeployGate immediately notify us via webhook so we can see the report in Slack 😃 .

Make sense. Okay. Let's try to taste it 🍸

I've heard that they will soon make some sweet update on the SDK to send a feedback within the app 🎉 . Let's see.

@KeithYokoma
No need to add the dependency to only debug?

@jmatsu No concern for the dependency configuration because DeployGate can collect crash logs in a release build!

Sure! Let's take a taste of it. :wine_glass:

well, we have a crash report mechanism for debug build as well? I've gotten emails.

@hotchemi You mean the crash report for debug build may be noisy?

@konifar No no I mean we're already collecting crash reports for debug build.
@KeithYokoma Your aim is to integrating Slack and crash report?

@hotchemi Yeah that's my primary intention. In addition to this, we can collect logcat from DeployGate web console remotely in real time if we have permission, so that might help debugging as well.


DropdownV2 uses --webkit-apearence: button in chrome

Detailed description
DropdownV2 is given a button appearance that breaks the style. The [type="button"] selector is overriding the class styling.

Is this issue related to a specific component?

I believe so but presumably, it is breaking wherever [type="button"] is used when it maybe it shouldn't be.

What did you expect to happen? What happened instead? What would you like to see changed?

The class styling should override and use --webkit-appearance: none instead of --webkit-appearance: button

What browser are you working in?

Version 68.0.3440.106 (Official Build)

What version of the Carbon Design System are you using?

9.5.2
Steps to reproduce the issue

Use a dropdown v2 component
View the component in desktop chrome

Additional information

It seems to work fine when you use a mobile device/screen resolution

Hi there @vpicone! 👋 It seems like the webkit-appearance for that selector is being set by styles in your project, is that the case? Here's how this component looks in the React storybook:

@joshblack Woops! You're correct, that came from normalize.css false alarm. Thanks!


User registration fails with the test environment

After entering all data for a user, user registration fails with "There was a problem processing your request. Please try again.".
This might be related: Gamer Name list doesn't show up.

@christiannagel It seems to be a similiar problem like it was with Codebreaker.Blazor. We need a seperate configuration for the User-Service in the test environment in Azure.


build check test hangs on M1 mac mini

When doing "./gradlew build check test" from a fresh git clone, the tests run for a while then hang with:
2021-01-10T07:53:02.103-0500 [DEBUG] [TestEventLogger] org.mitre.synthea.helpers.AttributesTest > testGraphs STARTED
2021-01-10T07:53:13.549-0500 [LIFECYCLE] [org.gradle.cache.internal.DefaultFileLockManager]
2021-01-10T07:53:13.549-0500 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
2021-01-10T07:53:13.549-0500 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
2021-01-10T07:53:13.551-0500 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
2021-01-10T07:53:13.552-0500 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
2021-01-10T07:53:13.552-0500 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
2021-01-10T07:53:13.552-0500 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
2021-01-10T07:53:23.549-0500 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
This might be unrelated to the M1 (using zulu-8 jdk)
openjdk version "1.8.0_275"
OpenJDK Runtime Environment (Zulu <IP_ADDRESS>7-CA-macos-aarch64) (build 1.8.0_275-b01)
OpenJDK 64-Bit Server VM (Zulu <IP_ADDRESS>7-CA-macos-aarch64) (build 25.275-b01, mixed mode)

Running into similar.  How did you resolve?

Any resolution on this issue? The build seems to get struck at 80% after 259 Tests

While Synthea will run on Java 1.8, it will certainly run on more modern versions of java.
I don't have an easy way to install Java 1.8 through sdkman, which is what I use to manage my JDKs. I don't have 1.8 handy because I just moved to a new M1-based MacBook Pro. Using openjdk 17.0.3, I'm able to fully run the test suite on Apple Silicon.

I'm running on x64 hardware, using OpenJDK 1.8 Temerin which is only available for x64, so I can't recreate this issue at this time.
However, Google searches suggest that the messages shown are periodic gradle daemon health checks typically unrelated to the code actually being executed. One way to attempt to debug the issue, or at least see what the VM is actually doing or stuck on, would be to employ a tool like VisualVM. https://visualvm.github.io

Same for me if I run gradle :foo --tests "org.me.test.Foo.test" --rerun-tasks --debug --offline on my Apple M1 with zulu 1.8.0_342 or zulu 18.0.2 (both for arm64):
// ...
2022-08-18T17:10:47.159+0200 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: STARTING
2022-08-18T17:10:47.159+0200 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Waiting until process started: Gradle Test Executor 4.
2022-08-18T17:10:47.162+0200 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: STARTED
2022-08-18T17:10:47.162+0200 [DEBUG] [org.gradle.process.internal.ExecHandleRunner] waiting until streams are handled...
2022-08-18T17:10:47.162+0200 [INFO] [org.gradle.process.internal.DefaultExecHandle] Successfully started process 'Gradle Test Executor 4'
2022-08-18T17:10:54.191+0200 [LIFECYCLE] [org.gradle.cache.internal.DefaultFileLockManager]
2022-08-18T17:10:54.191+0200 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
2022-08-18T17:10:54.191+0200 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
2022-08-18T17:10:54.191+0200 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
2022-08-18T17:10:54.191+0200 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
2022-08-18T17:10:54.191+0200 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
2022-08-18T17:10:54.192+0200 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
2022-08-18T17:10:59.277+0200 [DEBUG] [sun.rmi.transport.tcp] RMI TCP Connection(36)-<IP_ADDRESS>: (port 61821) connection closed
2022-08-18T17:10:59.278+0200 [DEBUG] [sun.rmi.transport.tcp] RMI TCP Connection(36)-<IP_ADDRESS>: close connection
2022-08-18T17:10:59.277+0200 [DEBUG] [sun.rmi.transport.tcp] RMI TCP Connection(35)-<IP_ADDRESS>: (port 61821) connection closed
2022-08-18T17:10:59.279+0200 [DEBUG] [sun.rmi.transport.tcp] RMI TCP Connection(35)-<IP_ADDRESS>: close connection
2022-08-18T17:10:59.278+0200 [DEBUG] [sun.rmi.transport.tcp] RMI TCP Connection(37)-<IP_ADDRESS>: (port 61821) connection closed
2022-08-18T17:10:59.279+0200 [DEBUG] [sun.rmi.transport.tcp] RMI TCP Connection(37)-<IP_ADDRESS>: close connection
2022-08-18T17:11:04.191+0200 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
2022-08-18T17:11:04.191+0200 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
2022-08-18T17:11:04.192+0200 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
2022-08-18T17:11:04.192+0200 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
2022-08-18T17:11:04.192+0200 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
2022-08-18T17:11:04.192+0200 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
2022-08-18T17:11:13.935+0200 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker Thread 3: acquired lock on worker lease
2022-08-18T17:11:13.936+0200 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker Thread 3: released lock on worker lease
2022-08-18T17:11:14.011+0200 [DEBUG] [sun.rmi.transport.tcp] RMI Scheduler(0): close connection
2022-08-18T17:11:14.011+0200 [DEBUG] [sun.rmi.transport.tcp] RMI Scheduler(0): close connection
2022-08-18T17:11:14.025+0200 [DEBUG] [sun.rmi.transport.tcp] RMI Scheduler(0): close connection
2022-08-18T17:11:14.026+0200 [DEBUG] [sun.rmi.transport.tcp] RMI TCP Connection(33)-<IP_ADDRESS>: (port 61821) connection closed
2022-08-18T17:11:14.026+0200 [DEBUG] [sun.rmi.transport.tcp] RMI TCP Connection(33)-<IP_ADDRESS>: close connection
2022-08-18T17:11:14.038+0200 [DEBUG] [sun.rmi.transport.tcp] RMI TCP Connection(34)-<IP_ADDRESS>: (port 61821) connection closed
2022-08-18T17:11:14.038+0200 [DEBUG] [sun.rmi.transport.tcp] RMI TCP Connection(34)-<IP_ADDRESS>: close connection
2022-08-18T17:11:14.198+0200 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
2022-08-18T17:11:14.198+0200 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
2022-08-18T17:11:14.198+0200 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
2022-08-18T17:11:14.199+0200 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
2022-08-18T17:11:14.199+0200 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
2022-08-18T17:11:14.199+0200 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
2022-08-18T17:11:14.868+0200 [DEBUG] [sun.rmi.transport.tcp] RMI Scheduler(0): close connection
2022-08-18T17:11:14.876+0200 [DEBUG] [sun.rmi.transport.tcp] RMI TCP Connection(40)-<IP_ADDRESS>: (port 61821) connection closed
2022-08-18T17:11:14.877+0200 [DEBUG] [sun.rmi.transport.tcp] RMI TCP Connection(40)-<IP_ADDRESS>: close connection
2022-08-18T17:11:16.298+0200 [DEBUG] [sun.rmi.transport.tcp] RMI Scheduler(0): close connection
2022-08-18T17:11:16.307+0200 [DEBUG] [sun.rmi.transport.tcp] RMI TCP Connection(39)-<IP_ADDRESS>: (port 61821) connection closed
2022-08-18T17:11:16.308+0200 [DEBUG] [sun.rmi.transport.tcp] RMI TCP Connection(39)-<IP_ADDRESS>: close connection
2022-08-18T17:11:17.577+0200 [DEBUG] [org.gradle.internal.remote.internal.inet.TcpIncomingConnector] Accepted connection from /<IP_ADDRESS>:62283 to /<IP_ADDRESS>:62271.
2022-08-18T17:11:17.578+0200 [DEBUG] [org.gradle.process.internal.worker.DefaultWorkerProcess] Received connection org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection@63c91468 from Gradle Test Executor 4
2022-08-18T17:11:17.611+0200 [DEBUG] [org.gradle.process.internal.worker.child.ActionExecutionWorker] Starting Gradle Test Executor 4.
2022-08-18T17:11:17.612+0200 [INFO] [org.gradle.api.internal.tasks.testing.worker.TestWorker] Gradle Test Executor 4 started executing tests.
2022-08-18T17:11:17.651+0200 [DEBUG] [org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor] Executing test class org.me.test.Foo
2022-08-18T17:10:49.170+0200 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger]
2022-08-18T17:10:49.170+0200 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] > Task :client:test
2022-08-18T17:11:17.650+0200 [DEBUG] [TestEventLogger]
2022-08-18T17:11:17.650+0200 [DEBUG] [TestEventLogger] Gradle Test Executor 4 STARTED
// ...

A significant amount of time of the entire gradle run is spent in the lines I posted above.

Hi Synthea team,
I am struggling to install Synthea locally on my machine. I was wondering if you could help me. I am on an M1 MacBook Pro running macOS Monterey 12.6. I have tried the installation using the following Java versions:
oracle64-<IP_ADDRESS>
openjdk64-<IP_ADDRESS>
When I run ./gradlew build check test my command prompt seems to take a long time to run test org.mitre.synthea.helpers.AttributesTest:

:test > 268 tests completed, 4 skipped
:test > Executing test org.mitre.synthea.helpers.AttributesTest

I waited for almost 60 minutes with no success.
Could you please provide me with some guidance on how I can successfully install Synthea locally?

Can you try the following?

Stop Gradle Daemon

./gradlew --stop

Note: If you are running multiple development environment at the same time, this won't stop Gradle Daemons that are running with different versions of Gradle. You might want to stop them all.

Run without Daemon

./gradlew --no-daemon clean check

Alternatively, try to increase the memory available to your JVM if you haven't already.

Someone looked at this for us...
The issue on the M1 hardware is apparently with org.mitre.synthea.helpers.AttributesTest specifically:
https://github.com/synthetichealth/synthea/blob/5d90e086985aecf69e8a1140d9793ad8f104fe73/src/main/java/org/mitre/synthea/helpers/Attributes.java#L452
We don't have a fix yet.
One work around is to disable the AttributesTest. You can do this by importing import org.junit.Ignore; and adding @Ignore annotations to those test methods, or just deleting the src/test/java/org/mitre/synthea/helpers/AttributesTest.java file.

I deleted AttributesTest.java from src/test/java/org/mitre/synthea/helpers/AttributesTest.java and ran the build using oracle64-<IP_ADDRESS> on my M1 MacBook Pro. I can confirm, that BUILD SUCCESSFUL.
Thank you @jawalonoski!

For those following this issue.
On the master branch, we are using an older version of the graphviz-java library. graphviz is a tool that Synthea uses to visualize modules.
The graphviz-java library uses different engines when running the code for graphviz. The one that seems to work reliably is calling out to a native installation of graphviz. So, a work around for this is to install graphviz and all tests will pass on the master branch if you are running Java 11 or greater regardless of what CPU architecture you are running on. You can install graphviz using Homebrew pretty easily. I have verified that this gets tests to pass on Java 11 and Java 17 on Apple Silicon.
I am also working on a fix for this issue, so that the tests will pass regardless of whether graphviz is installed locally or not.  You can follow that in PR #1157.


Classes to apply css in additional settings (number and text component) not working

Describe the bug
Trying to make the size of the number input box visually smaller as it only needs to house 6 numbers. I copy the example given in classes (additional settings) to do this and it doesn't work. The box remains the same size
To Reproduce
Steps to reproduce the behavior:

Click 'create component' on page
Go to 'number' component (or text)
Click on 'additional settings'
Go to 'Classes' field and enter example (or other)
Save
Preview the page - can see the box remains same size

Expected behavior
The text box should become smaller
Screenshots

Repository

designer

Desktop (please complete the following information):

OS: Windows 11
Browser: Microsoft edge
Version [e.g. 22]

Additional context
I had a look at GDS code for this and it is in html. I can't find anything for a css way to do it. FYI I am a designer and have very basic knowledge of html

Currently it seems govuk-input-width is not available as a css class. Using styles spacing worked for me


c語言多行同時注釋會閃退

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version:
OS Version:

Steps to Reproduce:

感謝您創建此問題！
但是，由於描述不是英文的，因此我們很難對其進行處理。如果可以，請將本期編輯為英文。請不要添加新評論或創建新問題，而是編輯現有問題。
不幸的是，自動翻譯服務無法處理有效溝通軟體問題所需的技術語言，因此我們建議您找一位熟悉我們技術的人工翻譯來幫助翻譯。
否則，此問題已被標記為需要翻譯，社區成員可能會幫助翻譯它。

Thanks for creating this issue!
Unfortunately, as the description is not in English, it's hard for us to work on. If possible, please edit the original issue to be in English.
In our experience, automatic translation services are not able to handle the technical language needed to effectively communicate about software issues, so we recommend finding a human translator who is familiar with our technology to help.
Otherwise, we have marked this as needing translation and a community member may be able to help out.

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


feature: #90 allow users to specify a github token

Adds #90 functionality by allowing the user to circumvent rate limiting with an auth token specified in their environment.
First time contributing  to a CLI, so looking for suggestions on improvement. 🙂
Contributing to Twilio

All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under.

[x] I acknowledge that all my contributions will be made under the project's license.

@dkundel No worries I understand! Thanks for taking the time to offer thoughtful comments. I'll address these issues.  Cheers 🎉


ko: Add stream tooltip localization

This PR adds Korean localization for tooltips for stream configs (ref: 4371485).

Merged, thank you for your contribution!


Generic webhook template should not ask for any parameters

We have a generic webhook template in the core category, but once you select it, you are asked to specify the type of webhook.

Yes, that feels broken. Also, if you want plain http, the only way to do it today is to choose WebHook and then say that you don't want it to be a WebHook, which is quirky :)

This was a portal bug has been fixed in the latest deployment. Generic webhook does not ask to select the type of webhook anymore.

The plain http trigger was also fixed by portal deployment


Error 'atob' failed: The string to be decoded is not correctly encoded.

I managed to make this prototype work (excellent by the way), but I regularly get errors on some objects: 'atob' failed: The string to be decoded is not correctly encoded. What's amazing is that the generated images (cut_*.jpg) are perfectly readable. Any idea what the problem is? Thanks!

Yep same here, but it didnt even work for me, constantly giving this error.

ok i think this is an error when it fails to generate a mask.

Yeah, i have the same error constantly too, i can see the generated images locally but doesnt get pasted on photoshop or neither shows up on the app.

Nothing technical in that, but I've noticed that by taking the same object from different angles(zoom) I sometimes make mistakes, sometimes not.

Yeah, i have the same problem too and it even dosen't work successfully once。before that, i do this:

so that pasting can work, but i don't know how to resolve that:

I tried the snipped edit you provided, now pasting kinda works, but i can see the pasted layer for a second on photoshop and it instantly disappears.

I tried the snipped edit you provided, now pasting kinda works, but i can see the pasted layer for a second on photoshop and it instantly disappears.

Try to do CMD+Z (photoshop) and hopefully you will see the pasted image.

I tried the snipped edit you provided, now pasting kinda works, but i can see the pasted layer for a second on photoshop and it instantly disappears.

Try to do CMD+Z (photoshop) and hopefully you'll see image. Same thing happened to me.

I think it's a bug.
Sometimes image file's header is [data:image/png;base64,]....:

But the substring source is:

So modify the source like above, problem solves.


Container Image Verify

Running a Job with a container image that doesn't exist errors with a non-useful message:
FATAL: TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object. (rejection)
How can we verify the image exists or improve error messaging before proceeding?

I think this was the same issue reported in #139

Similar error due to a 'missing' container, but different location (In a Job vs a Project sidecar)


Ignore comment tag when replacing dataDir

Checklist

[ x] Affected Issues have been mentioned in the Closing issues section
[ ] Documentation has been written/updated
[ x] PR title is ready for changelog and subsystem label(s) applied

Solves the issue described in #2261.
Closing issues
Closes #2261

This was fixed in https://github.com/uselagoon/lagoon-images/pull/45


Is there any issues with FF59 GM4.3 "New user Script" on Mac?

Long story about not being able to comment upstream... however in answer to your question @erosman at greasemonkey/greasemonkey#2953 from OS X... feel free to utilize the information with a backreference however keep all comments upstream at your issue. Thanks.
Browser Console:
Error opening user-scripts DB! error { target: IDBOpenDBRequest, isTrusted: true, currentTarget: IDBOpenDBRequest, eventPhase: 2, bubbles: true, cancelable: true, defaultPrevented: false, composed: false, timeStamp: 142988, cancelBubble: false, originalTarget: IDBOpenDBRequest }  user-script-registry.js:28:7
	openDb/</dbOpen.onerror moz-extension://624ec331-db59-d74a-bd1a-fe036f8ecede/src/bg/user-script-registry.js:28:7
Error: undefined
Stack trace:
install/<@moz-extension://624ec331-db59-d74a-bd1a-fe036f8ecede/src/downloader.js:102:7
  downloader.js:108:11
	install/</< moz-extension://624ec331-db59-d74a-bd1a-fe036f8ecede/src/downloader.js:108:11
Error: undefined  downloader.js:102:7

Seems to do nothing under Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Firefox/60.0.

Additional script installation failure via OUJS for @erosman.
Browser Console:
Error opening user-scripts DB! error { target: IDBOpenDBRequest, isTrusted: true, currentTarget: IDBOpenDBRequest, eventPhase: 2, bubbles: true, cancelable: true, defaultPrevented: false, composed: false, timeStamp: 262622, cancelBubble: false, originalTarget: IDBOpenDBRequest }  user-script-registry.js:28:7
	openDb/</dbOpen.onerror moz-extension://9b001f38-c431-0d4a-b5a7-bc9cfbcd4b64/src/bg/user-script-registry.js:28:7
Error: undefined
Stack trace:
install/<@moz-extension://9b001f38-c431-0d4a-b5a7-bc9cfbcd4b64/src/downloader.js:102:7
  downloader.js:108:11
	install/</< moz-extension://9b001f38-c431-0d4a-b5a7-bc9cfbcd4b64/src/downloader.js:108:11
OpenGL compositor Initialized Succesfully.
Version: 2.1 INTEL-10.32.48
Vendor: Intel Inc.
Renderer: Intel Iris OpenGL Engine
FBO Texture Target: TEXTURE_2D
TypeError: gURLBar is null[Learn More]  browser.js:8671:9

Will tag a screenshot to this comment shortly from a different machine...

Both issues present in https://github.com/greasemonkey/greasemonkey/releases/tag/4.4

@erosman
Blowing away any profile... which shouldn't be needed as I just installed GM here and Fx just sits around on that platform but could be Moz migration issues as well as GM migration (total of 3 browser and 1 GM since it was thrown on for a very brief test)... I get this for new script installs which can be just as bad:

However... New Script appears to be working now:

All I can say is give it some time... GM is working as hard as they can to squash all the bugs and every Fx release can throw a curve ball as well. I do know that Xcode has some issues right now and because my system is more up to date than Yosemite that could cause some issues. Yosemite is older than High Sierra and thus supposed to be more bugs fixed.
As far as OUJS is concerned we are hopeful that GM will become more mature in v4.x until then you might consider letting your user know of the alternatives. Both TM and VM exist for Fx... it wouldn't be the first time that some users temporarily had to install a different .user.js engine until the quirks are worked out.

Btw the UA above is Fx 60.0.1 ... never have figured out the reasoning why they drop the build from it.

Checking right now Xcode is up to 9.4 as of yesterday so that can affect Fx builds on the macOS.

Adds support for the ClassKit framework in iOS 11.4
Additional bug fixes and stability improvements.

Updated Xcode to 9.4... first Script install worked (from OUJS)... second fails with white paged window as before (from GF)... resized window to rerender the window and it appeared magically.
I would presume there's still some glitches either with OS X, Xcode, Fx, and/or GM with redraw. It's possible GM fixed some issues according to Fx spec between 4.3.0 and 4.4.0 with the afformentioned commit ref point.
So I'm out of testing ideas for the moment... but perhaps your user, @erosman, may find something useful between there and here.


[GDNative] fix wrapper code generation

fixed #12968

Really, how cool is that to have a whole cross-platform scripting language available in the buildsystem? :D


[bug] Got "Missing or invalid. request() method: wallet_swithEthereumChain" when switch chain with WalletConnect

Is there an existing issue for this?

[X] I have searched the existing issues

RainbowKit Version
1.0.4
wagmi Version
1.3.4
Current Behavior
Got this Missing or invalid. request() method: wallet_swithEthereumChain error when trying to switch chain using wallet connect + Gnosis Safe wallet

Any idea how can i solve this?
Expected Behavior
Should be able to switch the chain for wallet connect + gnosis
Steps To Reproduce

Connect WalletConnect + Gnosis Safe Wallet
call the wagmi hook switchNetwork(chainId) to switch chain
error should appear at console

Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)
No response
Anything else?
No response

@jingxuan98 This appears to be a Safe Wallet issue as the console error you're seeing is relayed by the wallet. We won't be able to address this on the RainbowKit side, but I'll relay the issue to the Safe team and see if we can get the issue resolved on their end.

Closing this out on the RainbowKit side, and am awaiting fixes/guidance from Safe

@jingxuan98 Do you have a particular use case in mind? The Safe team does not currently plan to fix this as most Safe usecases are single-chain.


Command request: scrollPageTop and scrollPageBottom

Issue Type: Feature Request
My goal is to have the key bindings match macOS native behaviors as closely as possible. Part of that is making the home/end keys go to the top/bottom of the document, instead of to the start/end of the line like Windows does. This should also avoid moving my cursor.
For scrolling one page up/down without moving my cursor, I was able to bind scrollPageUp and scrollPageDown to the page up and page down keys, and this works great!
I'd like to do the same for home/end, but no such commands exist.
An alternate (and probably cleaner) solution would be a preference to avoid moving the cursor position when page up/page down/home/end are invoked; I’d be happy with either!
VS Code version: Code 1.65.2 (Universal) (c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1, 2022-03-10T14:33:49.188Z)
OS version: Darwin arm64 21.4.0
Restricted Mode: No

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

This is working great in the latest version, thank you so much for the feature @pwxn !


bump version; update changelog

Current coverage is 57.69% (diff: 100%)

Merging #773 into master will not change coverage

@@             master       #773   diff @@
==========================================
  Files            70         70
  Lines         11569      11569
  Methods           0          0
  Messages          0          0
  Branches       1808       1808
==========================================
  Hits           6675       6675
  Misses         4293       4293
  Partials        601        601

Powered by Codecov. Last update b07a077...528234a


CMake on Visual Studio

Downgrade and fix the CMake config to work on Visual Studio.

git fetch origin
git checkout 23-cmake-on-visual-studio


feat: 622 mqtt command supports viewing a list of mqtt topics

close #622
What's changed and what's your intention?
PLEASE DO NOT LEAVE THIS EMPTY !!!
Please explain IN DETAIL what the changes are in this PR and why they are needed:

Summarize your change (mandatory)
How does this PR work? Need a brief introduction for the changed logic (optional)
Describe clearly one logical change and avoid lazy messages (optional)
Describe any limitations of the current code (optional)

Checklist

[ ]  I have written the necessary rustdoc comments.
[ ]  I have added the necessary unit tests and integration tests.
[ ]  This PR does not require documentation updates.

Refer to a related PR or issue link (optional)

You can add a test in grpc-clients/tests/mqtt/mqtt_admin_test.rs, and please help me move mqtt_connect_test.rs in grpc-clients/tests/mqtt/mqtt_admin_test.rs, thanks. @KevinUW114514


Site to Site WireGuard: HTTPS Services

[ ] Caddy

[ ] Installing Caddy with systemd
[ ] Simple page at aloha.pele

[ ] tls directive
[ ] markdown directive
[ ] internal directive
[ ] ext directive

[ ] URL shortener

[ ] Install surl
[ ] Create DNS entry
[ ] Create certificate

WireGuard Site to Site VPN Part 4 - HTTPS Services

And in that folder create a script called fixperms.sh:
#!/bin/sh
chmod -R 750 .
chown -R root:www-data .
chmod 600 minica-key.pem

Then mark it executable:
chmod +x fixperms.sh

These permissions are set as such:

Facet
Read
Write
Execute/Directory Listing

User (root)
Yes
Yes
Yes

Group (www-data)
Yes
No
Yes

Others
No
No
No

This will allow Caddy to be able to read the certificates later in the post.
HTTPS
Caddy is a general-purpose HTTP server. One of its main features is automatic Let's Encrypt support. We are using it here to serve HTTPS because it has a very, very simple configuration file format.

Caddy

Setup Caddy

Systemd
Certificate permissions

Configure Caddy for static file serving for aloha.pele

root directive
browse directive

Link to Caddy documentation

URL shortener

Decide domain

suggest

Install surl in Docker

Configuration
Create Docker volume
docker volume create surl
docker run --name surl -v surl:/data --restart always -dit xena/surl:v0.4.0

Create DNS entry

g.o. IN CNAME oho.pele.

Create TLS certificate

cd ~/backups/CA && minica -domains 'g.o'

Configure Caddy

g.o:80 {
tls off

redir / https://g.o
}

g.o:443 {

    tls /srv/within/certs/g.o/cert.pem /srv/within/certs/g.o/key.pem

    proxy / http://<IP_ADDRESS>:5000

}

Test

cURL
Safari


iinit renders error

Hello,
I installed iRODS 1.0.7 on my mac running OSX 10.11.3.  Initially, the iinit command did not work, so I had to install it following the instructions under "Getting Started" at https://github.com/ilarik/kanki-irodsclient.   This allowed the iinit command to work and it prompted the necessary information.  However, when I input the info, I receive the following:
Enter your current PAM password:ERROR: sslStart: error in SSL_connect. SSL error: error:140740BF:SSL routines:SSL23_CLIENT_HELLO:no protocols available
[-]	libpam.cpp:231:pam_auth_client_request :  status [SSL_HANDSHAKE_ERROR]  errno [] -- message [failed to enable ssl]
failed with error -2103000 SSL_HANDSHAKE_ERROR
Thanks for your help,
Trey

Hello,
Thanks for your report. I haven't actually tested the 1.0.7 release of the irodsclient on OS X 10.11 at all, so it's good to know that it doesn't work (on OS X 10.10 it should). I haven't yet had time to release the 1.1.0 release, which is compatible with OS X 10.11 and would be qualified as "tested" without the beta flag.
You could try the beta release 1.1.0b1 in the mean time, which is fact is has proven to be at least as stable as the 1.0.7 release and has the experimental search functionality (which has been reported to be working).
I am very soon able to get back to the development of kanki-irodsclient and will release 1.1.0 in the course of this spring. I still encourage you to try out the beta release, since it should work pretty decently unless you want to compile the application from source on OS X 10.11 (can be done with the instructions in the blog post).
Please let me know if the  1.1.0b1 release works for you.
Best regards,
Ilari

Thanks llari,
I will download it and report back.
Trey
On Thu, Feb 25, 2016 at 3:41 PM, Ilari Korhonen<EMAIL_ADDRESS>wrote:

Hello,
Thanks for your report. I haven't actually tested the 1.0.7 release of the
irodsclient on OS X 10.11 at all, so it's good to know that it doesn't work
(on OS X 10.10 it should). I haven't yet had time to release the 1.1.0
release, which is compatible with OS X 10.11 and would be qualified as
"tested" without the beta flag.
You could try the beta release 1.1.0b1 in the mean time, which is fact is
has proven to be at least as stable as the 1.0.7 release and has the
experimental search functionality (which has been reported to be working).
I am very soon able to get back to the development of kanki-irodsclient
and will release 1.1.0 in the course of this spring. I still encourage you
to try out the beta release, since it should work pretty decently unless
you want to compile the application from source on OS X 10.11 (can be done
with the instructions in the blog post).
Please let me know if the 1.1.0b1 release works for you.
Best regards,
Ilari
—
Reply to this email directly or view it on GitHub
https://github.com/ilarik/kanki-irodsclient/issues/5#issuecomment-188974360
.

--
Trey Overman
Program Manager, Data Science Initiative
Project Manager, Laboratory of Analytic Sciences
North Carolina State University
919-513-6741

One other fact that may be relevant.  I had a colleague here at NC State
who has run into the same issue, however he's running OS 10.10.5.
On Thu, Feb 25, 2016 at 3:41 PM, Ilari Korhonen<EMAIL_ADDRESS>wrote:

Hello,
Thanks for your report. I haven't actually tested the 1.0.7 release of the
irodsclient on OS X 10.11 at all, so it's good to know that it doesn't work
(on OS X 10.10 it should). I haven't yet had time to release the 1.1.0
release, which is compatible with OS X 10.11 and would be qualified as
"tested" without the beta flag.
You could try the beta release 1.1.0b1 in the mean time, which is fact is
has proven to be at least as stable as the 1.0.7 release and has the
experimental search functionality (which has been reported to be working).
I am very soon able to get back to the development of kanki-irodsclient
and will release 1.1.0 in the course of this spring. I still encourage you
to try out the beta release, since it should work pretty decently unless
you want to compile the application from source on OS X 10.11 (can be done
with the instructions in the blog post).
Please let me know if the 1.1.0b1 release works for you.
Best regards,
Ilari
—
Reply to this email directly or view it on GitHub
https://github.com/ilarik/kanki-irodsclient/issues/5#issuecomment-188974360
.

--
Trey Overman
Program Manager, Data Science Initiative
Project Manager, Laboratory of Analytic Sciences
North Carolina State University
919-513-6741

Ok, now that's interesting. Good to know!
It might be that the 1.1.0b1 might fix his issues as well, since it builds against the newer openssl-1.1.0 libraries from the homebrew distribution and packages all of them inside the /Applications/iRODS.app bundle.
There was some curious incompatiblities when using the older OS X provided SSL library. The SSL handshake wouldn't work out-of-the-box against iRODS servers running with openssl-1.1.0 SSL.
The iRODS consortium provided irods-icommands in the release 4.1.8 will compile on OS X 10.8 - 10.11 out-of-the-box when building against the homebrew packages. My distribution of kanki-irodsclient as of version 1.1.0b1 should do the same without installing the dependencies, last time I checked at least.
Best regards,
Ilari

We tried 1.1.0b1 here and it rendered pretty much the same error:
ERROR: sslStart: error in SSL_connect. SSL error: error:14090086:SSL
routines:ssl3_get_server_certificate:certificate verify failed
[-]     libpam.cpp:231:pam_auth_client_request :  status
[SSL_HANDSHAKE_ERROR]
errno [] -- message [failed to enable ssl]
failed with error -2103000 SSL_HANDSHAKE_ERROR
On Thu, Feb 25, 2016 at 3:55 PM, Ilari Korhonen<EMAIL_ADDRESS>wrote:

Ok, now that's interesting. Good to know!
It might be that the 1.1.0b1 might fix his issues as well, since it builds
against the newer openssl-1.1.0 libraries from the homebrew distribution
and packages all of them inside the /Applications/iRODS.app bundle.
There was some curious incompatiblities when using the older OS X provided
SSL library. The SSL handshake wouldn't work out-of-the-box against iRODS
servers running with openssl-1.1.0 SSL.
The iRODS consortium provided irods-icommands in the release 4.1.8 will
compile on OS X 10.8 - 10.11 out-of-the-box when building against the
homebrew packages. My distribution of kanki-irodsclient as of version
1.1.0b1 should do the same without installing the dependencies, last time I
checked at least.
Best regards,
Ilari
—
Reply to this email directly or view it on GitHub
https://github.com/ilarik/kanki-irodsclient/issues/5#issuecomment-188982051
.

--
Trey Overman
Program Manager, Data Science Initiative
Project Manager, Laboratory of Analytic Sciences
North Carolina State University
919-513-6741

This is curious. I'm currently using the same build here with SSL support fully functional.
Are you sure that in the certificate chain there isn't any signers that would require an additional CA certificate to be added to the system? This can be done also only for iRODS configuring the shell with the environment variable irodsSSLCACertificateFile pointing to the path of a file hosting the CA certificate.
I have still to implement this in the GUI via a configurable parameter. When using certificates signed by the system-supported CA vendors, no problems should not arise, at least not with my users here.


Clarify bootz-3.1 wanted behavior.

Bootz should check for OV.
It would be useful for Bootz to also support an "insecure" mode where OV check is skipped (e.g. in some lab environment). That will require an update to https://github.com/openconfig/bootz first, and then update this test case later to cover the "insecure" mode.

Pull Request Functional Test Report for #1861 / 093fb37c040cf413b3a888998be63678b31174ad
No tests identified for validation.
Help

Close this for now in favor of https://github.com/openconfig/featureprofiles/pull/1864


Laravel 8

Does it works with Laravel 8?
I tried to install and use it, but I got the error below:
TypeError
Symfony\Component\HttpFoundation\Response::setContent(): Argument #1 ($content) must be of type ?string, Nyholm\Psr7\Request given, called in ../vendor/laravel/framework/src/Illuminate/Http/Response.php on line 72

Hello @ramonMontanhes
There is no reason it shouldn’t AFAIK 🤔 What exactly did you do?

@gulien I just installed it using composer and I tried to use the HTML string method:
use Gotenberg\Gotenberg;
use Gotenberg\Stream;

$request = Gotenberg::chromium($apiUrl)
    ->assets(
        Stream::path('/path/to/my.css'),
        Stream::path('/path/to/my.js')
    )
    ->html(Stream::path('/path/to/file.html'));

You may have to install the Nyholm PSR-7:
composer require nyholm/psr7

I did it (yesterday), and the problem remains.

@ramonMontanhes wimski/laravel-psr-http might be a solution. I was pretty sure it would work out of the box with Laravel, as it relies on the Symfony HTTP client 😅

I was able to use the gotenberg API calls with the existing Illuminate\Support\Facades\Http class. I'm using it for something simple and it's working. I just reported the issue to check if I'm doing something wrong or maybe to someone check if this is some bug.

Re @ramonMontanhes
So If I understand correctly, you're actually using the HTTP class from Laravel instead of gotenberg-php?

Yes. That was my workaround to get gotenberg working.

Makes sense 👍 that was my recommendation initially when I releases Gotenberg v7 (i.e., to use the standard HTTP library of your stack), but folks still wanted a dedicated library 😄
I'll keep this issue open, just in case someone find the culprit.


Envoy performance case

WARNING: If you want to report crashes, leaking of sensitive information,
and/or other security issues, please consider
reporting them using appropriate channels.
Issue Template
Title: One line description
Description:
Running envoy against nginx it seems Envoy spend more cpus than nginx.
[optional Relevant Links:]

Any extra documentation required to understand the issue.

Bug Template
Title: One line description
Description:

What issue is being seen? Describe what should be happening instead of
the bug, for example: Envoy should not crash, the expected value isn't
returned, etc.

Repro steps:

Include sample requests, environment, etc. All data and inputs
required to reproduce the bug.

Note: The Envoy_collect tool
gathers a tarball with debug logs, config and the following admin
endpoints: /stats, /clusters and /server_info. Please note if there are
privacy concerns, sanitize the data prior to sharing the tarball/pasting.

Admin and Stats Output:

Include the admin output for the following endpoints: /stats,
/clusters, /routes, /server_info. For more information, refer to the
admin endpoint documentation.

Note: If there are privacy concerns, sanitize the data prior to
sharing.

Config:

Include the config used to configure Envoy.

Logs:

Include the access logs and the Envoy logs.

Note: If there are privacy concerns, sanitize the data prior to
sharing.

Call Stack:

If the Envoy binary is crashing, a call stack is required.
Please refer to the Bazel Stack trace documentation.

linke to https://github.com/istio/istio/issues/16749

It seems the bottleneck is in envoy.


phylotree api fix

Description
@jgadling and i were testing this endpoint and were getting this traceback:
Traceback (most recent call last):
  File "/Users/plogan/code/aspen/.venv/lib/python3.7/site-packages/flask/app.py", line 2464, in __call__
    return self.wsgi_app(environ, start_response)
  File "/Users/plogan/code/aspen/.venv/lib/python3.7/site-packages/flask/app.py", line 2450, in wsgi_app
    response = self.handle_exception(e)
  File "/Users/plogan/code/aspen/.venv/lib/python3.7/site-packages/flask/app.py", line 1867, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/Users/plogan/code/aspen/.venv/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/Users/plogan/code/aspen/.venv/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/Users/plogan/code/aspen/.venv/lib/python3.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/Users/plogan/code/aspen/.venv/lib/python3.7/site-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/Users/plogan/code/aspen/.venv/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/Users/plogan/code/aspen/.venv/lib/python3.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/Users/plogan/code/aspen/.venv/lib/python3.7/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/Users/plogan/code/aspen/src/py/aspen/app/app.py", line 52, in decorated
    return f(*args, **kwargs)
  File "/Users/plogan/code/aspen/src/py/aspen/app/views/phylo_trees.py", line 44, in phylo_trees
    .join(WorkflowInputs, Workflow)
  File "<string>", line 2, in join

  File "/Users/plogan/code/aspen/.venv/lib/python3.7/site-packages/sqlalchemy/sql/base.py", line 96, in _generative
    x = fn(self, *args, **kw)
  File "<string>", line 2, in join

  File "/Users/plogan/code/aspen/.venv/lib/python3.7/site-packages/sqlalchemy/orm/base.py", line 224, in generate
    fn(self, *args[1:], **kw)
  File "/Users/plogan/code/aspen/.venv/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 2307, in join
    for i, prop in enumerate(_props)
  File "/Users/plogan/code/aspen/.venv/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 2307, in <genexpr>
    for i, prop in enumerate(_props)
  File "/Users/plogan/code/aspen/.venv/lib/python3.7/site-packages/sqlalchemy/sql/coercions.py", line 168, in expect
    element, argname=argname, **kw
  File "/Users/plogan/code/aspen/.venv/lib/python3.7/site-packages/sqlalchemy/sql/coercions.py", line 380, in _literal_coercion
    self._raise_for_expected(element, argname)
  File "/Users/plogan/code/aspen/.venv/lib/python3.7/site-packages/sqlalchemy/sql/coercions.py", line 262, in _raise_for_expected
    util.raise_(exc.ArgumentError(msg, code=code), replace_context=err)
  File "/Users/plogan/code/aspen/.venv/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 198, in raise_
    raise exception
sqlalchemy.exc.ArgumentError: SQL expression for ON clause expected, got <class 'aspen.database.models.workflow.Workflow'>.

breaking up the joins fixed the issue for me, i think what was happening was that the join was expecting Workflow to be an on clause for the join.
Issue
ch<fill_in_issue_number>
Test plan
hit endpoint and got expected response (my local db was empty):
{
  "phylo_trees": []
}

I swear this used to work.  I wonder if sqlalchemy 1.4 has a different API for this.


Update exporter with recent changes from javaagent

(planning to reuse the utility classes in the javaagent after the next azure-monitor-opentelemetry-exporter release, even if we can't reuse the whole exporter yet)

API changes have been detected in com.azure:azure-monitor-opentelemetry-exporter. You can review API changes here
API changes
+         @Nullable public static String getHttpUrlFromServerSpan(Attributes attributes)


fix(frontend): remove old version of required field form item

:tada: This PR is included in version 3.1.0-alpha.3 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.1-alpha.2 :tada:
The release is available on npm package (@alpha dist-tag)
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.1.0-alpha.17 :tada:
The release is available on npm package (@alpha dist-tag)
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.1.0-alpha.16 :tada:
The release is available on npm package (@alpha dist-tag)
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.1.0-alpha.17 :tada:
The release is available on npm package (@alpha dist-tag)
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.1.0-alpha.17 :tada:
The release is available on npm package (@alpha dist-tag)
Your semantic-release bot :package::rocket:


feat: Dataset Creation Footer Component

SUMMARY

This creates the footer component for the new dataset creation flow. Currently it does not set the name of the dataset, so default naming is used. However, this will be added after this: https://github.com/apache/superset/pull/21189 is merged in.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

https://user-images.githubusercontent.com/48933336/189211819-fd362415-f012-4ced-93c2-08289ba74acc.mov
TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

/testenv up

/testenv up

Found 2 issues:
1, there is empty line btw the search box and the table list, is this expected?

2, when user search a none existed table name and deleted the name before table list refresh, it seems like the select database table section will be refresh too, is this expected?
https://user-images.githubusercontent.com/81597121/190326724-f2fbd677-309a-4441-afe2-c22bca78feb9.mov

One more suggestion:
can we add a delete button to remove search word in the search box?

2, when user searched a non-existed table name and deleted the name before table list refresh, the selected database table section will be refreshed too, is this expected?
delete.table.search.mov

@jinghua-qa The left panel initially used server side searching, which may have cause this. Server side searching was disabled recently so currently the table search isn't working. I'll be fixing the search so that it uses client side searching in my next PR, I will watch for this behavior while I'm fixing it but the search will not work in this PR.
For clarity: The entire table list should still display once a schema is chosen, you just can't search through it until my next fix PR.

/testenv up

@jinghua-qa I addressed all your comments above, could you take a look and make sure everything looks right now?

Re-test in http://<IP_ADDRESS>:8080/, find an issue that the table list did not change with the search keyword:
repo steps:
1, input keyword in the search box
expect:
table list will show match result with keyword
acutal:
table list did not change
https://user-images.githubusercontent.com/81597121/191912112-6f254ee8-397d-45ce-b235-7bd516f24058.mov

Re-test in http://<IP_ADDRESS>:8080/, find an issue that the table list did not change with the search keyword: repo steps: 1, input keyword in the search box expect: table list will show match result with keyword actual: table list did not change
Screen.Recording.2022-09-23.at.12.32.23.AM.mov

Yes, I mentioned this a couple of comments above. Server side searching was disabled recently so currently the table search isn't working. I'll be fixing the search so that it uses client side searching in my next PR.

Re-test in http://<IP_ADDRESS>:8080/, find an issue that the table list did not change with the search keyword: repo steps: 1, input keyword in the search box expect: table list will show match result with keyword actual: table list did not change
Screen.Recording.2022-09-23.at.12.32.23.AM.mov

Yes, I mentioned this a couple of comments above. Server side searching was disabled recently so currently the table search isn't working. I'll be fixing the search so that it uses client side searching in my next PR.

Sorry have missed your previous comment, i think other than that i did not find other issues~ LGTM


bump @rjsf/*-v5 dependencies

Signed-off-by: Paul Cowan<EMAIL_ADDRESS>Hey, I just made a Pull Request!
As part of the fix in #14660 , I also need this fix from @rjsf/core.
This PR bumps the dependencies of @rjsf/* dependencies to 5.0.0-beta.14
:heavy_check_mark: Checklist

[X] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[X] All your commits have a Signed-off-by line in the message. (more info)

Thanks!


induced >1d array iteration should be caught at type inference time

Reporting a bug

[x] I am using the latest released version of Numba (most recent is visible in
the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG).
[x] I have included below a minimal working reproducer (if you are unsure how
to write one see http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports).

This
from numba import njit
import numpy as np

@njit
def foo(x):
    for _ in enumerate(x):
        pass

foo(np.zeros((10, 10)))

produces a LoweringError:
numba.errors.LoweringError: Failed in nopython mode pipeline (step: nopython mode backend)
iterating over 2D array

it should be caught at type inference time.

Looks like auto-close didn't work here


No separate head_fusion strategies for Gradient Attention Rollout?

Should there be a condition to allow users to pass the head_fusion method in grad_rollout()?
Something like -
...
    for attention, grad in zip(attentions, gradients):
            weights = grad
            if head_fusion == "mean":
                attention_heads_fused = (attention*weights).mean(axis=1)
            elif head_fusion == "max":
                attention_heads_fused = (attention*weights).max(axis=1)[0]
            elif head_fusion == "min":
                 attention_heads_fused = (attention*weights).min(axis=1)[0]
            else:
                raise "Attention head fusion type Not supported"

            attention_heads_fused[attention_heads_fused < 0] = 0
...

Yes, great idea!


Add unit tests for Bundler::SSLCerts::CertificateManager

Updated the PR.

@homu r+

:pushpin: Commit b9178e6 has been approved by segiddins

Thanks!


Add example for processing 2x2 dataset to zenodo output

This example produced the output as published in https://doi.org/10.5281/zenodo.7081622

Sorry @jluethi, this will need to be updated to use the new client (see current examples folder in main).

Closed in favor of https://github.com/fractal-analytics-platform/fractal/pull/269


Can't use - in taints

Using fury 1.25.6 with furyctl 0.25.2, I got the following error:
ERRO error while validating configuration file: error while validating against schema: jsonschema: '/spec/kubernetes/nodePools/1/taints/0' does not validate with https://schema.sighup.io/kfd/ekscluster-kfd-v1alpha2-public.json#/properties/spec/$ref/properties/kubernetes/$ref/properties/nodePools/items/$ref/properties/taints/$ref/items/pattern: does not match pattern '^([a-zA-Z0-9\\-\\.\\/]+)=(\\w+):(NoSchedule|PreferNoSchedule|NoExecute)$'

Taints are defined as the following:
cat furyctl.yaml | grep -A1 taints
        taints:
          - node.kubernetes.io/role=infra:NoSchedule
--
        taints:
          - node.kubernetes.io/role=dynamic-scaling:NoSchedule
--
        taints:
          - node.kubernetes.io/role=only-scale-up:NoSchedule

Closing, release 1.25.8 and 1.26.2 contains the fix


README doesn't need to mention the tap anymore

I saw this just now:
> brew update && brew upgrade
==> Updating Homebrew...
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
mactop

brew install mactop is all I needed to get it downloaded. Congratulations on getting into Homebrew!

Thank you!! Updated 👍
Cheers! 🍻


How can I extract the account ID from an Android session and convert it to tdata?

I apologize for my limited programming foundation. I have successfully extracted the session_string using the tool you provided, but how can I extract the account ID from the Android session and convert it to tdata? How can this be achieved?

Unfortunately, I am not sure if it is possible, I do not think that mobile session needs user id and it might be not stored in it at all.
What you can do is login via telethon, get user id and convert it to tdata, but it might increase chances of your account being blocked by telegram.
Another possible solution is to start the telegram from the mobile and in cache4.db might be created some rows that will contain id of your user.
Try to research about cache.db and other cache files, you might find it there.

In the screenshot, you mentioned the process of generating a tdata. Can this be achieved through your tool?

Not through my tool, no
What I did back to then is I extracted account id manually by just logging into the mobile session from the phone
Unfortunately account id is not stored in tgnet.dat file, I do not think that it's even stored somewhere before you log into session using phone

i can do this

我可以做这个

How can this process be implemented, is Telethon required?

So I decided to do some research on this because it does seem like useful function so I will do my best in order to implement extraction of User ID and even convertion to tdata
Repository will receive updates in nearest future
What I can tell you for now is try searching it in cache4.db in "user_settings" table, it is SQLite database and it seem to contain id of user

So I decided to do some research on this because it does seem like useful function so I will do my best in order to implement extraction of User ID and even convertion to tdata
Repository will receive updates in nearest future
What I can tell you for now is try searching it in cache4.db in "user_settings" table, it is SQLite database and it seem to contain id of user

1.There is no need to read from the cache4.db file, which is large and has a large number of table rows, resulting in poor performance

So I decided to do some research on this because it does seem like useful function so I will do my best in order to implement extraction of User ID and even convertion to tdata
Repository will receive updates in nearest future
What I can tell you for now is try searching it in cache4.db in "user_settings" table, it is SQLite database and it seem to contain id of user

I have completed these research tasks: using userid Authkey and other data are converted offline to tdata, but the tdata file is invalid and cannot be logged in correctly by Windows clients. Error: 401

我可以做这个

How can this process be implemented, is Telethon required?

No need for it

Hi, this functionality has been implemented in newer version of AndroidTelePorter, I suggest you reading documentation as it will answer all your questions.


Fix mypy issues

There are several things to consider:

Fixing bugs like this one: https://travis-ci.org/lk-geimfari/mimesis/jobs/361128185#L600
Adding new options to mypy to make it stricter: https://github.com/wemake-services/wemake-django-template/blob/master/{{cookiecutter.project_name}}/setup.cfg#L67
Add tests folder to be checked by mypy (not only mimesis/ folder is checked)

I can do it, if @lk-geimfari does not have anything to add/comment.

@sobolevn Sure!


Close thrift connection instead of just setting bookkeeper as null when connection exceptions are encountered

https://github.com/qubole/rubix/pull/294#discussion_r294603318

Closed by 373848


[SMALLFIX] Use mask in InodeFile to avoid setting non-file permissions

regression.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/9529/
Test PASSed.


Undefined behaviour in ~container_interface

The call to v1_dtl::clear_impl<Derived>::call(derived()); in ~container_interface() can be UB since it can call a method on the derived class which has already been destroyed.
Example program that will not work correctly in Debug mode on MSVC:
#include <boost/stl_interfaces/container_interface.hpp>
#include <vector>

using namespace boost::stl_interfaces;

struct test: container_interface<test, contiguous>
{
    using value_type = int;
    using pointer = int *;
    using const_pointer = int const *;
    using reference = value_type &;
    using const_reference = value_type const &;
    using size_type = std::size_t;
    using difference_type = std::ptrdiff_t;
    using iterator = typename std::vector<int>::iterator;
    using const_iterator = typename std::vector<int>::const_iterator;
    using reverse_iterator = boost::stl_interfaces::reverse_iterator<iterator>;
    using const_reverse_iterator =
        boost::stl_interfaces::reverse_iterator<const_iterator>;

    iterator erase(const_iterator begin, const_iterator end) {
        return v.erase(begin, end);
    }

    iterator begin() {
        return v.begin();
    }

    iterator end() {
        return v.end();
    }

    std::vector<int> v;
};
int main() {
    {
        test t;
        // Destruction of t will cause MSVC debug iterators to fault.
    }
}

Containers that also meet the sequence container requirements do not need to define a destructor, as long as a call to clear() is sufficient — for sequence containers, container_interface calls clear() in its destructor.

@tzlaine The destructor feature may be more confusing than it is helpful. Should it be removed?


reverting the exit on fail option

What does this PR do? Please provide some context
Reverts the exit on fail option from the create_superuser.sh. That is causing BVT/INT deployments where continuous deployment is enabled as the user already exists. The option was recently added. I have checked the previous successful logs of BVT, they all have failure logs in creating the oxamaster account (as it already exists, since BVT is not a brand new deployment) but continue to execute. The better solution would be to actually check if the account exist first, but for a quick fix I am just reverting the change.
Where should the reviewer start?
create_superuser.sh
How can this be manually tested? (brief repro steps and corpnet-URL with change)
What are the relevant TFS items? (list id numbers)
Definition of done:

[ ] Title of the pull request is clear and informative
[ ] Add pull request hyperlink to relevant TFS items
[ ] For large or complex change: schedule an in-person review session
[ ] This change has appropriate test coverage
[ ] Get at least two approvals

Reminders DURING merge

If you're merging from a short-term (feature) branch into a long-term branch (like dev, release, or master) then "Squash and merge" to keep our history clean.
If merging from two longterm branches (like cherry picks from upstream, dev to release, etc) then "Create merge commit" to preserve individual commits.

this is an okay temporary fix, but scripts invoked by ansible should a) be idempotent and b) report their failures. in other words, we should eventually investigate why this script can fail, fix that, and re-enable "dash e"

In any event: thanks for finding and fixing this! I made this change with the expectation that this script was reliable


email alerter: add smtp_tls flag to allow user to disable TLS

Hello
I want to disable TLS and SSL completely in my case. I suggest this.
What do you think ?
Regards,

selfish. It's no good

@ymartin-ovh
Any way you could push this PR to https://github.com/jertel/elastalert ?
The branch is "alt". Please be careful.


Assigning Custom Field Group to Users has no effects.

Assigning (by selecting "Where to display this group")  Custom Field Group to Users has no effects. When I assign this Custom Field Group to Post or Page I can see new fields when I edit/add Post or Page. Doing the same with Users has no effect

Hi @pbr-pl
I solved the problem, please test again using git version.
Regards,


help for some stuff related to altcoin

i am not able to get difficulty and charts displayed for altcoin any help would be appreciated. thanks

Hi,
It would be useful if you could provide a bit more detail - what altcoin are you using, do you have the stats collection cron set up, can you provide screenshots of how the charts currently look?
Thanks,
Craig

charts are not working at all, moreover its one of the new sha256d based altcoin now do i need to change rpcuser/rpcpassword/port # anywhere else (except config.php) in case they differ from the default 8332.

Hi,
No, you will only need to change the values in config.php. Your altcoin's daemon will also need to expose an RPC interface that is compatible with the upstream Bitcoind RPC calls (e.g. getinfo).
Unfortunately without more detail, I'm not able to help - I'll close this issue for now. If you're able to post your config.php file in full (with passwords redacted) as well as let me know which altcoin you're using, feel free to reopen :)
Cheers,
Craig


settings: css (centering elements)

🚀 What is the feature?
Please center the html element for selecting the number of questions.

ℹ Additional info
Add a screenshot of your changes - if helpful.
Make sure the app works, otherwise the PR cannot be approved.

Hello
I would like to solve this issue.

🕺 Sure!
Let's go :)


Question: Is proxy also for crossref?

I can't understand whether the proxy is only for downloading papers, or also for crossref?
I kind of wish it is for both. So when use it frequently, and not get blocked.

Hi,
sorry for the late reply, but PyPaperBot had been on standby until now.
I've decided to resume development to improve it.
I've created a Telegram channel where you can suggest improvements, report bugs, or request custom data mining scripts. Feel free to join if you're interested with the following LINK
Thanks!


Use Image in Description

Is there a way to use image in description to display in index.md? For example:
---
date: 2022-08-10
title: My Awesome Post
description: Awesome Photo here: ![Photo](/public/images/Awesome_photo.png)
---

# {{ $frontmatter.title }}

TODO

Hopefully this can be supported when Vitepress turns 1.0.

I think this feature has no relation about vitepress,  maybe about grap-matter lib,  anyway you can get it by these step.
change list

replace the file .vitepress/theme/components/Page.vue
write description like this :   It's a test

ps:
1.  I did't know if you know html, if you don't, I,ll take a detail desc.
2.  image file path is in the public folder.   There is a favicon.ico in it.
3. <br> It's a test is just for after the image maybe some summary in there
I'm sorry for my poor English

Your English is perfectly fine - thank you for helping out!


force jitter

Force use jitter entropy in the FIPS 3.0.9 provider callback
FIPS 3.0.9 provider does not honor runtime seed configuration, thus if
one desires to use JITTER entropy source with FIPS 3.0.9 provider
something like this needs to be applied to the core (libcrypto) build.
Not sure if this is at all suitable for upstream.

This is backport of https://github.com/openssl/openssl/pull/25930 to codebase pre fips-jitter config option

This is an improvement, but we don't back port features which this is.
OTC: back port or not?

I gave a try this pull request for 3.4 branch. It looks like some work is needed here, because the relevant changes delivered here are not being compiled. The compile time option which enables is enabled by enable-fips-jitter compile time option. The option is adhered in master branch only, it is not recognized as compile time flag in 3.4 branch. So the code which delivers desired functionality is dead. see my test diff here:
diff --git a/crypto/provider_core.c b/crypto/provider_core.c
index e5e40d5e82..f4fc4104e8 100644
--- a/crypto/provider_core.c
+++ b/crypto/provider_core.c
@@ -2141,6 +2141,7 @@ static size_t rand_get_entropy(const OSSL_CORE_HANDLE *handle,
                                unsigned char **pout, int entropy,
                                size_t min_len, size_t max_len)
 {
+#error "We have some jitter"
     return ossl_rand_jitter_get_seed(pout, entropy, min_len, max_len);
 }
 # endif

compilation of 3.4 branch just succeeds with change above in.

I gave a try this pull request for 3.4 branch. It looks like some work is needed here, because the relevant changes delivered here are not being compiled. The compile time option which enables jitrer entroy is controlled by enable-fips-jitter compile time option. The option is adhered in master branch only, it is not recognized as compile time flag in 3.4 branch. So the code which delivers desired functionality is dead. see my test diff here:
diff --git a/crypto/provider_core.c b/crypto/provider_core.c
index e5e40d5e82..f4fc4104e8 100644
--- a/crypto/provider_core.c
+++ b/crypto/provider_core.c
@@ -2141,6 +2141,7 @@ static size_t rand_get_entropy(const OSSL_CORE_HANDLE *handle,
                                unsigned char **pout, int entropy,
                                size_t min_len, size_t max_len)
 {
+#error "We have some jitter"
     return ossl_rand_jitter_get_seed(pout, entropy, min_len, max_len);
 }
 # endif

compilation of 3.4 branch just succeeds with change above in.

Please see https://github.com/openssl/openssl/pull/25929/files#r1840610093
The exact test cases I use to test this functionality is gdb batch scripts that break on syscall_random function and jitter ones. Like so
  pipeline:
    - name: Verify only jitter entropy source is in use
      runs: |
        # Possibly python gdb would be easier to read
        cat <<EOF >openssl.gdb
        set pagination off
        set logging file gdb.log
        set logging on
        set width 0
        set height 0
        set verbose off
        set breakpoint pending on
        break get_jitter_random_value
        commands 1
          continue
        end
        break syscall_random
        commands 2
          continue
        end
        run rand -hex 8
        run genrsa -out /dev/null
        run ecparam -name prime256v1 -genkey
        run genpkey -algorithm ed25519
        EOF
        gdb --batch --command ./openssl.gdb openssl
        # Assert that jitter entropy is used
        grep -q 'Breakpoint 1,' gdb.log || exit 1
        # Assert that getrandom syscall wrapper is not used
        grep -q 'Breakpoint 2,' gdb.log && exit 1

OTC: no backport


v2024.0.1 - VSCode Debug "Couldn't find a debug adapter descriptor for debug type 'debugpy'"

Environment

VSCode 1.87.2
Python Debugger v2024.2.0

Issue
When running a debugpy debug session, the following error message shows:

"Couldn't find a debug adapter descriptor for debug type 'debugpy' (extension might have failed to activate)
Resolution

Install previous version 2024.0.1

I was wrong, I think the issue is with something environment specific.

Try reinstalling your extension. This is a known error.

I tried reinstalling the extension, and then VSCode. Nothing worked.


Initial FlightRecorder API, Service controller

This PR adds some fields to the FlightRecorder spec/status resource. This custom resource mirrors compatible services (and potentially pods) on a 1-to-1 basis. The spec contains a toggle to request recording to start/stop for the target service. The status contains the current recording status, an object reference to the target service, and a list of JFR recordings for that service.
The target field currently has the same reference as the ownerReference. One advantage of having this information in the status subresource, is that we can easily prevent the user from modifying it by restricting PUT access to flightrecorders/status. Modifications to the object as a whole do not also update the status fields [1].
In addition to this API, there is a new Service controller that watches for new services and if they are compatible with Container JFR (currently checking if they listen on port 9091), the controller creates a FlightRecorder object for that service. The service is listed as the owner of the FlightRecorder object, so the garbage collector will also delete the FlightRecorder when the service is deleted.
After this, I plan to fill in the FlightRecorder controller to watch for changes to FlightRecorder objects and act accordingly.
Example object:
{
    "apiVersion": "rhjmc.redhat.com/v1alpha1",
    "kind": "FlightRecorder",
    "metadata": {
        "creationTimestamp": "2019-10-03T18:51:02Z",
        "generation": 1,
        "labels": {
            "app": "hot-methods"
        },
        "name": "hot-methods",
        "namespace": "myproject",
        "ownerReferences": [
            {
                "apiVersion": "v1",
                "blockOwnerDeletion": true,
                "controller": true,
                "kind": "Service",
                "name": "hot-methods",
                "uid": "a2f4f499-e0a9-11e9-8b59-52540051bad9"
            }
        ],
        "resourceVersion": "138243",
        "selfLink": "/apis/rhjmc.redhat.com/v1alpha1/namespaces/myproject/flightrecorders/hot-methods",
        "uid": "bf3167cd-e60e-11e9-9d97-52540051bad9"
    },
    "spec": {
        "recordingActive": false
    },
    "status": {
        "recordingActive": false,
        "recordings": [],
        "target": {
            "apiVersion": "v1",
            "kind": "Service",
            "name": "hot-methods",
            "namespace": "myproject",
            "resourceVersion": "2971",
            "uid": "a2f4f499-e0a9-11e9-8b59-52540051bad9"
        }
    }
}

[1] https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#status-subresource

@ebaron do you intend to add any more commits to this set? If not, do you mind if I squash before merging?

Nope, this is good to go.


[Radarr] Matching How to setup Custom Formats with flowchart

This will superseed #904 and close #904


Using react-intl

I did a search and it only came up with #210, this is exactly the problem I'm seeing with this library that I can't use react-intl to set tabbar titles or headers. It was closed a while ago and I'm not entirely sure why. IMHO i18n is a serious issue and I can't see how a navigation library would make it hard to use. Any thoughts?

I use react-intl. I accomplish it by using setParams from this.props.navigation inside componentWillMount. You may also want to use the same logic inside componentWillUpdate if that fits your needs better.
import { FormattedMessage } from 'react-intl';

class HomeScreen extends PureComponent {
  static navigationOptions = {
    title: ({ state }) => (state.params ? state.params.title : ''), // state.params is undefined on init
  };

  componentWillMount() {
    const { setParams } = this.props.navigation;

    setParams({
      title: <FormattedMessage {...messages.home} />
    });
  }
}

HomeScreen.contextTypes = {
  intl: PropTypes.object.isRequired,
};

@RobertSheaO has a reasonable workaround, but there are other techniques you can use work around the lack of shared context. If you wrap your whole app with the context provider, your header component will be able to render the <FormattedMessage>
If anybody has suggestions on improving the docs for this sort of situation, it would be greatly appreciated!

BTW, my original implementation looked like this, where I actually access context.
class HomeScreen extends PureComponent {
  static navigationOptions = {
    title: ({ state }) => (state.params ? state.params.title : ''), // state.params is undefined on init
  };

  componentWillMount() {
    const { setParams } = this.props.navigation;
    const { formatMessage } = this.context.intl;

    setParams({
      title: formatMessage({ ...headerMessages.home })
    });
  }
}

HomeScreen.contextTypes = {
  intl: PropTypes.object.isRequired,
};

I think it is a hack to set params on componentWillMount.
Instead, why not have a title component that uses <FormattedMessage> within it, and wrap the whole app/navigator with the IntlProvider ?

@ericvicenti I was only demonstrating how it could be done. My app is wrapped with <IntlProvider>

Do you need to use setParams on componentWillMount? Avoid it if you can.
If your whole app is wrapped with the provider, I think this should work:
const HomeTitle = () => <FormattedMessage>{headerMessages.home}</FormattedMessage>

class HomeScreen extends PureComponent {
  static navigationOptions = {
    title: ({ state }) => <HomeTitle />
  };
  ...
}

(Not related to react-intl but continues the same topic)
What about using navigation.navigate inside e.g. navigationOptions.header?
@RobertSheaO's workaround works perfectly in this case:
componentWillMount() {
    const { setParams, navigate } = this.props.navigation;
    setParams({
        navigate
    });
}

And after that, it's possible to do e.g.:
static navigationOptions = {
    title: 'Home',
    header: (state) => ({
        left: (
          <TouchableHighlight onPress={() => state.navigate('Somewhere')}>
            <Text>Go</Text>
          </TouchableHighlight>
        )
    })
};

Otherwise navigation.navigate is not accessible inside navigationOptions.

@ericvicenti's example worked for me with a small modification – I had to use the title option of the header config (navigationOptions.title only accepts a string). This works:
const HomeTitle = () => (
  <FormattedMessage id="headerMessages.home" defaultMessage="Home" />
);

class HomeScreen extends PureComponent {
  static navigationOptions = {
    header: (navigation) => ({
      title: <HomeTitle />
    }),
  };
  ...
}

Maybe the title and backTitle could be changed to also accept a ReactElement (in addition to string) which would be rendered inside the default Title and BackButton components. I think this would be the preferred way to render localized messages, because it's the same way titles are typically rendered inside components and doesn't require any extra configuration besides the normal context set by IntlProvider.

For others struggling with the i18n support - react-i18next might be a easier solution:
Wrapping the navigator like: https://github.com/i18next/react-i18next/blob/master/example/react-native-expo/App.js#L14 -> so all renders nicely on language change (https://github.com/i18next/react-i18next/blob/master/example/react-native-expo/js/pages/Home.js#L21)
Than just access t and set title on component like: https://github.com/i18next/react-i18next/blob/master/example/react-native-expo/js/pages/Home.js#L10
Prefer ICU format - support is there via https://github.com/i18next/i18next-icu
(there is also an option for polyglot -> i18next-polyglot)
Detect device language:
expo -> https://github.com/i18next/react-i18next/blob/master/example/react-native-expo/js/i18n.js#L7
react-native -> https://github.com/DylanVann/i18next-react-native-language-detector
Hope that helps others struggling with the correct setup for i18n.

Here our solution :
import React from 'react'
import { injectIntl } from 'react-intl'
import { createSwitchNavigator, createBottomTabNavigator } from 'react-navigation'
import Dashboard from 'pages/Dashboard'
import Loading from 'pages/Loading'

const AppNavigator = createBottomTabNavigator({
  Dashboard: {
    screen: Dashboard,
    navigationOptions: ({ screenProps }) => ({
      title: screenProps.intl.formatMessage({ id: 'page.dashboard.title' }),
    })
  }
})

const RootNavigator = createSwitchNavigator({
  Loading: Loading,
  App: AppNavigator,
}, {
  initialRouteName: 'Loading',
})

const App = injectIntl((props) => <RootNavigator screenProps={props} />)


Feat/#1 solving w2 assignment

Related issue 🚀

closed #1

Work Description 🖋

Modify offered skeleton python codes.
Create new markdown file that contains the output of source code.

PR Notice 🔖

Nothing special.

Now, week 2 assignment is safely solved.


Add HTML anchors to headings

Add HTML anchors to headings so that the links in ToC do not rely on a renderer to create the anchors (using an arbitrary slug function, that may not be compatible with the slugs currently created).
Example:
## Some heading

I think creating these anchors should probably be the default mode. We should add a --no-anchors option to disable creating them.


Min and max response times rounded to nearest int in web view

#1081

I'm not sure round() is sufficient here for both Python2 and Python3, since they behave differently...
For example:
Python 2:
>>> round(0.5)
1.0
>>> round(1.5)
2.0

Python 3:
>>> round(0.5)
0
>>> round(1.5)
2

thoughts?

@cgoldberg Good point. Should I create a rounding function in the util folder similar to this? https://stackoverflow.com/questions/31818050/round-number-to-nearest-integer

:+1:  nice...  thanks


Rendering partials directly ?

I dont think it is possible to render a partial directly, in order to achieve something like this :
app.get('/search/:s', function(req, res) {
        var s = req.params.s;
        //some search
        var data = {//search results};
        res.render('partials/search_results', data);
    });

Ok I am stupid. the naming convention of partials in templates doesnt apply here.


Private constructor on a java class

Hi,
I need to mock a legacy class that has a private constructor and a static method for its creation.
is there any solution to that problem ?

I would suggest adding a facade around that class to decouple your code, then mock out the facade instead


Java - Add ChatCompletions support

Motivation and Context

Description

Contribution Checklist

[ ] The code builds clean without any errors or warnings
[ ] The PR follows SK Contribution Guidelines (https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
[ ] The code follows the .NET coding conventions (https://learn.microsoft.com/dotnet/csharp/fundamentals/coding-style/coding-conventions) verified with dotnet format
[ ] All unit tests pass, and I have added new tests where possible
[ ] I didn't break anyone :smile:

@markwallace-microsoft Can we get a new review (your old one was auto-dismissed for some reason) then we can land this I think.


CASMTRIAGE-5957 Remove hardcodes

Description

Hardcodes for an xname made it into prereqs, preventing the cloud-init data from being updated properly.
The data was getting removed from each node, but then the same node was always being pinged for validation.
Checklist

[ ] If I added any command snippets, the steps they belong to follow the prompt conventions (see example).
[ ] If I added a new directory, I also updated .github/CODEOWNERS with the corresponding team in Cray-HPE.
[ ] My commits or Pull-Request Title contain my JIRA information, or I do not have a JIRA.

/backport release/1.5


In WPF mode HwndSource.SizeToContent needs to be set to SizeToContent.Manual without setting Width or Height to make it size to the parent, so that the UIElement assigned stretches to cover the whole Deskband.

Hello,
The latest version of this library has a small issue. In WPF mode, if you set a UIElement in the child class of CSDeskbandWpf, it will not stretch to the whole width of the deskband. Instead it will take the minimum width and the deskband will shrink to its size, leaving the rest of the deskband area empty.
To solve this issue, a small patch is needed to the CSDeskBandWpf class constructor. After creating HwndSource using HwndSourceParameters, assign the SizeToContent property on it to SizeToContent.Manual and it will behave the same as previous versions.

Thanks for the info!