Bridge: add webhook payload preview

Is your feature request related to a problem? Please describe.
To make it easier to verify and triage issues add a feature to have the payload populated with event data.  This would help to verify that the payload is valid.
Describe the solution you'd like
Add a new button to the webhook subscription page that takes the "example event" data and merges that with the payload into a popup window.  Also add JSON validation
Describe alternatives you've considered
I have to make a trigger that goes to https://websiite.site endpoint with the template as to see the values.

I then have to cut-n-paste that json into https://jsonlint.com to validate

Additional context
Here is mockup of what I mean

Hi @robertjahn, thank you for your suggestion. I have some questions for this:

how would you check for JSON? A custom button or automatically if the headers are set to Content-Type: application/json?
how should we handle secrets? We cannot fetch them before performing the call due to security risks. We could have the case that a secret has value my" secret and it is used in the payload { "key": "{{  .secret.mySecret }}" } which will invalidate the JSON format.


Fix loop that never returns on http error

While running this exporter in the grafana agent, we have identified a loop that never returns in case of http error. This in turn causes the agent to never release a lock, preventing it from making progress.
Note: I have not added additional metrics to report errors as I am trying to keep the scope of this change minimal, but it would be a good idea to add a gauge as stated in the prometheus guidelines.
See https://github.com/grafana/agent/issues/3144

Thanks for this @jcreixell and sorry for the delay in getting this merged.
This is now available as version 1.0.4 and on Docker Hub at githubexporter/github-exporter.


error when checking

Extension won't work, throwing an error every time I check now

@MugenDad commented on May 20, 2020, 8:53 PM GMT+1:

Extension won't work, throwing an error every time I check now

Looks like you haven't logged into your MS rewards account.

I’m logged in, I’ve even tried logging out and logging back in, deleting and re-loading the extension. Could it be that I’m logged in via 2FA instead of my password?

Would you mind go to this site, and search for userstatus. You should be able to find something like var dashboard = {"userStatus":. Can you copy the whole block of code until you see the following?
appDataModule.constant("prefetchedDashboard", dashboard);
--
  | appDataModule.constant("family", {});
  | appDataModule.constant("prefetchedStatus", {});
  | appDataModule.constant("redeemCatalog", {});
  | appDataModule.constant("prefetchedRebates", {});
  | </script>

There shouldn't be any account info in it so it's safe to share.


Documentation for tree missing

I need D3’s tree-function, but can’t find out how exactly it’s implemented in Vs. Examples and documentation would be great!

Sorry I will add that today. Thanks for your infos.
Le dim. 22 juil. 2018 à 09:10, K E N O<EMAIL_ADDRESS>a écrit :

I need D3’s tree-function, but can’t find out how exactly it’s
implemented in Vs. Examples and documentation would be great!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/GopherJ/Vs/issues/1, or mute the thread
https://github.com/notifications/unsubscribe-auth/AZmQS0wIjcH2AMIycMZcuRtNRtbbYBkGks5uJCVggaJpZM4VZ5Dk
.

Wow, that’s awesome!

@kenokenobingo README.md has been updated.

Thank you, @leavesdrift and @GopherJ!


fail to resolve

hi tnx for lib
when i add your dep in my gradle this error appeared
Error:Failed to resolve: com.android.support:appcompat-v7:23.1.1
and
Error:Failed to resolve: com.android.support:recyclerview-v7:23.1.1
and
Error:Failed to resolve: com.android.support:support-v4:23.1.1
and
Error:Failed to resolve: com.android.support:support-annotations:23.1.1
and i have this dep in gradle
compile 'com.android.support:appcompat-v7:22.+'
compile 'com.android.support:recyclerview-v7:+'
compile 'com.android.support:cardview-v7:21.0.+'

You need to use version 23.0.2 of all those libs.

The library is now on jCenter, as an alternative to JitPack.io. jCenter is Android Studio's default Maven repository.
See the README for updated dependency info: https://github.com/afollestad/material-dialogs#gradle-dependency


[Question] vela status doesn't show the trait and its status

Deploy the app with the Appfile.
✗ cat vela.yaml
name: blog

services:
  wordpress:
    type: webservice # could be skipped
    image: wordpress:php7.4-apache
    port: 80
    cpu: "1"

Append the trait field and vela up again.
✗ cat vela.yaml
name: blog

services:
  wordpress:
    type: webservice # could be skipped
    image: wordpress:php7.4-apache
    port: 80
    cpu: "1"

    route:
      domain: zhouzhengxi.com
      issuer: tls
      rules:
        - path: /wordpress
          rewriteTarget: /

The trait information doesn't show up in vela status.
➜  /Users/zhouzhengxi/Programming/golang/src/github.com/zzxwill/try-cloudnative/try-oam/blog git:(master) ✗ vela status blog
About:

  Name:      	blog
  Namespace: 	default
  Created at:	2020-12-04 16:42:22.089454 +0800 CST
  Updated at:	2020-12-04 16:42:22.089455 +0800 CST

Services:

  - Name: wordpress
    Type: webservice
    HEALTHY Ready:1/1
    Traits:

    Last Deployment:
      Created at: 2020-12-04 16:31:46 +0800 CST
      Updated at: 2020-12-04T16:42:22+08:00
➜  /Users/zhouzhengxi/Programming/golang/src/github.com/zzxwill/try-cloudnative/try-oam/blog git:(master) ✗ vela ls
SERVICE       	APP           	TYPE      	TRAITS	STATUS  	CREATED-TIME
wordpress     	blog          	webservice	route 	Deployed	2020-12-04 16:31:46 +0800 CST

/assign

@TomorJM Thanks for taking up this feature. Would you please shall your proposal?

The route trait runs well

Actually all of the built-in trait can all be displayed normally

The route trait runs well

Actually all of the built-in trait can all be displayed normally

@TomorJM Thanks for the verification.

@TomorJM Thanks for the verification.


turnToHeading()

Summary
Implements turn to heading function, renamed old function to turnToPoint().
Motivation
Turning to a heading instead of a point is also useful.
Test Plan
Plan: run on a robot the same way turnToPoint and other motions would be tested.
Additional Notes
Runs with slightly modified logic from the old turnTo() so there should be no issues (unless I screwed something up).

Download the template for this pull request:

[!NOTE]
This is auto generated from Add Template to Pull Request

via manual download<EMAIL_ADDRESS>via PROS Integrated Terminal:

curl -o<EMAIL_ADDRESS>https://nightly.link/LemLib/LemLib/actions/artifacts/1202490140.zip;
pros c fetch<EMAIL_ADDRESS>pros c apply<EMAIL_ADDRESS>rm<EMAIL_ADDRESS>

Has this been tested yet?

NOTE: hasn't been fully tested yet, @edwart2cAKE is testing it.

Update: passed testing by @edwart2cAKE

LGTM


Files scan

Support scanning files and directories.

Going ahead and pulling this in so I can start integrating it into the pattern testing


Fix leaking remote streams on Android

Remote streams were leaking on Android, because when a peer connection was closed tracks were not removed from WebRTCModule. This PR stores tracks and streams in PeerConnectionObserver. Also adapts the iOS part to use similar strategy instead of special react tag syntax.

@paweldomas this PR still checks with @saghul and @lyubomir right?


[MX-263] Removes individual artist artwork rails from home

Every now and then on the home page, we would include a rail for artworks by either an artist you follow, or a recommended artist based on who you already follow. It's not really clear to the user why they see this content, and the content is duplicated in the "works for you" screen, so let's remove it from home.
Here's a side-by-side comparison as you scroll down home. You can see the the Keith Haring and Jen Wink Hays artwork rails are gone:
screenshots

Before
After

Note: I'm leaving in some logic to handle artwork rails subtitles, in case we add these back in later.

Waiting for #3223 to get merged so I can add a changelog entry.

Let's try this..

#MergeOnGreen

Success.


Motherload Overlays

Anyway someone can outline the ore veins in the motherload mine like how OSBuddy does? I love this client, but motherload is probably the only reason I still have OSBuddy installed on my computer.

Can you provide a screenshot of the outline? As far as I'm aware they do the same thing we do with displaying the mining skill icon on rocks.
Eg.

(this is runelite)

I remember in runeloader, there was a bounding box outline on nodes when they were populated, this made it easier to see (yellow lines over brown walls) than dark grey mining icon on brown walls,

Ah, I was being dumb. Nvm


No errors but can't sign commits

Hey! :wave:
Thanks for this GitHub Action.
Behaviour
Actual behaviour
I can't sign commits in GitHub Actions.
Following the README, here's what I did:

export the GPG private key as an ASCII armored version to your clipboard (I'm on Ubuntu 21.04)
gpg --armor --export-secret-key<EMAIL_ADDRESS>-w0 | xclip

Set GPG_PRIVATE_KEY in my repo secrets

Have a workflow file like this:

name: 'Release'

on:
  push:
    branches: [master, develop]
  pull_request:
    branches: [master, develop]

jobs:
  release:
    runs-on: 'ubuntu-latest'
    steps:
      - uses<EMAIL_ADDRESS>
      - name: 'Import GPG key'
        uses<EMAIL_ADDRESS>        with:
          gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
          git-user-signingkey: true
          git-commit-gpgsign: true

      -
        name: GPG user IDs
        run: |
          echo "fingerprint: ${{ steps.import_gpg.outputs.fingerprint }}"
          echo "keyid:       ${{ steps.import_gpg.outputs.keyid }}"
          echo "name:        ${{ steps.import_gpg.outputs.name }}"
          echo "email:       ${{ steps.import_gpg.outputs.email }}"

      - name: Sign commit and push changes
        run: |
          printf 'signed commit\n' > bar.txt
          git add .
          git commit -S -m "chore: this commit should be gpg signed! [skip ci]"
          git push

I have created a temporary GitHub repo to try to sign commits, I'll remove it later (when hopefully it works).

Repository URL (if public): https://github.com/Divlo/test-release-app

There are lot of commits, because actually I tried everything but nothing seems to work.
Latest run : https://github.com/Divlo/test-release-app/runs/3377173175
As you can, the step called GPG user IDs prints nothing.
And there is no error with Import GPG key
It correctly create bar.txt and commit the file but the commit is not signed.
I'm using the GPG_PRIVATE_KEY both locally and for this GitHub Action.
All my commits created and pushed locally are signed but not the ones created with the GitHub Action.
I generated the key with $ gpg --full-generate-key without passphrase following https://docs.github.com/en/github/authenticating-to-github/managing-commit-signature-verification/generating-a-new-gpg-key.
I tried to use crazy-max/ghaction-import-gpg@openpgp5 instead of<EMAIL_ADDRESS>and I've got this error: Error: Key block contains multiple keys
But it only contains 1 key, it works locally and with 3.2.0, there is no error.
I would love to have some help, thanks a lot! :smile:

Any solution? @crazy-max

@Divlo Sorry for the delay, your commit https://github.com/Divlo/test-release-app/commit/f2c9a11e80e1a9d3fa3516024748866c6eba7c27 is actually is signed:

But the pubkey seems missing in your settings (see https://docs.github.com/en/github/authenticating-to-github/managing-commit-signature-verification/adding-a-new-gpg-key-to-your-github-account#adding-a-gpg-key)

Also the id in the Import GPG key step is missing if you want to use the outputs:
      - name: 'Import GPG key'
        id: import_gpg
        uses<EMAIL_ADDRESS>        with:
          gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
          git-user-signingkey: true
          git-commit-gpgsign: true

Indeed, somehow I set GPG_PRIVATE_KEY to the wrong private key associated with the public key I added to my GitHub Account.
Thanks a lot for your help! It solves the issue. :+1:


ZLMA bug

d = pd.DataFrame(np.array([1,2,3,4,5,6,7,8,9,10]))
d.ta.zlma(close=d[0], length= 5, append=True)
print(d)

output:
    0  ZL_EMA_5
0   1       NaN
1   2       NaN
2   3       NaN
3   4       NaN
4   5      **_6.00_**
5   6      6.67
6   7      7.44
7   8      8.30
8   9      9.20
9  10     10.13

the input series has the first 5 values clearly below 6.0
ZLMA somehow calculates that the first visible value (for the input of 5.0) is 6.0
the calculation of the corrected input (using an offset) is not returning correct values for early data.
ZLMA uses EMA by default, making this bug (nearly) invisible after 20+ bars are calculated.

doing manual calculation on paper. this is actually correct calculation - ZLEMA overshoots on purpose in the early part of the calc..

I researched this further. I do believe we have a bug in early calculations (when n<lag). Here is the formula from zlma.py:
lag = int(0.5 * (length - 1))
close_ = 2 * close - close.shift(lag)

the close.shift(lag) will generate NaN for all values where shift points outside the dataframe, creating the early value of 2*close.
Most of my reserach and calculations show me that we should use  a simple close (instead of 2*close) for values when n<lag; early results from the zlma would be more consistent.
as this is asymptotical indicator, the bug irons out in 20+ bars or so - but I'd still suggest we adapt the close.shift(lag) with a ternary operator that is checking if shift(lag) is possible and - if not - use a simple close instead.
Thoughts?

@mihakralj,

Most of my reserach and calculations show me that we should use a simple close (instead of 2*close) for values when n<lag; early results from the zlma would be more consistent.

Sounds good. As you know, if you want to make PR so I can try it out and see how to best incorporate it, that would be great. Sometimes I am not gifted with abstraction and something concrete can help me visualize and understand better. So I appreciate the spare time, consideration and attention to detail you have contributed to help make this library while also building on your own C# version. 😎

(btw, I am obsessed with valid early values of indicators... My C# library doesn't hide anything with NaN and generates values from the first bar on...)

No worries. That would be my preferred (and potentially next) approach as well if I was not providing a Python fall back of TA Lib.
Thanks,
KJ

OK, PR on its way this weekend.
(BTW - does kama indicator work at all for you? I get returned empty series when calling kama from Pandas-Ta)

@mihakralj,
Awesome. Yes, the default for sure. I usually test with 1 year bars with of data. Are there certain parameters or minimum bar requirements failing?

KJ

Must be my concoction of your code and my dissections and mutilations... Let me go back to basics.

No worries.


⚠ Cioos Pacific CKAN Sitemap has degraded performance

In 587e93e, Cioos Pacific CKAN Sitemap (https://catalogue.cioospacific.ca/sitemap/sitemap-1.xml) experienced degraded performance:

HTTP code: 200
Response time: 8042 ms

Resolved: Cioos Pacific CKAN Sitemap performance has improved in 04cb8f5 after 1 hour, 1 minute.


bug(docs): documentation for new surface clients is broken

See the new SecretManager client

The inherited docs are broken
new methods are not showing up

Fixed in https://github.com/googleapis/google-cloud-php/pull/6226


[DT] Update error code in test

The change is in the innerError so not considered a breaking change.
It all seems like goodness to me, so I went and updated the name of the tests too.

/azp run net - translation - tests

Did you see that it failed with the new error code every time in .NET? I'm seeing a mix of old/new being returned so I was hesitant to make the change until we heard back from the service team.

Yeah. First time was half and half. I tried running the build again and it failed consistently https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1145240&view=results


Merge pull request #1 from codecombat/master

1

Coverage increased (+0.01%) to 56.797% when pulling 373e015ebb50bf6cd272b5679c82083522d659c4 on jequal:master into e5397d74f75ce2aa25154717576e8eea7c0474b2 on codecombat:master.


Terraform snippets

Hey @rafamadriz,
I was wondering if it would be okay to re-introduce the terraform snippets. I noticed that there was a fix commit on the 20th of May (https://github.com/rafamadriz/friendly-snippets/commit/28ee6669ab36cab6ff7d3d7f17ecb045e0138e7f) and the day after a full revert (https://github.com/rafamadriz/friendly-snippets/commit/2bb3958e1fe0a613e028f3c6fd2d2923fc23bd0c).
I checked #294 and can't reproduce the issue @aleprovencio ran into. In my tests using 28ee666 I switched from a terraform file to markdown, groovy etc and haven't noticed any issues with syntax highlighting or the snippet engine..
I am using a recent version of LazyVim as a base with very little configuration so far, so the config should be relatively "default".

Sure, I don't see any harm in opening a new PR. Would also allow us to get more eyes on it this time around.

Closing this issue since the question was resolved. If you feel we should have it open when the PR is open then feel free to do so :sunglasses:

I encountered the same issues as described in https://github.com/rafamadriz/friendly-snippets/issues/294 plus a few more.
I had to debug and clean up the issues manually by doing:

:lua require('luasnip').log.open()
gf on the problematic snippet file
:goto <byte_count>
Investigate and fix the problem
Repeat (as you can see from my log file)

:lua require('luasnip').log.open()

WARN  | vscode-loader: Package /home/.local/share/nvim/lazy/vim-dadbod-completion/package.json does not contribute any snippets, skipping it
WARN  | vscode-loader: Package /home/.local/share/nvim/lazy/vim-dadbod-completion/package.json does not contribute any snippets, skipping it
WARN  | vscode-loader: Package /home/.local/share/nvim/lazy/vim-dadbod-completion/package.json does not contribute any snippets, skipping it
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected comma or array end but found T_STRING at character 182590
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected comma or array end but found T_STRING at character 182590
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
WARN  | vscode-loader: Package /home/.local/share/nvim/lazy/vim-dadbod-completion/package.json does not contribute any snippets, skipping it
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected comma or array end but found T_STRING at character 182590
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected comma or array end but found T_STRING at character 194685
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected comma or array end but found T_STRING at character 194685
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected comma or array end but found T_STRING at character 194806
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected comma or array end but found T_STRING at character 194806
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected comma or array end but found T_STRING at character 194787
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected comma or array end but found T_STRING at character 194787
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected comma or array end but found T_STRING at character 194787
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected comma or array end but found T_STRING at character 182571
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected comma or array end but found T_STRING at character 182639
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
WARN  | vscode-loader: Package /home/.local/share/nvim/lazy/vim-dadbod-completion/package.json does not contribute any snippets, skipping it
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected comma or array end but found T_STRING at character 182639
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected the end but found T_COMMA at character 200462
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected the end but found T_COMMA at character 200462
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected the end but found T_COMMA at character 200462
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
WARN  | vscode-loader: Package /home/.local/share/nvim/lazy/vim-dadbod-completion/package.json does not contribute any snippets, skipping it
WARN  | vscode-loader: Package /home/.local/share/nvim/lazy/vim-dadbod-completion/package.json does not contribute any snippets, skipping it
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected comma or array end but found T_STRING at character 182571
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected comma or array end but found T_STRING at character 182571
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected comma or array end but found T_STRING at character 182571
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected comma or array end but found T_STRING at character 182639
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected the end but found T_COMMA at character 200462
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected the end but found T_COMMA at character 200462
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected object key string but found T_OBJ_END at character 200462
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected value but found T_ARR_END at character 200468
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected value but found T_ARR_END at character 200468
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected value but found T_ARR_END at character 200468
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected value but found T_ARR_END at character 200468
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
WARN  | vscode-loader: Package /home/.local/share/nvim/lazy/vim-dadbod-completion/package.json does not contribute any snippets, skipping it
WARN  | vscode-loader: Package /home/.local/share/nvim/lazy/vim-dadbod-completion/package.json does not contribute any snippets, skipping it
WARN  | vscode-loader: Package /home/.local/share/nvim/lazy/vim-dadbod-completion/package.json does not contribute any snippets, skipping it
WARN  | vscode-loader: Package /home/.local/share/nvim/lazy/vim-dadbod-completion/package.json does not contribute any snippets, skipping it
WARN  | vscode-loader: Package /home/.local/share/nvim/lazy/vim-dadbod-completion/package.json does not contribute any snippets, skipping it
WARN  | vscode-loader: Package /home/.local/share/nvim/lazy/vim-dadbod-completion/package.json does not contribute any snippets, skipping it
WARN  | vscode-loader: Package /home/.local/share/nvim/lazy/vim-dadbod-completion/package.json does not contribute any snippets, skipping it
WARN  | vscode-loader: Package /home/.local/share/nvim/lazy/vim-dadbod-completion/package.json does not contribute any snippets, skipping it
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected object key string but found T_OBJ_END at character 242660
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected comma or array end but found T_STRING at character 182590
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected the end but found T_COMMA at character 200481
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected the end but found T_COMMA at character 200462
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected comma or array end but found T_STRING at character 200453
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.
ERROR | vscode-loader: Could not parse file /home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json: Expected object key string but found T_OBJ_END at character 240785
ERROR | vscode-loader: Reading json from file `/home/.local/share/nvim/lazy/vscode-terraform-snippets/snippets/terraform.json` failed, skipping it.

I submitted a PR fix.
I can submit a PR here as well if you want to merge it @OkelleyDevelopment .


incompatibility with RTG

well this has been happening since JEID, with the RTG mod: https://www.curseforge.com/minecraft/mc-mods/realistic-terrain-generation/files
the mod has support for several biome mods, so if you use all of them there is no biome id, but if you use the JEID or the REID it gives the same error, it doesn't even start the world generation, it's been like this for a long time and no one has ever fixed it, I don't know if the mod will add support for more mods, but here's my report

There's an unofficial fork of RTG that is planning on fixing that incompatibility.

Leaving this open until we see where RTG: Unofficial goes.
https://github.com/juraj-hrivnak/RTG-Unofficial/tree/1.12.2-jeid-compat

I made some progress on the compat. It needs testing, though.
You can try the build here.
From my testing, one thing remains incompatible, and that is the river generation. I suspect it is a bug from JEID itself. It looks like biomes can not be reassigned when JEID is present because without JEID this feature works fine.

After the recent changes in the mod and the PR, these two mods should be fully compatible!


[GPU usage] why accelerator keep using cpu?

I use the accelerator as the README does, but even if I set
cpu=False
the accelerator.device still shows that I'm using the CPU for training.
Is this a bug? or how can I specify the training device when using this package?

Which setup are you using? Accelerate relies on torch.cuda.is_available() to choose the default between CPU and GPU, so you should look at the output of this. If it doesn't send back True, you may have an installation problem.

I found that the accelerator's device will be set to cpu if I called
accelerator = Accelerator()
after
import tw_rouge
which is a package used to count traditional Chinese rouge using ckiptagger and rouge package below:
https://github.com/ckiplab/ckiptagger
https://github.com/pltrdy/rouge
by watching the logs, I think the problem may be caused by the tensorflow
2021-06-03 17:54:33.819100: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0 /usr/local/lib/python3.8/dist-packages/tensorflow/python/keras/layers/legacy_rnn/rnn_cell_impl.py:903: UserWarning: tf.nn.rnn_cell.LSTMCellis deprecated and will be removed in a future version. This class is equivalent astf.keras.layers.LSTMCell, and will be replaced by that in Tensorflow 2.0.   warnings.warn("tf.nn.rnn_cell.LSTMCellis deprecated and will be " /usr/local/lib/python3.8/dist-packages/tensorflow/python/keras/engine/base_layer_v1.py:1727: UserWarning:layer.add_variableis deprecated and will be removed in a future version. Please uselayer.add_weight method instead.   warnings.warn('layer.add_variable is deprecated and ' 2021-06-03 17:54:36.784272: I tensorflow/compiler/jit/xla_cpu_device.cc:41] Not creating XLA devices, tf_xla_enable_xla_devices not set 2021-06-03 17:54:36.786789: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcuda.so.1 2021-06-03 17:54:36.858232: E tensorflow/stream_executor/cuda/cuda_driver.cc:328] failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected 2021-06-03 17:54:36.858468: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:169] retrieving CUDA diagnostic information for host: cfda4 2021-06-03 17:54:36.858620: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:176] hostname: cfda4 2021-06-03 17:54:36.859182: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:200] libcuda reported version is: 460.73.1 2021-06-03 17:54:36.859235: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:204] kernel reported version is: 460.73.1 2021-06-03 17:54:36.859255: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:310] kernel version seems to match DSO: 460.73.1 2021-06-03 17:54:39.131784: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX512F To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. 2021-06-03 17:54:39.137685: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set 2021-06-03 17:54:39.295394: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:196] None of the MLIR optimization passes are enabled (registered 0 passes) 2021-06-03 17:54:39.552281: I tensorflow/core/platform/profile_utils/cpu_utils.cc:112] CPU Frequency:<PHONE_NUMBER> Hz
but the weird thing is that if I called
accelerator = Accelerator()
before
import tw_rouge
the log will become
 1 2021-06-03 17:58:55.383775: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcu    dart.so.11.0   2 2021-06-03 17:58:59.499627: I tensorflow/compiler/jit/xla_cpu_device.cc:41] Not creating XLA devices, tf_xla_enable_xla_devices not s    et   3 2021-06-03 17:58:59.499808: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcu    da.so.1   4 2021-06-03 17:58:59.501304: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1720] Found device 0 with properties:   5 pciBusID: 0000:3b:00.0 name: Tesla V100-PCIE-32GB computeCapability: 7.0   6 coreClock: 1.38GHz coreCount: 80 deviceMemorySize: 31.75GiB deviceMemoryBandwidth: 836.37GiB/s   7 2021-06-03 17:58:59.502498: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1720] Found device 1 with properties:   8 pciBusID: 0000:af:00.0 name: Tesla V100-PCIE-32GB computeCapability: 7.0   9 coreClock: 1.38GHz coreCount: 80 deviceMemorySize: 31.75GiB deviceMemoryBandwidth: 836.37GiB/s  10 2021-06-03 17:58:59.502559: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcu    dart.so.11.0  11 2021-06-03 17:58:59.508445: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcu    blas.so.11  12 2021-06-03 17:58:59.508596: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcu    blasLt.so.11  13 2021-06-03 17:58:59.510410: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcu    fft.so.10  14 2021-06-03 17:58:59.510859: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcu    rand.so.10  15 2021-06-03 17:58:59.514150: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcu    solver.so.10  16 2021-06-03 17:58:59.515399: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcu    sparse.so.11  17 2021-06-03 17:58:59.515652: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcu    dnn.so.8  18 2021-06-03 17:58:59.519964: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1862] Adding visible gpu devices: 0, 1  19 2021-06-03 17:59:03.649856: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep     Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX512F  20 To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.  21 2021-06-03 17:59:03.654946: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not s    et  22 2021-06-03 17:59:05.965684: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1720] Found device 0 with properties:  23 pciBusID: 0000:3b:00.0 name: Tesla V100-PCIE-32GB computeCapability: 7.0  24 coreClock: 1.38GHz coreCount: 80 deviceMemorySize: 31.75GiB deviceMemoryBandwidth: 836.37GiB/s  25 2021-06-03 17:59:05.966887: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1720] Found device 1 with properties:  26 pciBusID: 0000:af:00.0 name: Tesla V100-PCIE-32GB computeCapability: 7.0  27 coreClock: 1.38GHz coreCount: 80 deviceMemorySize: 31.75GiB deviceMemoryBandwidth: 836.37GiB/s  28 2021-06-03 17:59:05.967021: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcu    dart.so.11.0  29 2021-06-03 17:59:05.967526: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcu    blas.so.11  30 2021-06-03 17:59:05.967580: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcu    blasLt.so.11  31 2021-06-03 17:59:05.967609: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcu    fft.so.10  32 2021-06-03 17:59:05.967636: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcu    rand.so.10  33 2021-06-03 17:59:05.967668: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcu    solver.so.10  34 2021-06-03 17:59:05.967722: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcu    sparse.so.11  35 2021-06-03 17:59:05.967750: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcu    dnn.so.8  36 2021-06-03 17:59:05.972271: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1862] Adding visible gpu devices: 0, 1  37 2021-06-03 17:59:05.972385: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcu    dart.so.11.0  38 2021-06-03 17:59:16.298486: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1261] Device interconnect StreamExecutor with strength     1 edge matrix:  39 2021-06-03 17:59:16.298586: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1267]      0 1  40 2021-06-03 17:59:16.298601: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1280] 0:   N Y  41 2021-06-03 17:59:16.298610: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1280] 1:   Y N  42 2021-06-03 17:59:16.322592: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1406] Created TensorFlow device (/job:localhost/replic    a:0/task:0/device:GPU:0 with 11399 MB memory) -> physical GPU (device: 0, name: Tesla V100-PCIE-32GB, pci bus id: 0000:3b:00.0, compu    te capability: 7.0)  43 2021-06-03 17:59:16.349281: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1406] Created TensorFlow device (/job:localhost/replic    a:0/task:0/device:GPU:1 with 12909 MB memory) -> physical GPU (device: 1, name: Tesla V100-PCIE-32GB, pci bus id: 0000:af:00.0, compu    te capability: 7.0)  44 2021-06-03 17:59:16.615722: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:196] None of the MLIR optimization passes are     enabled (registered 0 passes)  45 2021-06-03 17:59:17.224102: I tensorflow/core/platform/profile_utils/cpu_utils.cc:112] CPU Frequency:<PHONE_NUMBER> Hz  46 /usr/local/lib/python3.8/dist-packages/tensorflow/python/keras/layers/legacy_rnn/rnn_cell_impl.py:903: UserWarning:tf.nn.rnn_cell.L    STMCellis deprecated and will be removed in a future version. This class is equivalent astf.keras.layers.LSTMCell, and will be r    eplaced by that in Tensorflow 2.0.  47   warnings.warn("tf.nn.rnn_cell.LSTMCellis deprecated and will be "  48 /usr/local/lib/python3.8/dist-packages/tensorflow/python/keras/engine/base_layer_v1.py:1727: UserWarning:layer.add_variableis dep    recated and will be removed in a future version. Please uselayer.add_weight method instead.
I think the problem might exist between torch and tensorflow...

Mmm, looks like there is nothing I can do on the Accelerate side to help then.

@sgugger where can I know the mechanism behind Accelerator?
I try to run https://github.com/huggingface/transformers/blob/master/examples/pytorch/summarization/run_summarization_no_trainer.py with google/mt5-small model
on my own V100 GPU (32GB)
but when using accelerator, it told me CUDA out of memory, and nvidia-smi showed that it has use 24,000+MB memory.
However, without using accelerator, the model runs well and nvidia-smi shows that it only use 18,963 MB of CUDA memory.
I want to know why the accelerator will cause the OOM problem.

It's hard to know the problem without knowing the two scripts you ran for comparison. Accelerate is just syntax sugar around PyTorch, so the problem most likely lies in the code itself.


Not able to display Image into 'ImagePreview' in MediaPicker when open the mediapicker through 'Insert/update media' from  Html( Class : mce-tinymce) Flavor control.

Hi,
I have content type 'Carousel Item' in admin site.The content contains control 'Html' Flavor type for Body.See screenshot '1.EditContent.jpg'.
When I am trying to  create 'Carousel Item' content, it render the HTML control on screen.See screenshot '2.EditContent.jpg'.After that I have click on "Insert/update media" as shown in screenshot.
This will open the MediaPicker popup.In that  after browse the image I have clicked on button upload.But it is not showing me any message or it is not uploading any image.See screenshot '3.MediaPicker.jpg'.
Issue : It is not uploading any Image in media picker after following above steps.
Observation :

I have observe that when it is open the popup for media picker it is not passing the parameters in querystring.See screenshot '3.MediaPicker.jpg'.It is not passing parameter for querystring parameter "uploadpath".

Also in same page (screenshot '2.EditContent.jpg') I have another control for browse the image which  use the media picker. When I am click on that it will allow me to browse and save the image.I have check the querystring and it is passing value "Images" for querystring "uploadpath".
I am using Orchard 1.10 Version.
Request you to please assist on same ASAP.

Media Picker is a deprecated module since 1993, please use Media Library Picker

Hi,
Can you please provide reference url for how to  implement the 'Media Library Picker'?
I have search for module but I am not getting any luck.
Regards,
Nayan Patel

The way you use the Media Library Picker is to attach it to a content part, like any other content field. If there is anything specific you'd like to know about the media library picker field, then please do ask your question on the forums such as CodePlex, StackOverflow or OrchardPros.


man-pages: 6.05.01 -> 6.7

Description of changes

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Apparently, this bump breaks man-pages on Darwin.  I guess /dev/stdin behaves different on Darwin.
...
INSTALL         /nix/store/3s28l9ijlkmsq8256zdxjvl173gkn37c-man-pages-6.7/share/man/man3/addseverity.3
INSTALL         /nix/store/3s28l9ijlkmsq8256zdxjvl173gkn37c-man-pages-6.7/share/man/man3/adjtime.3
install: skipping file '/dev/stdin', as it was replaced while being copied
make: *** [share/mk/install/man.mk:54: /nix/store/3s28l9ijlkmsq8256zdxjvl173gkn37c-man-pages-6.7/share/man/man3/addmntent.3] Error 1
make: *** Waiting for unfinished jobs....
install: skipping file '/dev/stdin', as it was replaced while being copied
make: *** [share/mk/install/man.mk:54: /nix/store/3s28l9ijlkmsq8256zdxjvl173gkn37c-man-pages-6.7/share/man/man3/acosh.3] Error 1
install: skipping file '/dev/stdin', as it was replaced while being copied
install: skipping file '/dev/stdin', as it was replaced while being copied
install: skipping file '/dev/stdin', as it was replaced while being copied
...

Would you mind marking it as broken on Darwin?

Apparently, this bump breaks man-pages on Darwin. I guess /dev/stdin behaves different on Darwin.
...
INSTALL         /nix/store/3s28l9ijlkmsq8256zdxjvl173gkn37c-man-pages-6.7/share/man/man3/addseverity.3
INSTALL         /nix/store/3s28l9ijlkmsq8256zdxjvl173gkn37c-man-pages-6.7/share/man/man3/adjtime.3
install: skipping file '/dev/stdin', as it was replaced while being copied
make: *** [share/mk/install/man.mk:54: /nix/store/3s28l9ijlkmsq8256zdxjvl173gkn37c-man-pages-6.7/share/man/man3/addmntent.3] Error 1
make: *** Waiting for unfinished jobs....
install: skipping file '/dev/stdin', as it was replaced while being copied
make: *** [share/mk/install/man.mk:54: /nix/store/3s28l9ijlkmsq8256zdxjvl173gkn37c-man-pages-6.7/share/man/man3/acosh.3] Error 1
install: skipping file '/dev/stdin', as it was replaced while being copied
install: skipping file '/dev/stdin', as it was replaced while being copied
install: skipping file '/dev/stdin', as it was replaced while being copied
...

Would you mind marking it as broken on Darwin? Edit: not a blocker for merge

Shouldn't have this been a blocker for merge tho? Since this package it's everywhere.
Is there any workarounds for us Nix Darwin users?

Looking at the failure.

Filed https://bugzilla.kernel.org/show_bug.cgi?id=218730 upstream.

Huh!  I'm quite surprised that this is the only issue you experience in Darwin.  Since the fix seems easy for the man-pages project, I'll fix it.  I'll try to have a release soon, so that you don't need to be patching it.

Also, would you mind reporting a bug to your install(1) vendor?  I don't think I'm doing anything unreasonable by installing /dev/stdin.

Since I'm here...
Would you mind reporting any other inconveniences that you may be suffering or patching in the Linux man-pages, and which you'd like to be fixed upstream?
Have a lovely day!
Alex

Would you mind reporting any other inconveniences that you may be suffering or patching in the Linux man-pages, and which you'd like to be fixed upstream?

Simple Makefiles are not actually simple. This is a pretty big inconvenience. :)

Also, would you mind reporting a bug to your install(1) vendor? I don't think I'm doing anything unreasonable by installing /dev/stdin.

Not all the world's a cookie-cutter GNU/Linux. Why do you think it's a bug?
Note this error message comes from GNU coreutils, not Apple.

Would you mind reporting any other inconveniences that you may be suffering or patching in the Linux man-pages, and which you'd like to be fixed upstream?

Simple Makefiles are not actually simple. This is a pretty big inconvenience. :)

If you can point to specific inconveniences of this Makefile, such as non-standard behavior, I may be able to help.
I know my simple makefiles are actually not that simple.  But I still consider them simpler than the alternatives.  We agree to disagree here.  :)
Still, I'm willing to help to make any inconveniences in them less inconvenient, if possible.  I recently reorganized them to be easier to understand.

Also, would you mind reporting a bug to your install(1) vendor? I don't think I'm doing anything unreasonable by installing /dev/stdin.

Not all the world's a cookie-cutter GNU/Linux. Why do you think it's a bug?

Because why would a pipe be a problem for installing?  Just create the file, suck the input file in a loop, and write to file what you get from the input file (in this case the input pipe).

Note this error message comes from GNU coreutils, not Apple.

Hmm, more reason to fix the bug.  At least we don't need to convince the fruit store.

Another inconvenience we had to do is to use  "SHELL=env". By default nixpkgs passes SHELL=/path/to/bash which clobbered default value of:
GNUmakefile:SHELL       := /usr/bin/env
GNUmakefile:.SHELLFLAGS := -S '$(BASH) -Eeuo pipefail -c'

and the resulting errors was a big head scratch when bash started complaining about -S option.
nixpkgs does not provide /usr/bin/env binary in the build sandbox,

Because why would a pipe be a problem for installing? Just create the file, suck the input file in a loop, and write to file what you get from the input file (in this case the input pipe).

It's not a pipe, it's an on-disk file that is probably a symlink to something that resolves to the same thing that the stdin file descriptor does...

Another inconvenience we had to do is to use  "SHELL=env". By default nixpkgs passes SHELL=/path/to/bash which clobbered default value of:
GNUmakefile:SHELL       := /usr/bin/env
GNUmakefile:.SHELLFLAGS := -S '$(BASH) -Eeuo pipefail -c'

and the resulting errors was a big head scratch when bash started complaining about -S option.
nixpkgs does not provide /usr/bin/env binary in the build sandbox,

Hmmm.  I can fix that one.  Since make(1) doesn't need a path, and it works with just the program name, I can use env instead of /usr/bin/env.  Out of curiosity, where do you have env(1)?
Also, since I don't need to specify the fine name, calling bash directly might be just as good, and we can avoid the weirdness of using env(1).
How about this?
SHELL := bash
.SHELLFLAGS := -Eeuo pipefail -c

Please try the following branch.  It should fix both the install(1) and the $SHELL issues.
https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/log/?h=contrib
If you confirm it's good for you, I'll push the changes to master.

Please try the following branch. It should fix both the install(1) and the $SHELL issues.
https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/log/?h=contrib

I tried, but...

Warning: Potential Security Risk Ahead
Firefox detected a potential security threat and did not continue to www.alejandro-colomar.es. If you visit this site, attackers could try to steal information like your passwords, emails, or credit card details.

Is Jia Tan in your website? What happened to https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/ ?

Please try the following branch. It should fix both the install(1) and the $SHELL issues.
https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/log/?h=contrib

I tried, but...

Warning: Potential Security Risk Ahead
Firefox detected a potential security threat and did not continue to www.alejandro-colomar.es. If you visit this site, attackers could try to steal information like your passwords, emails, or credit card details.

Is Jia Tan in your website?

Nope :)  It's documented here: https://www.alejandro-colomar.es/ssl.  You can verify the SSL certificate against my PGP key.  If you find any issues trusting my SSL cert (maybe I issued it with some unsafe parameters; I'm no SSL expert at all), please let me know.

What happened to https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/ ?

There's the master branch, but I push changes to my own server before.  Since this change is provisional, waiting for you to test them, I haven't pushed yet to <kernel.org>.  All git commits are PGP-signed, so if the server is tampered with, the signatures would be broken.

Please try the following branch. It should fix both the install(1) and the $SHELL issues.
https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/log/?h=contrib

I tried, but...

Warning: Potential Security Risk Ahead
Firefox detected a potential security threat and did not continue to www.alejandro-colomar.es. If you visit this site, attackers could try to steal information like your passwords, emails, or credit card details.

Is Jia Tan in your website?

Nope :) It's documented here: http://www.alejandro-colomar.es/ssl (Edit: changed https to http link). You can verify the SSL certificate against my PGP key. If you find any issues trusting my SSL cert (maybe I issued it with some unsafe parameters; I'm no SSL expert at all), please let me know.

What happened to https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/ ?

There's the master branch, but I push changes to my own server before. Since this change is provisional, waiting for you to test it, I haven't pushed yet to <kernel.org>. All git commits are PGP-signed, so if the server is tampered with, the signatures would be broken.

Now that I see that cert, it has Certificate Authority  Yes.  That's bad.  I should emit a cert that's not a CA.  If only openssl(1) was easier to use...

What version of darwin is this? I can't repro on Darwin 21.6.0 (MacOSX 12.6).
The issue is that /dev/stdin returns a varying inode which GNU install(1) doesn't like

Please try the following branch. It should fix both the install(1) and the $SHELL issues.
https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/log/?h=contrib
If you confirm it's good for you, I'll push the changes to master.

I noticed it's already in master. Works for me as is on darwin test box. Tested againt commit edae09f52109d240facd2c71c2f13c062ed084ad "share/mk/: build-pdf-book: Fix chapter bookmarks".
Thank you!
One more minor problem I noticed is that darwin has a case-insensitive filesystem by default. It lumps these two together in a single file:
$ find -iname nan.3
./man3/NAN.3
./man3/nan.3
$ find -iname _Exit.2
./man2/_Exit.2
./man2/_exit.2

git complains that one of the file as always clobbered. And installed man page is probably incorrect.
Don't know if man allows for file names to differ from entries it contains.

What version of darwin is this? I can't repro on Darwin 21.6.0 (MacOSX 12.6). The issue is that /dev/stdin returns a varying inode which GNU install(1) doesn't like

This one is something older:
$ uname -a
Darwin tests-iMac.local 18.7.0 Darwin Kernel Version 18.7.0: Tue Jun 22 19:37:08 PDT 2021; root:xnu-4903.278.70~1/RELEASE_X86_64 x86_64

I'll ask what nixpkgs hydra CI uses.

Please try the following branch. It should fix both the install(1) and the $SHELL issues.
https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/log/?h=contrib
If you confirm it's good for you, I'll push the changes to master.

I noticed it's already in master. Works for me as is on darwin test box. Tested againt commit edae09f52109d240facd2c71c2f13c062ed084ad "share/mk/: build-pdf-book: Fix chapter bookmarks".
Thank you!

You're welcome :-)

One more minor problem I noticed is that darwin has a case-insensitive filesystem by default. It lumps these two together in a single file:
$ find -iname nan.3
./man3/NAN.3
./man3/nan.3
$ find -iname _Exit.2
./man2/_Exit.2
./man2/_exit.2

Yup.  I knew about this one.  I guess you'll have to live with it.  I don't see a solution.  Maybe try to use a different file system.

git complains that one of the file as always clobbered. And installed man page is probably incorrect.

Yeah, I reproduced it in the past, when I had a macbook in a job.  Also in a Windows computer (back when I used Windows for games :).  I wasn't able to do man-pages' stuff there.

Don't know if man allows for file names to differ from entries it contains.

I'm not sure if I understand what you say.  Can you reword?

Don't know if man allows for file names to differ from entries it contains.

I'm not sure if I understand what you say. Can you reword?

Does man 2 _Exit always have to imply _Exit.2 file name? Or is there a way to encode an indirection that would allow having a different file name?

Don't know if man allows for file names to differ from entries it contains.

I'm not sure if I understand what you say. Can you reword?

Does man 2 _Exit always have to imply _Exit.2 file name? Or is there a way to encode an indirection that would allow having a different file name?

Hmmm.  There's a way.
If man(7) cannot find a file with that name (ignoring case), it will try to find a page with that name by looking at the NAME sections of each page.
So you will need to store both pages with dummy file names, such as _exit_lowercase_dummy.2 and _exit_uppercase_dummy.2, and then, it will work.
See an experiment:
alx@debian:~/tmp/man$ ls
foo.7  qwe.7
alx@debian:~/tmp/man$ cat foo.7
.TH bar 7 today experiment
.SH Name
baz
\-
Store a page with a different file name
alx@debian:~/tmp/man$ cat qwe.7
.TH Bar 7 today experiment
.SH Name
Baz
\-
Store a page with a different file name
alx@debian:~/tmp/man$ sudo cp * /usr/local/man/man7
alx@debian:~/tmp/man$ sudo mandb >/dev/null
Updating index cache for path `/usr/local/man/man7'. Wait...done.
alx@debian:~/tmp/man$ man 7 bar | cat
No manual entry for bar in section 7
alx@debian:~/tmp/man$ man 7 baz | cat
bar(7)              Miscellaneous Information Manual             bar(7)

Name
     baz - Store a page with a different file name

experiment                       today                           bar(7)
alx@debian:~/tmp/man$ man 7 Baz | cat
Bar(7)              Miscellaneous Information Manual             Bar(7)

Name
     Baz - Store a page with a different file name

experiment                       today                           Bar(7)

But if you store a page with the name baz.7 or baZ.7 or anything like that, it will have preference always.

Don't know if man allows for file names to differ from entries it contains.

I'm not sure if I understand what you say. Can you reword?

Does man 2 _Exit always have to imply _Exit.2 file name? Or is there a way to encode an indirection that would allow having a different file name?

Hmmm. There's a way.
If man(7) cannot find a file with that name (ignoring case), it will try to find a page with that name by looking at the NAME sections of each page.
So you will need to store both pages with dummy file names, such as _exit_lowercase_dummy.2 and _exit_uppercase_dummy.2, and then, it will work.
See an experiment:
alx@debian:~/tmp/man$ ls
foo.7  qwe.7
alx@debian:~/tmp/man$ cat foo.7
.TH bar 7 today experiment
.SH Name
baz
\-
Store a page with a different file name
alx@debian:~/tmp/man$ cat qwe.7
.TH Bar 7 today experiment
.SH Name
Baz
\-
Store a page with a different file name
alx@debian:~/tmp/man$ sudo cp * /usr/local/man/man7
alx@debian:~/tmp/man$ sudo mandb >/dev/null
Updating index cache for path `/usr/local/man/man7'. Wait...done.
alx@debian:~/tmp/man$ man 7 bar | cat
No manual entry for bar in section 7
alx@debian:~/tmp/man$ man 7 baz | cat
bar(7)              Miscellaneous Information Manual             bar(7)

Name
     baz - Store a page with a different file name

experiment                       today                           bar(7)
alx@debian:~/tmp/man$ man 7 Baz | cat
Bar(7)              Miscellaneous Information Manual             Bar(7)

Name
     Baz - Store a page with a different file name

experiment                       today                           Bar(7)

But if you store a page with the name baz.7 or baZ.7 or anything like that, it will have preference always.

However, there's a caveat: man _exit.2 will not work.  See in my example:
$ man Baz.7 | cat
No manual entry for Baz.7

@trofi @marsam Why does this remove the manpath fix?
https://github.com/NixOS/nixpkgs/pull/300797/files#diff-3ba2ce83a72b6085a66e9971f4b5187c53b36fece5a7720ac968219d1b4657b2L21

man x25 seems to work as is on NixOS. I'll try to uninstall it systemwide, will check if nix-shell -p needs that bin back and have a look why PATH workaround is important.

Proposed the restored workaround as https://github.com/NixOS/nixpkgs/pull/308363

Proposed the darwin fix by pulling current master snapshot (it's a bit hard to cherry-pick an individual fix due to churn in nearby commits in makefiles): https://github.com/NixOS/nixpkgs/pull/312813

I will release today, if that helps you.

Yeah, that would help nixpkgs and other distributions that allow darwin as a build host. Thank you!

Yeah, that would help nixpkgs and other distributions that allow darwin as a build host. Thank you!

:-)
I was delaying it a little bit becase Gentoo still hasn't released 6.7; they are (rightfully) a little bit paranoic after the xz events, and are scrutinizing all the churn I've applied to the build system lately.  :-)


Integration with Echo Plus

I own an Echo plus and some Philips Hue bulbs. I'd like to use this nodes of your to control lights with a node red flow without use a real hue bridge but the Echo plus. Is it possibile? And how?

This might be a better option for you @Zabov79, or at least somewhere to start: https://github.com/datech/node-red-contrib-amazon-echo


Linux Support

Is there any intention to support Linux with this library? In case it's helpful, I'm getting these errors when attempting to build:
#18 2.911 [14/884] Compiling JSONPatch JSONElement.swift
#18 2.911 /build/.build/checkouts/swift-jsonpatch/Sources/JSONPatch/JSONElement.swift:161:59: error: 'NSDictionary' is not convertible to '[AnyHashable : Any]'
#18 2.911             let mutable = NSMutableDictionary(dictionary: dictionary)
#18 2.911                                                           ^
#18 2.911 /build/.build/checkouts/swift-jsonpatch/Sources/JSONPatch/JSONElement.swift:161:59: note: did you mean to use 'as!' to force downcast?
#18 2.911             let mutable = NSMutableDictionary(dictionary: dictionary)
#18 2.911                                                           ^
#18 2.911                                                                      as! [AnyHashable : Any]
#18 2.911 /build/.build/checkouts/swift-jsonpatch/Sources/JSONPatch/JSONEquality.swift:29:16: error: cannot find 'CFNumberGetType' in scope
#18 2.911         return CFNumberGetType(self) == .charType
#18 2.911                ^~~~~~~~~~~~~~~
#18 2.911 /build/.build/checkouts/swift-jsonpatch/Sources/JSONPatch/JSONEquality.swift:29:42: error: cannot infer contextual base in reference to member 'charType'
#18 2.911         return CFNumberGetType(self) == .charType
#18 2.911                                         ~^~~~~~~~
#18 2.911 /build/.build/checkouts/swift-jsonpatch/Sources/JSONPatch/JSONPatchCodable.swift:157:16: error: cannot find 'CFNumberGetType' in scope
#18 2.911         switch CFNumberGetType(value) {
#18 2.911                ^~~~~~~~~~~~~~~
#18 2.911 /build/.build/checkouts/swift-jsonpatch/Sources/JSONPatch/NSDictionary+DeepCopy.swift:31:23: error: cannot assign through subscript: subscript is get-only
#18 2.911                 result[key] = array.deepMutableCopy()
#18 2.911                 ~~~~~~^~~~~
#18 2.913 error: fatalError

Awesome! I'm in desperate need of a package like this for linux, so let me know how I can help in any way!
My hunch is the incomplete porting of Foundation outside of Apple Platforms. I saw the issue around CFNumberGetType and thought a potential fix would be conditionally importing the newer FoundationNetworking framework but sadly that didn't seem to fix it.

I've created a branch called feature/linux-support. I need to install a linux distro on a vm, as I don't have an environment to test changes.
With regards to CFNumberGetType, I had a look at NSNumber.swift in the swift corelibs, I'm thinking that property objCType could be used. Something like the following.
#if os(Linux)
return objCType.pointee == 0x63 // character code for 'c'
#else
return CFNumberGetType(self) == .charType
#endif

I can test things if you need. That does sound like a good solution, when replacing the instance in JSONPatchCodable.swift, I tried changing the switch to:
#if os(Linux)
switch value.objCType.pointee {
case 0x63:
    try encode(value.boolValue)
case 0x64, 0x71, 0x51, 0x4C:
    try encode(value.doubleValue)
case 0x66, 0x49:
    try encode(value.floatValue)
default:
    try encode(value.int64Value)
}
#else
switch CFNumberGetType(value) {
case .charType:
    try encode(value.boolValue)
case .cgFloatType, .doubleType, .float64Type:
    try encode(value.doubleValue)
case .floatType, .float32Type:
    try encode(value.floatValue)
default:
    try encode(value.int64Value)
}
#endif

and it will successfully compile, but when trying to generate a patch I get a crash with:
Could not cast value of type 'Swift.String' (0xaaaaca3c58a0) to 'JSONPatch.JSONEquatable' (0xaaaacc327580).

I added similar extensions for String, Array, and Dictionary and it now builds and runs successfully! At least in my initial testing of generating a patch between two codable objects. This is awesome!
Do you want me to open a PR for this? Or do you want to handle it?

A bit messy, but this is what I tried: https://github.com/chrisschlitt/swift-jsonpatch/blob/feature/linux-support/Sources/JSONPatch/JSONEquality.swift

Do you want me to open a PR for this? Or do you want to handle it?

I think it would be good if you opened a pull request, that way you can get the contributor recognition. I can clean up the code, if required after.

Thanks!
Opened a pull request here: https://github.com/raymccrae/swift-jsonpatch/pull/7
Let me know if I should have opened it against the branch instead

Thanks @chrisschlitt, I updated the pr to target the develop branch, and I've accepted and merged the pr. I'd like to get the unit tests running on linux before making the release, just to check there are no issues.

A good confirmation imo! Thanks for getting to this so quickly and letting me help. No rush on the merge (I’m developing off this branch for now)

Release v1.0.6 published


⚠ ClamAV has degraded performance

In 32c235e, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 207 ms

Resolved: ClamAV performance has improved in 634c4e2 after 6 minutes.


Aks.ms links aren't working

The links to kusto explorer aren't working.

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

ID: c7ba96a1-65dd-5320-6d36-47de50b8403f
Version Independent ID: deee5b70-9bd5-2bf9-f7b7-12c40200693d
Content: Kusto.Explorer installation and user interface
Content Source: data-explorer/kusto/tools/kusto-explorer.md
Service: data-explorer
GitHub Login: @orspod
Microsoft Alias: orspodek

Thanks for bringing this to our attention. We are actively investigating and will get back to you soon.

The links are working ok for me (see image).

Thanks for taking a look. I've tracked the culprit to this Chrome extension mentioned here: https://docs.microsoft.com/en-us/azure/data-explorer/kusto/tools/kusto-explorer#using-chrome-and-kustoexplorer
If I disable the extension, the link works. When the extension is enabled, the links don't work. Not sure if that's limited to my machine/experience, but wanted to share. I think we're good to close this issue. Thanks again.


Add error_description/uri info to OAuthHandler

cc @Tratcher

Hi @HaoK, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.
TTYL, DNFBOT;

Fixes https://github.com/aspnet/Security/issues/512

Curious: is this the final design for logging error messages? IMHO, it feels very weird compared to the great semantic logging you're adding everywhere. Why not logging an error with the (optional) error_description and error_uri and just return a minimal AuthenticateResult?
FWIW, we started using this pattern in the OAuth2 social providers that override ExchangeCodeAsync and it really seems clearer: https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers/blob/76c146f3bde4d2de73e34f61ecac22cd764eb981/src/AspNet.Security.OAuth.Fitbit/FitbitAuthenticationHandler.cs#L73-L79

The original motivation for these error handling changes was to actually enable the ability to do something other than just log.  Just logging should be more or less unaffected, we can certainly tweak the format of the logging, my hope was to push the logging into the base RemoteHandler which logs all errors at Info already today.
https://github.com/aspnet/Security/blob/dev/src/Microsoft.AspNet.Authentication/RemoteAuthenticationHandler.cs#L28

So logging and then returning an error will result in double logging of the errors...

:shipit:

620622f260ba235c864d753262c0e6e923db93a5


Some questions about selecting HVGs in the tutorial for scATAC-seq

Hi Dr. Cao, I found a strange thing in the tutorial. When I went to the training step, I met a bug:

I think that is caused by the codes in this part (preprocessing atac)

I cannot find the steps related to selecting hvgs of ATAC, and that is why I received the previous bugs.
Could you please help me address this problem? Thanks a lot!

Oh, thanks for your help. After re-running my codes, I solve this problem. Yes, I used rna_anchored_prior_graph to construct the graph, but not sure about why I met such a bug previously.


Fe: asset information incorrect

Appears to be that the information panel is providing the info for the card itself rather than the asset (500x700 is the image resolution) - is this intentional?
Below is a VRM asset card
https://webaverse.com/assets/170

Thanks, not implemented yet!


Elliptic.K does not take negative arguments

Elliptic.K(x) currently raises a DomainError for negative x.
However, K(x) can be calculated for negative arguments with the existing routine using the identity given in Eq. (11) of this text.
Ideally, Elliptic.K(x) would just check for negative x and map it to a positive x automatically.

K, E, and ellipke now accept negative arguments.


Example: End-to-End Encrypted communication between two Raspberry Pis

Use the code from one of these guides to create an example that involves devices talking to each other
End-to-End Encryption with Rust
https://github.com/ockam-network/ockam/tree/develop/documentation/use-cases/end-to-end-encryption-with-rust#readme
End-to-End Encryption of existing application without changing their code - with TCP Inlets and Outlets
https://github.com/ockam-network/ockam/tree/develop/documentation/use-cases/end-to-end-encrypt-all-application-layer-communication#readme

Can I work on this issue?

Closing for now, we can reopen if someone wants to work on this.


pubspec.yaml: Invalid version constraint

I can't understand that why i am have this error. This error on the terminal :

Error on line 32, column 23 of pubspec.yaml: Invalid version constraint: Expected version number

 after ">=" in ">=0.5.y+x <2.0.0", got "0.5.y+x <2.0.0".

   ╷

32 │   shared_preferences: ">=0.5.y+x <2.0.0"

   │                       ^^^^^^^^^^^^^^^^^^

   ╵
pub get failed (65;    ╵)
exit code 65

and here is the pubsec.yaml codes:
name: app_one
description: A new Flutter application.

# The following line prevents the package from being accidentally published to
# pub.dev using `pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev

# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.0+1

environment:
  sdk: ">=2.7.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.3
  rate_my_app: ^0.4.0
  shared_preferences: ">=0.5.y+x <2.0.0"

dev_dependencies:
  flutter_test:
    sdk: flutter

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:

  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the material Icons class.
  uses-material-design: true

  # To add assets to your application, add an assets section, like this:
  assets:

     - assets/images/line.png

  # An image asset can refer to one or more resolution-specific "variants", see
  # https://flutter.dev/assets-and-images/#resolution-aware.

  # For details regarding adding assets from package dependencies, see
  # https://flutter.dev/assets-and-images/#from-packages

  # To add custom fonts to your application, add a fonts section here,
  # in this "flutter" section. Each entry in this list should have a
  # "family" key with the font family name, and a "fonts" key with a
  # list giving the asset and other descriptors for the font. For
  # example:
  fonts:
    - family: MontserratAlternates
      fonts:
        - asset: assets/Font1/MontserratAlternates-Medium.ttf
        - asset: assets/Font1/MontserratAlternates-Black.ttf
        - asset: assets/Font1/MontserratAlternates-BlackItalic.ttf
          style: italic

  # For details regarding fonts from package dependencies,
  # see https://flutter.dev/custom-fonts/#from-packages

Hi @tgbaozkn
y and x meant to be numbers.
Installing page https://pub.dev/packages/shared_preferences#-installing-tab- always has the last version, you can use it.
Closing since this is not an issue with flutter

@VladyslavBondarenko  i saw and i looked this page but i can't fix this issue then i saw similur issues on this page so i want to open issue

@tgbaozkn
add shared_preferences: ^0.5.7+3 to your dependencies and run flutter pub get

I used shared_preferences: '>=0.5.12+2 <2.0.0' to make it work


Number of posts always the same for facebook scrape

Seems like when I put in this command
.\skraper facebook MuziekcentrumKinkyStar -n 200 -t json -o ..\SocialMediaArchvingMeemoo\skraper\

Still only results in a json file with " only " data from 19 posts. How do I increase this?
On Windows and on Linux.

Hi, thanks for raising this issue!
Well, it's not actually a number, it's a limit for posts.
 -n LIMIT, --limit LIMIT                   posts limit (50 by default)
Most providers allow fetching only the latest posts, and currently, Facebook is one of them.


Legend help

I'm down to just 2 questions left on Lab 3!

Is the "Strikeouts per game per team" part of the legend?
I can't figure out how to get the line in the legend the same as it is on the NYT graphic. I've googled and everything I see shows just a line with a dot in the middle, which is what I'm getting. Is there a way to get the line with a dot on each end?
This is what I have right now for the legend:

legend("topleft", legend = "League Average", col = "steel blue",pch = 16, lwd = 3, bty = "n", xjust = 0, text.col = "steel blue", cex = 1.5,)

You can add a dumbbell using segments:
segments( x0=1920,  x1=1925, y0=5 )
points( c(1920,1925), c(5,5), pch=19 )

https://stat.ethz.ch/R-manual/R-devel/library/graphics/html/segments.html

Thanks, @lecy!  @AprilPeck, as counter-intuitive as it may seem, I would recommend against using the legend function and instead using the "dumbbell" code @lecy  provided, as well as function text(), with the correct coordinates, to create a custom lab.  Like how we discussed the use of plot() and the defaults elements it provides, legend() can be slightly restrictive compared to inserting custom graphical elements with points(), segments(), and text().
If legend() works for you, though, all the better!

Thank you!


Update to version 4.5.1

Issue: https://github.ibm.com/IBMPrivateCloud/roadmap/issues/63177.

Pls check update -
.md files for that branch
multiarch_image.sh


 The issue is really just that tabs like password change and privacy look like crap.
Also, the tabs use different page-widths, which looks really really silly.
Take inspiration from the "Prikker & Suspansjoner" or "E-postinnstillinger" (except for page-width) views, which look decent. All tabs should utilize the container div's width for flow-text.
Bullet points include stuff like:

Use the same header sizes
Try to use same grid layout for dual-pane stuff
Tabs that have no paragraph text should get some. Privacy should atleast have some explanation of what activation or deactivation means. Where is it in effect etc. Password change could have some hints and ideas about good password routines.
Use the same paragraph structure
Remove those buttugly big blue privacy boxes with something more elegant
In general, add some more space and air
When clicking down the nav-pills (tabs), content anchors should not be bouncing around like it is now. Headers should start at same anchor etc.

Changed the styling of the buttons in "Personvern", hopefully they aren't that ugly anymore.

Closing as this will be handled in OWF


Support for "disabled" attribute in macros

I currently use macros in splunk through the pickaxe tool. There is a "Disable" button in the Splunk UI which does not seem to be present in the pickaxe and its examples.
If I understand the code correctly, it might be relatively simpler to add by adding a new key in here:
https://github.com/cerner/splunk-pickaxe/blob/master/lib/splunk/pickaxe/objects/supported_keys.rb#L8
Can we please have that support?

Sure feel free to open a PR, I don't really support this directly much anymore


Adding authentication

It would be great if you can add the authentication to this project :) Do you schedule to do it?

Thx for putting this together Ilker. I've been trying to setup authentication, the user logs with no issue, but redux looses its state on page refresh. Any idea/example on how to solve this?

Hey @ngocdiep, This is little bit tricky topic. I'm planning to add this but also I don't want to create "huge-messy-starter-kit" so That's why i cannot give the time for release but you can be sure that I will add this feature to RAN!. :)
Hi @astenmies, fast answer is http://dev.apollodata.com/react/auth.html :) Basically, you need to set your token to session token with persist.willSetAccessToken(TOKEN);. Then, When you refresh the page, RAN! will add your token to header authorization with bearer.
You can check /libraries/apolloClient.js and /libraries/persist.js for details.

Also, links below can help to consider how to add auth system on RAN!.
https://github.com/zeit/next.js/issues/153
https://arunoda.me/blog/ssr-and-server-only-modules
https://dev-blog.apollodata.com/a-guide-to-authentication-in-graphql-e002a4039d1
http://dev.apollodata.com/react/auth.html

@Sly777 thx for your answer, I followed the same process...
Successfully setting the token (cfr console.log)
.setItem(persist.ACCESS_TOKEN_KEY, value).then(console.log('ACCESS_TOKEN_KEY', value))
But nothing gets out of the following:
(async () => {
          const token = await persist.willGetSessionToken();
          console.log('apolloClient', token)
          req.options.headers.authorization = token ? `Bearer ${token}` : null;
          next();
        })();

Here's the crucial part of SignInFormContainer. Using redux-form.
const signInMutation = gql`
  mutation signIn($email: String!, $password: String!) {
    signIn(email: $email, password: $password) {
      token,
      errors {
        key
        value
      }
    }
  }
`;

const SignInWithData = graphql(signInMutation)(SignInFormContainer);

const mapDispatchToProps = (dispatch) => ({
  signInDispatcher(token) {
    persist.willSetAccessToken(token);
  }
});

const SignInWithDataAndState = connect(
  null,
  mapDispatchToProps
)(SignInWithData);

export default SignInWithDataAndState;

Any advise? Am I missing something?
Thanks in advance

Oh boy, I finally got it working. Awesome... Shall I open a PR?

It can be perfect! @astenmies :)

Alright, let me double-check on all this, remove the styling and stuff and I'll PR.

cool! Also I was trying some stuff for auth so maybe we can add it to your PR after everything is okay.

--
I'm almost done with CL commands for adding authentication. Please approve or edit my authentication pull request in order to use it as CL template.
by @astenmies
I removed the comment that was on the wrong issue.
I'm on that. I guess, today I will finish my review. Also, I have some changes but we can finish them on your branch then we can merge with RAN.

Awesome! Man your CL is awesome, I really love it. I think I got a pretty cool/compact pattern here for auth CL commands, I'll wait for your commits first. Cheers

Hello everybody! Over the last months I created, and now refined
A generic user accounts library for node.js called ooth: https://github.com/nmaro/ooth
A starter library based on next and ooth together with a minimal boilerplate: https://github.com/nmaro/staart
It features:
Registration with email and password
Login with email or username and password
Account page where you can set your username, change your password, and resend a verification email
Forgot password/reset password pages
Verify email page
A basic GraphQL API linked to a MongoDB (1 file, can be easily removed)
Minimal boilerplate (as much logic as possible is encapsulated in libraries)
Check out a live demo here: http://staart.nmr.io/
I did it mainly for myself for rapid prototyping, to get started quickly with an application with a simple, working accounts system that doesn't rely on external services. I'm quite happy with the results. I intend to keep using and maintaining these libraries, so give it a go if you feel that an established accounts system + UI for node is still missing.

Hey all, I published new version! For more info: https://github.com/Sly777/ran/releases/tag/0.3.0
@ngocdiep @astenmies @nmaro

Great work @Sly777 , I learned things thanks to you and enjoyed the process. I'll join again for other things later on, as I'm having a child soon... Cheers

🍾 🎆 🍾 🎆 🍾 🎆  @astenmies wow, such a happy news!!! Congratulations, mate!! 🍾 🎆 🍾 🎆 🍾 🎆 🍾 🎆

It's very very great news even today is the weekend!!  Best thanks for your effort to make it!!!


Create 0000-01-02-koitaki.md

created a branch, created a file and made a commit, and opened a pull request


chore(transform_conformance): omit tests that we cannot pass right now

#7192  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @Boshen and the rest of your teammates on  Graphite


[Travis] Adding Travis building support to PMoF

Adding Travis building support.

@xuechendi , Travis tests has been added. There are still some issues with mvn tests, please check the log.


Add New VectorDB Supabase (pgvector) Support for RAG in Vocode Open Source

Issue: Add New VectorDB Supabase (pgvector) Support for RAG in Vocode Open Source
Description
This issue proposes the integration of Supabase (pgvector) as a new Vector Database (VectorDB) option for the Retrieval-Augmented Generation (RAG) feature in the Vocode Open Source project. The addition of Supabase (pgvector) aims to enhance the capabilities of RAG by leveraging its efficient vector search functionality, especially beneficial for handling large datasets and complex queries in conversational AI applications.
Objectives

Integration of Supabase (pgvector) with Vocode RAG: Establish a seamless connection between Vocode's RAG feature and Supabase (pgvector) to enable efficient vector storage and retrieval.
Optimization for Conversational AI: Ensure that the integration is optimized for conversational AI use cases, focusing on query performance, scalability, and accuracy.
Documentation and Examples: Provide comprehensive documentation and practical examples to guide users in utilizing Supabase (pgvector) with Vocode RAG.

Motivation
https://supabase.com/blog/pgvector-vs-pinecone

Enhanced Performance and Scalability: Supabase (pgvector) offers advanced vector search capabilities, which can significantly improve the performance and scalability of RAG in Vocode.
Broader Database Compatibility: Adding Supabase (pgvector) support will cater to a wider user base that prefers or requires this specific database technology in their projects.
Innovation in Conversational AI: By integrating with Supabase (pgvector), Vocode can push the boundaries of conversational AI, enabling more complex and nuanced dialogues in AI applications.

Implementation Considerations

Compatibility: Ensure that the integration is compatible with the existing architecture of Vocode RAG.
Performance Metrics: Establish benchmarks to evaluate the performance impact of using Supabase (pgvector) in various scenarios.

Call for Contributions
We encourage contributions from the community to help with the implementation, testing, and documentation of this feature. Whether you're an expert in databases, conversational AI, or a keen open-source contributor, your input is highly valued.
Conclusion
The addition of Supabase (pgvector) as a new VectorDB option in Vocode Open Source is expected to significantly enhance the RAG feature, providing users with more flexibility and performance benefits. We look forward to collaborating with the community on this exciting development.

I am working on this issue and according to my research.
There are two ways for building this.

Using the https://github.com/supabase/vecs client for making supabase connection.
or Using sqlalchemy the way langchain has done langchain-ai/langchain/libs/community/langchain_community/vectorstores/pgvector.py

I am planning to go ahead with approach number 1 as it will be easier and faster to implement.
What do you think?

Hi @arpagon I have some questions on the Vector DB implementation and maybe it's relevant for this. Note that these questions are not related to PGVector specifically, but the Vocode's vector db implementation as a whole

What is the purpose of including an add_text method? My understanding is the vector DB should already have been built when it's connected to Vocode. That is, Vocode responsibility is simply the retrieval -- adding text should, therefore, not be part of the interface? https://github.com/vocodedev/vocode-python/blob/cfd2eb44308cfe28136b409e22706bd5465b6c46/vocode/streaming/vector_db/pinecone.py#L27

Moreover, Vocode's current implementation of similarity_search_with_score is essentially what langchain already has implemented. So my question is, should Vocode just use langchain directly rather than making it's own implementation?
https://github.com/vocodedev/vocode-python/blob/cfd2eb44308cfe28136b409e22706bd5465b6c46/vocode/streaming/vector_db/pinecone.py#L71


No time input icon on firefox or safari browser

Describe the bug
For Input time, the time icon is not visible on Firefox or Safari browser.
To Reproduce

Go on the official documentation to this particular example https://reactdatepicker.com/#example-input-time
Open the calendar and look at the time input box. No icon available to click and open time scroll.

Expected behavior
Time icon should be visible for all browsers.
Screenshots
Firefox:

Safari:

Chrome (Works fine)

Same issue on Firefox 85.0 (64-bit) Linux Mint

I understand that DatePicker's showTimeInput is using the default browser html time input which is more advanced in Chrome than the other mentioned browsers.  The bug described above is in the browser implementation rather than DatePicker.
showTimeSelection uses a time selection that is rendered by DatePicker.


Dependency issue

Trying to add ex_machina to a phoenix app gets me this error:
Running dependency resolution

Failed to use "ecto" because
  ex_machina (versions 1.0.0 to 1.0.2) requires ~> 2.0 *
  phoenix_ecto (version 2.0.0) requires ~> 1.1
  Locked to 1.1.9 in your mix.lock

Failed to use "ecto" because
  ex_machina (versions 1.0.0 to 1.0.2) requires ~> 2.0 *
  phoenix_ecto (versions 2.0.1 to 2.0.3) requires ~> 1.1.2
  Locked to 1.1.9 in your mix.lock

* This requirement failed because by default pre-releases are never matched. To match against pre-releases include a pre-release in the requirement string: "~> 2.0-beta".

mix.lock.zip

This might be better to post in Slack or in the Elixir forums. The issue is that you need to upgrade phoenix ecto and ecto and then ExMachina. I hope that helps


Thoth.Json.Net cannot find Union case

 Issue by matthid
Thursday Oct 24, 2019 at 13:45 GMT
Originally opened as https://github.com/MangelMaxime/Thoth/issues/175

open Fable.Core
open Thoth.Json.Net

[<StringEnum>]
type Test =
 | Test1
 | TEST2

[<EntryPoint>]
let main argv =

    let t = TEST2
    printfn "%A" t
    let json = (Encode.Auto.toString(0, t))
    printfn "json %A" json
    let t2 : Test = Decode.Auto.unsafeFromString(json)
    printfn "res %A" t2

    0 // return an integer exit code

 Comment by matthid
Thursday Oct 24, 2019 at 13:48 GMT

Interestingly not even Test1 works. Do I use it wrong?

 Comment by MangelMaxime
Thursday Oct 24, 2019 at 13:50 GMT

Before your second message, I would have said it's due to how Fable works:
open Fable.Core
open Fable.Core.JsInterop

[<StringEnum>]
type Test =
    | Test1
    | TEST2
    | [<CompiledName("TEST3")>] TEST3

JS.console.log(Test.Test1)
JS.console.log(Test.TEST2)
JS.console.log(Test.TEST3)

Output:
test1
tEST2
TEST3

 Comment by matthid
Thursday Oct 24, 2019 at 13:56 GMT

Ok as discussed in gitter this is mainly due to [<StringEnum>]

 Comment by MangelMaxime
Thursday Oct 24, 2019 at 14:07 GMT

Just so I remember, it's due to [<StringEnum>] but still show that converting back and forth doesn't work on special cases. I need to cover them.


import to namespace get subtracted even if there is other component

Expected Behavior
When I remove a component on a namespace using the rails destroy command, the import does not get remove from components/index.js.
Actual Behavior
When I am using rails d component admin/test import "components/admin"; get subtracted even if there is more than one component into the admin folder.
Steps to Reproduce the Problem

rails generate component admin/test1
rails generate component admin/test2
rails destroy component admin/test2

Specifications

Ruby version: 2.5.0
Rails version: 5.2.0.rc1
Komponent version: 1.1.1
Platform: Mac OS 10.13.2

Hello @MittchoBaroco,
I agree this behavior is boring. I should check at it soon, we only need to remove imports if all components in namespace doesn't exist anymore.


Ffuf csv output

Change ffuf output format to csv to match with axiom module, processing would be:
file.csv | cut -d ',' -f2,5,6 | tr ',' ' ' | awk '{ print $2 " " $3 " " $1}' | tail -n +2 | sort -k1

Requires testing in reconftw.sh and reconftw_axiom.sh, cuz axiom's module has wordlist hardcoded

Done in dev https://github.com/six2dez/reconftw/commit/a5187e857089b1ada422784f725e92e0d5461d29


Typescript not recognize .ts file and commons instance on template.

Environment

Operating System: Darwin
Node Version:     v22.3.0
Nuxt Version:     3.13.0
CLI Version:      3.13.1
Nitro Version:    2.9.7
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      devtools, app, runtimeConfig, css, modules, i18n, primevue, image, nuxt-jsonld, mapbox, compatibilityDate
Runtime Modules<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Build Modules:    -

Reproduction
I can't reproduce it
Describe the bug
Typescript throws me an error in common inline instances within the template, such as $route or $t (nuxtI18n).
Example $route:

Example $t:

I also noticed that within the setup script, when I try, for example, to do an import of an interface that is in a .ts file, it does not recognise it, and tells me that all the files are in .js format.

I cannot reproduce the problem, does anyone have an idea what the problem might be?
Thanks
Additional context
No response
Logs
No response

I also noticed that within the setup script, when I try, for example, to do an import of an interface that is in a .ts file, it does not recognise it, and tells me that all the files are in .js format.

The following issues seem to be related.
https://github.com/microsoft/TypeScript/issues/59200

It's an issue in the vue ecosystem. They changed the recommendation to augment vue and not @vue/runtime-core. And now every library must switch to this, or types are broken. There is a workaround, but the only real solution is to upgrade all dependencies to their newer versions (or refresh lockfile). And open issues/PRs for libraries that haven't yet updated. See https://github.com/nuxt/nuxt/pull/28542.
You can see this in the release notes for v3.13, as well as a possible workaround: https://github.com/nuxt/nuxt/releases/tag/v3.13.0.


Change log check is not able to reuse python code to find package name

There are two issues:

Python specific code is not able to use parse_setup method in common tasks scripts. It's failing with error "unable to load scripts.devops_tasks.common_tasks"

nspkg packages doesn't have any change log file and this causes failure when change log path is emtpy.

/check-enforcer override

There are two issues:

Python specific code is not able to use parse_setup method in common tasks scripts. It's failing with error "unable to load scripts.devops_tasks.common_tasks"
nspkg packages doesn't have any change log file and this causes failure when change log path is emtpy.

Thanks for resolving this although am not sure why it is failing in this case.
For the Changelog break, we should just start a new CHANGELOG.md for the service.


fix: lowercase emails in db

Description
Emails should all be lower-cased in the DB, and during user matching.
Risk
N/A
Deploy Plan

deploy front
then run migration

fixes https://github.com/dust-tt/tasks/issues/1308


Add gradient methods to FinDiffGradients

Summary
Resolves #9096
Details and comments

I'd like to add @a-matsuo as a reviewer of this PR. But I can't...

LGTM. I like the way using gradient_factories in unittests and I will use it in the future. It's cooler than writing if for FiniteDiffEstimatorGradient and FiniteDiffSamplerGradient 🙂

hmm... sphinx is difficult

The release note just mentions Feature - should the Changelog: Bugfix label be removed just leaving the Feature one?

@woodsp-ibm Thanks. I reverted it in this commit a5fa842 and I forgot to remove the label.


Found a bug in DateTime on the eve of British Summer Time

Apologies guys, bug reports are not something I do very often and unsure if this is even the place to report it. Im based in England, working on the eve of british summer time  - this result is only happening for now / these dates
Code
DateTime start = new DateTime('2022','03','27','00','45);
DateTime end = start.add(Duration(minutes:15));
print(start);
print(end);
Result
2022-03-27 00:45:00.000
2022-03-27 02:00:00.000
Expected
2022-03-27 00:45:00.000
2022-03-27 01:00:00.000

What a long day. Safe to say im switching off and getting myself a beer. My brain is clearly not working.


Components view should keep current selection after sort/filter

If you filter and select a given filtered item then clear the filter the view should scroll to my selected item.
Similarly if I have a selected item and I sort it should select scroll to that selected item.

Resolved in builds >= 3.4.4149
We will now conditionally autoscroll to the selected item:
When symbols are added: If the item was visible before they were added
When sorting/filtering changes: Always
When navigating (i.e. hitting Enter): Always
When you hit the up/down arrows to move selection: Always