[cinder-csi-plugin][docs] Disaster recovery instruction is missing

Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
What happened:
I try to figure out a disaster recovery concept for Cinder volumes which were previosly attached as PVC on a burn cluster. Imagine the cluster is destroyed (for whatever reasons), the volumes are still in the OpenStack backend present and I know the name/id
What you expected to happen:
After create a new cluster I should be able to recover PVCs:
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: csi-ssd-test
  namespace: demoapp
spec:
  accessModes:
  - ReadWriteOnce
  resources:
    requests:
      storage: 25Gi
  storageClassName: sata
  volumeMode: Filesystem
  volumeName: pvc-36b6d348-7eb0-4be9-a324-5315b22dbc04

Verified, the volume is in state available in backend.
After apply and try to mount on a Pod the PVC status is Pending.
I tried to set some annotations, like
    pv.kubernetes.io/bind-completed: "yes"
    pv.kubernetes.io/bound-by-controller: "yes"
    volume.beta.kubernetes.io/storage-provisioner: cinder.csi.openstack.org
    volume.kubernetes.io/selected-node: vm-k8s-01-ranchernode-3

but this gives only PVS status "Lost" and the error message on the attacher:
I0729 09:53:20.468006       1 csi_handler.go:219] Error processing "csi-ssd-test": failed to attach: persistentvolume "pvc-36b6d348-7eb0-4be9-a324-5315b22dbc04" not found
Of course, the volume should be attached to the node, but this makes no difference
Anything else we need to know?:
My expectation would be, the csi-attacher is able to connect the volume from the node on the new cluster without copy the data on the node level. Maybe I have overseen the trick.
Environment:

openstack-cloud-controller-manager(or other related binary) version: 1.18
OpenStack version: unknown
Others: Ubuntu 18.04 host system

this seems a valid use case but don't know this is a doc only issue or need some code change..

/remove-lifecycle stale

@eumel8 You need to manually create PV also along with pvc? Have you tried it

@ramineni yeah, it works!
$ openstack volume show e129824a-16fa-486d-a8c7-482945a626ff
+--------------------------------+-----------------------------------------------------------------+
| Field                          | Value                                                           |
+--------------------------------+-----------------------------------------------------------------+
| attachments                    | []                                                              |
| availability_zone              | eu-de-01                                                        |
| bootable                       | false                                                           |
| consistencygroup_id            | None                                                            |
| created_at                     | 2020-11-30T15:16:23.788791                                      |
| description                    | Created by OpenStack Cinder CSI driver                          |
| encrypted                      | False                                                           |
| id                             | e129824a-16fa-486d-a8c7-482945a626ff                            |
| multiattach                    | True                                                            |
| name                           | pvc-ba482e24-2e76-48fd-9be5-504724922185                        |
| os-vol-host-attr:host          | pod07.eu-de-01#SATA                                             |
| os-vol-mig-status-attr:migstat | None                                                            |
| os-vol-mig-status-attr:name_id | None                                                            |
| os-vol-tenant-attr:tenant_id   | 7c3ec0b3db5f476990043258670caf82                                |
| properties                     | cinder.csi.openstack.org/cluster='kubernetes', readonly='False' |
| replication_status             | disabled                                                        |
| shareable                      | True                                                            |
| size                           | 9                                                               |
| snapshot_id                    | None                                                            |
| source_volid                   | None                                                            |
| status                         | available                                                       |
| storage_cluster_id             | None                                                            |
| type                           | SATA                                                            |
| updated_at                     | 2020-12-06T22:51:30.032404                                      |
| user_id                        |<PHONE_NUMBER>e14245843bfe20e6f05024                                |
| volume_image_metadata          | {}                                                              |
+--------------------------------+-----------------------------------------------------------------+

cat recover-pv.yaml
apiVersion: v1
kind: PersistentVolume
metadata:
  annotations:
    pv.kubernetes.io/provisioned-by: cinder.csi.openstack.org
  name: pvc-ba482e24-2e76-48fd-9be5-504724922185
spec:
  accessModes:
  - ReadWriteOnce
  capacity:
    storage: 9Gi
  claimRef:
    apiVersion: v1
    kind: PersistentVolumeClaim
    name: sib
    namespace: sib
  csi:
    driver: cinder.csi.openstack.org
    volumeAttributes:
      storage.kubernetes.io/csiProvisionerIdentity:<PHONE_NUMBER>466-8081-cinder.csi.openstack.org
    volumeHandle: e129824a-16fa-486d-a8c7-482945a626ff
  nodeAffinity:
    required:
      nodeSelectorTerms:
      - matchExpressions:
        - key: topology.cinder.csi.openstack.org/zone
          operator: In
          values:
          - eu-de-01
  persistentVolumeReclaimPolicy: Delete
  storageClassName: sata
  volumeMode: Filesystem

cat recover-pvc.yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  annotations:
    volume.beta.kubernetes.io/storage-provisioner: cinder.csi.openstack.org
  name: sib
  namespace: sib
spec:
  accessModes:
  - ReadWriteOnce
  resources:
    requests:
      storage: 1Gi
  storageClassName: sata
  volumeMode: Filesystem

remove/crash pvc/pc from the dirty cluster
check if volume is available in OpenStack
re-attach pv+pvc to a new cluster
check available data

Great! I think that's worth to mention as recover strategy in docs.

@eumel8 maybe you can help to doc this by adding a PR? thanks


[doc] stream.fetch type is response type.

see #2128

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.

hi @zhoukekestar  建议doc 相关可以提到 doc 分支，  官网同步的文档是在doc 分支的

[doc] stream.fetch type is response type.
Switch to doc branch.


How to implement buttonText

Hello i want to change the text from Sign in with apple to Sign Up with apple, because i get issues from apple review in my register page.
I already try like this but the button was gone :
{SignInWithAppleButton({
	buttonText: "Sign Up With Apple",
	buttonStyle: styles.appleBtn,
	callBack: this.appleSignIn,
})}

please help my deadline was 4 days again for up to app store :(

any update :) ?

Hello @tanz98,
Please install latest version of this lib 2.0.0 . We have fixed button text issue. Merged the following PR for the same:
https://github.com/SystangoTechnologies/react-native-apple-authentication/pull/32/


[WFLY-17803] Include the Elytron extension in appclient.xml

https://issues.redhat.com/browse/WFLY-17803

Thanks @bstansberry!

Thanks @scottmarlow


error<EMAIL_ADDRESS>The engine "node" is incompatible with this module. Expected version ">=16.0.0". Got "14.19.0"

I am using vercel and vercel only supports 14.x and 12.x.
What should I do?

yarn install --ignore-engines


genesis election provider

Should go on top of https://github.com/paritytech/substrate/pull/8912

We don't have proper apparatus to test this properly now.
The old scheme, where if Self::round() in election-provider was 1 we would always run onchain, it  had two flaws:

It is ugly.
If we plan multiple sessions at genesis, this would not work. This is the default case with pallet-session which plans two sessions at genesis.

I've tested this stuff in a local --dev chain with 1 session per era and it works well.

After a bit of self-review, the amount of code added would be less id we do
- fn new_session(session_index: SessionIndex) -> Option<_> {}
+ fn new_session(session_index: SessionIndex, is_genesis: bool) -> Option<_> {}

but then this will be a breaking change. But in the current scheme, the new functions added are not breaking and have an auto-implementation.

one test is failing though

one test is failing though

Yeah, fixed.

Merging this as-is, since it will be re-reviewed in the downstream PR.
@thiolliere it is now time push for the merge of #8912


NM limits OVS port name

Following state
interfaces:
- name: a0123456
  state: up
  type: ovs-interface
- bridge:
    options:
      stp: true
    port:
    - name: a0123456
  name: ovs-br11
  state: up
  type: ovs-bridge

Fails with "onnection-error-quark: connection.interface-name: 'ovs-port-a0123456': interface name is longer than 15 characters".
There is no need to explicitly set connection.interface-name for OVS ports which are not represented by any interface. We should drop that in order to allow users to connect OVS Bridges to ports with names longer than 6 characters.

Fixed by https://github.com/nmstate/nmstate/pull/723


[backport v2.7-branch] soc: arm: stm32 mcus should execute stm32_power_init in PRE_KERNEL_1

soc: arm: stm32 mcus should execute stm32_power_init in PRE_KERNEL_1
Change the stm32_power_init to be executed PRE_KERNEL_1
for all the devices with the low power mode (power.c)
When GPIO and UART are not yet up and running.
includes the soc/arm/st_stm32/stm32u5/power.c
Fixes https://github.com/zephyrproject-rtos/zephyr/issues/42915
Signed-off-by: Francois Ramu<EMAIL_ADDRESS>

replaced by https://github.com/zephyrproject-rtos/zephyr/pull/43771


Preserve sign of thrust_coefficient

🦟 Bug fix
Fixes #1399
Summary
Preserve the signs of thrust and thrust_coefficient so that ThrustToAngularVec() is the inverse of AngularVelToThrust(). This provides support for clockwise thrusters.
I modified the ThrusterTest fixture to also preserve the signs of thrust and thrust_coefficient. I added one test. All tests pass.
make codecheck seems to generate a lot of unrelated cppcheck problems, perhaps I have something set up wrong?
./tools/clang_tidy.sh seemed to get stuck on /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/variant -- I'm not sure what is going on there.
Checklist

[x] Signed all commits for DCO
[x] Added tests
[x] Updated documentation (as needed)
[ ] Updated migration guide (as needed)
[x] codecheck passed (See contributing)
[x] All tests passed (See test coverage)
[ ] While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

FYI @arjo129 @mabelzhang

DCO check failed; I just uploaded my key, so it should succeed next time. Closing & reopening.

Thanks @arjo129. I will add the additional documentation and tests.

I think this addresses all of the feedback:

I added a test to cover the <use_angvel_cmd> case with a negative <thrust_coefficient>.
I updated the documentation in Thruster.hh to note that a negative <thrust_coefficient> means clockwise rotation.

I also made a few other changes to the documentation in Thruster.hh:

There were conflicting comments as to the default for <use_angvel_cmd>, I verified that it is false and updated the comment.
I noted that the parameters <min_thrust_cmd> and <max_thrust_cmd> also apply to angular velocity in the <use_angvel_cmd> case. This is a bit awkward since the units are either N or rad/s. Also, the parameters should probably be named <min_cmd> and <max_cmd>, but deprecating the old parameters and adding new ones seemed like overkill.

I'm happy for other feedback.

@chapulina please take another look. ignition_gazebo-ci-pr_any-homebrew-amd64 failed 1 test but for unrelated reasons? Thanks

Hello,
I am trying to build Ignition from source with this patch but I am having problems matching all the packages versions.
If I use collection-garden.yaml it gets everything from the main branches, it builds but then I have problems with packages integrating ros and ignition. I guess that is probably expected since the main branches receive updates daily.
So, what I have been trying to do is to figure out which specific commits I should checkout to build garden with this patch. Any suggestions?

Hello, @Rezenders
Please see PR#2 in bluerov2_ignition. It's not complete, but it does include the hashes you are looking for.

Thanks for the reply. I will try it!

Hi,

I am trying to also use this version with the hashes you referred to in a previous post. However, when I am compiling it seems to me that there are quite some files missing in the ign-common package. Above is a screenshot of the folders and the content of ImageHeightmap.hh. I am trying to compile using a system with Ubuntu 22.04 and ROS2 Humble.
Below you can see the error that happens when I try to build with colcon build --merge-install --cmake-args ' -DBUILD_TESTING=OFF' ' -DCMAKE_BUILD_TYPE=Release'

Do you have any suggestions?

You are missing the common::graphics component due to a lack of freeimage, sudo apt install libfreeimage-dev should fix it.

Thanks @mjcarroll for your reply. However, I still have the same error.

Update: I was indeed missing libfreeimage-dev, so I went through installing all the dependencies again and found I was missing some others as well. This resolved the issue, thanks for the help!


Resize the screenshot image to be a slightly smaller before uploading

It doesn't need to be a 1:1 representation of the screen.  It's a little too big.

Can use https://github.com/gabek/GitYourFeedback/blob/master/GitYourFeedback/Classes/UIImageExtension.swift#L13


chore: inline dcos-ui-update-service-client

reorganizing our code in order to get rid of a couple of "plugin"-mechanisms.

:tada: This PR is included in version 2.152.11 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


The README needs to explicitly list selling points of the framework

(I'm just making this issue so that we don't forget about this.)
Right now, I feel that the README does a poor job of selling the framework to the possible user. I think it is necessary that we explicitly list some big selling points of the framework. Some selling points I came up with are:

regl greatly simplifies managing the state machine of WebGL
regl makes it easy to load extensions and to adapt the program after the limits of the target device
regl, in difference to many other WebGL frameworks, has support for easy usage of instanced rendering
regl integrates easily with modules from other frameworks, such as stack.gl.
regl is very small, and has very little bloat.
regl has much less overhead compared with other frameworks. It is near as fast as hand-optimized WebGL.
regl performs strong validation and error checking.

If you can come up with some more selling points, please tell me!

I am working on this.

Resolved with PR #115


sort the result according to the Lucene scoring

I don't know what is the current sort order, but you may want the results sorted according to the Lucene scoring:
orientdb {GratefulDeadConcerts}> select from Songs where name LUCENE "down";

----+-------+----+-------------------------------+---------+------------+--------------+-----------+--------------+---------------
#   |@RID   |type|name                           |song_type|performances|out_written_by|out_sung_by|in_followed_by|out_followed_by
----+-------+----+-------------------------------+---------+------------+--------------+-----------+--------------+---------------
0   |#12:344|song|CANT COME DOWN                 |original |1           |#9:8          |#9:335     |null          |null
1   |#12:351|song|DOWN SO LONG                   |cover    |2           |[size=2]      |[size=2]   |null          |null
2   |#12:572|song|WALK DOWN THE STREET           |cover    |1           |#9:469        |#9:469     |null          |null
3   |#12:164|song|TO LAY ME DOWN                 |original |63          |#9:93         |#9:8       |[size=31]     |[size=28]
4   |#12:4  |song|GOING DOWN THE ROAD FEELING BAD|cover    |293         |#9:131        |#9:8       |[size=46]     |[size=39]
5   |#12:235|song|DOWN IN THE BOTTOM             |cover    |9           |#9:262        |#9:50      |[size=7]      |[size=3]
6   |#12:16 |song|BEAT IT ON DOWN THE LINE       |cover    |325         |#9:169        |#9:50      |[size=65]     |[size=60]
----+-------+----+-------------------------------+---------+------------+--------------+-----------+--------------+---------------

7 item(s) found. Query executed in 0.144 sec(s).

I found that I need to add order by $score desc to get results in order of most relevant first - the default appears to be ordering by least relevant first (??)

Also note, the score is language-dependent - the english analyzer (for example) might produce different scores from the standard or danish analyzer, etc.

@mindplay-dk depends on the query
can you show some example?

@maggiolo00 I just had a single class with title and body string fields, populated with a few records for testing, and a simple query like select from Article where body LUCENE "cats^4 dogs" - I had to add order by $score desc to make the boosted record with the word "cats" come up first.


Title intro button variation

The title intro variation with a button inside uses a new structure to avoid long texts to break the layout. Use a <span> with a new .ls-text-title class was a good solution. The image below illustrate the usage.

The best way the test this PR is create the same title structure in a example painel. In the future the email marketing team will release the entire panel example on the documentation.
close #1657

@itumoraes I don't see a sample in documentation.

@deividmarques As I commented on the PR, you need to create the same image structure to test it. I chose to not change any of the actuals panels because is a kind of doc for each project. Our team will release a example in the future with our panel as example.

ok @itumoraes  :+1:

:+1:


Use org.jetbrains.annotations.Nullable

Closes #22

KEAL.

It's not a good idea to use @Nullable T in Kotlin, you should instead use T?

It's not a good idea to use @Nullable T in Kotlin, you should instead use T?

There's no @Nullable T in Kotlin code, but Kotlin code's output.

OOOOOOOOOOOOOoo


Show Next Event

Show the start time of the next upcoming event (as a reminder)

Completed by PR #93


Multi example doesn't build

I tried to run the multi example but I get several errors.
The first time:
$ ./gradlew run
Starting a Gradle Daemon, 3 stopped Daemons could not be reused, use --status for details
Download https://plugins.gradle.org/m2/com/typelead/eta/com.typelead.eta.gradle.plugin/0.7.9/com.typelead.eta.gradle.plugin-0.7.9.pom
Download https://plugins.gradle.org/m2/gradle/plugin/com/typelead/gradle-eta/0.7.9/gradle-eta-0.7.9.pom
Download https://plugins.gradle.org/m2/gradle/plugin/com/typelead/gradle-eta/0.7.9/gradle-eta-0.7.9.jar

> Task :setupEnvironmentEta
Downloading etlas from: http://cdnverify.eta-lang.org/eta-binaries/etlas-<IP_ADDRESS>/binaries/x86_64-osx/etlas ; caching to /Users/Julien/.gradle/caches/etlas/<IP_ADDRESS>/etlas

> Task :setupEnvironmentEta FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':setupEnvironmentEta'.
> No value has been specified for this provider.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 24s

However if I run the same command again, it seems to go further, but breaks:
$ ./gradlew run
> Task :run FAILED
Exception in thread "main" java.lang.NoClassDefFoundError: eta/text/Utils
        at hio.hello.Mod.$wa(Mod.hs)
        at hio.hello.Mod.helloText1(Mod.hs)
        at hio.hello.Mod$helloText.thunkEnter(Mod.hs:10)
        at eta.runtime.thunk.CAF.evaluate(CAF.java:30)
        at main.Main$combineTextByteString.thunkEnter(Main.hs:10)
        at eta.runtime.thunk.CAF.evaluate(CAF.java:30)
        at text.data.text.Show$sat_s3JHO.thunkEnter(Show.hs)
        at eta.runtime.thunk.UpdatableThunk.evaluate(UpdatableThunk.java:19)
        at base.ghc.io.handle.Text.$wa7(Text.hs:586)
        at base.ghc.io.handle.Text.hPutStr2(Text.hs:553)
        at main.Main.main1(Main.hs)
        at main.Main$main1.applyV(Main.hs)
        at eta.runtime.exception.Exception.catch_(Exception.java:129)
        at main.Main.main9(Main.hs)
        at main.Main.DZCmain(Main.hs:13)
        at main.Main$DZCmain.applyV(Main.hs:13)
        at eta.runtime.stg.Closures$EvalLazyIO.enter(Closures.java:108)
        at eta.runtime.stg.Capability.schedule(Capability.java:183)
        at eta.runtime.stg.Capability.scheduleClosure(Capability.java:123)
        at eta.runtime.Runtime.evalLazyIO(Runtime.java:284)
        at eta.runtime.Runtime.main(Runtime.java:277)
        at eta.main.main(Unknown Source)
Caused by: java.lang.ClassNotFoundException: eta.text.Utils
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 22 more

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':run'.
> Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_172.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 16s

I just tried on another computer (Windows this time), I still can't build it.
First error is exactly the same.
Second (and next tries) all result in the same error:
$ ./gradlew run
> Task :setupEnvironmentEta
> Task :resolveDependenciesEta UP-TO-DATE
> Task :java-deep:injectDependenciesEta
> Task :java-deep:compileJava UP-TO-DATE
> Task :java-deep:processResources NO-SOURCE
> Task :java-deep:classes UP-TO-DATE
> Task :java-deep:jar UP-TO-DATE
Building eta-java-interop-<IP_ADDRESS> (lib)...
Building bytestring-<IP_ADDRESS> (lib)...
etlas.exe: Failed to build bytestring-<IP_ADDRESS> (which is required by
text-<IP_ADDRESS>). See the build log above for details.
Failed to build eta-java-interop-<IP_ADDRESS> (which is required by text-<IP_ADDRESS>).
See the build log above for details.
> Task :hio:installDependenciesEta FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':hio:installDependenciesEta'.
> [C:\Users\sir4ur0n\.gradle\caches\etlas\<IP_ADDRESS>\etlas.exe, --select-eta=0.8.0b2, deps, lib:hio] failed with ExitCode 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 18s
6 actionable tasks: 3 executed, 3 up-to-date

Jumm, so you did the test in a fresh computer with no previous tries to build the example, right?
What version of the plugin are you trying? the master version?
I'll try using the gradle wrapping instead a system install (i am using an external gradle 4.7) to try reproduce the error.

Yes, that was on a fresh clone of this repo, never tried to install it before.
I was on master branch.
I was using gradlew which is supposed to make the build fully reproducible 😄

Hi, sorry for the delat but i get to reproduce the error, wiping out my local ~\eta\0.8.0b2 and ~\etlas\0.8.0b2.
We have to investigate why but the versions used in master don't work anymore (and it should!)
In the meanwhile i've tried newer versions of etlas, eta and libs and they have worked for me:

multi/build.gradle

plugins {
    id 'com.typelead.eta' version '0.7.9'
    id 'application'
}

allprojects {
  repositories {
    mavenCentral()
  }
}

eta {
    version = '0.8.6b2'
    etlasVersion = '<IP_ADDRESS>'
}

dependencies {
    compile eta('text:<IP_ADDRESS>')
    compile eta('memory:0.14.14')
    compile project(':hio')
    compile project(':java-shallow')
}

multi/hio/build.gradle

plugins {
    id 'com.typelead.eta'
}

dependencies {
    compile eta('text:<IP_ADDRESS>')
    compile eta('bytestring:<IP_ADDRESS>')
    compile project(':java-deep')
}

hope it helps!

Your fix seems to work 😄 Waiting for the PR to be merged before closing.

Closing since the relevant PR was merged.


FAQ/ Feature Request / Feedback

I want to ask if the entire comment line after a tag can be highlighted or any settings exists to enable/disable that.
Also It would be nice if I could only see the colour of the anchor in the side bar instead of the icon and the text of what tag it is! Maybe a setting to enable that?!
Line number can stay in there! I made the concept in the image below. It would make the UI much more cleaner and less clutter of repetitive stuff!

Hello!
While I would love to implement this as feature I'm fairly certain vscode's extension API unfortunately does not provide us with a way to change the color of the file tree item text. I'll label this accordingly so we can keep track for future reference.
Thanks for your suggestion though!


Performance Issue: GTX 1080 Tensorflow training is stuck indefinitely | GPU Load 0%

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10 Version 2004 Build 19041.928
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary): source
TensorFlow version (use command below): Tensorflow = 2.4.0 / Keras = 2.4.3
Python version: 3.6.5 64-bit (virtualenv)
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version: CUDA = 11.0.194 / CuDNN = 8.0.4  | Nvidia Driver = 460.79
GPU model and memory: Nvidia GTX 1080 / 8GB Memory / 320.3 GBs Bandwitdh
Other System Specs : Intel i5-3570K @4.1GHz | 16GB DDR3 RAM @1360Mhz | 5400RPM HDD (where the code is executed from)
IDE:  Visual Studio Code 1.55.2

Describe the current behavior
Running a custom code to train a BERT transformer on sentimenent analysis traning dataset.
Batch Size = 8
Sequence Length = 128
Dense Layers = 1 with 512 neurons
_The GPU VRAM fills up to around 7.5GB without any OOM, however the GPU Load is 0~1%, and a CPU load is fluctuating between 60% ~ 100%
The 1st training Epoch is stuck there indefinitely, without any progress in the training progress bar.
If I trained using the CPU, it is slow, but there is a progress and it is not stuck.(CPU Load 100% all the time)
Describe the expected behavior
Running another non-custom code brought from github to test if the GPU is working or not,
After executing it, the GPU VRAM is filled at around 7.5GB with a GPU load of 22% to 27%.
I am expecting a similar behavior with the custom code.
Standalone code to reproduce the issue

BERT.ipynb (The BERT Transformer) <-- The code that exhibits the current behaviour.
cnn_tutorial.ipynb <-- A code that exhibits an expected behaviour to ensure TF is running on GPU.
train.tsv <-- Training dataset for the custom code.
Attachments.zip

Other info / logs Include any logs or source code that would be helpful to
diagnose the problem. If including tracebacks, please include the full
traceback. Large logs and files should be attached. (None)
@bhack

@MuSamiNaf
I am unable to access the code shared, can you please share a colab gist with the issue reported.


Action::setCreatedAt() vs  Timeline::setCreatedAt()

Salut Stéphane,
There is a setCreatedAt() method in both the Action and Timeline class.
Since we start to use the timeline bundle some time after the project we had to generate the timeline for the various actions.
$spy = $this->get('spy_timeline.action_manager');

foreach ($users as $user)
{
    $subject  = $spy->findOrCreateComponent($user);
    $action = $spy->create($subject, 'user_register');
    $action->setCreatedAt($user->getCreatedAt());
    $spy->updateAction($action);
}

The eaxample above correctly set the createdAt field for actions, but not in the timelines. Since the Timelines are sorted using the Timeline::createdAt all the actions are not sorted correctly.
I would make one of theses changes to the Timeline class
    /**
     * {@inheritdoc}
     */
    public function setAction(ActionInterface $action)
    {
        $this->action = $action;

        if($action->getCreatedAt())
                $this->setCreatedAt($action->getCreatedAt());

        return $this;
    }

Or

class AbstractTimelineManager
{
// ....

    public function createAndPersist(ActionInterface $action, ComponentInterface $subject, $context = 'GLOBAL', $type = TimelineInterface::TYPE_TIMELINE)
    {
        /** @var TimelineInterface $timeline */
        $timeline = new $this->timelineClass();

        $timeline
            ->setType($type)
            ->setAction($action)
            ->setContext($context)
            ->setSubject($subject)
        ;

      if ($action->getCreatedAt())
                $timeline->setCreatedAt($action->getCreatedAt());

        $this->objectManager->persist($timeline);
    }
}

Let me know what you think about this and ill make a PR

Hi,
I understand your use case but it could not be the same for everyone.
CreatedAt field should represent the time where the entity was created. In your case, you're cheating and put a custom createdAt field in action & timelineClass.
IMO, the action->createdAt and timeline->createAt could be different. If you want to have a referencial time, you could add an other one field to the Action and Timeline entity but i'm not sure it's a good thing to use createdAt for this.

Hi,
I agree that createdAt is probably not the right field to change, but we should probably have a way to add actions 'back in time'
A more typical use case would be for example if a user post need to be moderated, you will probably want to display the action on the timeline "User published an article on YYYY-MM-DD" where the date is the actual time the post was submitted, and not the date where the moderator approved it.
Thanks,
Samuel

Hi,
Yes, it's true, but it seems to be related to your domain. We can't do it for any project which use TimelineBundle/Timeline. IMO, You should override the timeline/action class or the manager in your side then doing your business, we can't provide it to everyone.
Thanks ;)

I had a second look at this issue since its still searching for a solution... Looking at the QueryBuilder, i think it would be able to override the QueryBuilder or the TimelineManager to return the actions sorted with a custom entity field ?
Thanks for your input,
Samuel

Hi,
Yes, I guess you should do it with a custom field then override QB or Managers.

Thanks, i'll give it a try!


makeCall.php returns HTTP ERROR 500

Hello,
We want to integrate Programmable Voice in our Android & iOS Applications.
Downloaded Twilio Voice Quickstart for Android and followed all the steps mentioned in readme. At the server side we are using php and trying to configure server setup by following steps mentioned in voice-quickstart-server-php. After configuring this we are trying to make a call using makeCall.php, it gives HTTP ERROR 500. We did not modify any code in this file. We just modify the requested data such as KEY_SECRET, API_KEY.

Hi @shashi180493
Thanks for reaching out.
Is there any more information that came with the HTTP 500 error, such as debugging message that explains what might have caused the 500 response? Did you have a Twilio Call SID when this happened?

Hi @bobiechen-twilio
Thanks for the replay.
Please check following information which i have:
DEBUG EVENT SID : NOb43cac11b10d9b93c1515ca0bb97f3fc
CALL SID : CAebbd98ffbead1f0ca6f1fff45d91e4d9
Here is the message that i received "An attempt to retrieve content from https://myurl/makeCall.php returned the HTTP status code 500"

Thanks for the update @shashi180493.
As the error message suggested, you might want to check if your app endpoint is reachable and is returning a valid TwiML response.

@bobiechen-twilio
I tried to hit URL directly in browser it is not returning anything, we did not modified code of this file just added callerNumber. Can you please help us to identify the issue. I have emailed you other details please check email and help us to fix this problem.
Thank you.

Hi @shashi180493
At this point we don't know what might have caused the problem since Twilio is not able to fetch a valid response from your server endpoint at all. Have you tried to print debugging message in your makeCall.php endpoint and see how far it went and why there was no TwiML returned?

@bobiechen-twilio
Yes we tried to debug it, it returns error at following line.
$response = new Twilio\Twiml();

Hi @shashi180493
I am sure some error message was printed out about the error? Did you follow the README and run the composer install command to download the Twilio PHP helper library?

No I am not getting any error message it is showing HTTP ERROR 500.
Yes, I follow README and excuted  "composer install" command to download helper library.

Hi @shashi180493
How does the PHP app server go when you test it by running locally?

Hi @bobiechen-twilio
We didn't tried this in local, but other files such as accessToken.php & placeCall.php are working fine on our server. But makeCall.php is returning error on $response = new Twilio\Twiml(); this line.

Hi @shashi180493
Have you tried this?
$response = new Twilio\TwiML\VoiceResponse();

My PHP quickstart is using the 5.16.3 of Twilio PHP helper library. Perhaps you are using a newer version of the library in which the APIs are slightly different.
Let us know if this helps.

Hi @bobiechen-twilio
Using $response = new Twilio\TwiML\VoiceResponse();, It is working now,
Thank you so much for your support @bobiechen-twilio.


Save LN peer metadata to indexedDB

I also moved the peer connection info to indexedDB.
TODO:

[x] Add tests
[x] Test to make sure this works myself
[x] bring back per-node connections

needs rebase

needs rebase


Allow removing binding to Alt-L

I'm very fond of using the Alt-L keys to lowercase a word, like it works by default. I couldn't find a way to get the old behaviour.

Where does this work by default? It does not seem to work by default in a clean zsh, but it does however work in bash (which I assume is what shell it worked in for you beforehand).

This is due to ESC+L bindkey at lib/key-bindings.zsh@L21, which is─accidentally─the same keyboard sequence as ALT+L.
On a clean zsh (zsh -f) the key binding runs down-case-word, here's the command you can run to use that by default:
bindkey '^[l' down-case-word

@moore3071 here's a demo of how this works: https://asciinema.org/a/6oz7ljc51uc9l1jwwjvws1k80

Cool :+1:

@mcornella I came up with this, which runs zle down-case-word when run on a non-empty line, and ls otherwise.
#! /usr/bin/env zsh

function _magic-alt-l () {
    if [[ -z "$BUFFER" ]]; then
        echo ls
        ls
        zle send-break
    else
        zle down-case-word
    fi
}
zle -N _magic-alt-l

bindkey '\el' _magic-alt-l

The only minor issue I have with this is that it outputs an empty line after the ls output.

The way I've found that works well is modifying $BUFFER and then running zle accept-line:
if [[ -z "$BUFFER" ]]; then
    BUFFER="ls"
    zle accept-line
else

Though I'm trying to find one where it just runs ls below the prompt without cluttering the prompt. I'll see what I find.

That's great, just what I was looking for. It even gives highlighting for the ls that ends up in the prompt.
Previously, I tried this, which didn't work.
if [[ -z "$BUFFER" ]]; then
    BUFFER="ls" zle accept-line      # This doesn't work
else


Unclear documentation

Documentation  Feedback
General Observations:

The documentation requires improvements for clarity and comprehensiveness. I’m willing to assist with these enhancements but would appreciate some guidance.

Specific Issues Noted in the Cookbook Page (https://intertwin-eu.github.io/interLink/docs/Cookbook/)

Install interLink Section:

Subsection: Deploy Remote Components (if any)

Issue: The phrase "if any" is vague. What is meant by this?

Interlink API Server:

Clarity on Terminology:

Main Kubernetes Cluster: What distinguishes the "main" cluster? Is there a secondary cluster?
SSH Bastion:  the meaning of "bastion" is not clear?

Start the Tunnel:

SSH_TUNNEL_NODE_PORT:

Node Clarification: Which node are we referring to? Is it the same as the "main Kubernetes cluster" mentioned earlier?

Error Encountered:

Following the steps in release 0.3.1-patch2, I encountered the following error:$HOME/.interlink/bin/ssh-tunnel -keyfile $HOME/.ssh/id_ecdsa
2024/11/08 14:29:25 unable to read private key: open : no such file or directory

Expected Behavior: The final step states: "(...) THIS WILL CORRECTLY FAIL (...)". What does "correctly fail" mean?

Plugin Service Section:

Create Utility Folders:

Environment Assumption: I created the utility folders earlier. Should I be on a different machine when executing this steps?
Plugin Clarification: Which "plugin" is being referenced here?

Create Configuration File:

User Accounts: The instruction states, "you should know by previous steps what to put in place of myusername here." User accounts haven't been discussed in the guide so far. I don't really know where we're runnning now.

Environment

Operating System: Ubuntu 24.04
Other related components versions:

Hi @dciangot , thanks for reaching back! I moved on a little bit with interLink by using the Deployment Guide. I am almost being able to give something back to the docs but somethings are still fuzzy to me. Maybe after the holidays we could schedule a discussion?

Sure, I just retried following the instructions... and I can understand. The current status is a mess.
Let's find a slot soon then via slack works for me.

@chbrandt in 0.3.4 the doc has been a bit reworked. Do you mind taking another try and see if this is going in the right direction?


[False-Positive] Prefer Inline Declarations, HAS_REDIRECTION

Please, check: https://github.com/SAP/code-pal-for-abap/blob/master/docs/checks/scope-of-variable.md

yea, the prefer_inline rule has some issues, its still experimental 😄


How to include osqp in a CMake project

Hi all,
this might be a basic question.
I've just built and installed osqp from source and I want to include it in a custom CMake project:
cmake_minimum_required(VERSION 2.8)

project(osqp_test)
find_package(osqp)

if(${osqp_FOUND})
    message(STATUS "Found osqp")
endif

add_executable(${PROJECT_NAME} "main.cpp")
target_link_libraries(${PROJECT_NAME} ${osqp_LIBRARIES})

When I run find_package the library is correctly found, but the standard CMake variables such as oscp_INCLUDE_DIRS or `osqp_LIBRARIES are not created.
The only variables defined are:
-- osqp_CONFIG=/usr/local/lib/cmake/osqp/osqp-config.cmake
-- osqp_CONSIDERED_CONFIGS=/usr/local/lib/cmake/osqp/osqp-config.cmake
-- osqp_CONSIDERED_VERSIONS=unknown
-- osqp_DIR=/usr/local/lib/cmake/osqp
-- osqp_FOUND=1
-- osqp_VERSION_COUNT=0
-- osqp_VERSION_MAJOR=0
-- osqp_VERSION_MINOR=0
-- osqp_VERSION_PATCH=0
-- osqp_VERSION_TWEAK=0
-- osqp_test_BINARY_DIR=/home/mcamurri/build-osqp-Desktop-Default
-- osqp_test_SOURCE_DIR=/home/mcamurri/osqp

Where  the INCLUDE_DIRS and LIBRARIES CMake variables are defined?

The cmake package addition should be working with the target_link_libraries command. That's what has been added in https://github.com/oxfordcontrol/osqp/pull/41. There are a few links in that description about how to add OSQP with cmake. Do you have issues or errors with it?

PkgConfig normally produces variables like oscp_INCLUDE_DIRS or osqp_LIBRARIES
I thought this was standard also for the plain find_package() cmake command, but looking into the official doc it seems not (maybe it was in the past).
I have no issues in doing as #41 suggest so I close the issue.
Sorry for bothering.


20.2 : can't access settings on iOS 17 Obsidian 1.4.8

I updated to the new versioning system (v3)
I am using the couchdb docker image.
Synchronisation works fine between my macOS and android devices.
Howeever, in iOS, the plug-in seems to fail to load properly. The cog icon does not appear and I cannot enter the settings.
I have tried to uninstall and re install the plug-in multiple times.
see screen capture below:

Thank you for reporting this issue! And sorry for the delay!
This problem occurred when the plug-in encountered an error before registering the setting dialogue.
Since v0.20.4, it has been fixed (At least, the setting dialogue could be opened). Would you mind if I ask you to check the behaviour, please?

Thank you for the fix.
The settings can be opened again but now, the Setup wizard has some issues:

the buttons Next, Copy setup URI and Open setup URI are not responsive.

Therefore I cannot easily setup the iPhone as a subsequent device.
Android does not have this issue.

Thank you for checking this out! I am relieved to hear that things have improved a bit.
I hope to solve the problems that have been cleared out. May I ask for a bit more detail?

About Not responsive
Do they just Ignore your taps? or cause a freeze?
Is the command Copy the Setup URI from the Command palette available?

I am sorry for your inconvenience, thank you for your cooperation in advance!

I don't have the iPhone anymore so I won't be able to troubleshoot further. Apologies.
At the time I wrote my previous message, the setup wizard buttons were ignoring my taps. No freeze.
Copy the Setup URI did not work. (ignoring my taps)

I have this same issue on my iOS device. I am on the latest version of the plugin, I can access the settings app but I can't use Open setup URI, trying to tap on it does nothing.


Lexer seems to not understand keep notation, but the parser does

As far as I can tell, 'keep' expressions (k[hl]?\d+) are being ignored because the lexer does not have the token for it defined. When debugging, parseKeep is skipped. TokenType is missing a Keep entry. (Apparently it should just be an Identifier, but still, the keep functionality does not appear to be accessible).

This was pretty tricky to fix! I eventually traced it back to a couple of bugs. If the input stream ends with an identifier token, the buffer was never terminating because apparently regex.test(null) returns true, so the identifier was ending up "khnull", which obviously wouldn't match anything.
Secondly, there were a couple of key places where the parsing context was switched to parse a dice roll expression (4d6) rather than a dice expression, which includes the additional modifiers. I've fixed it, and added some regression tests as part of my latest update. So as of 1.5.0, which has been published, this should be fixed.
Thanks for your help, and let me know if you have any more trouble!


Task 3

Issue: #3

Also your Task 3 output is incorrect. We require the list of files of each of the folders in the PATH environment variable.


Hotfix - #27 type annotations for imports do not work

TODO:

[x] failing test case
[x] fix

Linking #27

:beers:


fix(FocusScope): document.activeElement doesn't reflect the correct focused element

@enkot  do help me check more use cases ya! we still need this MutationObserver to capture if the focused element was being removed from DOM.


Compile error(error CS1519: Invalid token '=' in class, struct, or interface member declaration)

Win7 X64  visual studio 2013
Snapshot:
http://uimg.in/images/2017/06/22/nsauj.jpg
http://uimg.in/images/2017/06/22/sJHIW5a.jpg
Thanks.

Which .NET framework are you targeting?

I used .NET 4.5.2 now and it works for me. I use VS2017, but when I started the project I was on VS2015 so it should work with that too.

Thanks for your reply. Maybe i should try it with VS2015 or above.


WIP: metadata and puppet syntax checking

The result of the test was: FAIL
Details at http://planck.nibalizer.com:8080/buildlogs//puppetlabs+puppetlabs-rabbitmq+267+1424889206+FAIL

I am a beta ci bot. I am probably lying to you.
You can contact nibalizer for more details


Query: invalid sql for query with groupby aggregate pushdown, projecting Lenght property on top of that

query:
                var query = ctx.Orders.GroupBy(e => e.CustomerID)
                        .Where(g => g.Count() > 10)
                        .Select(g => g.Key)
                        .OrderBy(t => t)
                        .Take(20)
                        .Skip(4)
                        .Select(e => e.Length);

                var result = query.ToList();

generated sql:
SELECT [t].[c]
FROM (
    SELECT TOP(@__p_0) CAST(LEN([e].[CustomerID] AS [Key]) AS int) AS [c], [e].[CustomerID] AS [Key]
    FROM [Orders] AS [e]
    GROUP BY [e].[CustomerID]
    HAVING COUNT(*) > 10
    ORDER BY [c0]
) AS [t]
ORDER BY [t].[Key]
OFFSET @__p_1 ROWS

Duplicate of #12826


comment package and C++ (and folds...)

When using the comment package in C++, lines are commented with 'commentstring' which defaults to /*%s*/.
In a ideal world, they should be commented with // %s. But given 'commentstring' is already used for another purpose (i.e. to create marker based folds), I'm not at ease to change the default used so far -- even if it seems to make more sense when I think about it.
My feature request is:
Ideally, it would be nice if comment package had a way to read another option that would override 'commentstring' value for those cases. It could be something like b:commentstring / g:{&ft}_commentstring (global filetype based overrides could be enough).
Other open question:
Shouldn't 'commentstring' be // %s in C++?
Context: Vim v9.1.0465

Quite a few filetypes derive their commentstring (previously implicitly, now explicitly since #14843) from C even though that may not be the "default" single-line commentstring for them -- besides C++, this is C#, ObjC, and D. Now that these ftplugins set the commentstring explicitly, that could be changed more easily.
(Neovim has recently done so -- in fact, for C as well since we use C99 and // %s comments in our own codebase, but that's not the case for Vim of course.)

lines are commented with 'commentstring' which defaults to /%s/.

Which should be valid in C++, right?
Why not simply set the commentstring option for cpp filetypes then?

g:{&ft}_commentstring (global filetype based overrides could be enough).

is that something you'd like to contribute then?

Which should be valid in C++, right?

/* %s */ is valid in C++, but definitively not what "we" use usually.

Why not simply set the commentstring option for cpp filetypes then?

I can indeed. But it doesn't feel natural as 'commentstring' is documented to be used for folding: the same variable serves two purposes. Also, there is the question whether C++ default for commentstring will be upgraded to // %s -- in that case this is no longer required.

g:{&ft}_commentstring (global filetype based overrides could be enough).

is that something you'd like to contribute then?

If you think it makes sense, I can.

Also, there is the question whether C++ default for commentstring will be upgraded to // %s -- in that case this is no longer required.

For the record, that is exactly what I suggested in my earlier comment -- no need to introduce a second mechanism if the first one can be made to work with a minor change.

let's just keep it simple for now and prepare the change to ftplugin/cpp.vim. Do you want to give this a try @LucHermitte ?

let's just keep it simple for now and prepare the change to ftplugin/cpp.vim. Do you want to give this a try @LucHermitte ?

OK.
But then, what about clason's other suggestions?

Changing the default for the other filetypes listed (which I don't use => I can't confirm whether this is a good idea)?
Harmonizing with neovim that have upgraded C default value for commentstring to C99 comments?

Also aren't there any risk of regression/change of behaviour for people currently relying on the current /* %s */ in C++? (and in C if we do the upgrade)

For the record, I am not suggesting changing the default/C commentstring (since Vim uses /* %s */ comments in its own codebase).

Let's just change it in cpp.vim and leave the others away. People who complain have then to override their prefered commenting style in the ftplugin in an after directory.
FWIW: we tend to use // commenting now in C in Vim. We just haven't changed the style of all old comments.

Thanks!


code coverage shows closing braces and not executed

Dart VM version: 2.0.0-dev.14.0 (Wed Dec 20 10:43:00 2017 +0100) on "macos_x64"

only when async is used

That seems to be an IntelliJ issue. Coverage for the file is still shown as 100%


Make the calculator responsive

The calculator when viewed in mobile is not as responsive as expected
Please add before & after screenshots of you are contributing to this issue

assign me

Hi @bishwobista  currently it is responsive but I want it more better User Experience, especially the share button etc.
Assigning to you

Hlo Dhanush can you please check the my pr related Calculator responsiveness (◕‿◕)


Migration to Poetry

Refactoring out of virtualenvs and requirements.txt to use poetry

Moving over to poetry for better env management. Make sure you update the author and description of pyproject.toml @tjoab 😄


[Bug]: AzureOpenAI.stream_chat causes IndexError

Bug Description
AzureOpenAI.stream_chat causes IndexError. Not happening with OpenAI.stream_chat.
This has just started happening today, so probably something has changed on Azure OpenAI service.
Version
0.8.23.post1
Steps to Reproduce
Run the following code to reproduce the issue:
import os
from llama_index.llms import OpenAI, AzureOpenAI
from llama_index.llms.base import ChatMessage

use_azure = True

if use_azure:
    os.environ["OPENAI_API_TYPE"] = "azure"
    os.environ["OPENAI_API_VERSION"] = "2023-07-01-preview"
    os.environ["OPENAI_API_BASE"] = "https://xxxx.openai.azure.com/"
    os.environ["OPENAI_API_KEY"] = "xxxxxxxxxxxxxxxxxxxxxxx"
    llm = AzureOpenAI(engine = "gpt-35-turbo")
else:
    os.environ["OPENAI_API_TYPE"] = "open_ai"
    os.environ["OPENAI_API_KEY"] = "sk-xxxxxxxxxxxxxxxxxxxxxxx"
    os.environ["OPENAI_API_BASE"] = "https://api.openai.com/v1"
    llm = OpenAI()

for delta in llm.stream_chat([ChatMessage(content = "Hello!")]):
    print(delta)

Relevant Logs/Tracbacks
Traceback (most recent call last):
  File "/home/ubuntuuser/LlamaIndex_env/project/test.py", line 19, in <module>
    for delta in llm.stream_chat([ChatMessage(content = "Hello!")]):
  File "/home/ubuntuuser/LlamaIndex_env/lib/python3.10/site-packages/llama_index/llms/base.py", line 157, in wrapped_gen
    for x in f_return_val:
  File "/home/ubuntuuser/LlamaIndex_env/lib/python3.10/site-packages/llama_index/llms/openai.py", line 229, in gen
    delta = response["choices"][0]["delta"]
IndexError: list index out of range

response["choices"][0] is causing the issue because the server returns an empty array:
{
  "id": "",
  "object": "",
  "created": 0,
  "model": "",
  "prompt_filter_results": [
    {
      "prompt_index": 0,
      "content_filter_results": {
        "hate": {
          "filtered": false,
          "severity": "safe"
        },
        "self_harm": {
          "filtered": false,
          "severity": "safe"
        },
        "sexual": {
          "filtered": false,
          "severity": "safe"
        },
        "violence": {
          "filtered": false,
          "severity": "safe"
        }
      }
    }
  ],
  "choices": [],
  "usage": null
}

Another thing I just realized is that there probably was a change of behaviour of AzureOpenAI class. Before, setting openai.api_version was the right thing to do (AFAIR), but now you have to do AzureOpenAI(api_version='....'), otherwise it will use the default 2023-08-01-preview, which generates the error we are seeing.

Also I might revert that api change -- I realize that it doesn't line up with any of our docs

Yea we can make the same fix as langchain -- but why is the response empty? Why are there no choices? Feels weird tbh

I'm not sure tbh. I think it has to do with the first message bringing only the content filtering data.

Also I might revert that api change -- I realize that it doesn't line up with any of our docs

Let us know please. Thanks!


Change on-prem wording

Summary of PR changes

Removed on-prem because this action can also be used on VMs hosted in the cloud.

PR Requirements

[x] For JavaScript actions, the action has been recompiled.

See the Recompiling section of the repository's README.md for more details.
This does not apply to Composite Run Steps actions unless a package.json is present and contains a build script.

[x] For major, minor, or breaking changes, at least one of the commit messages contains the appropriate +semver: keywords.

See the Incrementing the Version section of the repository's README.md for more details.

[x] The examples in the repository's README.md have been updated with the new version.

See the Incrementing the Version section of the repository's README.md for more details on how the version will be incremented.

[x] The action code does not contain sensitive information.

Agreed. I'll switch it to a major version bump and fix the workflow to reflect it.


Can't resolve 'crypto' after update to Angular 12

Hello,
I am having trouble solving the following build error after updating to Angular 12:

./node_modules/crypto-js/core.js:43:22-39 - Warning: Module not found: Error: Can't resolve 'crypto' in '/XXXX/node_modules/crypto-js'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "crypto": require.resolve("crypto-browserify") }'
        - install 'crypto-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "crypto": false }

My Angular Versions:

Angular CLI: 12.0.1
Node: 14.17.0
Package Manager: npm 7.14.0
OS: darwin x64

Angular: 12.0.1
... animations, cli, common, compiler, compiler-cli, core, forms
... localize, platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1200.1
@angular-devkit/build-angular   12.0.1
@angular-devkit/core            12.0.1
@angular-devkit/schematics      12.0.1
@angular/google-maps            11.2.13
@schematics/angular             12.0.1
rxjs                            6.6.7
typescript                      4.2.4

My dependencies:
  "dependencies": {
    "@angular/animations": "^12.0.1",
    "@angular/common": "^12.0.1",
    "@angular/compiler": "^12.0.1",
    "@angular/core": "^12.0.1",
    "@angular/forms": "^12.0.1",
    "@angular/google-maps": "^11.2.13",
    "@angular/platform-browser": "^12.0.1",
    "@angular/platform-browser-dynamic": "^12.0.1",
    "@angular/router": "^12.0.1",
    "@fortawesome/angular-fontawesome": "^0.9.0",
    "@fortawesome/fontawesome-free": "^5.15.3",
    "@fortawesome/fontawesome-svg-core": "^1.2.34",
    "@fortawesome/free-brands-svg-icons": "^5.15.2",
    "@fortawesome/free-regular-svg-icons": "^5.15.2",
    "@fortawesome/free-solid-svg-icons": "^5.15.2",
    "@ng-bootstrap/ng-bootstrap": "^9.1.1",
    "aws-amplify": "^4.0.2",
    "aws-sdk": "^2.911.0",
    "bootstrap": "^5.0.1",
    "crypto-js": "^4.0.0",
    "hammerjs": "^2.0.8",
    "jquery": "^3.6.0",
    "rxjs": "~6.6.0",
    "tslib": "^2.0.0",
    "zone.js": "~0.11.4"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "^12.0.1",
    "@angular/cli": "^12.0.1",
    "@angular/compiler-cli": "^12.0.1",
    "@angular/localize": "^12.0.1",
    "@types/jasmine": "^3.6.11",
    "@types/node": "^12.20.13",
    "codelyzer": "^6.0.2",
    "jasmine-core": "~3.6.0",
    "jasmine-spec-reporter": "~5.0.0",
    "karma": "~6.3.2",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage": "~2.0.3",
    "karma-jasmine": "~4.0.0",
    "karma-jasmine-html-reporter": "^1.6.0",
    "protractor": "~7.0.0",
    "ts-node": "~8.3.0",
    "tslint": "~6.1.0",
    "typescript": "~4.2.4"
  },

Any advice?
Thank you very much in advance.

Duplicate of #20821

These Node.js shims can be provided via TypeScript path mappings if needed in a project.
Please note, however, that libraries should ideally be providing web compatible variants of their libraries that use native browser APIs where possible.
Example path mapping configuration within the application's TypeScript configuration file:
    "paths": {
      "crypto": ["./node_modules/crypto-browserify"],
      "stream": ["./node_modules/stream-browserify"]
    }

The crypto-browserify and stream-browserify packages will need to be installed within the project.
This issue is also asking for the output of the Webpack configuration generation to be provided so that it can be used independently. Not to be able to modify the existing configuration in-place which is what would be needed based on the Webpack error shown above for the Node.js shim.


Add rotating grafana creds article

Closes Migrate article: Rotating Grafana service credentials #829
@TibsAtWork was keen to look at the code block in the numbered list.

Hi, thanks for the PR. There are some small issues with the build, just some small issues. If you are not able to run the checks locally or if I can help you somehow, let me know.
About the image on this PR, do you think it adds more information? I'm not sure the image brings new information besides which is already explicit in the text. We would need to provide maintenance to this image to guarantee that it is updated. This is why I think is okay to ask ourselves if this bring more information or not.

@TibsAtWork this is assigned to you, what's the next step?

It works as advertised. Just checking on the Sphinx/Vale failure before I approve.


How to restore a mock schema?

Mocking the schema is very useful for testing the fields and the behavior of my types and objects, but I also want to test my resolve functions.
Some of my mutations are doing some work which I would like to test (using sinon), but since I have mocked the server, it seems that calling the graphql(...) also triggers the mocked schema.
How can I restore the schema?

Hi @itaied246,
There is an option that you can add to the mocking function which is called 'preserveResolvers', setting it to True will not trigger mock for any resolved data

I couldn't find it in the docs, is there an API that I can read how to use it?

Hi @DxCx ,
I have a few test suites where in each one I use a before to mock the server with my schema.
In a particular test suite, I set the before as follows:
before(() => {
    server = mockServer(schema,{},true);
  })

Though running the follow test:
  let mutation = `
    mutation createUser($password: String){
      createUser(id: "id" name: "name" password: $password){
        id
      }
    }`;

    let result = await graphql(schema, mutation, null, null, {
      password: password
    })
    console.log(result);

Results the following:
{ data: { createUser: { id: 'Hello World' } } }
Can you please help me figure out why is it still mocking the resolve, even though I set the preserveResolvers to True and I am executing the query outside of the mockServer?

I'm not sure why the resolvers aren't preserved, but the mockServer function modifies the schema in-place, so you'd have to clone it before using it, if you still need the unmodified schema.

OK, I was missing the part that the mockServer modifies the schema in place.
Instead of cloning the schema on each test, I exported the schema as a function and imported it with a function call:
const schema = () => new Schema({
    ...
  });

export default schema;

...

server = mockServer(schema());

Thank you for your help!


mypy plugin: More precisely detect when fields are required.

Change Summary

The mypy plugin would previously incorrectly determine that a field was
not required in a few scenarios where the field really is required. This
specifically affected cases when the Field() function is used, where
the plugin assumed that the first argument would always be default.
This changes the code to examine each argument more closely, and it now
properly handles several more scenarios where the default is explicitly
named or when the default_factory named argument is used.
Related issue number

Checklist

[x] Unit tests for the changes exist
[x] Tests pass on CI and coverage remains at 100% (Coverage was not at 100% to begin with for me, but the coverage did not drop after I made my changes)
[ ] Documentation reflects the changes where applicable
[x] changes/<pull request or issue id>-<github username>.md file added describing change
(see changes/README.md for details)
[x] My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

Whoops, I misunderstood the last item on the checklist. Please review when you have the time.

great, thanks so much.

Thanks!


Use content deliverer (P3274) instead of publisher (P123) in the Source SDC

Link to feedback.
It's not a complicated change to make (or to backfill) and nobody has replied to the feedback in the last month, so I think we should do it and backfill it.

We got some feedback to hold off on this change (and also the original request doesn't make sense, we don't use P123).
Waiting fro further input.


How can i specify a specific font size?

The default font size is too small (comparing with hexo-math) . How can i specify a specific font size in _config.yml? Thanks

The font size of math formula is inherited from the blog page. You can check whether the Hexo theme you are using supports increasing the font size in _config.yml, or adjust the font size with custom css.


SIGFPE Error around caffe2::XavierFillOp<>::Fill()

I try to use caffe2.python to build a DenseNet according to origianl DenseNet paper and ResNet implementation in Detectron. However, when I finished codes and try to run it, I met flowing exception:
*** Aborted at<PHONE_NUMBER> (unix time) try "date -d @1520817998" if you are using GNU date ***
PC: @     0x7efcc5467223 caffe2::XavierFillOp<>::Fill()
*** SIGFPE (@0x7efcc5467223) received by PID 3544 (TID 0x7efcea591700) from PID<PHONE_NUMBER>2724312611; stack trace: ***
    @     0x7efcea189390 (unknown)
    @     0x7efcc5467223 caffe2::XavierFillOp<>::Fill()
    @     0x7efcc5467094 caffe2::FillerOp<>::RunOnDevice()
    @     0x7efcc526803b caffe2::Operator<>::Run()
    @     0x7efcdd691ab8 caffe2::SimpleNet::Run()
    @     0x7efcdd6dcbea caffe2::Workspace::RunNetOnce()
    @     0x7efcde84ebaa _ZZN6caffe26python16addGlobalMethodsERN8pybind116moduleEENKUlRKNS1_5bytesEE28_clES6_.isra.2469.constprop.2532
    @     0x7efcde84ee45 _ZZN8pybind1112cpp_function10initializeIZN6caffe26python16addGlobalMethodsERNS_6moduleEEUlRKNS_5bytesEE28_bJS8_EJNS_4nameENS_5scopeENS_7siblingEEEEvOT_PFT0_DpT1_EDpRKT2_ENUlRNS_6detail13function_callEE1_4_FUNESQ_
    @     0x7efcde8713e3 pybind11::cpp_function::dispatcher()
    @           0x4cb755 PyEval_EvalFrameEx
    @           0x4c2705 PyEval_EvalCodeEx
    @           0x4ca7df PyEval_EvalFrameEx
    @           0x4c2705 PyEval_EvalCodeEx
    @           0x4ca7df PyEval_EvalFrameEx
    @           0x4c2705 PyEval_EvalCodeEx
    @           0x4ca7df PyEval_EvalFrameEx
    @           0x4c2705 PyEval_EvalCodeEx
    @           0x4ca7df PyEval_EvalFrameEx
    @           0x4c2705 PyEval_EvalCodeEx
    @           0x4ca7df PyEval_EvalFrameEx
    @           0x4c2705 PyEval_EvalCodeEx
    @           0x4c24a9 PyEval_EvalCode
    @           0x4f19ef (unknown)
    @           0x4ec372 PyRun_FileExFlags
    @           0x4eaaf1 PyRun_SimpleFileExFlags
    @           0x49e208 Py_Main
    @     0x7efce9dce830 __libc_start_main
    @           0x49da59 _start
    @                0x0 (unknown)
Floating point exception(unknown)

I have debugged it and found the interrupt point is in the stage of initiating net parameter(exactly in CallWithExceptionIntercept function called by RunNetOnce in workspace.py). Just as follows:
def CallWithExceptionIntercept(func, op_id_fetcher, net_name, *args, **kwargs):
    try:
        return func(*args, **kwargs) # here is interrupt point
    except Exception:
        op_id = op_id_fetcher()
        net_tracebacks = operator_tracebacks.get(net_name, None)
        print("Traceback for operator {} in network {}".format(op_id, net_name))
        if net_tracebacks and op_id in net_tracebacks:
            tb = net_tracebacks[op_id]
            for line in tb:
                print(':'.join(map(str, line)))
        raise

def RunNetOnce(net):
    return CallWithExceptionIntercept(
        C.run_net_once,
        C.Workspace.current._last_failed_op_net_position,
        GetNetName(net),
        StringifyProto(net),
    )

I have also search on google for a long time but can't find any helpful information. I don't know why this error happened and how to solve it. Can anyone who knows it help me? Thanks in advance.

I'm not sure if this is a Caffe2 issue. It's possible that you have instable weights that are becoming 0 or infinity. In any case, can you post your question on Detectron's issue tracker? https://github.com/facebookresearch/Detectron
I will close this issue on our side for now


Create option to include loopback interfaces, fix #102

We need the support for loopback interfaces for CI and verification purposes. The way the change is done means that no client has to be adjusted.

Recreating this from a different branch so that Git version is happy

Recreating this from a different branch so that Git version is happy


chore: release v1.9.0

:tada: This PR is included in version 1.9.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


rshell doesn't connect to repl on alternate uart

I've got a nucleo that launches the repl on an alternate uart (using a bluesmurf module so I can connect wirelessly). That works fine:

chokfi% cu -l /dev/rfcomm0 -s 115200
Connected.

PYB: sync filesystems
PYB: soft reboot
MicroPython v1.9.1-216-gb3f13af-dirty on 2017-08-25; NUCLEO-F411RE with STM32F411xE
Type "help()" for more information.

~.

However, if I try connecting rshell via that repl, it just hangs:

chokfi% rshell -p /dev/rfcomm0 -b 115200
Connecting to /dev/rfcomm0 ...

The bluesmurf module lights switch to connected, but rshell never seems to get any further. It does connect to that board if I put the repl on the default UART.

Make sure that you set the buffer size way down. Use at least --buffer-size=30 and maybe even try 15.
If you can't get a regular REPL working, then rshell won't work. The rfcomm interfaces normally default to a slower baud rate, typically in the 9600-38400 baud range. You need to ensure that the bluesmirf module, the repl on the micropython board, and the baud rate specified at the host are all exactly the same.


When distro is undefined, the output of ldconfig is ignored because of the sed: -e expression #1, char 7: unknown option to s'` silent error

I tested the get-platform which has been merged into main, but there might be one issue.
In that block:
const libsslFilename: string | undefined = await getFirstSuccessfulExec([
  'ldconfig -p | sed "s/.*=>s*//" | sed "s/.*///" | grep ssl | sort',
  'ls /lib64 | grep ssl',
  'ls /usr/lib64 | grep ssl',
])

First set of commands returns
sed: -e expression #1, char 7: unknown option to `s'

So on a setup with undefined distro, it still goes to the openssl version -v fallback
Not familiar with sed though, so I can't debug straight away.
Originally posted by @Maxime-J in https://github.com/prisma/prisma/issues/14042#issuecomment-1382603550

Here's my solution: https://github.com/prisma/prisma/issues/14042#issuecomment-1383114597


Propose method ordering: lifecycle methods, then class inheritance

This draws inspiration from #80.
The biggest difference, I think, is not mandating that protocol methods be separated from the "class inheritance" structure. In practice, this created some interesting conflicts: for example, should -(NSString*)description be implemented at the top in NSObject or at the bottom in an NSObject protocol section? Protocol conformance is part of the class hierarchy, not independent from it, and any ordering proposal should recognize that and work with it.
I've also mandated that "lifecycle methods" be placed at the top of the implementation. In discussions with other developers, we agreed that in general this is a natural starting point: it is where an object begins its life, and so it is useful to examine that process before digging further into the object's implementation. Indeed, when opening an unfamiliar implementation file we usually search for the -init* methods first anyway. Setting aside that comprehension benefit, it is also more natural to read an implementation in this order, in line with the theme of chronology which was introduced in #80 and carried over into this PR.
Preview the Method Ordering section.
closes #12
closes #44

Preview the Method Ordering section as of https://github.com/NYTimes/objective-c-style-guide/commit/2453f3601bc938fdbaf3be20a12ec0a0f54feead.

This draws inspiration from #80; the biggest difference, I think, is not mandating that protocol methods be separated from the "class inheritance" structure. In practice, this created some interesting conflicts: for example, should -(NSString*)description be implemented at the top in NSObject or at the bottom in an NSObject protocol section? Protocol conformance is part of the class hierarchy, not independent from it, and any ordering proposal must recognize that.

@mattbischoff I'll fix -initialize and -load in a bit, but don't want to (visually) collapse your other comments on this discussion yet so I will hold off on pushing that change

It is where an object begins its life, and so it is useful to examine how that process happens before digging further into the method's implementation.

This is true, but there are competing concerns that I feel are very worthy of consideration here. One of them is the additional cognitive overhead / need to define the nebulous concept of a lifecycle method and keep that definition up to date as times and technologies change.

Setting aside the comprehension benefit, it is also more natural to read an implementation in this order, in line with the theme of chronology which was introduced in #80 and carried over into this PR.

Chronology is overrated. If we truly cared about chronology, dealloc would be at the bottom of every file. and we’d spend all day trying to figure out which table view method is called before which other one. The other problem is that chronology is fluid and therefore an inconsistent basis for ordering.
I feel strongly that the goal of ordering methods in implementation files should not only facilitate the "first read experience" but the much more common case for the working programmer: bug fixing, iteration, change. Jumping around a large project, with many files, and having a consistent, knowable place to look for things. “Lifecycle” as conceptualized here is a muddy, inconsistently defined concept that won’t age well and doesn’t benefit this more common use case, so I’d urge you and these other developers to reconsider.

One of them is the additional cognitive overhead / need to define the nebulous concept of a lifecycle method and keep that definition up to date as times and technologies change.

The latest iteration of this PR lays out a specific, non-nebulous definition of object lifecycle methods. And the list will not require much updating: when’s the last time anything changed about init, dealloc, +initialize, +load, NSCoding or class factory methods? Maybe during the jump to ObjC 2.0, which was in 2006 (and I'm not even sure anything in this process changed); before that, OS X 10.0. The core of Objective-C just isn't changing that fast.

If we truly cared about chronology, dealloc would be at the bottom of every file…

I would have no problem with that; imagine the consistency!

… and we’d spend all day trying to figure out which table view method is called before which other one. The other problem is that chronology is fluid and therefore an inconsistent basis for ordering.

Right, we don't care about when table view methods are called while an object is alive. But it is one of many useful tools we have, and I'm arguing it makes sense to apply it here.
It's not fluid in this case. These methods are called before anything else happens to the object; this is one of the strongest chronology guarantees we have in ObjC/Cocoa.

I feel strongly that the goal of ordering methods in implementation files should not only facilitate the "first read experience" but the much more common case for the working programmer: bug fixing, iteration, change. Jumping around a large project, with many files, and having a consistent, knowable place to look for things.

I agree! And I really like working in a project where the initializer is consistently in the same place.

The latest iteration of this PR lays out a specific, non-nebulous definition of object lifecycle methods. And the list will not require much updating.

I’m not so confident about that. I think this change will lead to quite a few head scratching moments that neither of us has even considered yet, and that are 100% avoidable. Here’s one: consider state restoration:
@interface UIView (UIStateRestoration)
@property (nonatomic, copy) NSString *restorationIdentifier NS_AVAILABLE_IOS(6_0);
- (void) encodeRestorableStateWithCoder:(NSCoder *)coder NS_AVAILABLE_IOS(6_0);
- (void) decodeRestorableStateWithCoder:(NSCoder *)coder NS_AVAILABLE_IOS(6_0);
@end

Object lifecycle or not? No idea, because the term itself is not well-defined enough to be able to make that judgement alone without consulting a nearly-always incomplete list.

I would have no problem with that; imagine the consistency!

Consistent externally sure, but internally it’s a mess. When you have multiple schemes to organize methods in the same file, I’d content that it’s very likely that soon there will be even more special cases like this. Would it not be better to prevent these kinds of exceptions up front and pick a way, even if it’s not perfect in all uses cases for all people? I think so. This principle underlies many of the guide’s other points and has since the beginning. As I sometimes call out in my sleep: "Pick a way!"

It's not fluid in this case. These methods are called before anything else happens to the object; this is one of the strongest chronology guarantees we have in ObjC/Cocoa.

I meant chronology more largely (not in the case of lifecycle), but point taken nonetheless.

I agree! And I really like working in a project where the initializer is consistently in the same place.

Initializers are only one thing, and while yes, this pull creates consistency for initializers, it also destroys consistency for many of the other pragmas, which are now missing methods that have been hosted to the top. Not a worthwhile tradeoff by any means.

Just checking in on the status of this.

Probably can be closed at this point.

Okay, I’m sure of it now. There’s no reason to keep this open, right?

Let’s close this, friends. It’s been sitting in my inbox for years as a mention and nothing is being done about it.


Improve the TCP flags checking process

Hello, I noticed that while filtering the packets, the filter check all TCP flags one after another.
I think we can make use of the tcp_flag_word() macro and TCP_FLAG_* defined in <linux/tcp.h> to simplify the process of checking flags.

Hey! Thank you for the information on tcp_flag_word(). This is the first time I'm seeing the function.
I'm unsure if using this would simplify the checking flags process, though. Initially, I thought using bitwise operations instead of logical could increase performance, but most modern compilers optimize both operations so that they should have similar performance.
I haven't dug too deeply into this function. If you have any examples of how it could simplify the process, please let me know!

I tried to make a commit for this.
The checking process will become:
if (tcp_flag_word(tcph) & filter->tcpopts.enabled_flags) != filter->tcpopts.expected_flags)
{
    continue;
}

Flags that the filter want to check will set the corresponding bits in enabled_flags and expected_flags.

Thank you for making that commit! I'm going to look further into this when I have more time.
Was the firewall and new TCP flag check method working under the commit/fork you made? If so, feel free to create a pull request so you'll get credit for this change :smile:


No Longer Able To Move Mouse Cursor To 2nd Monitor

9/22/24
I play with a Dual Sense controller for this game on PC
0.7.9 was the last update where you were able to move your mouse cursor over to your monitor.
Updated to 0.8.1 and can no longer move mouse cursor.
I switched to borderless, hit windows key and was able to move it over. Switch it back to fullscreen and no issues. Mouse cursor stayed on 2nd monitor while I gamed on primary monitor with Dual Sense.
*UPDATE - 9/23/24
Today same thing happened again, repeated same solution, HOWEVER, as soon as I start playing with controller, mouse cursor is moved back to primary monitor.

Set "LockCursor = false" in FFXVIFix.ini. It's enabled by default so that borderless mouse behaviour matches windowed.

@Lyall How silly of me not to think, I appreciate you and thank you so much!


VScode "Ruby LSP: Start" throws "./Gemfile -W0 -rjson -e 'STDER...: Permission denied"

Description
MacOS, 2021 macbook, sonoma 14.6
ruby 3.3.3, asdf, VScode Version: 1.91.1,

From VScode command palate run "Ruby LSP: Start"
Error:

Command failed: /Users/<me>/<path>/<to>/<project>/Gemfile -W0 -rjson -e 'STDERR.print({ env: ENV.to_h, yjit: !!defined?(RubyVM::YJIT), version: RUBY_VERSION }.to_json)'
/bin/sh: /Users/<me>/<path>/<to>/<project>/Gemfile: Permission denied

Gem uninstall ruby-lsp and ruby-lsp-server
Uninstall all ruby and rails extensions from VScode
Update asdf per ruby-lsp troubleshooting
Restart VScode
Install only ruby-lsp extension in VScode
Set ruby-lsp version manager to asdf
Restart VScode
Same error
I also see in vscode Output for ruby-lsp that it wants a ruby version, so i set custom ruby version command to asdf install ruby 3.3.3
Set version manager to asdf
Error is logged in output that asdf is not found
Also getting same permission denied error from above

"Install Another Version" of ruby-lsp  VScode extension back to v0.5.20
Set ruby-lsp version manager to custom

"rubyLsp.rubyVersionManager": {
  "identifier": "custom"
},

Remove custom ruby version command
restart extensions
Now it works

2024-08-01 11:00:22.987 [info] (platform) Ruby LSP> Skipping custom bundle setup since /<path>/.ruby-lsp/Gemfile.lock already exists and is up to date

2024-08-01 11:00:23.009 [info] (platform) Ruby LSP> Running bundle install for the custom bundle. This may take a while...
Ruby LSP> Command: (bundle check || bundle install) 1>&2

2024-08-01 11:00:23.695 [info] (platform) The Gemfile's dependencies are satisfied

2024-08-01 11:00:24.686 [info] (platform) Initializing Ruby LSP v0.17.10...

2024-08-01 11:00:24.768 [info] (platform) Finished initializing Ruby LSP!

2024-08-01 11:00:24.826 [info] (platform) [Standard Ruby] Activating Standard Ruby LSP addon v1.39.2

2024-08-01 11:00:25.215 [info] (platform) [Standard Ruby] Initialized Standard Ruby LSP addon 1.39.2

2024-08-01 11:00:25.216 [info] (platform) Activating Ruby LSP Rails addon v0.3.11

2024-08-01 11:00:25.223 [info] (platform) Ruby LSP Rails booting server

2024-08-01 11:00:32.833 [info] (platform) Finished booting Ruby LSP Rails server

Thank you for the bug report.
Based on this line
/Users/<me>/<path>/<to>/<project>/Gemfile -W0 -rjson -e 'STDERR.print({ env: ENV.to_h, yjit: !!defined?(RubyVM::YJIT), version: RUBY_VERSION }.to_json)'

It seems like it might be a misconfiguration of the custom activation command. Everything starting on -W0 are arguments to the ruby command, but instead you have the path to a Gemfile in there.
The extension never invokes uses a Gemfile path to invoke that command, so I don't believe it's a bug in the code. Could it be that the path to the Gemfile was intended for the bundleGemfile setting instead of the custom activation script?
I'm closing the issue for now, but if you find that what I mentioned isn't the case and bug persists, please let us know.


How to resolve the baseUrl which is configured in jsconfig/tsconfig file?

Question
Not able to resolve the absolute import as per the baseUrl configured in the jsconfig/tsconfig.
Description
Since all my components are imported with the absolute path as per the baseUrl configured in the tsconfig.json, and this will result in a bunch of errors of not being able to resolve those related files.
So any ideas how this would be resolved?

Sorry to get back here again. After digging more with the gatsby doc and the information in the docz repo, I finally found this link to help me resolve the issue (which requires adding a gatsby-node.js in the project root and a onCreateWebpackConfig method inside ).

Hey @haohello
Thank you for reporting the issue and looking for the solution in the examples.
I will add a page to the docz site explaining this and will close this issue when I do 👍

Added here : https://www.docz.site/docs/customizing-webpack-config
Please feel free to re-open if the issue re-occurs.


Training stops with no warning nor error.

I'm running at Python 3.7, torch 1.6.
The training stops with no warning nor error. Only "Process finished with exit code 0"
I've tried to run it with "nohup", but it still stops at 20~30 epoches.
Part of the console output:
Epoch 00028: val_acc reached 0.90505 (best 0.90505), saving model to cls-ssg/epoch=28-val_loss=0.30-val_acc=0.905.ckpt as top 2
Epoch 30:  91%|▉| 350/385 [01:25<00:09,  3.68it/s, loss=0.198, train_acc=0.906,
Validating:   0%|                                        | 0/78 [00:00<?, ?it/s]
Epoch 30: : 400it [01:27,  5.05it/s, loss=0.198, train_acc=0.906, v_num=42, val_acc=0.905, val_loss=0.302]
Epoch 30: : 450it [01:35,  5.95it/s, loss=0.193, train_acc=0.938, v_num=42, val_acc=0.903, val_loss=0.304]
[2021-04-23 14:40:17,513][root][INFO] -
Epoch 00029: val_acc was not in top 2
Epoch 31:  91%|▉| 350/385 [01:25<00:09,  3.68it/s, loss=0.209, train_acc=0.875,
Validating:   0%|                                        | 0/78 [00:00<?, ?it/s]
Epoch 31: : 400it [01:27,  5.04it/s, loss=0.209, train_acc=0.875, v_num=42, val_acc=0.903, val_loss=0.304]
Epoch 31: : 450it [01:35,  5.94it/s, loss=0.210, train_acc=0.969, v_num=42, val_acc=0.903, val_loss=0.303]
[2021-04-23 14:41:52,866][root][INFO] -
Epoch 00030: val_acc was not in top 2
Epoch 31: : 450it [01:35,  4.72it/s, loss=0.210, train_acc=0.969, v_num=42, val_acc=0.903, val_loss=0.303]
Process finished with exit code 0

Running into a similar issue with Python 3.6 and torch 1.4 Have you found a fix?

This code uses early stop in 'train.py' line31. You have to change patience value more than 5.


Kotlin migration

Migration to Kotlin 3.11
This pull request is based on branch androidx_migration.

Please don't create pull requests that depend on changes from another open pull request. It makes reviewing harder because one has to figure out which changes belong to which pull request.
Also, chances are the first pull request won't get merged without additional changes. So the branches diverge which makes reviewing even harder and also creates unnecessary branches in the commit graph.
Feel free to rewrite this branch to only contain the relevant changes on top of K-9 Mail's master branch once the androidx migration has been merged. But it's probably easier to just create a new pull request.

Well, this was not so easy as it is based on the androidx migration. I will create a new pull request based on your androidx migration.

Thanks. But please only do it after the branch has been merged. It's quite possible my branch needs changes before it's ready to be merged.

Ok.

Closed because of new pull request with rebase.


cpp-hocon: 0.2.0 -> 0.2.1

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/cpp-hocon/versions.
meta.description for cpp-hocon is: '" A C++ port of the Typesafe Config library"'.
Compare changes on GitHub

Checks done (click to expand)

built on NixOS

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 0.2.1 with grep in /nix/store/y7vssmzsnsd46brnv5by34wnbcwcdg2g-cpp-hocon-0.2.1

directory tree listing: https://gist.github.com/3ee73c95ab6f76a67af84c64f704c5b6

du listing: https://gist.github.com/5f6f6eb84a568b57f2bba966763621ed

Outpath report (click to expand)

Outpath difference report
6 total rebuild paths
2 package rebuilds
2 x86_64-linux rebuilds
2 i686-linux rebuilds
0 x86_64-darwin rebuilds
2 aarch64-linux rebuilds
First ten rebuilds by attrpath
cpp-hocon
facter

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/y7vssmzsnsd46brnv5by34wnbcwcdg2g-cpp-hocon-0.2.1 \
  --option binary-caches 'https://cache.nixos.org/ https://r-ryantm.cachix.org/' \
  --option trusted-public-keys '
  r-ryantm.cachix.org-1:gkUbLkouDAyvBdpBX0JOdIiD2/DP1ldF3Z3Y6Gqcc4c=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(r-ryantm's Cachix cache is only trusted for this store-path realization.)
Or, build yourself:
nix-build -A cpp-hocon https://github.com/r-ryantm/nixpkgs/archive/c884941bdd0c6390f9baf0e56e3c6ebd0312bff5.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/y7vssmzsnsd46brnv5by34wnbcwcdg2g-cpp-hocon-0.2.1
ls -la /nix/store/y7vssmzsnsd46brnv5by34wnbcwcdg2g-cpp-hocon-0.2.1/bin

cc @womfoo for testing.

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: cpp-hocon
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

Success on aarch64-linux (full log)
Attempted: cpp-hocon
Partial log (click to expand)
-- Installing: /nix/store/kxbkzkg7k7ks7j71y2cb996p3fbp8j69-cpp-hocon-0.2.1/include/hocon/config_include_context.hpp
-- Installing: /nix/store/kxbkzkg7k7ks7j71y2cb996p3fbp8j69-cpp-hocon-0.2.1/include/hocon/config_exception.hpp
-- Installing: /nix/store/kxbkzkg7k7ks7j71y2cb996p3fbp8j69-cpp-hocon-0.2.1/include/hocon/config.hpp
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/kxbkzkg7k7ks7j71y2cb996p3fbp8j69-cpp-hocon-0.2.1
strip is /nix/store/p9akxn2sfy4wkhqdqa3li97pc6jaz3r1-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/kxbkzkg7k7ks7j71y2cb996p3fbp8j69-cpp-hocon-0.2.1/lib
patching script interpreter paths in /nix/store/kxbkzkg7k7ks7j71y2cb996p3fbp8j69-cpp-hocon-0.2.1
checking for references to /build in /nix/store/kxbkzkg7k7ks7j71y2cb996p3fbp8j69-cpp-hocon-0.2.1...
/nix/store/kxbkzkg7k7ks7j71y2cb996p3fbp8j69-cpp-hocon-0.2.1

Success on x86_64-linux (full log)
Attempted: cpp-hocon
Partial log (click to expand)
-- Installing: /nix/store/y7vssmzsnsd46brnv5by34wnbcwcdg2g-cpp-hocon-0.2.1/include/hocon/config_parse_options.hpp
-- Installing: /nix/store/y7vssmzsnsd46brnv5by34wnbcwcdg2g-cpp-hocon-0.2.1/include/hocon/config_includer_file.hpp
-- Installing: /nix/store/y7vssmzsnsd46brnv5by34wnbcwcdg2g-cpp-hocon-0.2.1/include/hocon/config_render_options.hpp
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/y7vssmzsnsd46brnv5by34wnbcwcdg2g-cpp-hocon-0.2.1
strip is /nix/store/vcc4svb8gy29g4pam2zja6llkbcwsyiq-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/y7vssmzsnsd46brnv5by34wnbcwcdg2g-cpp-hocon-0.2.1/lib
patching script interpreter paths in /nix/store/y7vssmzsnsd46brnv5by34wnbcwcdg2g-cpp-hocon-0.2.1
checking for references to /build in /nix/store/y7vssmzsnsd46brnv5by34wnbcwcdg2g-cpp-hocon-0.2.1...
/nix/store/y7vssmzsnsd46brnv5by34wnbcwcdg2g-cpp-hocon-0.2.1


move RTI Connext DDS installation doc under Install-Connext-Universit…

…y-Eval.
closes https://github.com/ros2/ros2_documentation/issues/3573

@clalancette @ahcorde what do you think about this?

@ahcorde thanks for the review. let's hold this to merge for now, i would like @clalancette 's review comment on this.

@clalancette can you take a look when you have time?

@clalancette @audrow what do you think about this doc structure change for RTI connext DDS?

Minor comment aside, I personally think this makes a lot of sense.


chore(amplify-category-geo): update uuid version

Description of changes

update dependency on uuid.
Issue #, if available

Description of how you validated changes
unit testing and iOS sample app.
Checklist

[x] PR description included
[x] yarn test passes
[ ] Tests are changed or added
[ ] Relevant documentation is changed or added (and PR referenced)
[ ] New AWS SDK calls or CloudFormation actions have been added to relevant test and service IAM policies

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

Merging #8242 (1989838) into master (c3b89af) will increase coverage by 0.36%.
The diff coverage is 70.48%.

@@            Coverage Diff             @@
##           master    #8242      +/-   ##
==========================================
+ Coverage   54.42%   54.78%   +0.36%
==========================================
  Files         663      691      +28
  Lines       37871    38994    +1123
  Branches     7786     7953     +167
==========================================
+ Hits        20611    21363     +752
- Misses      16415    16788     +373
+ Partials      845      843       -2

Impacted Files
Coverage Δ

packages/amplify-cli-core/src/index.ts
100.00% <ø> (ø)

...mation/src/graphql-transformer/transform-config.ts
8.00% <0.00%> (ø)

...y-provider-awscloudformation/src/push-resources.ts
9.34% <0.00%> (-0.04%)
:arrow_down:

...s/awscloudformation/utils/amplify-meta-updaters.ts
9.75% <12.50%> (+0.66%)
:arrow_up:

...rc/graphql-transformer/transform-graphql-schema.ts
15.12% <16.66%> (-0.15%)
:arrow_down:

...-awscloudformation/src/transform-graphql-schema.ts
11.57% <16.66%> (-0.09%)
:arrow_down:

...ify-category-geo/src/provider-controllers/index.ts
30.88% <30.88%> (ø)

...plify-category-geo/src/provider-controllers/map.ts
43.47% <43.47%> (ø)

...ategory-geo/src/provider-controllers/placeIndex.ts
43.47% <43.47%> (ø)

packages/amplify-category-geo/src/index.ts
48.93% <48.93%> (ø)

... and 60 more

Continue to review full report at Codecov.

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


[Bug] Catch decoding exception in DataUriDownloader

Describe the bug
In DataUriDownloader, when we try write the bytes to a file we base64 decode the data. Crashlytics (from ATP) recorded a crash indicating the data couldn't be decoded; we should more gracefully handle this scenario.
How to Reproduce
Fatal Exception: java.lang.IllegalArgumentException: bad base-64
at android.util.Base64.decode(Base64.java:163)
at android.util.Base64.decode(Base64.java:138)
at android.util.Base64.decode(Base64.java:120)
at com.duckduckgo.app.browser.downloader.DataUriDownloader.writeBytesToFiles(DataUriDownloader.kt:58)
at com.duckduckgo.app.browser.downloader.DataUriDownloader.download(DataUriDownloader.kt:47)
at com.duckduckgo.app.browser.downloader.AndroidFileDownloader.download(FileDownloader.kt:63)
Expected behavior
A simple try/catch would be enough.
Environment
- DDG App Version:
- Device:
- OS:

let me take a shot at catching the exception


Strengthened type checking for while and cond

See https://github.com/google/jax/issues/1681.

I think the apparent test failure was just Travis barfing, not to do with these changes.

I think the apparent test failure was just Travis barfing, not to do with these changes.

I saw that, did you manually triggered a rerun? Or did it recover by itself?

I manually triggered a rerun.


Move class property transform

This PR is an updated version of #30467, which moves the class property transform to a separate transformation phase.
Fixes #31792
Supersedes #30467

@typescript-bot test this

@typescript-bot test this


Task winogrande  does not work in 0-shot setting together with --apply_chat_template

Hello!
I'm using lm_eval==0.4.5 (pip install lm_eval==0.4.5). I want to test the winogrande task in 0-shot mode on the Qwen/Qwen2.5-1.5B-Instruct model (I took it as an example, as a lightweight model using chat-template) using chat-template. I make the launch with the command
lm_eval --model hf --model_args pretrained=Qwen/Qwen2.5-1.5B-Instruct,dtype=float16,device_map=auto,low_cpu_mem_usage=true --tasks winogrande --num_fewshot 0 --apply_chat_template

I get the following errors:
2024-10-27:18:35:07,268 INFO     [__main__.py:279] Verbosity set to INFO
2024-10-27:18:35:19,377 INFO     [__init__.py:459] The tag 'arc_ca' is already registered as a group, this tag will not be registered. This may affect tasks you want to call.
2024-10-27:18:35:19,416 INFO     [__init__.py:459] The tag 'arc_ca' is already registered as a group, this tag will not be registered. This may affect tasks you want to call.
2024-10-27:18:35:19,948 INFO     [__main__.py:376] Selected Tasks: ['winogrande']
2024-10-27:18:35:19,950 INFO     [evaluator.py:164] Setting random seed to 0 | Setting numpy seed to 1234 | Setting torch manual seed to 1234 | Setting fewshot manual seed to 1234
2024-10-27:18:35:19,951 INFO     [evaluator.py:201] Initializing hf model, with arguments: {'pretrained': 'Qwen/Qwen2.5-1.5B-Instruct', 'dtype': 'float16', 'device_map': 'auto', 'low_cpu_mem_usage': True}
2024-10-27:18:35:19,957 INFO     [huggingface.py:129] Using device 'cuda'
2024-10-27:18:35:20,041 INFO     [huggingface.py:481] Using model type 'default'
2024-10-27:18:35:20,412 INFO     [huggingface.py:371] Model parallel was set to False.
2024-10-27:18:35:28,174 WARNING  [evaluator.py:270] Overwriting default num_fewshot of winogrande from None to 0
2024-10-27:18:35:28,176 INFO     [task.py:415] Building contexts for winogrande on rank 0...
  0% 0/1267 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "/usr/local/bin/lm_eval", line 8, in <module>
    sys.exit(cli_evaluate())
  File "/usr/local/lib/python3.10/dist-packages/lm_eval/__main__.py", line 382, in cli_evaluate
    results = evaluator.simple_evaluate(
  File "/usr/local/lib/python3.10/dist-packages/lm_eval/utils.py", line 397, in _wrapper
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/lm_eval/evaluator.py", line 301, in simple_evaluate
    results = evaluate(
  File "/usr/local/lib/python3.10/dist-packages/lm_eval/utils.py", line 397, in _wrapper
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/lm_eval/evaluator.py", line 444, in evaluate
    task.build_all_requests(
  File "/usr/local/lib/python3.10/dist-packages/lm_eval/api/task.py", line 438, in build_all_requests
    fewshot_ctx = self.fewshot_context(
  File "/usr/local/lib/python3.10/dist-packages/lm_eval/utils.py", line 397, in _wrapper
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/lm_eval/api/task.py", line 1089, in fewshot_context
    return chat_template(labeled_examples)
  File "/usr/local/lib/python3.10/dist-packages/lm_eval/models/huggingface.py", line 1325, in apply_chat_template
    return self.tokenizer.apply_chat_template(
  File "/usr/local/lib/python3.10/dist-packages/transformers/tokenization_utils_base.py", line 1797, in apply_chat_template
    isinstance(conversation[0], (list, tuple)) or hasattr(conversation[0], "messages")
IndexError: list index out of range

This error can be easily reproduced in collab. You need to run the commands:
!pip install lm_eval==0.4.5
!lm_eval --model hf --model_args pretrained=Qwen/Qwen2.5-1.5B-Instruct,dtype=float16,device_map=auto,low_cpu_mem_usage=true --tasks winogrande --num_fewshot 0 --apply_chat_template

I tried using the lm_eval version from the main branch:
git clone https://github.com/EleutherAI/lm-evaluation-harness.git
cd lm-evaluation-harness
pip install -e .

I was getting the same error as I described above.

do you have any method to solve it? I also found this issue