Execution failed for task ':app:processDebugResources'

Hi, I am installing React Native using Window 7 and configured my Android Studio SDK according to the documentation, except for Local Maven repository for Support Libraries under Extras as this package is not found under my Android SDK Manager.
I am facing the following issue when I tried to run: react-native run-android
C:\Windows\System32\AwesomeProject>react-native run-android
JS server already running.
'adb' is not recognized as an internal or external command,
operable program or batch file.
Building and installing the app on the device (cd android && gradlew.bat install
Debug...
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72301Library UP-TO-DATE
:app:prepareComAndroidSupportRecyclerviewV72301Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42321Library UP-TO-DATE
:app:prepareComFacebookFrescoDrawee0110Library UP-TO-DATE
:app:prepareComFacebookFrescoFbcore0110Library UP-TO-DATE
:app:prepareComFacebookFrescoFresco0110Library UP-TO-DATE
:app:prepareComFacebookFrescoImagepipeline0110Library UP-TO-DATE
:app:prepareComFacebookFrescoImagepipelineBase0110Library UP-TO-DATE
:app:prepareComFacebookFrescoImagepipelineOkhttp30110Library UP-TO-DATE
:app:prepareComFacebookReactReactNative0350Library UP-TO-DATE
:app:prepareComFacebookSoloaderSoloader010Library UP-TO-DATE
:app:prepareOrgWebkitAndroidJscR174650Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources
C:\Windows\System32\AwesomeProject\android\app\build\intermediates\res\merged\de
bug\values-pt\values-pt.xml: Error: Failed to create directory: C:\Windows\Syste
m32\AwesomeProject\android\app\build\intermediates\res\merged\debug\values-pt
:app:mergeDebugResources FAILED
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':app:mergeDebugResources'.

C:\Windows\System32\AwesomeProject\android\app\build\intermediates\res\merged
debug\values-pt\values-pt.xml: Error: Failed to create directory: C:\Windows\Sys
tem32\AwesomeProject\android\app\build\intermediates\res\merged\debug\values-pt

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

BUILD FAILED
Total time: 1 mins 4.228 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html

I had this problem on OSX and could solve it by running
android --clean-cache
android -update

Then it opened a window and I selected the dependencies required here. I had previously configured the SDK and selected these packages as the instructions said but these packages were 'not installed'. Then I installed them, one of them failed so I went back and selected it for installation again.
I opened up Android Studio and [created] (https://developer.android.com/studio/run/managing-avds.html#createavd) a new Android Virtual Device.
Then I went to my project folder:
android adv -> Select the device you created and click start. Wait for it to load then:
react-native init myproject
react-native run-android
It was the first time I could see a BUILD SUCCESSFUL message with Android, I hope it helps you too haha

@facebook-github-bot answered

You can solve this problem by installing Android SDK Platform 23 and Sources for Android 23.

My solution was to revert back to RN 0.38.0

I get a similar error -
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> Error: Cannot create directory C:\Windows\System32\AwesomeProject\android\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values

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

BUILD FAILED

Total time: 1 mins 41.458 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html

I have a Windows 10 machine - Android SDK tool version 26.0.1 , and Android SDK Platform-Tools version 25.0.5 but i still see the build fail.

@prateekvarma - It's an issue with at least RN 43 on windows. Not sure what's causing it but when building to the build folder it's not creating the full tree and then sometimes not cleaning up after itself.
A gradlew clean will fix the issue but having to do that every time you run is annoying. I also found another issue on RN 43 where if you tapped a button really really fast then it would throw an error.....something went horribly wrong in the last 8 weeks or so.
In my opinion....go with RN 38 and wait till the issues are resolved in a future release.

I encountered too... I am using 0.44.0, the problem is same.

if you are using windows
open a command, and  cd to your project path
type in "npm start" but do not run it!
then open another command
enter:   react-native run-android
nodejs will automatically popup
now, when the nodejs popup has the error and crash automatically, then go back the first window, press Enter!!
ok, very thing will be fine in that moment....

@Keenew  cd android && gradlew clean
cd .. && react-native run-android   didn't work for me .Following is some of my message:
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources
AAPT: libpng error: Not a PNG file
AAPT: libpng error: Not a PNG file
Error: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException:
:app:mergeDebugResources FAILED
FAILURE: Build failed with an exception.
Any other suggestion?Thank you!

@budiga To be honest with you i'm far from an expert in React Native, but after a quick search on stackoverflow it seems like your problem is not from react native but from a your png files.
Maybe you can search in that direction or try using another image to see if that works to help you locate the issue. Hope this help :)

@Keenew thank you for your advice.I solved the problem by add two lines code in the android/app/build.gradle file,the code is the following:
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false.
I don't know how it works.

@Keenew. thanks. That worked for me

@budiga where did you found out about that,  and in which part of the build.gradle did you put it?

For those who didn't know the Windows syntax:

cd android; ./gradlew clean
cd ..; react-native run-android

AAPT: libpng error: Not a PNG file
AAPT: libpng error: Not a PNG file
Error: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException:
:app:mergeDebugResources FAILED
FAILURE: Build failed with an exception.

@budiga
I encountered this same issue. If you break it down, it's saying that there's some PNG file that it can't make sense of when it's attempting to merge in png resources into the debug build. So where might this be? I hadn't add any PNGs to my app so the logical answer was that it was a PNG added by default, which narrows it down to the PNGs used for the app icon.
Sure enough, when I checked android/app/src/main/res/mipmap-* (the locations for image resources for different screen sizes)... all the folders had corrupted ic_launcher PNGs in them.
So, to fix this, I copied an android/app/src/main/res folder from another project and overwrote the files. Then, I made sure that inside android/app/src/main/res/values/strings.xml to change the app name to the current project's app name.

app name

Then I ran """./gradlew clean""" inside /android
then """react-native run-android""" in the project root.
Problem solved. :)
Hopefully that helps someone understand the thought proccess to fix these sorts of issues. Going line by line from an error message, walking backwards and learning what is really being said can save hours/days/weeks of struggle in the land of React Native. :)

Delete folder android/app/build

if hide some folder in project , unhide all.

I solve it uninstalling Android SDK Tools from Android Studio, after in the cmd I run the app, automatically the Android SDK Tools will be installed and the app works

Execution failed for task ':app:processDebugGoogleServices'.

Failed to create folder: D:\react-native-firebase-starter-master\android\app\build\generated\res\google-services\debug

help me!

Closing as the original does not have sufficient information to repro, and this issue appears to have become a catch-all for unrelated issues.
Please do feel very welcome to open a new issue, with all the necessary information, if you're still running into this.

I have try above all the solution still i don't solved the issue. Finally after one hours i have analyze the error and i got the point that something wrong with my .../User/.gradle/cashes folder and also removed my AVD and recreate it as she-dev  answered as above.
Solution:
I just removed my cash data from ./gradle folder and after add android.enableAapt2=false  this in gradle.properties file in my project and its work for me. I hope some will get help

@AndroidNinza @vivekkadu thanks for you,It’s all can solve my problem

https://github.com/crazycodeboy/react-native-splash-screen/issues/243


[Key Vault Keys] Local cryptography test improvements.

Revisit Ramya's feedback here: https://github.com/Azure/azure-sdk-for-js/pull/11549#discussion_r499198082 and improve the Key Vault Keys tests for the local cryptography code.

Assertions does not even exist anymore. I do agree that rather than testing assertions we should test their usage. Anyway, closing this as it is no longer applicable


router.go(-1) 无法返回上一个页面，扔停留在当前页面（tag v3.0.6）

Version
3.0.3
Reproduction link
http://wenti.com
Steps to reproduce
偶现
What is expected?
正常返回上一个页面
What is actually happening?
停留在当前页面

vue-router(v3.0.6)构建成生产代码后，偶尔出现
vue-router(v3.0.5)开发时，必现

Please of you found a regression, open a proper issue with a boiled down editable repro and not just a website. Also please, write in English so I can read it

老哥后来怎么解决的


Vulnerability roundup 83: qt-4.8.7: 1 advisory

search, files

[ ] CVE-2015-9541 CVSSv3=7.5 (nixos-19.09)

Scanned versions: nixos-19.09: c49da6435f3. May contain false positives.

See also: #73679

19.09 is EOL


Add handling of dsp/reports endpoints

URL for dsp/reports endpoints are
https://advertising-api.amazon.com/dsp/reports
https://advertising-api.amazon.com/dsp/reports/{reportId}

something is wrong


References line-spacing is off

Spacing is ~1.5 lines.  According to OGS, it should be double-spaced between referenced, single-spaced if the reference wraps to multiple lines.

Fixed in #7


pin libvirt to < 9.10.0

This change forces an older version of libvirt to be used
as 9.10.0 is know to have a parsing bug preventing nova
form working.
A follow up PR will remove the pin once libvirt 10 is aviable in
the centos 9 repos.

the cifmw-crc-podified-edpm-baremetal is known and unrelated to this change. Seems that the PR works, the libvirt error is not present in the nova logs https://logserver.rdoproject.org/60/560/0659681b8044e5768485d7f9fef30f4248c40bda/github-check/podified-multinode-edpm-deployment-crc/e53be1e/controller/ci-framework-data/logs/<IP_ADDRESS>/log/containers/nova/nova-compute.log and libvirt-9.9 is being installed in the edpm node:
TASK [osp.edpm.edpm_libvirt : Install libvirt packages] ************************
task path: /usr/share/ansible/collections/ansible_collections/osp/edpm/roles/edpm_libvirt/tasks/install.yml:2
changed: [compute-0] => (item=libvirt <9.10.0) => {"ansible_loop_var": "item", "changed": true, "item": "libvirt <9.10.0", "msg": "", "rc": 0, "results": ["Installed: python3-cffi-1.14.5-5.el9.x86_64", "Installed: python3-ply-3.11-14.el9.noarch", "Installed: libpmem-1.12.1-1.el9.x86_64", "Installed: python3-pycparser-2.20-6.el9.noarch", "Installed: libvirt-daemon-driver-storage-9.9.0-1.el9.x86_64", "Installed: libvirt-daemon-driver-storage-disk-9.9.0-1.el9.x86_64", "Installed: libvirt-daemon-driver-storage-iscsi-9.9.0-1.el9.x86_64", "Installed: daxctl-libs-71.1-8.el9.x86_64", "Installed: python3-cryptography-36.0.1-4.el9.x86_64",

https://logserver.rdoproject.org/60/560/0659681b8044e5768485d7f9fef30f4248c40bda/github-check/podified-multinode-edpm-deployment-crc/e53be1e/controller/ci-framework-data/logs/openstack-k8s-operators-openstack-must-gather/namespaces/openstack/pods/libvirt-openstack-edpm-mnvlk/logs/openstackansibleee.log

/override rdoproject.org/github-check
Agreed on Slack that the baremetal job failure is known and unrealted and we need this to unblock other parts of the CI.

With this patch merged, how can we now pre-test libvirt 10.0 CS9 builds before they're published ?
We have them in a fixup repo https://trunk.rdoproject.org/centos9-antelope/deps/cs9-fix/


Docker instructions don't work

If you follow the docker instructions (https://github.com/input-output-hk/cardano-db-sync/blob/master/doc/docker.md) on a fresh clone of 10.0.0 you get the following error:
Connecting to network: mainnet
/nix/store/6f4mj582ymmn8zx90j8f8n9sx540hi9x-entry-point/bin/entry-point: line 26: /nix/store/74ky2ipmmh6y7qjxp0q03vh316dxddw2-cardano-db-sync-mainnet: Is a directory
/nix/store/6f4mj582ymmn8zx90j8f8n9sx540hi9x-entry-point/bin/entry-point: line 26: exec: /nix/store/74ky2ipmmh6y7qjxp0q03vh316dxddw2-cardano-db-sync-mainnet: cannot execute: Is a directory
/nix/store/6f4mj582ymmn8zx90j8f8n9sx540hi9x-entry-point/bin/entry-point: line 26: /nix/store/74ky2ipmmh6y7qjxp0q03vh316dxddw2-cardano-db-sync-mainnet: Is a directory
/nix/store/6f4mj582ymmn8zx90j8f8n9sx540hi9x-entry-point/bin/entry-point: line 26: exec: /nix/store/74ky2ipmmh6y7qjxp0q03vh316dxddw2-cardano-db-sync-mainnet: cannot execute: Is a directory

To be more specific, I used the following commands:
git clone https://github.com/input-output-hk/cardano-db-sync
cd cardano-db-sync
# optional - git checkout tags/10.0.0
docker-compose up -d && docker-compose logs -f

You'll see db-sync fail to get started with the above error until it eventually stops.

@rhyslbw  ?

@rhyslbw ?

This might be more of a documentation issue actually - it doesn't work on tags/9.0.0 either but does_on <= tags/8.0.0

My understanding is that this in an interaction between Nix and Docker.

I confirm, docker entry-point is broken since 10.0.0 version.
9.0.0
Run at host:
docker run -it --rm --entrypoint /bin/bash inputoutput/cardano-db-sync:9.0.0

Then run inside docker container:
bash-4.4# cat /bin/entry-point
.... select some path to executable ......

bash-4.4# /nix/store/03sjsjjdlgby9zb1ac1yb3v5800h8qzg-cardano-db-sync
cardano-db-sync-extended: Environment variable 'PGPASSFILE not set.
CallStack (from HasCallStack):
  error, called at src/Cardano/Db/PGConfig.hs:56:16 in cardano-db-9.0.0-T4gnjhGtZS6X2sIpr0asH:Cardano.Db.PGConfig

It executes normally
10.0.0
docker run -it --rm --entrypoint /bin/bash inputoutput/cardano-db-sync:10.0.0

bash-4.4# cat /bin/entry-point
.... select some path to executable ......

bash-4.4# /nix/store/a2d25qa2b8x7mynnwmmdxkbij78b9m7w-cardano-db-sync-testnet
bash: /nix/store/a2d25qa2b8x7mynnwmmdxkbij78b9m7w-cardano-db-sync-testnet: Is a directory

bash-4.4# ls /nix/store/a2d25qa2b8x7mynnwmmdxkbij78b9m7w-cardano-db-sync-testnet/bin/cardano-db-sync-testnet
/nix/store/a2d25qa2b8x7mynnwmmdxkbij78b9m7w-cardano-db-sync-testnet/bin/cardano-db-sync-testnet

It doesn't work because these paths are directories with /bin/xyz directories inside

Can this be closed?

@erikd This is still an issue as replicated by @meiblorn. It looks like Nix changed its paths so previous executables are now directories. Without a fix we need to use an old version of db-sync and node:1.25.1 to get around it via Docker.

This is fixed in the 10.0.1 release (and this docker fix is the only change from 10.0.0).


How to make  the pc to simulate the monochrome LCD

Hi,
Need to modify some  source files?

Just set LV_COLOR_DEPTH  1 in lv_conf.h.
When I tried I noticed that img_benchmark_bg.c is not updated handle i bit color depth.
To fix it modify  #if LV_COLOR_DEPTH == 8 to #if LV_COLOR_DEPTH == 8 || LV_COLOR_DEPTH == 1

I set the LV_COLOR_DEPTH 1，there is still no change in color。
Does this have to do with the theme, do I need to set the theme for mono?

Strange. It works for me. Are you sure the project is re-compiled?

hi,
I'll test it on another Linux computer. Thank you！

Thanks!
It's worked!
May be the wrong QT IDE setting to casuse it.

Great! :)


rust-format-buffer resets all code blocks to "shown" under hideshow

Thanks for the great package.
I use rust-mode along with the builtin Emacs hs-minor-mode.  Unfortunately, the two do not play very well together.  Specifically, whenever I run rust-format-buffer and rustfmt makes any changes to the code, all code is displayed again – even code that was previously marked as hidden using hideshow.  If rustfmt does not make any changes, then no hidden code is incorrectly shown.
I suspect that this is related to #260 (and #143 mentions overall integration with HideShow).

hi @codesections, I can't reproduce any more, likely since #371. Closing it, feel free to reopen if it is still a problem.


Proposal: Swift Implementation for OpenFIGI

Swift Implementation for OpenFIGI API
Hi OpenFIGI team!
I would like to propose adding a Swift implementation of the OpenFIGI API client as a project under the OpenFIGI organization. The implementation provides both a command-line interface and a Swift package that can be integrated into other Swift applications.
Current Features

Complete Swift package implementing OpenFIGI API v3
Command-line interface supporting:

Mapping
Filtering
Search

Comprehensive type system for OpenFIGI entities:

Currency codes
Geographic codes
Market sectors
Security types
Exchange codes
MIC codes

Built-in validation for API requests
Fully async/await compatible
Extensive test coverage
Cross-platform support for macOS and Linux (Ubuntu)

Project Structure
├── Sources
│   ├── OpenFIGI             # CLI Implementation
│   │   ├── Commands
│   │   ├── Protocols
│   │   └── main.swift
│   └── OpenFIGIKit          # Core Library
│       ├── Models
│       ├── Types
│       └── OpenFIGIClient.swift
└── Tests
    └── OpenFIGIKitTests

Benefits

First-class support for Swift 6.0.2 running on macOS or Ubuntu Linux
Modern Swift features including async/await, structured concurrency
Type-safe API request validation at compile-time
Flexible integration via CLI or library
Commitment to maintaining API compatibility

Questions

Would this be a valuable addition to the OpenFIGI ecosystem?
Are there specific requirements or guidelines for official implementations?
What would be the preferred process for transferring the codebase?

I look forward to your feedback and would be happy to provide any additional information or make adjustments to better align with OpenFIGI's goals.
Environment

Swift 6.0.2
Tested on:

macOS Sequoia 15.1.1 (24B91)
Ubuntu 24.04.1 LTS (Noble) / Linux kernel 6.8.0-48-generic

@jhansbo hi, thanks for your suggestions. We don't plan to provide libraries to directly use in different platforms and runtimes. The purpose of this repository is providing the basic examples to access OpenFIGI's search and mapping APIs.
Swift is a language that we have considered but have not provided in our most recent update. It will be worked on in our next batch of updates.


Develop

In this PR I have modified the debugging functionality a bit, now user can debug any functionality (i.e WiFi, BLE, LCD, Whatsapp messaging or ThingSpeak functionality) any time, for example if user want to just debug the working of WiFi then user just need to send debug: (WiFi index number, 0 in my case): debug: 0 after this Serial command user can see whats happening in WiFi related functions.

@mhamidjamil reset this last commit and merge this PR I'm approving it

I reset last commit it is new feature #96 I was not supposed to push it in this branch.


document protect with invalid path is not throwing any error

document protect with invalid path is not throwing any error
    db.documents.protect({
      uri: 'someTemporalDoc.json',
      temporalCollection: 'temporalCollection',
      level: 'noUpdate',
      duration: 'P1D',
      archivePath: '/invalidFolder/invalidFile.json'
    })

This script is using a folder that doesn't exist. It should throw and error

Hi @wooldridge , it seems that after the change if I do document protect without any archivePath, the temporalArchiveRecords property is not shown on the metadataValues
 db.documents.protect({
      uri: docuri,
      temporalCollection: 'temporalCollection',
      level: 'noUpdate',
      duration: 'P1D'
    })

When you do document read, the metadataValues does not have temporalArchiveRecords
metadataValues:
 { temporalProtectLevel: 'noUpdate',
   temporalDocURI: 'temporalUpdateDoc1.json',
   temporalProtectExTime: '2016-11-04T21:20:43.306197Z' }

Another test is breaking because of the change, it can't do sequential document protect
document protect for the first time is working
db.documents.protect({
      uri: docuri,
      temporalCollection: 'temporalCollection',
      level: 'noUpdate',
      duration: 'P1D'
    })

The second document protect failed (say I want to add the archivePath on it)
db.documents.protect({
      uri: docuri,
      temporalCollection: 'temporalCollection',
      level: 'noUpdate',
      duration: 'P1D',
      archivePath: '/tmp/archive1.json'
    })

{ [Error: protect document: response with invalid 400 status (on temporalUpdateDoc1.json)]
message: 'protect document: response with invalid 400 status (on temporalUpdateDoc1.json)',
statusCode: 400,
body:
{ errorResponse:
{ statusCode: 400,
status: 'Bad Request',
messageCode: 'TEMPORAL-PROTECTED',
message: 'TEMPORAL-PROTECTED: temporal:document-protect("temporalCollection", "temporalUpdateDoc1.json", noUpdate...) -- The document temporalUpdateDoc1.json is protected noUpdate' } } }

@ayuwono thanks for testing. Re: the issue where temporalArchiveRecords is now not showing up if the archivePath is not defined. I'm looking at how the built-in functions work (e.g., temporal.documentProtect()), and they don't create a temporalArchiveRecords metadata property when the archivePath param is not specified. So I think the Node.js feature is working as it should be now in that case. I'm looking into the sequential protect issue.

@ayuwono sequential protect is working for me now, please test. I confirmed with Jane that protecting without an archive path should not result in path metadata values. Also, there have been changes to the archive path metadata property names. I've updated tests to reflect that:
https://github.com/marklogic/node-client-api/blob/develop/test-basic/documents-temporal-protect.js#L163

hi @wooldridge it seems that sequential protect is still not working
The second protect will thrown the error
    db.documents.protect({
      uri: docuri,
      temporalCollection: 'temporalCollection',
      level: 'noUpdate',
      duration: 'P1DT10H3M5S'
    })

db.documents.protect({
      uri: docuri,
      temporalCollection: 'temporalCollection',
      level: 'noUpdate',
      duration: 'P1D',
      archivePath: '/tmp/archiveDoc.json'
    })

I'm logging this on different issue so we don't get confused with the archivePath


NavigationAgent2D, NavigationAgent3D typo fixes

Fixed minor spelling errors in the NavigationAgent2D and NavigationAgent3D classes.
Bugsquad edit:

Fixes https://github.com/godotengine/godot-docs/issues/7445

The linked PR is a wrong one.

Sorry, the issue was from a different repository: fixes godotengine/godot-docs#7445

Amended the commit with these suggestions.

There are probably some improvements here that can be applied to 4.0 as well, but this PR is based on the reworked version of the avoidance system, so as is it's not pickable. A dedicated PR fixing typos and language would be appreciated though!


hubble-relay: Add support for peers joining during requests

Please ensure your pull request adheres to the following guidelines:

[x] All code is covered by unit and/or runtime tests where feasible.
[x] All commits contain a well written commit description including a title,
description and a Fixes: #XXX line if the commit addresses a particular
GitHub issue.
[x] All commits are signed off. See the section Developer’s Certificate of Origin

With this change, if the request is in follow mode, we periodically re-list peers and send the request to newly joined or reconnected peers.
Fixes: #12833

might need to pull in @rolinh or @kaworu here, i'm not too familiar with this logic 🚀🙏

/test


feat(envelope): add missing From<Signed<TxEip7702>>

Motivation
We use this pattern downstream (cc @kien-rise):
https://github.com/risechain/pevm/blob/bed6f220c343d03e6bef0dc7540c531444450d57/src/chain/optimism.rs#L85-L88
Which doesn't work for TxEip7702.

Solution
Add the missing From<Signed<TxEip7702>> for completeness.

PR Checklist

[ ] Added Tests
[ ] Added Documentation
[ ] Breaking changes

@mattsse No worries. We live on the (cutting) edge together 🫡!


updating the readme.md to list limitations on safari browsers

As requested on  #24, I've updated the readme to allow others to know about safari limitations.

Thanks @victorrseloy !


🔗 Support project cross references in embed

Previously, project cross references were enabled with [](xref:key#identifier). Now, you can also embed this content with
:::{embed} xref:key#identifier
:::

This content gets modified to indicate that the source location has a different base URL, so links/xrefs/etc resolve correctly.
This PR includes a number of other related improvements:

project cross references allow cite style, e.g. @xref:key#identifier

This required some reordering and reorganization of link/cross-reference resolution

slightly better caching - centralized logic, maxAge - this de-risks the reordered link resolution a bit (we run the link transforms more often, but results are more reliably cached)
local cross references with page, e.g. [](page#identifier) now resolve to the same type of cross references as identifier-only, e.g. [](#identifier)
embed nodes with page also resolve, e.g.:::{embed} page#identifier
:::

Previously those just did not work at all.

Testing now @choldgraf ... hopefully getting this out this eve! 🚀


Cropping images with blob URLs

I'm currently using the ng-file-upload plugin and I'm using the ngf-src attribute to preview the image before I upload it. The image src attribute of the preview is a blob URL. Can I use cropper with a blob URL? I've tried doing so - instantiating the cropper after the image is selected, but haven't had any luck.

$scope.selected = function() {

    // Show cropper tools
    $('#photo-preview-crop-container > img').cropper({
        aspectRatio: 4 / 3,
        zoomable: false,
        crop: function(e) {
            console.log(e);
        }
    });
};

Is this even possible? I can just upload the image and have my API return the uploaded file path on the server, but I'd prefer to not have to do that because the application will have two POSTs per image: one to submit and get a URL and then the other to submit the cropped version.

Blob URL is available for Cropper.

Hi @fengyuanchen , I'm trying to integrate the filter plugin (http://camanjs.com/) along with your cropper. The camanjs return the base64 image data after apply the filter, I tried to use cropper replace method but no succeed. Is the cropper support base64 image? I also tried to convert to blob URL, but the image never render.

HTTP, HTTPS, File URLs, Data URLs and Blob URLs are all available for Cropper. Just check your own code!

An example for external url would be welcome. I'm having trouble as the image doesn't display itself even though it appears in the src attribute.
$imageCrop.cropper('replace','http://cdn.homeshopping.pk/product_images/uploaded_images/Dish-TV-Packages.jpg');

@Activee For cross-origin images, read the notes please.

sorry just found out about it.


Failed to download Juicer tools jar

Hi
When I tried to download Juicer tools jar from https://github.com/aidenlab/juicer/wiki/Download, the browser showed following messages, which appears the access to the file was disabled. Is there any fix for this?
A LOT thanks ahead!
Zuhui

AllAccessDisabled
All access to this object has been disabled
D412AE3F36B18F57

0lgfNjbZao406Dyysre1Ipy3UBgWTBMW+E6a0/ZKAHhH2NKzCkqK+Nq3cFiP3Bi3wkWVJ76xyMY=

We are having AWS issues that we hope are resolved soon.
On Thu, Dec 19, 2019 at 6:35 AM Borease<EMAIL_ADDRESS>wrote:

Hi
When I tried to download Juicer tools jar from
https://github.com/aidenlab/juicer/wiki/Download, the browser showed
following messages, which appears the access to the file was disabled. Is
there any fix for this? A LOT thanks ahead!
AllAccessDisabled All access to this object has been disabled
D412AE3F36B18F57
0lgfNjbZao406Dyysre1Ipy3UBgWTBMW+E6a0/ZKAHhH2NKzCkqK+Nq3cFiP3Bi3wkWVJ76xyMY=
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/aidenlab/juicer/issues/149?email_source=notifications&email_token=AAK2EW2TJDXWARJ5OQOTWXDQZNL6VA5CNFSM4J5DXUW2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IBTWBHA,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAK2EW7QFANJFALW7DM7QG3QZNL6VANCNFSM4J5DXUWQ
.

--
Neva Cherniavsky Durand, Ph.D.
Pronouns: she, her, hers
Assistant Professor, Aiden Lab
www.aidenlab.org

Succeeded in downloading, thanks for help.


How can I marshal a comma-separated DB field into a fields.List?

I have a field in an inherited database, let's call it tags, that stores comma-separated values. I want to marshal this field into a list by splitting the value by a comma.
So, if the DB field holds the value:
a,b,c,d,e
I want to marshal that value into:
{
    "tags": [
        "a",
        "b",
        "c",
        "d",
        "e"
    ]
}

How could I accomplish this?

Make a custom field type


Implement sorting in AllFonts()

See here:
https://github.com/robofab-developers/fontParts/blob/master/Lib/fontParts/world.py#L221

styleName
openTypeOS2Width
openTypeOS2Weight
etc.

Maybe allow a sort arg that can be a single string or a list of strings that define a sort algorithm.

Closed by #290


put user roles in enums

Define user roles for frontend in reusable enum.
Additionally, remove gradient from buttons.
[Story Points:1 ]
[Priority: Medium]
[Risk: Low]

video (1).webm


Error running gulp

First, im getting 'Error: libsass bindings not found. Try reinstalling node-sass?' issue when running gulp. I found solution which seems solved the issue.
Solution:
npm uninstall --save-dev gulp-sass
npm install --save-dev gulp-sass@2
That somehow solved the issue but new issue is showing which stuck me. This is the issue:
'You may only @extend selectors within the same directive'
http://screencloud.net/v/43ea

Not working with me, same error with v2 of gulp-sass
Error: The `libsass` binding was not found in D:\projets\projet-m1-front\node_modules\node-sass\vendor\win32-x64-46\binding.node
This usually happens because your node version has changed.
Run `npm rebuild node-sass` to build the binding for your current node version.

And I try npm rebuild ....same thing


How to use

done all that i can to figure out how to use the python generators and verifier properly, but nothing. I change the variables in the code and click on it, opens quickly then closes without adding/changing the output files.
any instructions that make a bit more sense?

Hi there,
This is a command line program so you'll need to run it from a command prompt to be able to set the correct arguments (rather than double clicking).
To run it from the command line we have some instructions you can read here on what the various options do:
https://github.com/nz-covid-pass/python-nz-covid-pass#readme

I'm using windows and that command prompt line doesn't work, on Linux you
can do "Sudo" but on windows it doesn't work
On Fri, 21 Jan 2022, 21:35 Brad Cowie, @.***> wrote:

Hi there,
This is a command line program so you'll need to run it from a command
prompt to be able to set the correct arguments (rather than double
clicking).
To run it from the command line we have some instructions you can read
here on what the various options do:
https://github.com/nz-covid-pass/python-nz-covid-pass#readme
—
Reply to this email directly, view it on GitHub
https://github.com/nz-covid-pass/python-nz-covid-pass/issues/4#issuecomment-1018292570,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXJAXU2WTOFI7ELKPJQ6TEDUXELG7ANCNFSM5L2WVPJQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID:
@.***>

Sorry, I can't supply windows instructions as I don't have a windows machine to test on.
You could try using the Windows Subsystem for Linux which might make the linux instructions work on Windows.


Allow 80 byte OP_RETURN transactions.

Moved to request pull to 1.9-dev instead of master. Sorry for the confusion.
Bitcoin moved from the 40 byte limit up to 80 byte after seeing no major issues in allowing bigger messages.
I believe this could be valuable in making applications built on top of Dogecoin that may require a teensy bit more than 40 bytes.

I messed up by putting a tx id in the wrong spot, whoops! Should be fixed now.


Response protocol downgrade to Http/1.1

What version of gRPC and what language are you using?
Grpc.AspNetCore v 2.33.1
Grpc Net.Client v 2.33.1
C#
What operating system (Linux, Windows,...) and version?
Build env - windows 10
Production env: windows server 2016
What runtime / compiler are you using (e.g. python version or version of gcc)
Vs 2019, version 16.4.5
What did you do?
I have created 2 gRPC services without TSL that run on different machines (both runs windows server 2016)
For making env clean as possible, I have connect both of the machines with a network cable and defined a private network between them.
In visual studio, I have publish each service to a folder,
Then I copied those folders, each ro its own machine, configure the appsertings file and run it.
First I run the service which acts like a server, listen on any ip including localhost on port 5001.
Then, I have run the second service which should register it selft to the first service.
During registration, this service fail with:
Grpc.Core.RpcException: Status (StatusCode="Internal", Detail="Bad gRPC response. Response protocol downgrade to HTTP/1.1.")
I already used:
AppContext.SetSwitch option before creating the gRPC channel.
I also specefied Credentials = ChannelCredentials.Insecure in GrpcChannelOptions passed to ForAdress factory method.
I also ovveride kestrel with specefing HttpProtocola.Http2 for port number inside ConfigureKestrel.
What did you expect to see?
I expected that after performing all I did, I will not get this message
What did you see instead?
This error
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
See TROUBLESHOOTING.md for how to diagnose problems better.
Anything else we should know about your project / environment?

Looks like this issue belongs to https://github.com/grpc/grpc-dotnet repository, I'm going to move it there.


Fix unstructured logging variable formatting

Description
replacing logging with f strings with parameters
Associated Issue(s)

Addresses #2025

looks pretty good! i marked a few things i think you mightve missed, and tried to change filename= where it actually referred to a directory and not a singular file.

Ah yeah, that was an intentional choice. I didn't see any output_path being used and it techincally also has the filename so whynot and worst comes to worst someone tells me it's not right and i'd fix it.

im gonna set this to "draft" and then back again to try to get ci to re-run

This PR is a great opportunity to add the text from my suggestion in https://github.com/cmu-delphi/covidcast-indicators/issues/2041#issuecomment-2319002584 -- the changes you made here exemplify the intent of it, and the code replaced embodies some anti-patterns...  That way, it will all be bundled together for posterity.

./changehc/delphi_changehc/sensor.py:121:        logger.debug("{0}: {1:.3f},[{2:.3f}]".format(
./changehc/delphi_changehc/update_sensor.py:52:            logger.warning("value suspiciously high, {0}: {1}".format(
./changehc/delphi_changehc/update_sensor.py:149:            self.logger.error("{0} is invalid, pick one of 'county', "
./doctor_visits/delphi_doctor_visits/sensor.py:242:        logger.debug(f"{geo_id}: {new_rates[-1]:.3f},[{se[-1]:.3f}]")
./claims_hosp/delphi_claims_hosp/indicator.py:146:        logging.debug("%s: %05.3f, [%05.3f]

The second one is one that I missed and third one, I didn't feel like parameterizing a wrong value made sense, but I could also see why it would be helpful...
But for the rest, I think it's better to leave it as is as they're debugging logs where I think seeing the message as is seems more helpful instead of having it parameterized.

getting inconsistent behavior for darker:
similar isssue: https://github.com/psf/black/issues/1140
in _delphi_utils.delphi_utils.runner.py
line 63-66 and 82:
local darker wants one line
# Logging - Starting Indicator
        logger.info("Started a covidcast-indicator", indicator_name=ind_name, current_version=current_version)
    else:
        logger.info("Started a covidcast-indicator without version.cfg", indicator_name=ind_name)

logger.error("Flash step timed out, terminating", elapsed_time_in_seconds=round(time.time() - start, 2))
CI wants multi-line
@@ -62,11 +62,11 @@
                     current_version = current_version.replace("current_version = ", "")
     #Logging - Starting Indicator
         logger.info(
             "Started a covidcast-indicator",
             indicator_name=ind_name,
-            current_version=current_version
+            current_version=current_version,
         )
     else:
         logger.info(
             "Started a covidcast-indicator without version.cfg", indicator_name=ind_name
         )
@@ -83,13 +83,14 @@
             logger.info("Completed flash step",
                     elapsed_time_in_seconds = round(time.time() - start, 2))
             break
         time.sleep(1)
     else:
-        logger.error("Flash step timed out, terminating",
-                     elapsed_time_in_seconds=round(time.time() - start, 2)
-                 )
+        logger.error(
+            "Flash step timed out, terminating",
+            elapsed_time_in_seconds=round(time.time() - start, 2),
+        )

Hm, is it resolved now or did you have to manually adjust it to make CI happy? I might need to point the format commands in both CI and Makefiles to the pyproject.toml just to eliminate the possibility that they're not finding it.

Hm, is it resolved now or did you have to manually adjust it to make CI happy? I might need to point the format commands in both CI and Makefiles to the pyproject.toml just to eliminate the possibility that they're not finding it (it specifies line-length = 120 there and this seems like a disagreement about line-length).

I had to manually adjust it .... :/

@aysim319 i removed some stray files that somehow wandered into your last commit, and i changed the format of a reverted logger call back to make it pass linting.


Hypothetical events broken - unhashable type list

Seems hypothetical events are broken. For example
https://www.statbotics.io/event/O00ly04431X1nDY2t6puU_woxWysBiDo_j8HIud5H2dTRAzt9rViFVF1Ep-HWPYOZOZmcreUesfUgUhdmynenjpqqWtGv0xczkWgGLuBa6c9F4-YnniutSWEHDAUbLpAPbjIkf_LKhFMKBDbgordQrjXtFBiryh05W9maunCRcHNIJgGrRQxj-l0heFrYwuTZVQ_qtyh-O_TGmiGg
The console shows a GET request to
https://api.statbotics.io/site/event/hypothetical/O00ly04431X1nDY2t6puU_woxWysBiDo_j8HIud5H2dTRAzt9rViFVF1Ep-HWPYOZOZmcreUesfUgUhdmynenjpqqWtGv0xczkWgGLuBa6c9F4-YnniutSWEHDAUbLpAPbjIkf_LKhFMKBDbgordQrjXtFBiryh05W9maunCRcHNIJgGrRQxj-l0heFrYwuTZVQ_qtyh-O_TGmiGg
which responds with
{"data":[],"message":"Error unhashable type: 'list'","time":"PT0.07222S"}

Should be fixed now, thanks for the bug report!


FFUF not running properly on windows

I am running the command
ffuf -c -u http://hackycorp.com/ -w ./commonlist.txt

and receiving the error
EXAMPLE USAGE:
  Fuzz file paths from wordlist.txt, match all responses but filter out those with content-size 42.
   Match all responses not containing text "error".
    ffuf -w entries.txt -u https://example.org/ -X POST -H "Content-Type: application/json" \
      -d '{"name": "FUZZ", "anotherkey": "anothervalue"}' -fr "error"

  Fuzz multiple locations. Match only responses reflecting the value of "VAL" keyword. Colored.
    ffuf -w params.txt:PARAM -w values.txt:VAL -u https://example.org/?PARAM=VAL -mr "VAL" -c

  More information and examples: https://github.com/ffuf/ffuf

Encountered error(s): 1 errors occured.
        * Keyword FUZZ defined, but not found in headers, method, URL or POST data.

I am on windows 10

Hi @Sable-20
Your arguments
ffuf -c -u http://hackycorp.com/ -w ./commonlist.txt
Right arguments
ffuf -c -u "http://hackycorp.com/FUZZ" -w ./commonlist.txt
Happy hacking.

@bsysop oml. i feel so stupid, tysm i was wondering why it wasnt working

Don't worry buddy, you are welcome!


HAWKULAR-376 - Added redirect URIs and web origins for accounts backend client.

@Jiri-Kremser  , can you please check this?


discord-irc: show when messages are deleted

This allows for less confusion when someone deletes a message and you try to reply to it now knowing that it was deleted.

Coverage decreased (-0.3%) to 96.639% when pulling 7380158bdea29b05501c760b8938426d5d215efc on g-w1:delete into 4d31ecd4eb9c609badc817bf13414ffdabbababe on reactiflux:main.

CLOSING BECAUSE STALE


cabal.project parser ignores the last package if it doesn't end in newline

This seems to happen with a leading newline too:
packages:
  # main project
  .

  # some comment
   another-package

<rant>
If only the cabal ecosystem had gone with JSON/TOML, like Rust Cargo does, rather than re-inventing their own formats ...
</rant>

In a cabal.project file, packages: foo is perfectly valid, but not recognized by a parser that insists that packages: is followed by a newline character:
https://github.com/srid/haskell-flake/blob/f16e7ac05b1f22b66ef05b7fcc8a96281bb2b749/nix/haskell-parsers/parser.nix#L25
Also packages: foo bar is valid syntax, which isn't recognized by a parser that insists on newline characters between package names.
https://github.com/srid/haskell-flake/blob/f16e7ac05b1f22b66ef05b7fcc8a96281bb2b749/nix/haskell-parsers/parser.nix#L26-L28
In the wild:
https://github.com/tree-sitter/haskell-tree-sitter/blob/387494ab7f4efd9f4d3cdbf8e60ed55bc1f1688a/cabal.project
The official parser is implemented here: https://github.com/haskell/cabal/blob/84acb0e9510c82caae1c1bc4397aafca7f25f83a/cabal-install/src/Distribution/Client/ProjectConfig/Legacy.hs#L1207-L1210
https://github.com/haskell/cabal/blob/84acb0e9510c82caae1c1bc4397aafca7f25f83a/cabal-install/src/Distribution/Client/ProjectConfig/Legacy.hs#L1239-L1273
Yeah, that's a mouthful... agree to the rant.  Maybe a tool like https://hackage.haskell.org/package/cabal2json could help (if it was maintained).

Part of the reason to reimplement it in Nix is to avoid "import from derivation", making it so that the flake attributes can be determined without doing any builds. It keeps things like nix build shell completions fast, among other benefits.


About naming schema

Hi @justinmanley ,
We are cdnjs team, we want to host this project in cdnjs.
We'll like to make the filename consistent but v0.1.0 is using different naming schemam, and there is no minified css file. I'd like to discuss if it's possible to change to the most common naming style like this:

javascript.js -> javascript.min.js
style.css -> style.min.css

Thank you.
https://github.com/cdnjs/cdnjs/pull/7857
https://github.com/cdnjs/cdnjs/issues/7779

Fixed in version 0.2.1.


elmInputBox.elastic is not a function

elmInputBox.elastic is not a function
Please help

@lakinmohapatra - if you haven't already done so, you'll need to download and install Elastic. I believe this is the current version: https://github.com/janjarfalk/jquery-elastic


Administrative Question: Compulsory to Redo Exercises 1, 2, 4?

Hi just a quick question as per the title, just wondering if there will be a second set of compulsory re-grading for Exercises 1, 2, and 4 and whether we must therefore re-submit to CodeCrunch the re-done "streamified" code. Thanks in advance!

it's no compulsory

Hi there, the grades for Exercises 1, 2 and 4 have already been keyed into Luminus (you can check them in your grade book). You can resubmit your code to test against the new test cases but you will not be penalised if you choose not to do so.

nope

nope your grade is already recorded before releasing the stream exercise

nope!

Thank you all 🙏


oshka: 0.4.0 -> 0.4.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/k1LoW/oshka/releases.
meta.description for oshka is: "Tool for extracting nested CI/CD supply chains and executing commands"
meta.homepage for oshka is: "https://github.com/k1LoW/oshka"
meta.changelog for oshka is: ""
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
Warning: no invocation of /nix/store/rwlgk2drkvcvdhsdjqvg1fm6d2zxrw4j-oshka-0.4.1/bin/oshka had a zero exit code or showed the expected version
0 of 1 passed binary check by having a zero exit code.
0 of 1 passed binary check by having the new version present in output.
found 0.4.1 with grep in /nix/store/rwlgk2drkvcvdhsdjqvg1fm6d2zxrw4j-oshka-0.4.1
found 0.4.1 in filename of file in /nix/store/rwlgk2drkvcvdhsdjqvg1fm6d2zxrw4j-oshka-0.4.1

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 x86_64-darwin rebuild(s)

First fifty rebuilds by attrpath
oshka

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/rwlgk2drkvcvdhsdjqvg1fm6d2zxrw4j-oshka-0.4.1 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A oshka https://github.com/r-ryantm/nixpkgs/archive/29b3fb20f04e76bffa8afa0a572f5521642700fd.tar.gz

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

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

oshka

Maintainer pings
cc @fabaff @kalbasit for testing.

Result of nixpkgs-review pr 159664 run on x86_64-linux 1

1 package built:

oshka


If Articles List is refreshed or navigated to directly, articles are not shown and list becomes blank

this probably has to do with how the articles are being passed down as props?
since we are re-using this component for 'My List' and 'Archive', we may need to just pass down the name of the view as a prop, and then have a condition on the component itself for which articles we fetch.
if the fetching thunk is dispatched from the component itself, we shouldnt run into issues where the articles on state are blank.
this can/should probably be fixed in the course of implementing a differentiation between read/unread articles

fixed by moving fetchArticles into the route file's loadInitialData function


[interfaces] add transformation Python interfaces

Project Robyn
Depends on https://github.com/facebookexperimental/Robyn/pull/1050
Summary: We are including the interfaces (methods and data classes) for the transformation subcomponent in Python. This interface is inferred from transformations.R.
What is new:

feat: New Python interfaces for transformation subcomponent.

Test Plan
Class diagram
classDiagram
    class Transformations {
        +mic_men(x: np.ndarray, Vmax: float, Km: float, reverse: bool) np.ndarray$
        +adstock_geometric(x: np.ndarray, theta: float) Dict[str, Any]$
        +adstock_weibull(x: np.ndarray, shape: float, scale: float, windlen: int, type: str) Dict[str, Any]$
        +transform_adstock(x: np.ndarray, adstock: AdstockType, theta: float, shape: float, scale: float, windlen: int) Dict[str, Any]$
        +saturation_hill(x: np.ndarray, alpha: float, gamma: float, x_marginal: np.ndarray) np.ndarray$
        +run_transformations(input_collect: Dict[str, Any], hyperparameters: Dict[str, Any]) Dict[str, Any]$
        -_weibull_cdf(x: np.ndarray, shape: float, scale: float) np.ndarray$
        -_weibull_pdf(x: np.ndarray, shape: float, scale: float) np.ndarray$
        -_normalize(x: np.ndarray) np.ndarray$
    }
    class TransformationVisualizer {
        +plot_adstock(plot: bool) Optional[Tuple[plt.Figure, plt.Figure]]$
        +plot_saturation(plot: bool) Optional[Tuple[plt.Figure, plt.Figure]]$
    }
    class AdstockType {
        <<enumeration>>
        GEOMETRIC
        WEIBULL_CDF
        WEIBULL_PDF
    }
    Transformations ..> AdstockType : uses
    TransformationVisualizer ..> Transformations : uses for data

Parity:
graph TB

    subgraph R["R Implementation"]
        R1[mic_men]
        R2[adstock_geometric]
        R3[adstock_weibull]
        R4[transform_adstock]
        R5[saturation_hill]
        R6[plot_adstock]
        R7[plot_saturation]
        R8[run_transformations]
    end

    subgraph Python["Python Implementation"]
        P1[Transformations.mic_men]
        P2[Transformations.adstock_geometric]
        P3[Transformations.adstock_weibull]
        P4[Transformations.transform_adstock]
        P5[Transformations.saturation_hill]
        P6[TransformationVisualizer.plot_adstock]
        P7[TransformationVisualizer.plot_saturation]
        P8[Transformations.run_transformations]
    end

    %% Connections
    R1 ---- P1
    R2 ---- P2
    R3 ---- P3
    R4 ---- P4
    R5 ---- P5
    R6 ---- P6
    R7 ---- P7
    R8 ---- P8

    %% New structures
    P9[AdstockType Enum]

    %% Connections to new structures
    P4 --> P9

    %% Legend
    classDef implemented fill:#90EE90,stroke:#006400, color:black, stroke-width:2px;
    classDef new fill:#ADD8E6,stroke:#00008B, color:black, stroke-width:2px;

    class R1,R2,R3,R4,R5,R6,R7,R8,P1,P2,P3,P4,P5,P6,P7,P8 implemented;
    class P9 new;

    legendA[Implemented]
    legendB[New Python Structures]

    class legendA implemented;
    class legendB new;

No implementations have been included just yet with this PR so it would be lightweight to land. More rigorous testing would be included in the implementation PR.

TransformationVisualizer:

It now uses instance variables (self.adstock_figures and self.saturation_figures) to store the generated plots.

The plot parameter has been removed. Instead, separate methods are provided for creating, retrieving, displaying, and saving plots.

The class now has a clear separation between plot creation (create_adstock_plots, create_saturation_plots) and plot retrieval (get_adstock_plots, get_saturation_plots).

New methods have been added for displaying (display_adstock_plots, display_saturation_plots) and saving (save_adstock_plots, save_saturation_plots) the plots.

The plot creation methods are called lazily when the plots are first requested, ensuring they're only created when needed.

transformations.py:

We've replaced input_data with time_series_data, which more accurately describes the nature of the data these methods are operating on.

The Transformation class now takes an MMMData object and a media_channel name as input. We've added a _get_channel_data method to extract the relevant data for the specified media channel from the MMMData object.

The methods that operate on the instance's data (michaelis_menten, adstock_geometric, adstock_weibull, transform_adstock, and saturation_hill) remain as instance methods. These methods use the channel_data attribute of the class instance.

The utility methods that don't depend on the instance's state (weibull_cdf, weibull_pdf, and normalize) are kept as static methods. These methods can be used without creating an instance of the Transformation class.


bug(recipe): inconsistency in task failing fallthrough

When the download task is raising an error while starting a recipe, the process continue to the upload task, which should stop.

It has been fixed somewhere


Add Windows support for file read and interrupt.

Should address any know issues so far for running on Windows described in #7

Cool thanks! I'm going to push this into a minor release later today.

I'd suggest to also add in a comment here example path for windows, with the correct slashes // \

All types of paths actually work I think, since they are resolved by the pathlib. I've added a comment regarding being absolute path though.
Also a few easy to use scripts. They can be easily removed if not needed.


Cannot import name unquote_plus

I've encountered the following error:
mopidy_youtube: cannot import name unquote_plus
Has anyone an idea on how to fix it?
Python 2.7.6

Seems like the newest version of pafy has introduced this error. I made a PR to fix it: mps-youtube/pafy#134


feat(frontend): take fees into account while calculating BTC tx value

Motivation
The previous implementation didn't take utxos fee into account while calculating a transaction value for "send" txs. In this PR, I update the implementation in order to get complete numbers. The mapper is implemented the way that it loops through inputs and out just once to get all required vars.
Previous values:

Updated values:

Note: please ignore the UI, it will be tackled separately.

Unrelated to the PR @DenysKarmazynDFINITY but to your screenshots, shouldn't the date on the UI not be displayed when "Pending..." is displayed?

@peterpeterparker the plan is to display all BTC transactions in the list (unconfirmed, pending, confirmed).

@AntonioVentilii-DFINITY totally agree re. adding documentation. Considering we're a bit in a rush, would it work for you if I create a JIRA ticket for that and tackle it separately? For now, I added a TODO comment.


Disable auto approve for PRs from core committers

AT this point when there is a PR from core committers ( those who are listed in owner's file in a repo), the PR gets one approval automatically. This means just one more /lgtm will merge the PR. We need to avoid this and let all PRs have at least two approvals explicitly from team members other than  the original author.
This needs to be enables on all Nephio repos.

I don't know. I think three total approvers is excessive. But it's not something I will push for.
BTW, it's the "/approve" that is automatic, not the "/lgtm". Only one "/lgtm" is needed, plus "/approve"s that cover all the touched files.
Right now, we have a single OWNERS file per repo. But as we grow, we can create OWNERS files per directory. This allows delegation of a directory to different OWNERS than those listed in the top level file. For example, Sandeep is working on the nephio-controller-manager, which will live in its own directory in the repo. We can put an OWNERS file in there, so that he can do the approvals of changes in there, without someone in the top level OWNERS file having to approve it.
So, rather than multiple /approves for a change,  would prefer that we have the right /approves. I am not sure if Prow supports the idea of requiring multiple OWNERS of the same file to approve a change. @radoslawc do you know?  If we feel there is a need to multiple eyes on something, then we may have to do that via the "/lgtm" not the "/approve". But I am not sure Prow supports that either.


Crash if size-0 dimension is present in jnp.ones

Description
In [1]: import jax, jax.numpy as jnp

In [2]: x = jnp.ones((3,4,9,0), dtype=jnp.uint8)
Metal device set to: Apple M1 Pro

systemMemory: 32.00 GB
maxCacheSize: 10.67 GB

Segmentation fault: 11

While degenerate, this is legal code, and should work, not crash.
What jax/jaxlib version are you using?
jax 0.4.11, jaxlib 0.4.10, jax-metal 0.0.2
Which accelerator(s) are you using?
No response
Additional system info
No response
NVIDIA GPU info
No response

@hawkinsp , this is indeed an issue we are tracking and update here when fix is available.

@hawkinsp , this has been fixed with me jax-metal==0.3.0


Component.Auto not found in V2

HI Sleitnick, I start using the knit framework and watch your very good "Knit Game Tutorial".
In the video the util Component V1 ha an Auto method, but in V2 I don't find it.
I create a Goal Component in this way:
local Goal = Component.new({
  Tag = "Goal"
})

function Goal:Construct()
  self._maid = Maid.new()
  print("Goal created")
  self._maid:GiveTask(function()
    print("Goal destroyed")
  end)
end

function Goal:Stop()
  self._maid:Destroy()
end

return Goal

The Goal component is correctly attached to the Goal instances, the problem is that when I add at runtime a new Goal instance with tag "Goal", the component is not automatically attached.
I discovered that if I create the instance on server the component is attached, on the client no. I think this is the right behaviour.

Hello! Component V2 works a bit differently, and the modules just need to be required in order for it to work. The Loader module could be used to do it quickly using Loader.LoadChildren(parentWhereComponentsLive).
Alternatively, you can just loop through and require them yourself:
for _,componentModule in ipairs(parentWhereComponentsLive:GetChildren()) do
	require(componentModule)
end


Dates don't include time

On both card and table views, the time for create and modify is missing ... can it be added? Is it really helpful to include the Day (e.g., Mon, Tue, etc)?

In my experience, networks do not get changed often. They're usually added and then left to rot, so the date is much more important that the time, and having both is rather crowded.

Show tool tip that contains time


Update schema.sql

i see this schema is missed :)

Hi @C0DINGpanda is it really missing? Did you run all the migrations? See https://github.com/ludeknovy/jtl-reporter-be/blob/master/migrations/1643273224321_role.js
https://github.com/ludeknovy/jtl-reporter-be/blob/master/migrations/1668684730568_user-project-permission.js

Hey @C0DINGpanda . Did you have time to check it? I really think the schema is not missing here.


auth problem!

authenticator kicking dummy :-
30.06 16:36:53 [Server] Server thread/INFO new[/SPECTER:19133] logged out due to Kicked by admin. Reason: Login Timeout

Because this is what specter is for...

Because this is what Specter is for... Specter is a plugin for testing plugins. Why do you want an auth plugin on a test server?

@SOF3 is correct. This is not an issue.


Master assigns write requests to unavailable volumes

Describe the bug
We performed reliability test for SeaweedFS in such a manner:

We wrote files through Filer in a loop
Sometimes we restarted one of Volume Servers (by random) to check how it will work, how many time will take recovery process depending on data size stored in SeaweedFS, how write process will work during partial outage (outage one of Volume Servers), etc.

And during this simple test sometimes we observed such a problem: Filer reports that it cannot save the file with one of the following errors:
{"error":"unmarshalled error http://seaweedfs-test-volume-2.seaweedfs-test-volume-peer.seaweedfs-test:8444/16498,4f3cc6ea382612: failed to write to replicas for volume 16498: [seaweedfs-test-volume-3.seaweedfs-test-volume-peer.seaweedfs-test:8444]: upload 489.part 4194304 bytes to http://seaweedfs-test-volume-3.seaweedfs-test-volume-peer.seaweedfs-test:8444/16498,4f3cc6ea382612?ts=1683812487\u0026ttl=\u0026type=replicate: Post \"http://seaweedfs-test-volume-3.seaweedfs-test-volume-peer.seaweedfs-test:8444/16498,4f3cc6ea382612?ts=1683812487\u0026ttl=\u0026type=replicate\": dial tcp <IP_ADDRESS>:8444: connect: connection refused"}

or
{"error":"upload 486.part 4194304 bytes to http://seaweedfs-test-volume-2.seaweedfs-test-volume-peer.seaweedfs-test:8444/5122,1740bcaa7be3be: Post \"http://seaweedfs-test-volume-2.seaweedfs-test-volume-peer.seaweedfs-test:8444/5122,1740bcaa7be3be\": dial tcp <IP_ADDRESS>:8444: connect: connection refused"}

So, on a first sight it looks quite obvious, we shutdown one of Volume Servers, and Filer cannot write to it (we see connection refused). The question is: why Master assigns volumes for write, if they should be unwritable?
Deeper investigation into the issue showed that it could be some issue of synchronization between threads on Master's side.

I0511 13:40:19.587922 store.go:166 In dir /data0 adds volume:16498 collection:test replicaPlacement:001 ttl:
I0511 13:40:19.587969 volume_info.go:20 maybeLoadVolumeInfo checks /data0/test_16498.vif
I0511 13:40:19.588117 volume_loading.go:121 open to write file /data0/test_16498.idx
I0511 13:40:19.588154 volume_loading.go:142 loading memory index /data0/test_16498.idx to memory
I0511 13:40:19.588208 needle_map_memory.go:54 max file key: 0 for file: /data0/test_16498.idx
I0511 13:40:19.588721 store_replicate.go:35 replicating operations [1] is less than volume 16496 replication copy count [2]
I0511 13:40:19.588734 common.go:113 error JSON response status 500: replicating operations [1] is less than volume 16496 replication copy count [2]
I0511 13:40:19.588750 common.go:70 response method:POST URL:/16496,4f3ade2d2f7065 with httpStatus:500 and JSON:{"error":"replicating operations [1] is less than volume 16496 replication copy count [2]
I0511 13:40:19.606846 common.go:106 error writing JSON status /status 200: write tcp <IP_ADDRESS>:8444-><IP_ADDRESS>:46920: write: connection reset by peer
I0511 13:40:19.606865 common.go:107 JSON content: map[DiskStatuses:[dir:"/data0"  all:98953909501952  used:9914417262592  free:89039492239360  percent_free:89.980774  percent_used:10.019227] <omitted>
I0511 13:40:19.731598 disk_location.go:440 dir /data0 disk free 89.98% >= required 1.00%
I0511 13:40:19.916394 store.go:170 add volume 16498
I0511 13:40:19.916412 volume_grpc_admin.go:60 assign volume volume_id:16498  collection:"test"  replication:"001"
I0511 13:40:20.074794 store_replicate.go:35 replicating operations [1] is less than volume 16496 replication copy count [2]
I0511 13:40:20.074812 common.go:113 error JSON response status 500: replicating operations [1] is less than volume 16496 replication copy count [2]
I0511 13:40:20.074826 common.go:70 response method:POST URL:/16496,4f3ade2d2f7065 with httpStatus:500 and JSON:{"error":"replicating operations [1] is less than volume 16496 replication copy count [2]
I0511 13:40:20.798244 store_replicate.go:35 replicating operations [1] is less than volume 16496 replication copy count [2]
I0511 13:40:20.798261 common.go:113 error JSON response status 500: replicating operations [1] is less than volume 16496 replication copy count [2]
I0511 13:40:20.798275 common.go:70 response method:POST URL:/16496,4f3ade2d2f7065 with httpStatus:500 and JSON:{"error":"replicating operations [1] is less than volume 16496 replication copy count [2]
I0511 13:40:29.588357 volume.go:304 graceful stop cluster http server ...
I0511 13:40:29.588947 volume.go:309 graceful stop gRPC ...
I0511 13:40:29.589452 volume_server.go:149 Shutting down volume server...

Point to take a look is assignment of new volume (id=16498) on this Volume Server after its termination.
And piece of log from Master:
I0511 13:40:18.304201 master_grpc_server.go:162 master received heartbeat ip:"seaweedfs-test-volume-3.seaweedfs-test-volume-peer.seaweedfs-test"  port:8444  public_url:"seaweedfs-test-volume-3.seaweedfs-test-volume-peer.seaweedfs-test:8444"  has_no_volumes:true
I0511 13:40:18.446855 cluster_commands.go:32 max volume id 16497 ==> 16498
I0511 13:40:18.464245 volume_growth.go:244 Created Volume 16498 on topo:DefaultDataCenter:DefaultRack:seaweedfs-test-volume-2.seaweedfs-test-volume-peer.seaweedfs-test:8444
I0511 13:40:18.464308 master_grpc_server.go:162 master received heartbeat ip:"seaweedfs-test-volume-2.seaweedfs-test-volume-peer.seaweedfs-test"  port:8444  new_volumes:{id:16498  collection:"test"  replica_placement:1  version:3}
I0511 13:40:18.464338 volume_layout.go:223 volume 16498 does not have enough copies
I0511 13:40:18.464344 volume_layout.go:228 volume 16498 remove from writable
I0511 13:40:18.464453 masterclient.go:277 .master: seaweedfs-test-volume-2.seaweedfs-test-volume-peer.seaweedfs-test:8444 masterClient adds volume 16498
I0511 13:40:18.464460 vid_map.go:160 + volume id 16498: {Url:seaweedfs-test-volume-2.seaweedfs-test-volume-peer.seaweedfs-test:8444 PublicUrl:seaweedfs-test-volume-2.seaweedfs-test-volume-peer.seaweedfs-test:8444 DataCenter:DefaultDataCenter GrpcPort:0}
W0511 13:40:18.469625 master_grpc_server.go:100 SendHeartbeat.Recv server seaweedfs-test-volume-3.seaweedfs-test-volume-peer.seaweedfs-test:8444 : rpc error: code = Canceled desc = context canceled
I0511 13:40:18.469648 node.go:237 topo:DefaultDataCenter:DefaultRack removes seaweedfs-test-volume-3.seaweedfs-test-volume-peer.seaweedfs-test:8444
I0511 13:40:18.469655 master_grpc_server.go:87 unregister disconnected volume server seaweedfs-test-volume-3.seaweedfs-test-volume-peer.seaweedfs-test:8444
I0511 13:40:18.469659 master_grpc_server.go:58 remove volume server seaweedfs-test-volume-3.seaweedfs-test-volume-peer.seaweedfs-test:8444, online volume server: map[seaweedfs-test-volume-0.seaweedfs-test-volume-peer.seaweedfs-test:8444:[b81f6a9c-e4c1-4702-88d5-51974f4ca3d6] seaweedfs-test-volume-1.seaweedfs-test-volume-peer.seaweedfs-test:8444:[58a7e74e-84e2-48df-b52b-dc9555afb548] seaweedfs-test-volume-2.seaweedfs-test-volume-peer.seaweedfs-test:8444:[ff43c257-c736-4b6b-a930-db16c409c12b]]
I0511 13:40:18.527309 masterclient.go:292 updateVidMap(DefaultDataCenter) .master: seaweedfs-test-volume-3.seaweedfs-test-volume-peer.seaweedfs-test:8444 volume add: 0, del: 8263, add ec: 0 del ec: 0
I0511 13:40:19.771416 master_grpc_server.go:162 master received heartbeat ip:"seaweedfs-test-volume-2.seaweedfs-test-volume-peer.seaweedfs-test"  port:8444  public_url:"seaweedfs-test-volume-2.seaweedfs-test-volume-peer.seaweedfs-test:8444"  max_file_key:5192448  volumes:{id:10324  size:1128282400 <omitted>
I0511 13:40:19.916729 volume_growth.go:244 Created Volume 16498 on seaweedfs-test-volume-3.seaweedfs-test-volume-peer.seaweedfs-test:8444
I0511 13:40:19.916752 volume_layout.go:223 volume 16498 does not have enough copies
I0511 13:40:19.916756 volume_layout.go:228 volume 16498 remove from writable
I0511 13:40:19.916761 volume_growth.go:257 Registered Volume 16498 on topo:DefaultDataCenter:DefaultRack:seaweedfs-test-volume-2.seaweedfs-test-volume-peer.seaweedfs-test:8444
I0511 13:40:19.916771 volume_layout.go:393 Volume 16498 becomes writable
I0511 13:40:19.916776 volume_growth.go:257 Registered Volume 16498 on seaweedfs-test-volume-3.seaweedfs-test-volume-peer.seaweedfs-test:8444
I0511 13:40:19.919012 cluster_commands.go:32 max volume id 16498 ==> 16499
I0511 13:40:19.957609 masterclient.go:277 .master: seaweedfs-test-volume-2.seaweedfs-test-volume-peer.seaweedfs-test:8444 masterClient adds volume 16498
I0511 13:40:19.957611 vid_map.go:160 + volume id 16498: {Url:seaweedfs-test-volume-2.seaweedfs-test-volume-peer.seaweedfs-test:8444 PublicUrl:seaweedfs-test-volume-2.seaweedfs-test-volume-peer.seaweedfs-test:8444 DataCenter:DefaultDataCenter GrpcPort:0}
I0511 13:40:19.957620 masterclient.go:277 .master: seaweedfs-test-volume-3.seaweedfs-test-volume-peer.seaweedfs-test:8444 masterClient adds volume 16498
I0511 13:40:19.957622 vid_map.go:160 + volume id 16498: {Url:seaweedfs-test-volume-3.seaweedfs-test-volume-peer.seaweedfs-test:8444 PublicUrl:seaweedfs-test-volume-3.seaweedfs-test-volume-peer.seaweedfs-test:8444 DataCenter: GrpcPort:0}
I0511 13:40:19.957626 masterclient.go:292 updateVidMap() .master: seaweedfs-test-volume-3.seaweedfs-test-volume-peer.seaweedfs-test:8444 volume add: 1, del: 0, add ec: 0 del ec: 0

There also were a lot of messages like these:
I0511 13:40:18.329755 topology.go:252 removing volume info: Id:2458, Size:1329612128, ReplicaPlacement:001, Collection:test, Version:3, FileCount:317, DeleteCount:0, DeletedByteCount:0, ReadOnly:false from seaweedfs-test-volume-3.seaweedfs-test-volume-peer.seaweedfs-test:8444
I0511 13:40:18.431844 master_grpc_server.go:203 master see deleted volume 2458 from seaweedfs-test-volume-3.seaweedfs-test-volume-peer.seaweedfs-test:8444

But there is no such message for Volume 16498, so it is writeable from Master's perspective (but in fact it doesn't), and Filer gets assignments for write requests on this volume.
System Setup
We have SeaweedFS running on Kubernetes via SeaweedFS Operator. There are 3 Masters, 4 Volume Servers, 4 Filers (with Scylla as its backend)

List the command line to start "weed master", "weed volume", "weed filer", "weed s3", "weed mount":

Master:weed -v 4 -logtostderr=true master -volumeSizeLimitMB=1024 -defaultReplication=001 -ip=$(POD_NAME).seaweedfs-test-master-peer.seaweedfs-test -peers=seaweedfs-test-master-0.seaweedfs-test-master-peer.seaweedfs-test:9333,seaweedfs-test-master-1.seaweedfs-test-master-peer.seaweedfs-test:9333,seaweedfs-test-master-2.seaweedfs-test-master-peer.seaweedfs-test:9333 -metricsPort=9999

Volume Server:weed -v 4 -logtostderr=true volume -port=8444 -max=0 -ip=$(POD_NAME).seaweedfs-test-volume-peer.seaweedfs-test -metricsPort=9999 -mserver=seaweedfs-test-master-0.seaweedfs-test-master-peer.seaweedfs-test:9333,seaweedfs-test-master-1.seaweedfs-test-master-peer.seaweedfs-test:9333,seaweedfs-test-master-2.seaweedfs-test-master-peer.seaweedfs-test:9333 -dir=/data0

Filer: weed -v 4 -logtostderr=true filer -port=8888 -ip=$(POD_NAME).seaweedfs-test-filer-peer.seaweedfs-test -master=seaweedfs-test-master-0.seaweedfs-test-master-peer.seaweedfs-test:9333,seaweedfs-test-master-1.seaweedfs-test-master-peer.seaweedfs-test:9333,seaweedfs-test-master-2.seaweedfs-test-master-peer.seaweedfs-test:9333 -metricsPort=9999 -s3

OS version: Fedora CoreOS 33.20210426.3.0
output of weed version: version 8000GB 3.43 673214574 linux amd64
if using filer, show the content of filer.toml:[leveldb2]
enabled = false
[etcd]
enabled = false
servers = "seaweed-etcd.seaweedfs-test:2379"
timeout = "3s"
[cassandra]
enabled = true
keyspace="seaweedfs"
hosts=[
  "seaweed-scylla-client.seaweedfs-test:9042",
]
superLargeDirectories = [
]

Expected behavior
We expect unwritable (de facto) volumes will not be assigned for write requests.

@faurik
In the log, you can see that the failed volume was closed from writing, as it stopped sending information about its liveliness to the master server, after which the filer servers synchronized the topology and stopped sending write requests to the volume marked read only.
I0511 13:40:18.464338 volume_layout.go:223 volume 16498 does not have enough copies
I0511 13:40:18.464344 volume_layout.go:228 volume 16498 remove from writable

Accordingly, after this, the errors failed to write to replicas for volume should go away.
We are aware of this, but an abnormal output of one server volume is a rare event and it is possible to continue work on the retray from the filer server side, in such a way that the client will not notice errors.
With regular output (without OOM client), there is a slight delay between not sending liveness information and continuing to serve current requests.
Perhaps on the side of the volume server it is worth checking immediately, before the completion of the full data transfer, that writing to the replica is available, but this is an additional overhead for network interaction with a large RPS value, so you will need an analogue with an LRU cache

Hi @kmlebedev

In the log, you can see that the failed volume was closed from writing, as it stopped sending information about its liveliness to the master server, after which the filer servers synchronized the topology and stopped sending write requests to the volume marked read only.

Also few lines lower I can see that the volume becomes writable
I0511 13:40:19.916752 volume_layout.go:223 volume 16498 does not have enough copies
I0511 13:40:19.916756 volume_layout.go:228 volume 16498 remove from writable
I0511 13:40:19.916761 volume_growth.go:257 Registered Volume 16498 on topo:DefaultDataCenter:DefaultRack:seaweedfs-test-volume-2.seaweedfs-test-volume-peer.seaweedfs-test:8444
I0511 13:40:19.916771 volume_layout.go:393 Volume 16498 becomes writable

Accordingly, after this, the errors failed to write to replicas for volume should go away.

After this, during 5-7 minutes we got assignments for write requests onto this volume (as it is writable from master's perspective).

We are aware of this, but an abnormal output of one server volume is a rare event and it is possible to continue work on the retray from the filer server side, in such a way that the client will not notice errors.

Perhaps on the side of the volume server it is worth checking immediately, before the completion of the full data transfer, that writing to the replica is available, but this is an additional overhead for network interaction with a large RPS value, so you will need an analogue with an LRU cache.

I am not really sure, but it feels like an issue on master's side rather than volume server's side. And thus filer's retries don't figure this out.
The point is quite simple: during intensive write, if one of volumes fails, master can still assign its volumes for write requests. That's it. Of course it depends on amount of write requests, on amount of volume servers and amount of active volumes.
I don't propose to check replicas availability on volume server's side on write request. I would rather propose to avoid scenarios when master removes bunch of volumes from writable (when volume server fails) and adds to writable another volume on the failed volume server at the same moment in time. It just should not happen.
Regarding PR - I am not as good in Golang as I'd like to, but if I find enough free time, I will at least try it.

After this, during 5-7 minutes we got assignments for write requests onto this volume (as it is writable from master's perspective).

It's definitely not normal and it shouldn't be.
At the same time, I regularly update the seaweedfs cluster under constant load with sequential shutdown of volume servers and this problem does not reproduce at all
But the regular inclusion of server volumes in k8s goes through a call to SIGTERM signal.
Where does the interception and regular stop take place
	grace.OnInterrupt(func() {
		fmt.Println("volume server has been killed")

		// Stop heartbeats
		if !volumeServer.StopHeartbeat() {
			volumeServer.SetStopping()
			glog.V(0).Infof("stop send heartbeat and wait %d seconds until shutdown ...", *v.preStopSeconds)
			time.Sleep(time.Duration(*v.preStopSeconds) * time.Second)
		}

		shutdown(publicHttpDown, clusterHttpServer, grpcS, volumeServer)
		stopChan <- true
	})

It is not reproduced each time, only ~5-10% of restarts. As I understood from logs and observations - it happens only when volume grow and volume server restart happens nearly at the same time. After 5-7 minutes (approximately) volume server becomes ready and everything is fine again.

I'm not sure if I got your point right way. What is wrong with this line?

She says that a new newly created volume id has been registered. And in your case it matches the existing 16498

16498 is ID of newly created volume, which creation process was initiated at the same time as volume server shutdown.
So, from volume server's perspective:
I0511 13:40:18.303550 signal_handling.go:48 exec interrupt hook func name:github.com/seaweedfs/seaweedfs/weed/command.VolumeServerOptions.startVolumeServer.func1

Start of volume server shutdown process:I0511 13:40:18.303585 volume_server.go:139 Stopping volume server...

Wait 10 seconds for shutdownI0511 13:40:19.587873 volume.go:280 stop send heartbeat and wait 10 seconds until shutdown ...

During this waiting time serve new volume creation request (probably, it was initiated a little bit before shutdown):I0511 13:40:19.587922 store.go:166 In dir /data0 adds volume:16498 collection:test replicaPlacement:001 ttl:
I0511 13:40:19.587969 volume_info.go:20 maybeLoadVolumeInfo checks /data0/test_16498.vif
I0511 13:40:19.588117 volume_loading.go:121 open to write file /data0/test_16498.idx
I0511 13:40:19.588154 volume_loading.go:142 loading memory index /data0/test_16498.idx to memory
I0511 13:40:19.588208 needle_map_memory.go:54 max file key: 0 for file: /data0/test_16498.idx
I0511 13:40:19.916394 store.go:170 add volume 16498
I0511 13:40:19.916412 volume_grpc_admin.go:60 assign volume volume_id:16498  collection:"test"  replication:"001"

Finish shutdown process:I0511 13:40:29.588357 volume.go:304 graceful stop cluster http server ...
I0511 13:40:29.588947 volume.go:309 graceful stop gRPC ...
I0511 13:40:29.589452 volume_server.go:149 Shutting down volume server...

From master's perspective:

Got heartbeat about stop of volume server
I0511 13:40:18.304201 master_grpc_server.go:162 master received heartbeat ip:"seaweedfs-test-volume-3.seaweedfs-test-volume-peer.seaweedfs-test"  port:8444  public_url:"seaweedfs-test-volume-3.seaweedfs-test-volume-peer.seaweedfs-test:8444"  has_no_volumes:true

Initiate growth
I0511 13:40:18.446855 cluster_commands.go:32 max volume id 16497 ==> 16498

Create volume 16498
I0511 13:40:18.464245 volume_growth.go:244 Created Volume 16498 on topo:DefaultDataCenter:DefaultRack:seaweedfs-test-volume-2.seaweedfs-test-volume-peer.seaweedfs-test:8444

Got new volume in the heartbeat
I0511 13:40:18.464308 master_grpc_server.go:162 master received heartbeat ip:"seaweedfs-test-volume-2.seaweedfs-test-volume-peer.seaweedfs-test"  port:8444  new_volumes:{id:16498  collection:"test"  replica_placement:1  version:3}

Remove volume server which we terminated from topology
W0511 13:40:18.469625 master_grpc_server.go:100 SendHeartbeat.Recv server seaweedfs-test-volume-3.seaweedfs-test-volume-peer.seaweedfs-test:8444 : rpc error: code = Canceled desc = context canceled
I0511 13:40:18.469648 node.go:237 topo:DefaultDataCenter:DefaultRack removes seaweedfs-test-volume-3.seaweedfs-test-volume-peer.seaweedfs-test:8444
I0511 13:40:18.469655 master_grpc_server.go:87 unregister disconnected volume server seaweedfs-test-volume-3.seaweedfs-test-volume-peer.seaweedfs-test:8444
I0511 13:40:18.469659 master_grpc_server.go:58 remove volume server seaweedfs-test-volume-3.seaweedfs-test-volume-peer.seaweedfs-test:8444, online volume server: map[seaweedfs-test-volume-0.seaweedfs-test-volume-peer.seaweedfs-test:8444:[b81f6a9c-e4c1-4702-88d5-51974f4ca3d6] seaweedfs-test-volume-1.seaweedfs-test-volume-peer.seaweedfs-test:8444:[58a7e74e-84e2-48df-b52b-dc9555afb548] seaweedfs-test-volume-2.seaweedfs-test-volume-peer.seaweedfs-test:8444:[ff43c257-c736-4b6b-a930-db16c409c12b]]

Also remove its volumes
< tons of messages like "master see deleted volume <INT> from <HOST>" >
I0511 13:40:18.527309 masterclient.go:292 updateVidMap(DefaultDataCenter) .master: seaweedfs-test-volume-3.seaweedfs-test-volume-peer.seaweedfs-test:8444 volume add: 0, del: 8263, add ec: 0 del ec: 0

At the nearly same time create the volume (I guess it is replica) on the volume server which is terminating at the moment:
I0511 13:40:19.916729 volume_growth.go:244 Created Volume 16498 on seaweedfs-test-volume-3.seaweedfs-test-volume-peer.seaweedfs-test:8444

Register volume and make it writable:
I0511 13:40:19.916761 volume_growth.go:257 Registered Volume 16498 on topo:DefaultDataCenter:DefaultRack:seaweedfs-test-volume-2.seaweedfs-test-volume-peer.seaweedfs-test:8444
I0511 13:40:19.916771 volume_layout.go:393 Volume 16498 becomes writable
I0511 13:40:19.916776 volume_growth.go:257 Registered Volume 16498 on seaweedfs-test-volume-3.seaweedfs-test-volume-peer.seaweedfs-test:8444
I0511 13:40:19.957626 masterclient.go:292 updateVidMap() .master: seaweedfs-test-volume-3.seaweedfs-test-volume-peer.seaweedfs-test:8444 volume add: 1, del: 0, add ec: 0 del ec: 0


(web) Upgrade to Svelte 5

This PR upgrades the Svelte version we have to the v5 that was just released.

Has to do the functional changes or this wouldn't compile :sweat:


(maint) Run tests on facter-ng

I'm curious why would you want to do this.  this would mean that acceptance test for this project depend on the master branch of an  external resource

@b4ldr its just for testing, this PR will probably never get merged.

Waiting for CLA signature by @florindragos
@florindragos - We require a Contributor License Agreement (CLA) for people who contribute to Puppet, but we have an easy click-through license with instructions, which is available at https://cla.puppet.com/
Note: if your contribution is trivial and you think it may be exempt from the CLA, please post a short reply to this comment with details. http://docs.puppet.com/community/trivial_patch_exemption.html

CLA signed by all contributors.


[resolves #430] Remove explicit dependency on org.apache.activemq

Refer to this link for build results (access rights to CI server needed):
https://fabric8-ci.fusesource.com/job/wildfly-camel-pullreq/310/
Test FAILed.

retest this please

Refer to this link for build results (access rights to CI server needed):
https://fabric8-ci.fusesource.com/job/wildfly-camel-pullreq/311/
Test FAILed.

retest this please

Refer to this link for build results (access rights to CI server needed):
https://fabric8-ci.fusesource.com/job/wildfly-camel-pullreq/312/
Test FAILed.

retest this please

Refer to this link for build results (access rights to CI server needed):
https://fabric8-ci.fusesource.com/job/wildfly-camel-pullreq/313/
Test FAILed.


re-organize presto function registration

Split functions to semantic type-based category:
Deprecate registerVectorFunctions() and registerSimpleFunctions()
and instead introduce registerStringFunctions(), registerMapFunctions()...etc.

This split reduces the compile time by distributing the instantiations of the simple
functions across multiple compilation units.

Thanks @laithsakka this is great. Do you have a rough idea of how much time this saves in compiling ?

rebase on master

rebase on master

Thanks @laithsakka this is great. Do you have a rough idea of how much time this saves in compiling ?

I did not collect numbers, i will try to collect and add some.
aside from the compilation time also, is the re-compile freq. it the prev model.
if any function changes all functions are recompiled since they are all in the same compilation unit.


Bug: A:A:A:A:... in .js file locks up editor

VSCode Version: 1.10.2
OS Version: macOS Sierra 10.12.2

Steps to Reproduce:

Open new file
Save with .js extension
Type A:A:A:A:A:A:A:A:A:A:A:A:A:A:A:A:A:A:A:A:A:A:

Visual studio code locks up for me when I do this. Keep repeating the A:A:A:... pattern as much as necessary, it feels like something in the syntax highlighter or possibly intellisense has exponential time complexity as this is repeated. This also happens if the string is quoted, which is strange for both theories though.

Same OS and version, can't reproduce. Does it lock up if you start via code --disable-extensions?

What grammar do you use for JavaScript? The built-in one or did you install the Atom JavaScript grammar?

@kaiwood Ah no it doesn't. I'll see if I can find out which extension is causing it.

Culprit is vscode-flow! I'll file a bug with them. That --disable-extensions flag is handy, I'll try that first next time.


Missing documentation on setting static IPv6 address on layer3 subinterface

Documentation link
https://registry.terraform.io/providers/PaloAltoNetworks/panos/latest/docs/resources/layer3_subinterface
Describe the problem
It is no info on how to assign a static IPv6 address. And other IPv6 interface configuration like: "prefix", "anycast", and "Send RA".
Suggested fix
I have not yet discovered the correct way to assign a static IPv6 address on a layer3 subinterface.

Is this a missing feature? I can see that it is possible to enable IPv6 on the interface, but not how to set the actual IP address.


Changing the wayt PostIDs are created

Context
Currently when creating a new Post, it's ID field is generated sequentially by taking the last id and adding 1 to it.
While this surely works, it is just a very naive way of generating ids in a very determininistic way that might have some downsides as newer ids can be inferred.
A part from this, a serie of checks must be put in place in order to maintain the ordering of such ids, as I've also outlined inside #90.
Solution
In order to properly change this, I propose a new way of deterministically generating post IDs that cannot be infered and also will allow for some performance improvements:
sha-256(post_creation_date + post_creator + post_subspace)

This way we could also remove the current way of checking if a post collides with another one which is currently causing a lot of performance probles as we iterate over all the posts.
Using this ID system, instead, we could simply check if such key already exists inside the store and if it does, it means the post is duplicated.
The implementation could be done directly inside the NewPost method, generating the ID there instead of outside of it.
Notes
When implementing this, a migration should also be implemented to transform 0.3.0 post ids into the new type by performing the appropriate convertion.

I'm starting today afternoon with this


sample dataset format

could you share sample dataset format with few examples in it?
i have created a sample dataset from cnndm summarisation dataset.
{"task": "summarization", "text_a": "(CNN)The Palestinian Authority officially became the 123rd member of the International Criminal Court on Wednesday, a step that gives the court jurisdiction over alleged crimes in Palestinian territories. The formal accession was marked with a ceremony at The Hague, in the Netherlands, where the court is based. The Palestinians signed the ICC's founding Rome Statute in January, when they also accepted its jurisdiction over alleged crimes committed \"in the occupied Palestinian territory, including East Jerusalem, since June 13, 2014.\" Later that month, the ICC opened a preliminary examination into the situation in Palestinian territories, paving the way for possible war crimes investigations against Israelis. As members of the court, Palestinians may be subject to counter-charges as well. Israel and the United States, neither of which is an ICC member, opposed the Palestinians' efforts to join the body. But Palestinian Foreign Minister Riad al-Malki, speaking at Wednesday's ceremony, said it was a move toward greater justice. \"As Palestine formally becomes a State Party to the Rome Statute today, the world is also a step closer to ending a long era of impunity and injustice,\" he said, according to an ICC news release. \"Indeed, today brings us closer to our shared goals of justice and peace.\" Judge Kuniko Ozaki, a vice president of the ICC, said acceding to the treaty was just the first step for the Palestinians. \"As the Rome Statute today enters into force for the State of Palestine, Palestine acquires all the rights as well as responsibilities that come with being a State Party to the Statute. These are substantive commitments, which cannot be taken lightly,\" she said. Rights group Human Rights Watch welcomed the development. \"Governments seeking to penalize Palestine for joining the ICC should immediately end their pressure, and countries that support universal acceptance of the court's treaty should speak out to welcome its membership,\" said Balkees Jarrah, international justice counsel for the group. \"What's objectionable is the attempts to undermine international justice, not Palestine's decision to join a treaty to which over 100 countries around the world are members.\" In January, when the preliminary ICC examination was opened, Israeli Prime Minister Benjamin Netanyahu described it as an outrage, saying the court was overstepping its boundaries. The United States also said it \"strongly\" disagreed with the court's decision. \"As we have said repeatedly, we do not believe that Palestine is a state and therefore we do not believe that it is eligible to join the ICC,\" the State Department said in a statement. It urged the warring sides to resolve their differences through direct negotiations. \"We will continue to oppose actions against Israel at the ICC as counterproductive to the cause of peace,\" it said. But the ICC begs to differ with the definition of a state for its purposes and refers to the territories as \"Palestine.\" While a preliminary examination is not a formal investigation, it allows the court to review evidence and determine whether to investigate suspects on both sides. Prosecutor Fatou Bensouda said her office would \"conduct its analysis in full independence and impartiality.\" The war between Israel and Hamas militants in Gaza last summer left more than 2,000 people dead. The inquiry will include alleged war crimes committed since June. The International Criminal Court was set up in 2002 to prosecute genocide, crimes against humanity and war crimes. CNN's Vasco Cotovio, Kareem Khadder and Faith Karimi contributed to this report.", "text_b": ["Membership gives the ICC jurisdiction over alleged crimes committed in Palestinian territories since last June .\nIsrael and the United States opposed the move, which could open the door to war crimes investigations against Israelis .", "\"Governments seeking to penalize Palestine for joining the ICC should immediately end their pressure, and countries that support universal acceptance of the court's treaty should speak out to welcome its membership,\" said Balkees Jarrah, international justice counsel for the group."], "text_c": ["membership of the icc jurisdiction over alleged crimes committed in palestinian territories since last june when israel and the united states ratified the icc, which would open the door to war crimes committed against israelis.", "\" countries seeking to penalizec for joining the icc should effectively end their pressure, and countries that seek universal acceptance of the court of arbitration treaty are turn out to welcome icc membership, \" said balsams jardine, international legal counsel for the icc."], "orig_label": -1}
{"task": "summarization", "text_a": "(CNN)Never mind cats having nine lives. A stray pooch in Washington State has used up at least three of her own after being hit by a car, apparently whacked on the head with a hammer in a misguided mercy killing and then buried in a field -- only to survive. That's according to Washington State University, where the dog -- a friendly white-and-black bully breed mix now named Theia -- has been receiving care at the Veterinary Teaching Hospital. Four days after her apparent death, the dog managed to stagger to a nearby farm, dirt-covered and emaciated, where she was found by a worker who took her to a vet for help. She was taken in by Moses Lake, Washington, resident Sara Mellado. \"Considering everything that she's been through, she's incredibly gentle and loving,\" Mellado said, according to WSU News. \"She's a true miracle dog and she deserves a good life.\" Theia is only one year old but the dog's brush with death did not leave her unscathed. She suffered a dislocated jaw, leg injuries and a caved-in sinus cavity -- and still requires surgery to help her breathe. The veterinary hospital's Good Samaritan Fund committee awarded some money to help pay for the dog's treatment, but Mellado has set up a fundraising page to help meet the remaining cost of the dog's care. She's also created a Facebook page to keep supporters updated. Donors have already surpassed the $10,000 target, inspired by Theia's tale of survival against the odds. On the fundraising page, Mellado writes, \"She is in desperate need of extensive medical procedures to fix her nasal damage and reset her jaw. I agreed to foster her until she finally found a loving home.\" She is dedicated to making sure Theia gets the medical attention she needs, Mellado adds, and wants to \"make sure she gets placed in a family where this will never happen to her again!\" Any additional funds raised will be \"paid forward\" to help other animals. Theia is not the only animal to apparently rise from the grave in recent weeks. A cat in Tampa, Florida, found seemingly dead after he was hit by a car in January, showed up alive in a neighbor's yard five days after he was buried by his owner. The cat was in bad shape, with maggots covering open wounds on his body and a ruined left eye, but remarkably survived with the help of treatment from the Humane Society.", "text_b": ["Theia, a bully breed mix, was apparently hit by a car, whacked with a hammer and buried in a field .\n\"She's a true miracle dog and she deserves a good life,\" says Sara Mellado, who is looking for a home for Theia .", "The veterinary hospital's Good Samaritan Fund committee awarded some money to help pay for the dog's treatment, but Mellado has set up a fundraising page to help meet the remaining cost of the dog's care."], "text_c": ["theia, nicknamed bully breeder dog was apparently hit by a car, whacked by wased and buried in a field. \" she's a true miracle, and she deserves a good friend, \" says sara melendezo, who was looking for a replacement for theia.", "the veterinary association's good sam #tan fund has raises some money to help help fund the dog's treatment, but veterinary #o has set up a fundraising page to help raise the remaining cost of the dog's care."], "orig_label": -1}

this is how my dataset looks, but i am trying to load it using process_summarisation function in dataset loader its unable to load.

  File ".pyenv/versions/3.10.13/envs/alignscore/lib/python3.10/site-packages/pytorch_lightning/loops/optimization/optimizer_loop.py", line 144, in closure
    self._backward_fn(step_output.closure_loss)
  File ".pyenv/versions/3.10.13/envs/alignscore/lib/python3.10/site-packages/pytorch_lightning/loops/optimization/optimizer_loop.py", line 305, in backward_fn
    self.trainer._call_strategy_hook("backward", loss, optimizer, opt_idx)
  File ".pyenv/versions/3.10.13/envs/alignscore/lib/python3.10/site-packages/pytorch_lightning/trainer/trainer.py", line 1494, in _call_strategy_hook
    output = fn(*args, **kwargs)
  File ".pyenv/versions/3.10.13/envs/alignscore/lib/python3.10/site-packages/pytorch_lightning/strategies/strategy.py", line 207, in backward
    self.precision_plugin.backward(closure_loss, self.lightning_module, optimizer, optimizer_idx, *args, **kwargs)
  File ".pyenv/versions/3.10.13/envs/alignscore/lib/python3.10/site-packages/pytorch_lightning/plugins/precision/precision_plugin.py", line 67, in backward
    model.backward(tensor, optimizer, optimizer_idx, *args, **kwargs)
  File ".pyenv/versions/3.10.13/envs/alignscore/lib/python3.10/site-packages/pytorch_lightning/core/module.py", line 1498, in backward
    loss.backward(*args, **kwargs)
  File ".pyenv/versions/3.10.13/envs/alignscore/lib/python3.10/site-packages/torch/_tensor.py", line 396, in backward
    torch.autograd.backward(self, gradient, retain_graph, create_graph, inputs=inputs)
  File ".pyenv/versions/3.10.13/envs/alignscore/lib/python3.10/site-packages/torch/autograd/__init__.py", line 173, in backward
    Variable._execution_engine.run_backward(  # Calls into the C++ engine to run the backward pass
RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn

.

@riyaj8888 how did you resolve the issue of runtimeerror you were getting below ?
RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn


Add content into the "Test your configuration" sections.

Context
There have been some support tickets where payments have failed and users have not been able to figure out why. These changes clarify the most common reason why payments fail.
Changes proposed in this pull request
Add content on checking that:

your credentials on gov.uk pay are correct
you have set up notifications that enable features like refunds correctly

Guidance to review

Passed tech writer 2i and ready for erge


remove graph editor

remove graph editor since it's not designed as expected to restrict graph access for rewrite rule.

/AzurePipelines run all