to_zarr() is extremely slow writing to high latency store

Unbearably so, I would say. Here is an example with a tree containing 13 nodes and negligible data, trying to write to S3/GCS with fsspec:
import numpy as np
import xarray as xr
from datatree import DataTree

ds = xr.Dataset(
    data_vars={
        "a": xr.DataArray(np.ones((2, 2)), coords={"x": [1, 2], "y": [1, 2]}),
        "b": xr.DataArray(np.ones((2, 2)), coords={"x": [1, 2], "y": [1, 2]}),
        "c": xr.DataArray(np.ones((2, 2)), coords={"x": [1, 2], "y": [1, 2]}),
    }
)

dt = DataTree()
for first_level in [1, 2, 3]:
    dt[f"{first_level}"] = DataTree(ds)
    for second_level in [1, 2, 3]:
        dt[f"{first_level}/{second_level}"] = DataTree(ds)

%time dt.to_zarr("test.zarr", mode="w")

bucket = "s3|gs://your-bucket/path"
%time dt.to_zarr(f"{bucket}/test.zarr", mode="w")

Gives:
CPU times: user 53.8 ms, sys: 3.95 ms, total: 57.8 ms
Wall time: 58 ms

CPU times: user 6.33 s, sys: 211 ms, total: 6.54 s
Wall time: 3min 20s

I suspect one of the culprits may be that we're having to reopen the store without consolidated metadata on writing each node:
https://github.com/xarray-contrib/datatree/blob/433f78dc3ea073d54d8fa36f1574c7e74a3b49db/datatree/io.py#L205-L223
Any ideas for easy improvements here?

Awesome, thanks for the info! I imagine (1) would require reimplementing a good chunk of xarray's ZarrStore and other backend objects here in a way that avoids as many of these serial ops as possible?

In the meantime, this is plenty fast for the small data case:
def to_zarr(dt, path):
    with TemporaryDirectory() as tmp_path:
        dt.to_zarr(tmp_path)
        fs.put(tmp_path, path, recursive=True)

Takes 1s on my example above instead of 3m.

@slevang would you mind performing the same test with xarray.core.datatree.DataTree upstream? Then I will know whether or not this issue still exists even after many changes (in xarray, datatree, and zarr). If it still exists can you please re-raise it on the xarray main repo :)

Looks like things are better but still very slow. The example in the OP now takes just over a minute on latest versions writing to GCS. DataTree.to_zarr hasn't changed so the improvement must be higher up in the stack.
I've done a little profiling, and the fundamental problem is still that we're synchronously creating each group via a separate Dataset.to_zarr call. This involves a bunch of calls to various fsspec methods to check path existence and write small attribute and metadata files. The example above writes 13 groups so that adds up quickly.
To make this significantly better, unfortunately I think we need to drop the reliance on Dataset.to_zarr and rebuild the method to write the whole group structure in one go, and then write the data.
I'll do a little more digging and reopen on xarray.


[SPARK-11382] Replace example code in mllib-decision-tree.md using include_example

https://issues.apache.org/jira/browse/SPARK-11382
B.T.W. I fix an error in naive_bayes_example.py.

Merged build triggered.

Merged build started.

Test build #45519 has started for PR 9596 at commit 78ab2a9.

Test build #45519 has finished for PR 9596 at commit 78ab2a9.

This patch fails Python style tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):\n  * class JavaDecisionTreeClassificationExample \n  * class JavaDecisionTreeRegressionExample \n

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/45519/
Test FAILed.

Merged build triggered.

Merged build started.

Test build #45525 has started for PR 9596 at commit 1fc997a.

Test build #45525 has finished for PR 9596 at commit 1fc997a.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):\n  * class JavaDecisionTreeClassificationExample \n  * class JavaDecisionTreeRegressionExample \n

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/45525/
Test PASSed.

LGTM. Merged into master and branch-1.6. Thanks!


error reading delta table to pandas: runtime dropped the dispatch task

delta-rs v0.6.3
pyarrow==9.0.0
pandas==1.3.5
deltalake==0.6.3
import pandas as pd
import pyarrow.dataset as ds

from typing import List
from deltalake.table import DeltaTable

input_table_path =<EMAIL_ADDRESS>
storage_options = {
        "AZURE_STORAGE_ACCOUNT_NAME": account_name,
        "AZURE_STORAGE_ACCOUNT_KEY": account_key,
    }

df: DeltaTable = DeltaTable(input_table_path, storage_options=storage_options).to_pandas()
print(df.head())

deltalake.PyDeltaTableError: Generic MicrosoftAzure error: Error performing get request 1d/date=2022-11-03/part-00013-50e50673-dbc1-481f-9103-0dd0d246a7f7.c000.snappy.parquet: response error "request error", after 0 retries: error sending request for url (https://raddeakarankstorage.blob.core.windows.net/output/1d/date=2022-11-03/part-00013-50e50673-dbc1-481f-9103-0dd0d246a7f7.c000.snappy.parquet): dispatch task is gone: runtime dropped the dispatch task

lol
switching to delta-rs 0.6.4 solves the problem

i was hoping it would :)


feat: make this app as a middle agent api to send messages and media to telegram channels

Build this application as an api, like if you send messages via api we send it through our application

Which one of language will you update ? both ?


Configuration files

It would be great to have some kind of simple configuration file which users could use to tweak Iota behaviour. Things like using spaces or tabs, tab width, and so on.
Rust projects seem to use toml a lot for configuration files. Perhaps this would be a good starting place?
[config]
spaces = true
tabwidth = 4

or similar?
In the future there will be a proper plugin system, but we need something simple to start with.

Also YAML would be cool! I currently also work on an Editor (inC++/wxWidgets) and I have fall in love with YAML, then it will looks like this:
# iota configuration
spaces: true
tabwidth: 4
recent_file: /example.txt

And there are two good parsers out in the wild.

For general setting of properties, I tend to like YAML, or TOML if we're being rusty.
As an interesting reference point, wtftw is a tiling window manager that uses XMonad style compiled configuration files.  See here: https://github.com/Kintaro/wtftw/blob/master/core/src/config.rs
The aforementioned safety issues apply of course.


(PUP-6925) Use Puppet::FileSystem for file access / explicitly specify encodings

For encodings that are currently specified implicitly (through Rubys Encoding.default_external for instance), make sure they are specified explicitly instead.
Should be merged prior to #5384

CLA signed by all contributors.

🎉


Visualizer only fills half of the window with 200% display scaling

GNOME 44.3 on Wayland, Arch Linux, Cavalier 2023.8.0 from Flathub.
The vizualizer fills only half of the window from the bottom left, everything else is transparent. This only happens on >200% display scaling.

Screenshot

https://github.com/NickvisionApps/Cavalier/releases/tag/2023.8.1-rc1


Add bulk replay capabilities to replay.py

Today a user cannot point to a folder and ingest all datasets with the tool.

Initial Slack conversation over here
One idea to start the conversation is to split the current replay.yml  into two parts ...

config.yml which contains the Splunk params (host/user/pass) + default index + update_timestamp
dataset.yml which would exists in each datasets directory (adding info to existing yml file) and contains name + source + sourcetype + index (if user wants to override default one in config.yml

Propose we standardize the per-directory yml filename to dataset.yml so it can easily be found/recognized.
Calling replay.py could look like this ...
python replay.py -h
      -c config.yml         Splunk configuration (host/user/pass/index/override timestamp) (required)
       -d <directory>      Directory to recursively search for dataset.yml to start ingesting (required)

       -i <index>             Override index in config.yml (optional)
       -t                            Override config.yml and update timestamps (optional)
       -s <seconds>       Sleep seconds in between directory ingests (allow splunk to catchup indexing) (optional)

Each directory's *.yml currently seems to have the sourctypes but not linked/ordered with filename. Here's an example
author: Patrick Bareiss, Michael Haag
id: cc9b25d6-efc9-11eb-926b-550bf0943fbb
date: '2022-01-12'
description: 'Atomic Test Results: Successful Execution of test T1003.001-1 Windows
  Credential Editor Successful Execution of test T1003.001-2 Dump LSASS.exe Memory
  using ProcDump Return value unclear for test T1003.001-3 Dump LSASS.exe Memory using
  comsvcs.dll Successful Execution of test T1003.001-4 Dump LSASS.exe Memory using
  direct system calls and API unhooking Return value unclear for test T1003.001-6
  Offline Credential Theft With Mimikatz Return value unclear for test T1003.001-7
  LSASS read with pypykatz '
environment: attack_range
dataset:
- https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.001/atomic_red_team/windows-powershell.log
- https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.001/atomic_red_team/windows-security.log
- https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.001/atomic_red_team/windows-sysmon.log
- https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.001/atomic_red_team/windows-sysmon_creddump.log
- https://media.githubusercontent.com/media/splunk/attack_data/master/datasets/attack_techniques/T1003.001/atomic_red_team/windows-system.log
sourcetypes:
- XmlWinEventLog:Microsoft-Windows-Sysmon/Operational
- WinEventLog:Microsoft-Windows-PowerShell/Operational
- WinEventLog:System
- WinEventLog:Security
references:
- https://attack.mitre.org/techniques/T1003/001/
- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1003.001/T1003.001.md
- https://github.com/splunk/security-content/blob/develop/tests/T1003_001.yml

Propose we bring a linkage from the filename to the source/sourcetype (basically moving replay_parameters logic from replay.yml to each directory's dataset.yml file so it can be documented per dataset capture and replayed
author: Patrick Bareiss, Michael Haag
id: cc9b25d6-efc9-11eb-926b-550bf0943fbb
date: '2022-01-12'
description: 'Atomic Test Results: Successful Execution of test T1003.001-1 Windows
  Credential Editor Successful Execution of test T1003.001-2 Dump LSASS.exe Memory
  using ProcDump Return value unclear for test T1003.001-3 Dump LSASS.exe Memory using
  comsvcs.dll Successful Execution of test T1003.001-4 Dump LSASS.exe Memory using
  direct system calls and API unhooking Return value unclear for test T1003.001-6
  Offline Credential Theft With Mimikatz Return value unclear for test T1003.001-7
  LSASS read with pypykatz '
environment: attack_range
references:
- https://attack.mitre.org/techniques/T1003/001/
- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1003.001/T1003.001.md
- https://github.com/splunk/security-content/blob/develop/tests/T1003_001.yml

replay_parameters:
  - name: atomic_red_team/windows-powershell.log
       source: XmlWinEventLog:Microsoft-Windows-Sysmon/Operational
       sourcetype: xmlwineventlog
       notes: <optional>
  - name: windows-sysmon.log
       source: XmlWinEventLog:Microsoft-Windows-Sysmon/Operational
       sourcetype: xmlwineventlog

I really dig this proposal, although it will cause us to have to refactor a few aspects of our testing pipeline to read from the new yaml structures. With this approach we can/should also create a spec for the dataset.yml and run CI/CD validation for it on every PR. Similarly to security_content repo here. Let me bring this back to the team and think through it but at the surface looks absolutely doable :smile:. Thank you so much for spending the time to write this up, super useful!


fixed multiset/unordered_multiset insert return types

More issues related to multisets. See https://en.cppreference.com/w/cpp/container/multiset/insert and https://en.cppreference.com/w/cpp/container/unordered_multiset/insert
Also see https://github.com/cython/cython/pull/4408

@ da-woods  yes you are right. I didn't fix it before. Because all the other set and map classes didn't do that...
I am adding more fixes and tests, so maybe this should be considered work in progress right now...


Error getting JS to minfiy in slate build

Problem
When I run slate (specifically, type the command 'slate start'), I get this error in my terminal:
GulpUglifyError: unable to minify JavaScript
Caused by: SyntaxError: Unexpected token: operator (=) (line: 4, col: 1, pos: 29)
Error
    at new JS_Parse_Error (eval at <anonymous> (/Users/adamrasheed/Dropbox/Client-Projects/20170410-FlexRake/Website/flexrake-theme/node_modules/@shopify/slate-tools/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), <anonymous>:1545:18)
    at js_error (eval at <anonymous> (/Users/adamrasheed/Dropbox/Client-Projects/20170410-FlexRake/Website/flexrake-theme/node_modules/@shopify/slate-tools/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), <anonymous>:1553:11)
    at croak (eval at <anonymous> (/Users/adamrasheed/Dropbox/Client-Projects/20170410-FlexRake/Website/flexrake-theme/node_modules/@shopify/slate-tools/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), <anonymous>:2089:9)
    at token_error (eval at <anonymous> (/Users/adamrasheed/Dropbox/Client-Projects/20170410-FlexRake/Website/flexrake-theme/node_modules/@shopify/slate-tools/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), <anonymous>:2097:9)
    at unexpected (eval at <anonymous> (/Users/adamrasheed/Dropbox/Client-Projects/20170410-FlexRake/Website/flexrake-theme/node_modules/@shopify/slate-tools/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), <anonymous>:2103:9)
    at expr_atom (eval at <anonymous> (/Users/adamrasheed/Dropbox/Client-Projects/20170410-FlexRake/Website/flexrake-theme/node_modules/@shopify/slate-tools/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), <anonymous>:2630:9)
    at maybe_unary (eval at <anonymous> (/Users/adamrasheed/Dropbox/Client-Projects/20170410-FlexRake/Website/flexrake-theme/node_modules/@shopify/slate-tools/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), <anonymous>:2792:19)
    at expr_ops (eval at <anonymous> (/Users/adamrasheed/Dropbox/Client-Projects/20170410-FlexRake/Website/flexrake-theme/node_modules/@shopify/slate-tools/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), <anonymous>:2827:24)
    at maybe_conditional (eval at <anonymous> (/Users/adamrasheed/Dropbox/Client-Projects/20170410-FlexRake/Website/flexrake-theme/node_modules/@shopify/slate-tools/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), <anonymous>:2832:20)
    at maybe_assign (eval at <anonymous> (/Users/adamrasheed/Dropbox/Client-Projects/20170410-FlexRake/Website/flexrake-theme/node_modules/@shopify/slate-tools/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), <anonymous>:2856:20)
    at expression (eval at <anonymous> (/Users/adamrasheed/Dropbox/Client-Projects/20170410-FlexRake/Website/flexrake-theme/node_modules/@shopify/slate-tools/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), <anonymous>:2875:20)
    at simple_statement (eval at <anonymous> (/Users/adamrasheed/Dropbox/Client-Projects/20170410-FlexRake/Website/flexrake-theme/node_modules/@shopify/slate-tools/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), <anonymous>:2314:55)
    at eval (eval at <anonymous> (/Users/adamrasheed/Dropbox/Client-Projects/20170410-FlexRake/Website/flexrake-theme/node_modules/@shopify/slate-tools/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), <anonymous>:2178:20)
    at eval (eval at <anonymous> (/Users/adamrasheed/Dropbox/Client-Projects/20170410-FlexRake/Website/flexrake-theme/node_modules/@shopify/slate-tools/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), <anonymous>:2136:24)
    at eval (eval at <anonymous> (/Users/adamrasheed/Dropbox/Client-Projects/20170410-FlexRake/Website/flexrake-theme/node_modules/@shopify/slate-tools/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), <anonymous>:2904:23)
    at Object.parse (eval at <anonymous> (/Users/adamrasheed/Dropbox/Client-Projects/20170410-FlexRake/Website/flexrake-theme/node_modules/@shopify/slate-tools/node_modules/gulp-uglify/node_modules/uglify-js/tools/node.js:28:1), <anonymous>:2915:7)

The server still runs, but I can't get any of my javascript files to run.
Replication steps
Not sure how you could replicate this?
More Information
How can I fix this?

I'm assuming this is not a fresh install? Looks like you have a syntax error somewhere in your JS.

Not a fresh install and its giving me errors in the node_modules folder. How do I rebuild them correctly?

Are you require'ing or importing a library from node_modules?  Our tooling currently doesn't support anything like that. You will need to include the JS files in the scripts/vendors folder.
Otherwise, the only thing I can recommend given the information you've provided here is to remove any edits you've done since installing Slate and seeing which edit causes the error.
Closing because this is a project specific problem, not a Slate problem. Please feel free to continue to post here with any additional questions and updates!

Is there a way to capture a better error message containing information about the line number and file path that contains a syntax error? I'll investigate the issue, but would love pointers if you already have ideas.

A quick and non-configurable way is to
return gulp.src(libs.concat(scripts))
    .pipe(concat('all.js'))
    .pipe(gulpif(COMPRESS, uglify().on('error', console.log)))
    .pipe(gulp.dest('./build/javascripts'));


Add support for head customization

I needed that to add my custom tracking, sharing it in case it's useful

haha looks like you added it in the meanwhile :) great, going to pull latest master :)


Sync version-sync.sh across repos

There are currently a few versions of the version-sync.sh script floating around in various repos. This issue provides for updating them all to the same script.

Closing since this is more than a version-sync change.


builder-angular:application - build ssr only, disable ssr from serve

Command
serve
Description
We are trying to migrate to use @angular-devkit/build-angular:application however due to the ssr triggering the SSR during serve is causing us issues
What we need to have is to be able to disable the ssr handling via vite (ng serve), but build the server only

no output: SSR output e.g. dist/server
no SSR server: no SSR from dev-server (through vite)

Using the following: output + SSR server
"prerender": true,
"ssr": {}

Using the following: no output + SSR server
"prerender": true,
"ssr": false

Using the following: no output + no SSR server
"prerender": false,
"ssr": false

Just some more context - our SSR is handled via dotnet ATM and changing all the process its not very simple (and needs to work for local/prod). We pass metadata in order to boot up the angular app for configs etc... which we include via provider (and can change dynamically/per request can have different configs e.g. by locale)
Describe the solution you'd like
Some configuration along these lines
via serve opts
"serve": {
  "builder": "@angular-devkit/build-angular:dev-server",
  "options": {
    "disableSsr": true
  }
},

OR via build
"build": {
  "builder": "@angular-devkit/build-angular:application",
  "options": {
    ...
    "prerender": true,
    "ssr": {
        "devServer": false
    }
  },

Describe alternatives you've considered
Some workarounds

keep using "builder": "@angular-devkit/build-angular:dev-server" (not sure if theres a new version for this)
and for the client use either:

"builder": "@angular-devkit/build-angular:application" and disable ssr+prerendering
or "builder": "@angular-devkit/build-angular:browser-esbuild"

Hi @stephenlautier,
I'm not entirely sure what you mean by disabling SSR in Vite and building only the server. When running ng serve, files are kept in memory and are not written to disk.
If your goal is to disable SSR and prerendering while running ng serve, you can modify the configurations as shown below and eliminate repetitive options by leveraging configuration composition:
{
  "build": {
    "builder": "@angular-devkit/build-angular:application",
    "options": {
      ...
    },
    "configurations": {
      "production": {
        "outputHashing": "all"
      },
      "development": {
        "optimization": false,
        "extractLicenses": false,
        "sourceMap": true
      },
      "no-ssr": {
        "ssr": false,
        "prerender": false
      }
    },
    "defaultConfiguration": "production"
  },
  "serve": {
    "builder": "@angular-devkit/build-angular:dev-server",
    "configurations": {
      "production": {
        "buildTarget": "angular-dev:build:production,no-ssr"
      },
      "development": {
        "buildTarget": "angular-dev:build:development,no-ssr"
      }
    }
  }
}

Sorry I wasn't clear;
For our SSR to work i would need to to use the build for the SSR (so dist/server is on disk), as they need to be invoked from dotnet -> node (though client is not needed at this point)
Then when i launch the client through ng serve, i need SSR to be disabled (e.g. this vite SSR middleware)  as we are using import { createServerRenderer } from "aspnet-prerendering"; in main.server.ts and it blows up (as its not invoked from dotnet)
So what i was hoping is to only build server (so its on disk) and when i launch ng serve i dont have ssr through dev server (vite)
Will give what you suggested a shot; maybe i can get something working like that (tho might have additional build redundant - e.g. when i build the server i will also build the client again).
Not sure if theres a way to build the server only by any chance? or a new version of @angular-devkit/build-angular:server which uses the new stuff? 👀
As previously we were building server only using ng run DotnetNgx:server which is using "builder": @angular-devkit/build-angular:server

The application builder does not support building only the server-side portion code. Instead it builds the entire application.
Additionally, as far as I know, aspnet-prerendering relies on the deprecated .NET SPA Services, which are incompatible with ESM and only work with CommonJS (CJS). So even if the build was outputted to disk, you’ll have some challenges using the output with .NET.

The application builder does not support building only the server-side portion code. Instead it builds the entire application.
Additionally, as far as I know, aspnet-prerendering relies on the deprecated .NET SPA Services, which are incompatible with ESM and only work with CommonJS (CJS). So even if the build was outputted to disk, you’ll have some challenges using the output with .NET.

Yeah, its not going to be easy 😢 .. exactly when you wrote that im in that issue atm 😅

Prerendering failed because of error: Error [ERR_REQUIRE_ESM]: require() of ES Module XXX\ClientApp\dist\server\main.server.mjs not supported. Instead change the require of XXX\ClientApp\dist\server\main.server.mjs to a dynamic import() which is available in all CommonJS modules. at findBootModule (anonymous:55:20) at findRenderToStringFunc (anonymous:61:31) at renderToStringImpl (anonymous:19:54) at module.exports (anonymous:111:5)

alto i think it should be possible to fix that  - as we are using these:

https://github.com/JeringTech/Javascript.NodeJS (this invokes node and should support ESM)
https://github.com/brunolau/BrunoLau.SpaServices
+some other custom port of some deprecated services also

Anyway using your suggestion ,no-ssr should get me working, with just an additional redundant build of the client; alto overall it seems still faster than the older version (at least on a smaller app)


Issue in EmailSink.publish method exception handling

Description:
In an active/passive wso2sp setup, when a passive member became an active state, it's trying to flush the events in sink callback handler and publish out to an SMTP server. At that time if there is a Runtime Exception throw by the mail server, coordinatorChanged execution not continues and it breaks the other handers(Source/Sink and Store) activation method execution.
Exception:
message [2018-12-02 04:27:18,727]  WARN {org.wso2.carbon.cluster.coordinator.rdbms.RDBMSMemberEventListenerTask} - Error occurred while reading membership events. java.lang.RuntimeException: Error is encountered while sending the message by the email ClientConnector with properties: {From:...,To:...,...,Content-Type=text/html} at org.wso2.extension.siddhi.io.email.sink.EmailSink.publish(EmailSink.java:476) at org.wso2.siddhi.core.stream.output.sink.Sink.publish(Sink.java:135) at org.wso2.extension.siddhi.map.text.sinkmapper.TextSinkMapper.mapAndSend(TextSinkMapper.java:221) at org.wso2.siddhi.core.stream.output.sink.SinkMapper.mapAndSend(SinkMapper.java:165) at org.wso2.siddhi.core.stream.output.sink.SinkHandlerCallback.mapAndSend(SinkHandlerCallback.java:35) at org.wso2.carbon.stream.processor.core.ha.HACoordinationSinkHandler.setAsActive(HACoordinationSinkHandler.java:153) at org.wso2.carbon.stream.processor.core.ha.HAEventListener.coordinatorChanged(HAEventListener.java:77) at org.wso2.carbon.cluster.coordinator.rdbms.RDBMSMemberEventListenerTask.notifyCoordinatorChangeEvent(RDBMSMemberEventListenerTask.java:104) at org.wso2.carbon.cluster.coordinator.rdbms.RDBMSMemberEventListenerTask.run(RDBMSMemberEventListenerTask.java:77) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:748)

Suggested Labels:
Suggested Assignees:
Affected Product Version:
WSO2SP-4.2.0
OS, DB, other environment details and versions:
Steps to reproduce:
In an active/passive wso2sp setup, when a passive member became an active state, it's trying to flush the events in sink callback handler and publish out to an SMTP server. At that time if there is a Runtime Exception throw by the mail server, coordinatorChanged execution not continues and it breaks the other hander activation method execution.
Related Issues:

Close the issue and will be addressed with issue: https://github.com/wso2/carbon-analytics/issues/1510


Event page updates break modal state

When modifying the event ACL (and probably metadata, this is untested) for an event in the events list, the displayed event switches to the same LINE in the events list, partially, when the events page updates.  Symptoms:

The title of the modal changes
The displayed ACL does not, and the data is persisted in either event depending on how the issue was triggered

I suspect this would be true of any pane in the modal, so this is potential data corruption issue wrt to metadata, and/or ACLs

Switching tabs in the modal displays the correct data for the event, but it might not be the event you think you're on since it's changed underneath you!

Here's the major issue: If you're working alone you hopefully/probably won't see this much since the event order likely only changes when you're working.  In a multi-admin situation, that's not true and it could quite conceivably trigger all kinds of fun data corruption issues.

This Video shows how to reproduce the problem:
https://github.com/user-attachments/assets/1be15bab-57a2-4160-8455-4dd53074e4a8

I cannot reproduce this problem on the main branch. However, the bug is available on develop.opencast. Does this server have the current development state of this repository?
I think this bug was fixed by the modal navigation refactoring in #817. However, I found a bug where some action buttons in the table always open the metadata page. I create a pull request for this bug.

Can confirm that this is fixed in main. Just not in the last release. Will be included in the next release though.


Fixed New Decrypt

var TK={
  xa:function(a,b){
    var c=a[0];
    a[0]=a[b%a.length];
    a[b%a.length]=c},
  "do":function(a){
    a.reverse()
  },
  BH:function(a,b){
    a.splice(0,b)
  }};
{
  UK = function(a) {
    a = a.split("");

    TK.BH(a, 2);
    TK.xa(a, 13);
    TK.BH(a, 1);
    TK["do"](a, 37);
    TK.BH(a, 1);
    TK.xa(a, 69);
    TK["do"](a, 36);
    return a.join("");
  };
}

#97 Fixed

new decrypt script 👍
var TK =
{
    p8: function (a, b) {
        a.splice(0, b)
    },
    z6: function (a, b) {
        var c = a[0];
        a[0] = a[b % a.length];
        a[b % a.length] = c
    },
    d4: function (a) {
        a.reverse()
    }
};
UK=function(a){
    a=a.split("");
    TK.z6(a,23);
    TK.p8(a,2);
    TK.d4(a,55);
    TK.z6(a,6);
    return a.join("")
}

Good luck!

Man it works!! thanks again but i will suggest you an idea to implement. the only thing that i see that you always change is the regex string i guess that you constantly change this because of youtube decrypt algorithm but i guess that this will be more easier if you host a file containing the string and every time that you will decrypt download that string and apply. by this way you can can update the regex string and we dont need to recompile the library for example i have an app based on that and imagine that i need to post an update each time that youtube change the decrypt even i will try to implement that and i want to know your opinion :V

the last commit worked perfectly but takes a lot of time to get the info :( can you fix it? @omansak if you can fix it you will be our hero

#103 test and feedback.

@Gr3gorywolf  added a basic webservice for regex


Support dispatchComputeIndirect and draw(Indexed)Indirect with count buffer for Vulkan

Solve https://github.com/shader-slang/slang/issues/5844 and https://github.com/NVIDIAGameWorks/Falcor/issues/458

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@skallweitNV for viz.

Looks good, thank you!
by any chance can you also port these to the slang-rhi repo?
slang-rhi is a rewrite of slang gfx featuring several fundamental refactors needed to support metal and wgpu cleanly. Slang’s testing infra has already moved to slang-rhi and future projects from the Falcor team is expected to move to slang-rhi too.

Sure, I'll try. It seems like slang-rhi already supports Vulkan's indirect dispatch. I only need to add support for CommandRecorder::cmdDraw(Indexed)Indirect with a count buffer.


Create a Native State Backend

We're currently using the secrethub-http-proxy as an HTTP state backend now, but preferably we'd like to write a custom state backend.
However, seeing as state backends aren't pluggable yet we will have to create a fork of the Terraform project and add our state there. For people to actually be able to use the backend though, we'd have to get it merged back into the Terraform project and included in the next release.
If you want us to push this native backend through, please take a moment to +1 👍  this issue and we'll prioritize it on the roadmap.
Implementation details
Technically speaking, it shouldn't be too difficult a task:

Add a folder backend/remote-state/secrethub: https://github.com/hashicorp/terraform/tree/master/backend/remote-state
Implement the backend.Backend interface. For inspiration, check out the S3 and HTTP implementations:

https://github.com/hashicorp/terraform/tree/master/backend/remote-state/s3
https://github.com/hashicorp/terraform/tree/master/backend/remote-state/http

Looking at the patterns other backends use, we would then create a small wrapper around the secrethub-go/pkg/secrethub.Client interface that implements the Terraform specific logic, similar to the httpClient type and have our secrethub.Backend type use that.
Most of the thinking for what the code should do in the Get, Update, Delete functions is actually already done in the proxy for the HTTP GET, UPDATE, and DELETE handler functions.
Submit a PR and bob's your uncle 🎉

https://github.com/secrethub/secrethub-cli/pull/285 contains a MVP of shipping a Terraform state backend with the SecretHub CLI.


smex failed when using ivy mode

Hi, when I use ivy mode and I find that below.

Working properly after I press M-x

How should I to modify the configration.
Thanks.

Hi... sorry but i don't seem to follow. Care to elaborate more on this issue? whats the smex failure you're referring to?

After emacs initialized, the autocomplete function work incorrect that have no hints of items like directories or files.

Ah i see. This actually happens with me when i start Emacs... to be honest i haven't got to fixing this in my own configuration and i think this is an Ivy / counsel issue rather than a bootstrap issue.  Maybe you can file a ticket on Ivy's repo?


[Integration]: Golden Gate

Project name
Golden Gate
URL to be whitelisted
*.ggxchain.io/
Code audit/review URL if available
No response
Project description
We have already submitted this form, but the IP of our virtual machine has been changed.
Now we are not able to open Caper wallet on our application
https://bridge.ggxchain.io/
Project's phase
Testing
Who is the project owner?
Company
Project owner's name
Boostylabs
What kind of Web3 functionality will you be offering in your product?
token swap
Contact details
<EMAIL_ADDRESS>Link to the code
https://github.com/BoostyLabs/casper-eth-bridge/
Is this a project by an enterprise partner of Casper Association or CasperLabs?
Yes
Grant/proposal number if this is a project funded by the DEVxDAO
192

Thank you, I will start working on it.

Association approves this request.

Hi @crawter ,
This is to let you know that there was an earlier integration request #429 from Boostlabs. The request mentioned to change/replace the domain from ggxchain to tricorn. So ggxchain was removed from the whitelist.
I am going to add ggxchain back to the whitelist via this request.
However, it would be helpful if you could confirm whether both ggxchain and tricorm are required to be on the whitelist.
cc: @Erik14881488

yeap, both

Thanks, the request was completed 2 weeks ago. Therefore, closing the request.


Replace error log levels with warnings in tedge agent

Proposed changes
This PR replaces error log levels with warnings and prevents exiting with error code in such cases.

Types of changes

[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Improvement (general improvements like code refactoring that doesn't explicitly fix a bug or add any new functionality)
[ ] Documentation Update (if none of the other choices apply)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Paste Link to the issue

#2634

Checklist

[x] I have read the CONTRIBUTING doc
[x] I have signed the CLA (in all commits with git commit -s)
[x] I ran cargo fmt as mentioned in CODING_GUIDELINES
[x] I used cargo clippy as mentioned in CODING_GUIDELINES
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)

Further comments

@albinsuresh I wonder why the test "Update tedge version from base to current using Cumulocity" is not failing as it should since the version mismatch is not reported after an update.

@didier-wenzek Is this comment still valid as Krzystoff seem to have reverted the problematic change?

@albinsuresh I wonder why the test "Update tedge version from base to current using Cumulocity" is not failing as it should since the version mismatch is not reported after an update.

@didier-wenzek Is this comment still valid as Krzystoff seem to have reverted the problematic change?

Somehow, yes. This test was supposed to cover the feature broken by the problematic change, but failed to raise the issue.
That said this is unrelated to this PR.

@albinsuresh I wonder why the test "Update tedge version from base to current using Cumulocity" is not failing as it should since the version mismatch is not reported after an update.

@didier-wenzek Is this comment still valid as Krzystoff seem to have reverted the problematic change?

Somehow, yes. This test was supposed to cover the feature broken by the problematic change, but failed to raise the issue.
That said this is unrelated to this PR.

@didier-wenzek That's because his changes were not included in the 0.0.1 dummy version from which we upgrade to the current version in the test.
I understand how this can be confusing to anyone. Upgrading from the current version to a dummy higher version would have been better and clearer. We resorted to this mechanism due to the complexity of always building that dummy higher version as part of the test setup. We can re-evaluate that choice post 1.0.


Download scenario test responses

Is your feature request related to a problem? Please describe.
As an admin I need to be able to download the responses for scenario test so they can be marked.
Describe the solution you'd like
XLSX download with names, emails, all answers to the questions
Additional context
Needed for 4 Nov

This includes names, reference numbers and all answers... but not email addresses. However closing this ticket as we will deal with email separately. We should encourage scores to be imported back into platform before emails are sent out, and ideally send emails via admin (rather than the current manual mail merge).


PubSub AWS SNS/SQS Certification Tests

Describe the feature
implement certification tests and stabilize AWS Pubsub SNS/SQS component
Release Note

RELEASE NOTE:

/assign @amimimor

/assign

This is sort of a sub item of #1971


Considerable input (typing) lag after lots of output

Windows Terminal version
1.19.230925002-preview
Windows build number
10.0.19045.0
Other Software
PowerShell Core 7.4.0
Steps to reproduce

In a pane enter some text/commands. Hence, the "typical" input speed. Using movement commands or simply typing random text is OK.
In the same pane, run commands that produce "lots of"(!) output. Like repeatedly run large/long builds (msbuild /v:d). It is hard to quantify, but I would say at least couple of 10.000 lines, over the course of a day maybe.
Again in the same pane, enter text, move cursor, etc. Performance has degraded considerably. Typing is barely possible, time between hitting the key and visual output are at least a couple of seconds.

When you close the pane and open a new one, (or use a another pane or tab in the same Terminal instance), everything is normal. Only the pane with lots of output is affected it seems.
Note: I have seen this behavior with older versions of Terminal (and PowerShell) and Windows, it is only now that I report it. I'm aware that it might be something environmental or not Terminal related, but I haven't found any existing issue in this or other repos.
Expected Behavior
No recognizable input lag.
Actual Behavior
Considerable input lag.

Update: I will leave this here for now, but it looks as if this is really a PowerShell issue. If in the above set, I launch (from inside the "slow shell") CMD.EXE typing feels normal.
If I find more (concrete) evidence, I'll close this one.

I have the issue with running wsl and cmd. I dont have the issue in vs-codes terminal

Hmm, I'm concerned that there's actually a regression here, especially with the recent comments in #11916 too.
Would any of you be able to install a v1.18.10301.0 build, and double check if 1.18 doesn't show this/? (you should be able to just double-click run windowsterminal.exe in the .zip in that release to run 1.18 side-by-side).

I'd like to that, but I'm no longer at a PC for the next two weeks. I can try it then.


The Shop appears to be disabled when transported to the Shop

This one was really subtle! Let me quickly outline what caused this behavior, as to document the issue's solution. When teleporting to a shop, which could still be massively improved (safe teleport), I center the player onto the block by adding 1/2 on each axis. The method Location#add modifies in place, and ContainerShop#getLocation actually returns a direct reference to it's internal value, so I was permanently changing it's location, and thereby disabled functionality - until the next reload. If this was to be persisted for some reason, matters could have gotten really messed up.
old:
player.teleport(targetShop.getShop().getLocation().add(.5, 0, .5));

new:
player.teleport(targetShop.getShop().getLocation().clone().add(.5, 0, .5));

Again, thank you so much for your report! :) Please give the latest release a try.


update .bazelversion to 2.2.0

I installed last version of Bazel on my Mac : it is 2.2.0.
When I launch project build command, it fails because .bazelversion is currently in master at 1.0.0
Can you upgrade to .bazelversion to 2.2.0?
I did it on my machine and it works fine: I get "INFO: Build completed successfully, 233 total actions"
Thanks!
Didier

Hi. Thanks for checking if it works with this project.
We need to update all related projects together so it may take a little while longer.
Being said that you can also use 'bazelisk' which chooses the version of bazel based on this version file.

Hi Goktug, thanks. I didn't know of bazelisk but I will use it from now on. Didier

fixed by 5e955f439a27881e92fd84340729322eecf16f49

Merci!


Open Source license to this project

Would you consider adding a license file to this project? This would be consistent with good community practices and would allow others to build upon your work with a clear set of rules for what is acceptable.
For maximum compatibility with other free software projects, please consider using MIT license, such as expressed here:
https://opensource.org/licenses/MIT
(replace the copyright statement with your copyright, of course)

@obscurerichard thanks for bringing this topic up! I’ll add a license to this project soon.

fixed with https://github.com/nicolai86/awesome-codepipeline-ci/commit/25440efde3f3b13c61019e6f8909c9362202edf6

Thank you! @nicolai86 !


Update pyproject.toml

changes <IP_ADDRESS> to <IP_ADDRESS>, hoepfully wont break the lib

This should be approved, as <IP_ADDRESS> was the latest CL3 version to be published to PyPi and should be preferred over older CL3 versions.

its hard bc mike is not doing what i would say simatic versioning  (like 3.7.4, and 4.1.0 i think is the current )


Update rm-groupMapping-6.13.0.json

Fixing "HD Insights" --> "HDInsight"

OPS Build status updates of commit a02de83:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mapping/rm-groupMapping-6.13.0.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

@dend Is this a viable change?

@JasonWHowell should this change be done for all mapping files in place?

@dend if there are other files, yes, it should be changed globally I think.

@JasonWHowell Yes, this needs to be changed in all mapping files related to both the Az and AzureRM modules.

@sdwheeler says that this is a build artifact. That means that the metadata has to be changed in the product repo, https://github.com/azure/azure-powershell otherwise these changes will be overwritten with every new release.

Here's the file you need to edit: https://github.com/Azure/azure-powershell/blob/1bcbe7b1f7a3323ac98f7754ba03eeb6b45e79f2/tools/CreateMappings_rules.json


Added support for overriding groups and/or custom claims for OIDC tokens

Checklist

[x] the individual contributor license agreement is signed
[x] commit message follows commit guidelines

Description of change

This PR is a reboot of #1408.
It includes a couple changes:

It prevents unauthorized (by deployment config) user attributes from appearing in the JWT by use of clever parameters
It applies the claims query string param (the filtering feature) to standard OIDC claims as well as custom claims

In addition to these substantive changes, some items & names were refactored for simplicity.

@drewwills @ChristianMurphy Thanks! Nice improvements. 👍


SyntaxError while "./bin/ycsb"

when I input the command "./bin/ycsb", it shows:
File "./bin/ycsb", line 172
except subprocess.CalledProcessError, err:
SyntaxError: invalid syntax
I am a freshman to python and YCSB. What should I do now ?
Related information:
YCSB version: both extracted ycsb-0.7.0.tar.gz and built version from the latest master branch
Python 3.5.1
Linux version 4.4.5-1-ARCH

Hi!
I don't believe our python wrapper will work with Python 3. You'll need python 2.7.

Thanks for your timely reply. It works well when using python2.7 ^_^


Quick links of Event Page are not working.

Before creating an issue, go through all open/closed issues to avoid getting your issue/suggestion marked as duplicate##
Issue and Steps to Reproduce:
While checking the demo site, I found that the Links in the Quick link part of the Iskon Events page are not working.
Screenshots:

Expected:

Actual:

Additional Details:
I can solve this problem and I will be thankful if you assign this to me under GSSoC'23.

Start working @harshraj005

Same issue is already opened. Pls work on other new issues. @harshraj005


Advanced Level

I have successfully completed the tasks on advanced level.
verify the codes and merge it.

Add a Readme.md about your code Document it well and organized.

i can't find a way to add readme file.

From: CSEdge @.>
Sent: Sunday, May 5, 2024 4:58 AM
To: CSEdgeOfficial/Python-Programming-Internship @.>
Cc: LayavardhanReddy024 @.>; Author @.>
Subject: Re: [CSEdgeOfficial/Python-Programming-Internship] Advanced Level (PR #5)
Add a Readme.md about your code Document it well and organized.
—
Reply to this email directly, view it on GitHubhttps://github.com/CSEdgeOfficial/Python-Programming-Internship/pull/5#issuecomment-2094625726, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BFUPE7BL5Q2V7BJUZXDSJ4DZAW357AVCNFSM6AAAAABHFWLBH6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJUGYZDKNZSGY.
You are receiving this because you authored the thread.Message ID: @.***>

Greetings for the day
I have completed the advanced tasks in python programming internship but i
didn't get the Letter Of Recommendation (LOR) as you mentioned in the mail.
On Wed, 8 May 2024, 12:50 CSEdge, @.***> wrote:

Merged #5
https://github.com/CSEdgeOfficial/Python-Programming-Internship/pull/5
into main.
—
Reply to this email directly, view it on GitHub
https://github.com/CSEdgeOfficial/Python-Programming-Internship/pull/5#event-12739417277,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BFUPE7DQW5GEI6GYH2GXZPDZBHG4HAVCNFSM6AAAAABHFWLBH6VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSG4ZTSNBRG4ZDONY
.
You are receiving this because you authored the thread.Message ID:
<CSEdgeOfficial/Python-Programming-Internship/pull/5/issue_event/12739417277
@github.com>

Dear Intern,
Thank you for your interest in receiving a Letter of Recommendation (LOR)
from CSEdge. We appreciate your hard work and contributions during your
internship.
To ensure consistency and fairness in our recommendation process, we
typically send LORs to interns in a three-month cycle. This means there
might be a wait until the next cycle for your official LOR.
Team CSEdge
On Sun, 2 Jun 2024 at 20:35, LayavardhanReddy024 @.***>
wrote:

Greetings for the day
I have completed the advanced tasks in python programming internship but i
didn't get the Letter Of Recommendation (LOR) as you mentioned in the
mail.
On Wed, 8 May 2024, 12:50 CSEdge, @.***> wrote:

Merged #5
https://github.com/CSEdgeOfficial/Python-Programming-Internship/pull/5

into main.
—
Reply to this email directly, view it on GitHub
<
https://github.com/CSEdgeOfficial/Python-Programming-Internship/pull/5#event-12739417277>,

or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/BFUPE7DQW5GEI6GYH2GXZPDZBHG4HAVCNFSM6AAAAABHFWLBH6VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSG4ZTSNBRG4ZDONY>

.
You are receiving this because you authored the thread.Message ID:

<CSEdgeOfficial/Python-Programming-Internship/pull/5/issue_event/12739417277

@github.com>

—
Reply to this email directly, view it on GitHub
https://github.com/CSEdgeOfficial/Python-Programming-Internship/pull/5#issuecomment-2143891722,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BGWSF5DUX4WJH42CJAZ7GQDZFMYD3AVCNFSM6AAAAABHFWLBH6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBTHA4TCNZSGI
.
You are receiving this because you modified the open/close state.Message
ID: <CSEdgeOfficial/Python-Programming-Internship/pull/5/c2143891722@
github.com>


Update batch arguments

Following the change of pending_jobs_count to jobs_count_per_status on public-apis, this updates the SDK batch definition.

Don't forget to bump the version in __version.py so that the package is built and released automatically when merged.
LGTM otherwise :smile:


Multiple resolutions are broken on diffusers>=0.26 (works for <=0.25.2)

import torch
from diffusers import StableDiffusionXLControlNetPipeline, ControlNetModel
from PIL import Image
from onediffx import compile_pipe
from diffusers.utils import load_image

import cv2
import numpy as np
original_image = load_image(
    "https://hf.co/datasets/hf-internal-testing/diffusers-images/resolve/main/sd_controlnet/hf-logo.png"
)

controlnet = ControlNetModel.from_pretrained(
    "diffusers/controlnet-canny-sdxl-1.0", torch_dtype=torch.float16
)
pipe = StableDiffusionXLControlNetPipeline.from_pretrained(
    "stabilityai/stable-diffusion-xl-base-1.0", controlnet=controlnet, torch_dtype=torch.float16
)
pipe = pipe.to("cuda")
pipe = compile_pipe(pipe)

for image_size in [
    (1024, 1024),
    (512, 768),
    (768, 512)
]:
    image = original_image.resize(image_size)
    image = np.array(image)
    image = cv2.Canny(image, 100, 200)
    image = image[:, :, None]
    image = np.concatenate([image, image, image], axis=2)
    canny_image = Image.fromarray(image)
    pipe(
        prompt = "aerial view, a futuristic research complex in a bright foggy jungle, hard lighting",
        image=canny_image
    )

onediff_diffusers_extensions/examples/text_to_image_sdxl.py  --run_multiple_resolutions will break with 0.26

from onediffx import compile_pipe

hey, can you let me know how do you import onediffx? How do you download onediffx? All I can find is onediff. Thanks!

from onediffx import compile_pipe

hey, can you let me know how do you import onediffx? How do you download onediffx? All I can find is onediff. Thanks!

@Davin05  https://github.com/siliconflow/onediff/tree/main/onediff_diffusers_extensions#install-and-setup

https://github.com/siliconflow/onediff/pull/662

diffusers-0.26.0 It has been fixed in  https://github.com/siliconflow/onediff/pull/662


Have some trouble in "make install"

Hi,I have trouble in "make install". The detail:FAILED: /pytorch/build/temp.linux-x86_64-3.6/CUDA/softpool_cuda_kernel.o
#pragma omp parallel for if ((end - begin) >= grain_size)
^
ninja: build stopped: subcommand failed.
python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
RuntimeError: Error compiling objects for extension
Makefile:2: recipe for target 'install' failed
make: *** [install] Error 1
Could you please help me?

Hi @MikeShuang96,
The RuntimeError shows some type of failure during the build. One option is to use a log during the build to get the proper error message.
However, since the error is related to ninja another option could also be to try and build the repo without ninja. i.e. replace line 19 in setup.py with: 'build_ext' : BuildExtension.with_options(use_ninja=False).


rebar3 compile throws error compiling _build/default/plugins/grpcbox_plugin/src/grpcbox_plugin_prv.erl

When executing rebar3 shell I get the following:
===> Analyzing applications...
===> Compiling getopt
===> Compiling providers
===> Compiling gpb
===> Compiling grpcbox_plugin
===> Compiling _build/default/plugins/grpcbox_plugin/src/grpcbox_plugin_prv.erl failed
_build/default/plugins/grpcbox_plugin/src/grpcbox_plugin_prv.erl:5: can't find include lib "providers/include/providers.hrl"; Make sure providers is in your app file's 'applications' list
_build/default/plugins/grpcbox_plugin/src/grpcbox_plugin_prv.erl:110: undefined macro 'PRV_ERROR/1'

_build/default/plugins/grpcbox_plugin/src/grpcbox_plugin_prv.erl:85: function compile_pb/4 undefined

_build/default/plugins/grpcbox_plugin/src/grpcbox_plugin_prv.erl:207: Warning: function log_warnings/1 is unused

===> Errors loading plugin grpcbox_plugin. Run rebar3 with DEBUG=1 set to see errors.
===> Verifying dependencies...
===> Analyzing applications...
===> Compiling service_discovery
===> Compiling service_discovery_http
===> Compiling service_discovery_grpc
===> Compiling service_discovery_storage
===> Compiling service_discovery_postgres
Erlang/OTP 23 [erts-11.1.8] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe] [dtrace]

Eshell V11.1.8  (abort with ^G)
1> 2021-03-06T16:29:27.049872-06:00 error: Failed to load zones (reason: enoent)
===> Booted eql
===> Booted backoff
===> Booted telemetry
===> Booted pg_types
===> Booted pgo
===> Booted service_discovery_storage
===> Booted base32
===> Booted dns
===> Booted jsx
===> Booted mnesia
===> Booted iso8601
===> Booted erldns
===> Booted service_discovery
===> Booted service_discovery_postgres
===> Booted acceptor_pool
===> Booted elli
===> Booted service_discovery_http
===> Booted hpack
===> Booted chatterbox
===> Booted gproc
===> Booted grpcbox
===> Booted service_discovery_grpc
===> Booted recon

I have tried to set the grpc_plugin to a previous version in the rebar.config file, but I always get this error...
Please let me know if I can provide more helpful information.

Thanks for the report, I noticed this recently in another project too and will look into it.


Feat length rel

Fixes parts of #1504
This pull introduces/changes:

has_{many,one} accepts a new option "rel_length"

Sorry, I could have been clearer. rel_length is an association getter option. #1485 introduced the ability to specify new default association getter options.
In order to implement the ability to make an association get with rel_length: 2 (or any other length) by default, I think all you need to update is:
module Neo4j::ActiveNode
  module HasN

    class Association
      VALID_ASSOCIATION_OPTION_KEYS = [:type, :origin, :model_class, :rel_class, :dependent, :before, :after, :unique, :labels, :rel_length]
    end

    module ClassMethods

      def define_has_many_methods(name, association_options)
        default_options = association_options.slice(:labels, :rel_length)

        . . .
      end

      def define_has_one_methods(name, association_options)
        default_options = association_options.slice(:labels, :rel_length)

        . . .
      end
    end

  end
end

This being said, this method of setting a new default association getter option only touches the association's getter. Unlike what you currently have going on in this PR, someone would still be able to set on
class Person
  has_many :out, :friends, type: :FRIEND, rel_length: 2
end

But person.friends << friend would persist (person)-[:FRIEND]->(friend) (in the current PR, looks like you raise an error).
Instead of introducing a separate method for setting a default rel_length association getter, maybe add a warning that is logged during dev mode saying that rel_length is ignored when setting relationships? This being said, it seems like it would be obvious that rel_length would be ignored when setting relationships.
Anyway, my 2 cents.

Also, the default association getter options code already has some tests

@thefliik the end game is to make this work with the eager loading too (I don't know if the default association getter work with this case).
For me raising an error is important since if we set a rel_length: 2 we don't necessary expect a direct relation. If I wanted to connect my model directly I would use another association (I would use friends instead of acquaintances).

rel_length is a query concern not association definition concern.
has_many :out, :friends, type: :FRIEND, nodel_class: 'Person'
defines automatically an association chain of any length by the virtue of recursion as the target is of the same type.
Making the addition you suggested would totally change the semantics of associations and introduce a need for difficult if not inconsistent validations.

That's a good point. This change feels like it's mixing associations and scopes.

I did think about the fact that it would change the nature of associations, though I wasn't sure if it might not be fine, especially if it's an option that you can choose to not use.  I think I'd want to see examples of how it might be a bad idea.

Such an addition to the association (assuming the rel_lenght 2 means length 1 or 2) would actually mean creating a schema constraint specifying that the database cannot have any paths of friends longer than 2. Something like this is quite difficult to enforce. If I am missing something then please explain what the semantics of the rel_length on association would be.
If you want to have a method for 2nd degree friends then you can defined a scope:
scope :seconds_degree_friends, ->() { friends(rel_length: {min: 2, max: 2}) }
On another hand there is already a way to specifiy a deeper retrieval of associtiations with with_associations.
e.g. .with_assoctiations(friends: :friends) for 2 levels or
.with_assoctiations(friends: {firiends:: friends}) for 3 levels.
What is not possible is specifying the relationships numerically or specifying unlimited length. I would like to implement that but I couldn't come up with a nice nottation. So far I was only able to think of:
with_associations(friends: {rel_length: {min: 1, max: 2}) or with_associations(friends: {rel_length: {min: 1}) for unlimited lenght.  The flow in this notation is that rel_length appears in place where other association names can be and thus would have to be a reserved name requiring that there is never an association named rel_length. I am open to suggestions.

@Grafikart the association specification has_one/has_many is declarative. The semantics of rel_length is unclear. The most intuitive semantics as a constraint is very difficult to implement and probably not practical. Most likely benefit from this implementation can be achieved with a scope without the need to hard code a length into the association definition. Closing for now.


Make this repo public

There's nothing proprietary in here and it could be useful for others. Let's add a license and open-source this.

@meek can you merge PRs? :D

@ssoroka : cheers dude. :)


Failed arm build on amd64 builder

When I build my add-on using builder action I have this error:
The requested image's platform (linux/arm) does not match the detected host platform (linux/amd64) and no specific platform was requested
My add-on is: https://github.com/andvikt/mega_addon/tree/master/mega-updater
I can't figure out how to tell builder to use proper architecture.

That is not an error, that is a warning and it does not impact the build at all, you can ignore that.


The sidekick tutorial does not run any more

False alarm - I was using Nodejs v21.6.0 to get this problem

Running this tutorial
I do not believe that I changed any code - and it ran yesterday
 npx fixie@latest serve
🦊 Serving agent fixie-sidekick-template...
🌱 Building agent at /Users/nik/dev/work/fixie/sidekick_tutorial...
npm notice
npm notice 📦<EMAIL_ADDRESS>npm notice === Tarball Contents ===
npm notice 1.1kB LICENSE
npm notice 512B  README.md
npm notice 86B   dist/index.d.ts
npm notice 1.8kB dist/index.js
npm notice 95B   dist/system-message.d.ts
npm notice 3.2kB dist/system-message.js
npm notice 637B  package.json
npm notice === Tarball Details ===
npm notice name:          fixie-sidekick-template
npm notice version:       0.1.0
npm notice filename:      fixie-sidekick-template-0.1.0.tgz
npm notice package size:  3.5 kB
npm notice unpacked size: 7.5 kB
npm notice shasum:        6c313edf8f150a80bf11354ee6edde48238fdeed
npm notice integrity:     sha512-6AsLo8ROmmxAM[...]gchtOwBsfmJ/A==
npm notice total files:   7
npm notice
fixie-sidekick-template-0.1.0.tgz
🌱 Running: npx --package=@fixieai/sdk fixie-serve-bin --packagePath ./dist/index.js --port 8181
🌱 Agent process running at PID: 83138
🌱 Watching /Users/nik/dev/work/fixie/sidekick_tutorial for changes...
🚇 Starting tunnel process...
🌱 Agent child process started with PID [83138]
🥡 Replacing current agent revision f670933b
🌱 Agent stdout: file:///Users/nik/dev/work/fixie/sidekick_tutorial/node_modules/@fixieai/sdk/dist/instrument.js:70
globalThis.navigator = {};
                     ^
TypeError: Cannot set property navigator of #<Object> which has only a getter
    at file:///Users/nik/dev/work/fixie/sidekick_tutorial/node_modules/@fixieai/sdk/dist/instrument.js:70:22
    at ModuleJob.run (node:internal/modules/esm/module_job:218:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:323:24)
    at async loadESM (node:internal/process/esm_loader:28:7)
    at async handleMainPromise (node:internal/modules/run_main:120:12)

Node.js v21.6.0
🌱 Agent child process [83138] exited with code 1

Silly user error


My bash post-precessing example does not work any more

Hi,
I have built the bash example you have in this repo readme https://github.com/githubocto/flat-postprocessing#using-bash
I have not made any changes to the bash script and to the .ts file for more than 20 days. But the flat action now gives me this error (the last one):
  Warning Implicitly using latest version (1.0.0) for https://deno.land/x/url_join/mod.ts
  error: Relative import path "cfb" not prefixed with / or ./ or ../ from "https://cdn.deno.land/sheetjs/versions/v0.16.8/raw/types/index.d.ts"
  Error: Error: Command failed: deno run -q -A --unstable ./postprocessing.ts dpc-covid19-ita-regioni-latest.csv
  Warning Implicitly using latest version (1.0.0) for https://deno.land/x/url_join/mod.ts
  error: Relative import path "cfb" not prefixed with / or ./ or ../ from "https://cdn.deno.land/sheetjs/versions/v0.16.8/raw/types/index.d.ts"

How to solve it?
Thank you

HI Andrea can you try using the new version of the flat library and tell us if it works?
<EMAIL_ADDRESS>

Might be because of https://github.com/githubocto/flat/issues/45

HI Andrea can you try using the new version of the flat library and tell us if it works?

How to use it? Do I must change something in the yml file https://github.com/aborruso/flat_data_bash_example/blob/main/.github/workflows/flat.yml ?

Oh I meant here: https://github.com/aborruso/flat_data_bash_example/blob/main/postprocessing.ts#L1

it works, thank you @irealva


TypeError: parentComponent.ctx.deactivate is not a function

Version
3.0.0-rc.5
Reproduction link
https://github.com/danyadev/vue3-bug/tree/bug-2
Steps to reproduce

clone repo
1.1 git checkout bug-2
1.2. yarn
1.3. yarn dev
double click on the button
check your DevTools

What is expected?
no errors
What is actually happening?
Uncaught (in promise) TypeError: parentComponent.ctx.deactivate is not a function
    at unmount (runtime-core.esm-bundler.js?5c40:4540)
    at patch (runtime-core.esm-bundler.js?5c40:3616)
    at Object.sharedContext.activate (runtime-core.esm-bundler.js?5c40:2575)
    at processComponent (runtime-core.esm-bundler.js?5c40:3994)
    at patch (runtime-core.esm-bundler.js?5c40:3647)
    at componentEffect (runtime-core.esm-bundler.js?5c40:4182)
    at Object.reactiveEffect [as update] (reactivity.esm-bundler.js?a1e9:42)
    at updateComponent (runtime-core.esm-bundler.js?5c40:4071)
    at processComponent (runtime-core.esm-bundler.js?5c40:4001)
    at patch (runtime-core.esm-bundler.js?5c40:3647)

in rc.1 there are no errors and nothing breaks
in rc.2, rc.3 and rc.4 this error appears in the console
in rc.5, along with this error, the application completely stops responding to any actions

in tests, the version of vue-router was always 4.0.0-beta.6

It doesn't show any error after upgrading vue dependencies to the latest ones. On your repro I removed the yarn.lock file and ran yarn and everything works

I just removed node_modules and yarn.lock, typed in yarn and started the application again - the error is reproducible as well.
Also on my main project, I updated all dependencies in the same way and the problem did not get resolved.

Did you switch from branch master to bug-2 exactly? The master branch also has a button, so you could confuse them.

I deleted all yarn cache, node_modules and yarn.lock and tried to install dependencies absolutely from scratch - it doesn't matter, the error is still reproducible.

I see it in the branch. The problem is you are using the same key for two different components because you are not filtering what you are keeping alive. So you have either provide a unique key based on the route path/name + the id, that way KeepAlive will be able to restore the correct component, or use
      <KeepAlive include="MessagesChat">
        <component :is="Component" :key="id" />
      </KeepAlive>

and give MessagesChat.vue a name property to only keep alive that one but still use a simple id.
BTW, you should not use NaN as a key because NaN != NaN so it never matches the old one

Oh, but I already had problems with the key for KeepAlive, and I met with them again.
Thanks, I used path + id for the key

THANK YOU VERY MUCH !!!

I see it in the branch. The problem is you are using the same key for two different components because you are not filtering what you are keeping alive. So you have either provide a unique key based on the route path/name + the id, that way KeepAlive will be able to restore the correct component, or use
      <KeepAlive include="MessagesChat">
        <component :is="Component" :key="id" />
      </KeepAlive>

and give MessagesChat.vue a name property to only keep alive that one but still use a simple id.


Fixed small typo in readme file

Changed:
My ambitions is to give has much tools has VisualAssistX on VisualStudio
to
My ambitions is to give as much tools as VisualAssistX on VisualStudio

Hi thank you for your pull request, I appreciate. 🙂🎉🍾🎉

You are welcome. Am glad i could help 😊


ci: add pr publish workflow

This PR to be able to publish a branch on demand by commenting a PR with /publish message. https://github.com/okp4/product/issues/590

@ad2ien Ready to merge? ☺

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


Home page

The application should have a proper landing page, using a css framework as style base like Consize css or maybe Skeleton

Merged in develop


BTC Deposit Not Credited

My Account was affected by the Bug and I got 0.05099975 BTC. And You have corrected that already, But before the Bug I deposited 0.02548569 BTC, Where is it ?!!!
TXID: 2607a1d4fe0e0162a4a89a1e3956be1ac6c52b2285a3e8643e6c8c1600145212
Account Username:
elle1203

Yes You Have Corrected the Bug, You have Deducted the 0.05099975 BTC, But You Have also deducted my Previous Deposit!!!


Provide option to incorporate directory of Markdown files into generated HTML documentation

As suggested by @MaxDesiatov in #57:

It would be great if there was an option not just to include README.md, but a given directory hierarchy of multiple markdown files that provide extended documentation: tutorials, guidelines, license, code of conduct etc.

Scoping the feature request a bit, I think a good first step would be to add a new, optional parameter to the generate command to specify a directory of Markdown files (Documentation by default) to be rendered alongside the generated symbol reference docs.
For example, given the following project structure:
.
├── Documentation
│   ├── Advanced-Usage.md
│   ├── FAQ.md
│   └── Getting-Started.md
└── Sources

swift doc generate --format html would produce three "Guide" pages for "Advanced Usage", "FAQ", and "Getting Started".
My only hesitation here is that it gets us into the business of static site generation more generally (a corollary of Zawinski's Law. To that end, I'm unsure on whether to should support any form of YAML front matter...
Edit: Actually, you know what? I'm putting my foot down: No YAML front matter! I know of a better way that doesn't add another dependency or threaten to go down a slippery slope of supporting TOML / JSON / whatever front matter — I randomly came across it in this Hugo issue thread:

@bep: This is just me thinking out loud during Christmas. I kind of like the simplicity of it. The idea is to use SGML Processing Instructions as a way to pass parameters to the new and shiny render hooks in Hugo (images and links).

So instead of this:
---
title: Getting Started
---

Reprehenderit culpa qui enim elit sunt laborum do occaecat nostrud exercitation enim ex...

You do something like this (final spelling TBD):
Reprehenderit culpa qui enim elit sunt laborum do occaecat nostrud exercitation enim ex...

<?swiftdoc title="Getting Started" ?>

Processing Instructions aren't rendered by default, and would be otherwise invisible. And unlike front matter, it can appear anywhere in the document.
If we scope this feature to Markdown files with optional PI for customization, I think that strikes a good balance for a "batteries included" output, with the option to further customize using a dedicated static site generator based on the CommonMark output.

Another option could be to explicitly state that swift-doc focuses only on documentation generation and static site generators should handle the rest if needed, which could help in avoiding feature creep. If that's the case, it would be great to have some integration between swift-doc and say Publish and maybe an ability to reuse themes across both.

@MaxDesiatov Please see my edit, which came in after your comment.
I fully acknowledge the role for dedicated static site generators, and am committed to tailoring the CommonMark / SQLite output to support that kind of extensibility. That said, I think we can be smart about offering 80% of SSG functionality without blowing up the scope of our project.

I agree with @MaxDesiatov, hosting guides alongside the API reference and using the same design language would be a major improvement in user experience.
I understand this probably blows up the scope significantly. But what I'm personally looking for is a comprehensive solution offering an experience similar or better to what we have at developer.apple.com. This includes guides with auto-generated links for symbols (belonging to the current module and ideally also to native frameworks).
What I would also like to see is auto-generated "See Also" section (pun intended):

Hey, I hacked together a quick prototype using SwiftDoc and some of its dependencies. I hosted the end result here.

Some of the issues I encountered:

The approach with <base href> completely breaks anchors (e.g. #deduplication). They now all redirect to the root URL instead of opening an anchor in the current document.
There are limitations with the current approach of linking code elements. Running a highlighter and then attempting to add links only gets you so far. For example, it doesn't work for nested types, e.g. ImageProcessors.Resize.
There are some severe limitations in Markup, SwiftSyntaxHighlighter is also not doing a great job with some code samples.
Already visited links are grayed-out

I also started wondering what the user experience for these kinds of guides should be. Ideally, I would probably like it to be similar to that of Xcode Playgrounds, except that instead of jump-to-definition, clicking on an element would open an API reference. It sounds a lot like a pipe-dream, to be honest. But maybe this is something that could be implemented using the existing tools. I'm not familiar with Swift LSP yet, but it might be something worth looking into.

I worked on a small proof of concept to continue the discussion: https://github.com/SwiftDocOrg/swift-doc/compare/master...Lukas-Stuehrk:AdditionalDocumentation
Problems solved:

You can provide  additional guides with a new flag--documentation path/to/the/directory.
Providing a title: I simply take the title from the first level 1 heading in the document. If the document does not provide such a heading, I take the filename. I somehow like this approach. No processing instructions or any other mechanism needed.

Things to be discussed

I simply added a new section in the homepage and the sidebar and called it "Additional Guides" (very inspired from jazzy).
It's possible to overwrite a generated page (e.g. for a type) with a non-generated guide. I'm not sure if this is a cool feature or by accident because of my implementation approach.
I flatten the file structure of the additional documents and do not preserve the tree structure of their folder. This might be very surprising, especially if you link between documents. This is rather easy to fix, I simply did not want too much time on the routing, especially because @mattt already has a WIP pull request where the routing implementation is changed.
This adds again a lot of functionality into swift-doc (the executable) and not to SwiftDoc (the library). Currently we can't add tests to swift-doc, except for the end-to-end tests. This starts to not feel right anymore, I think there are some parts that could be tested.

The ugly parts:

The HTML and Markdown generation is....let's say it's not very sophisticated.

Please let me know what you think. I'm happy to work on this and to bring it into a mergeable state.


Changing a user's email address

When a Qiita user changes institutions, their email address will, at some point, stop being a valid email address to notify them of failed jobs, changes to the system, etc.
However, a user's email address also acts as their internal unique id in Qiita, and there is currently no path for the user to change their own email address. Flagging for group input regarding policy, technical solutions.
Related issue:
https://github.com/biocore/qiita/issues/1506

Cutting and pasting prior comments made in email:
Austin:
Good question, we could consider storing an alternate email that users can optionally provide to help mitigate this?
Antonio:
I think if we are gonna expend dev time on this, it should be to allow replacing your email. Relevant to this discussion: https://github.com/biocore/qiita/issues/1506. BTW I think at this stage it will not be that difficult to update all tables that point to the email address ...

Storing a second 'actual' email address seems like a good idea; however, they'd still need to enter their old address to login.
The standard practice would be to have users have a unique internal numeric id, and map it to an email string that could change without disrupting anything. That seems like a larger effort than what Antonio is proposing, however.
It seems like as long as the user can change their own email address, and we can make that change internally while the user is still logged in, then that would be sufficient.

Closing, as it's largely the same topic as #1506.


[Bug Report] DateTime Picker jitter

Element UI version
2.9.1
OS/Browsers version
Google Chrome 74
Vue version
2.6.10
Reproduction Link
https://codepen.io/pen/?&editable=true
Steps to reproduce
点击官网的这个组件，大多数的时候出现下滑展开抖动，，极少数平滑向下展开
What is Expected?
不抖动。。平滑展开
What is actually happening?
抖动

Sorry, we have no plan to support this


Use svelte 3 event modifiers in README

I appreciate the PR but I don't think that event modifiers can be used on Svelte components.
https://svelte.dev/repl/d8f815557d444d90b3faba880005b527

Oops, sorry about that. Never knew that this didn't work on components


slide menu fails to initialize once I leave the view controller

Im having issues with the slide out menu when I leave the view controller that houses the slideNavigationController. Im using SlideNavigationController in one of my tab view controllers and when I leave it and return, the slide out menu comes up blank (black background with no elements). Any ideas as to how I can fix that? Thanks

What was the issue? How did you fix it?
I'm facing it

I think I fixed it by adding a third method to the default two:

(BOOL)slideNavigationControllerShouldDisplayLeftMenu
{
return NO;
}

(BOOL)slideNavigationControllerShouldDisplayRightMenu
{
return YES;
}
//This one did smthn, there isnt much documentation so its not clear

(BOOL)avoidSwitchingToSameClassViewController{
return NO;
}

Also, I passed objects to my side menu so the issue I had dealt with initializing side menu instead of updating an existing instance. I fixed it by creating a method that would update the menu if it already existed, and initializing it when it didnt. Hope this helps. Im actually still having problems when I try to use different menu classes for different view controllers, I keep getting a blank side menu when initializing a new side menu with a different class.

Removing those two rows seem to fix this:
// Only prepare menu if it has changed (ex: from MenuLeft to MenuRight or vice versa)
if (self.lastRevealedMenu && menu == self.lastRevealedMenu)
  return;

Are they strictly necessary?

no, they are not. You can make it work without those two lines
On Wed, Apr 8, 2015 at 9:21 AM, k4roshi<EMAIL_ADDRESS>wrote:

Removing those two rows seem to fix this:
// Only prepare menu if it has changed (ex: from MenuLeft to MenuRight or vice versa)
if (self.lastRevealedMenu && menu == self.lastRevealedMenu)
return;
Are they strictly necessary?
—
Reply to this email directly or view it on GitHub
https://github.com/aryaxt/iOS-Slide-Menu/issues/121#issuecomment-90930930
.

@k4roshi  Those 2 lines are there to avoid glitches in the animations. If you are not using an animation you don't need that code. I can't reproduce the issue, but if you post a sample I would be happy to take a look

yeah, my animations work fine, but Im just using the regular slide out and
drag animations. I might post a sample of my code once I get some free
time.
On Wed, Apr 8, 2015 at 9:30 AM, Aryan Ghassemi<EMAIL_ADDRESS>wrote:

@k4roshi https://github.com/k4roshi Those 2 lines are there to avoid
glitches in the animations. If you are not using an animation you don't
need that code. I can't reproduce the issue, but if you post a sample I
would be happy to take a look
—
Reply to this email directly or view it on GitHub
https://github.com/aryaxt/iOS-Slide-Menu/issues/121#issuecomment-90933293
.

+1 this solved my problem as well


[JENKINS-73769] account for empty libraries or changed library path

This pull request:

adds a new EMPTY status to the CacheStatus
adds an additional empty check to the caching process of the LibraryAdder
adds the notion of the libraryPath to the caching directory name

up until now, the same cache was return even if the libraryPath on the shared library configuration had changed

adds tests

Steps to reproduce
libraryPath not considered
Consider a repo with multiple libraries
├── another-lib
│   └── vars
│       └── echoMe.groovy # echos "from another"
└── vars
    └── echoMe.groovy # echos "from root"

add a library pointing to a the repo
add a caching config of 5 mins
try to use the library

pipeline echo's "from root"
subsequent builds with also echo "from root"

change the "Library Path" field to another-lib

the wrong (old) pipeline is still checked and seen as cached
pipeline still echo's "from root" until the cache expires

Empty library on checkout

add a library pointing to a the repo
add a caching config of 5 mins
ensure the library is pointing to a location without vars or src directories

for the sake of testing, add "vars" in the "Library Path" field (pretend it was a mistake)

try to use the library

pipeline fails with "No vars or src directory"
subsequent builds with also fail until the cache expires
any other pipelines using that library will also fail

Empty library do to something unexpected

add a library pointing to a the repo
add a caching config of 5 mins
try to use the library

pipeline echo's "from root"
subsequent builds with also echo "from root"

manually delete the src and vars libraries cache directory (this is unexpected and just meant to represent something going wrong during retrieval)

pipeline fails with "No vars or src directory"
subsequent builds with also fail until the cache expires
any other pipelines using that library will also fail

once the cache expires and the library is retrieved again, the builds will continue

Context
Although using the version which should have fixed the issue, some jobs have shown the following:
Loading library <library>
Library <library> is cached. Copying from home.
ERROR: Library <library> expected to contain at least one of src or vars directories
[Bitbucket] Notifying commit build result
[Bitbucket] Build result notified
Finished: FAILURE

To be sure something has actually been retrieved, a check has been added post-retrieval.
This way, if the retrieval somehow fails silently, the problem is still caught and thrown.
In addition, a system log WARNING was added to allow easy discovery in this edge case.

Testing done
Tests added to PR.
Submitter checklist

[x] Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
[x] Ensure that the pull request title represents the desired changelog entry
[x] Please describe what you did
[x] Link to relevant issues in GitHub or Jira
[x] Ensure you have provided tests - that demonstrates feature works or fixes the issue

@rsandell @jglick - is there anything else I can do on this PR?

I am not maintaining this plugin, especially not anything to do with caching which I do not think should have been introduced to begin with.

I am still hoping for one more set of eyes to review this. Maybe @car-roll ?


Timeline: Show dots on the observations

Currently, the timeline shows connected line segments without showing the "dots" and only upon hover can a user "see" the point. Proposal is to show "dots" clearly for all plotted points (even if there is a line segment connecting to it).
Experiment with showing the dots when the number of lines/points exceed a certain threshold.

I think this is fixed in new viz


stm32wb: svd for TIM2->CNT is.... wonky

CNT is either a 32bit register, or 31bits plus a single flag for UIFCPY.
The current SVD produces the flag bit, and then "cnt_h (15bit)" and "cnt_l (16bit)" which is... unhelpful.
Can we make overlapping definitions? Can I make CNT just be 32bit and also define UIFCPY at bit 31?

It's totally fine to make overlapping definitions; svd2rust will do the right thing and generate a method for each field. A similar problem is fixed in the F7 devices here for example.
In this case it's probably best to delete cnt_h, modify cnt_l to be named cnt and make it 32 bits wide (or keep it as 16 on the other timers).

FYI: I've shelved all my rust work, so I won't be working on any more patches myself, I'm afraid.


error when implementing

using nodejs with express.
Took your example code and created a route as shown below.
var express = require('express');
var router = express.Router();
var url = require('url');
var patreon = require('patreon');
var patreonAPI = patreon
var patreonOAuth = patreon.oauth

// Use the client id and secret you received when setting up your OAuth account
var CLIENT_ID = 'XXX_CLIENT_ID_XXX'
var CLIENT_SECRET = 'XXX_CLIENT_SECRET_XXX'
var patreonOAuthClient = patreonOAuth(CLIENT_ID, CLIENT_SECRET)
// This should be one of the fully qualified redirect_uri you used when setting up your oauth account
var redirectURL = 'https://XXXXXXX/patreonAuth'

const loginUrl = url.format({
    protocol: 'https',
    host: 'patreon.com',
    pathname: '/oauth2/authorize',
    query: {
        response_type: 'code',
        client_id: CLIENT_ID,
        redirect_uri: redirectURL,
        state: 'chill'
    }
})

function handleOAuthRedirectRequest(request, response) {
    var oauthGrantCode = url.parse(request.url, true).query.code

    patreonOAuthClient
        .getTokens(oauthGrantCode, redirectURL)
        .then(function(tokensResponse) {
            console.log(patreonAPI);
            console.log(tokensResponse);
            var patreonAPIClient = patreonAPI(tokensResponse.access_token)
            return patreonAPIClient('/current_user')
        })
        .then(function(result) {

            var store = result.store
            // store is a [JsonApiDataStore](https://github.com/beauby/jsonapi-datastore)
            // You can also ask for result.rawJson if you'd like to work with unparsed data
            response.end(store.findAll('user').map(user => user.serialize()))
        })
        .catch(function(err) {
            console.error('error!', err)
            response.end(err)
        })
}

router.get('/pateronLogin', function(req, res) {
    res.send(`<a href="${loginUrl}">Login with Patreon</a>`)
});

router.get('/patreonAuth', function(req, res) {
   handleOAuthRedirectRequest(req, res)
});

module.exports = router;

I get the following error out after I get redirected and login
error! TypeError: patreonAPI is not a function
    at /opt/node-app/routes/api/auth/patreonv1.js:36:36
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:118:7)
(node:50) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be one of type string or Buffer
    at ServerResponse.end (_http_outgoing.js:747:13)
    at /opt/node-app/routes/api/auth/patreonv1.js:48:22
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:118:7)

when I console.log(patreonAPI);
{ oauth: [Function: oauth],
  patreon: [Function: patreon],
  jsonApiURL: [Function: jsonApiURL] }

console.log(tokensResponse);
{ access_token: '<REMOVED_FOR_SECURITY>',
  expires_in: 2678400,
  token_type: 'Bearer',
  scope: 'users pledges-to-me my-campaign',
  refresh_token: '<REMOVED_FOR_SECURITY>',
  version: '0.0.1' }

using the following
var patreon = require('patreon');
var patreonAPI = patreon.default
var patreonOAuth = patreon.oauth

shows an output of undefined when
console.log(patreonAPI);

Okay when I replace the following
var patreonAPIClient = patreonAPI(tokensResponse.access_token)

with the following
var patreonAPIClient = patreonAPI.patreon(tokensResponse.access_token)

I fix one error.
FYI
Version below
npm -v
5.6.0
node --version
v9.8.0
npm list --depth=0
+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>`--<EMAIL_ADDRESS>

after debugging it's expecting me to send something in the response as the first argument. Most likely a URL. However not sure what it's expecting can you guys help?

Wait I think all the code in here should be my code.
.then(function(result) {

            var store = result.store
            console.log(store);
            // store is a [JsonApiDataStore](https://github.com/beauby/jsonapi-datastore)
            // You can also ask for result.rawJson if you'd like to work with unparsed data
            response.end(store.findAll('user').map(user => user.serialize()))

I am assuming this is the point where it's all my code and I decide what I want to do with the information?

Hey there! Sorry it's taken us so long to get back to you. Are you still having this issue?

Yes
On Thu, 19 Apr 2018, 18:53 Philip James<EMAIL_ADDRESS>wrote:

Hey there! Sorry it's taken us so long to get back to you. Are you still
having this issue?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Patreon/patreon-js/issues/20#issuecomment-382824969,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AD8kDkmi5Qwx28tlYYUQiceRBWgfzxnYks5tqM8QgaJpZM4Su5g4
.

Hi @t5unamie,
I apologize for the delay again, let's see if we can get your example working.
I'm afraid the example in the README is out of date, and we'll fix it soon.  In the meantime, you can look at examples/server.js for a working example.  If you're not using es2015, the imports should look like this:
const { patreon, oauth } = require('patreon');
//...
const oauthClient = oauth(CLIENT_ID, CLIENT_SECRET);

Then you can build your oauth function as in your example or the example in server.js, and create the patreonAPI  client from the retrieved accessToken:
const patreonAPI = patreon(accessToken)

Was that helpful?

Testing now. Will get back to you in the next 2 weeks.
On Sat, 5 May 2018, 00:41 Evan Moses<EMAIL_ADDRESS>wrote:

Hi @t5unamie https://github.com/t5unamie,
I apologize for the delay again, let's see if we can get your example
working.
I'm afraid the example in the README is out of date, and we'll fix it
soon. In the meantime, you can look at examples/server.js
https://github.com/Patreon/patreon-js/blob/master/examples/server.js
for a working example. If you're not using es2015, the imports should look
like this:
const { patreon, oauth } = require('patreon');
//...
const oauthClient = oauth(CLIENT_ID, CLIENT_SECRET);
Then you can build your oauth function as in your example or the example
in server.js
https://github.com/Patreon/patreon-js/blob/master/examples/server.js#L39,
and create the patreonAPI client from the retrieved accessToken:
const patreonAPI = patreon(accessToken)
Was that helpful?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Patreon/patreon-js/issues/20#issuecomment-386761038,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AD8kDjyGXS2sROiFr1XQxD4wcSkjjypqks5tvOcogaJpZM4Su5g4
.

Closing for now.  Please re-open if you're still having difficulty.

Was this ever resolved? I am still getting an error.

Any updates on this? I'm having the same errors.


some local variables read error

Please answer the following before submitting your issue:
Note: Please include any substantial examples (debug session output,
stacktraces, etc) as linked gists.

What version of Delve are you using (dlv version)?

Mac OS

What did you do?
dlv exec xxxx

What did you expect to see?
local variables can be read correctly

What did you see instead?

   139:		for _, featureName := range featureList {
   140:			metaData, getMetaErr := config.GetFeatureMeta(featureName)
=> 141:			if getMetaErr != nil {
   142:				logger.Debugf("")
   143:				...
   144:				groupDataErr = errors.New("...")
   145:				continue
   146:			}
(dlv) p metaData
xxx.xxx.xxx.com/yyy/zzz-fs/config.FeatureMetaData {CanBeCached: false, IsOnline: false, IsDisfService: false, CanBeMerged: false, CacheTime: 0, APIName: "", QueryKey: "", ValueType: "", Domain: "", EvalExpr: "", Validate: "", Protocol: "", RequestTemplate: "", HTTPRequestMethod: ""}
(dlv) p getMetaErr
Command failed: could not find symbol value for getMetaErr

Could be a duplicate of https://github.com/derekparker/delve/issues/964.
Can you install GNU objdump on macOS, and do this:
objdump --dwarf <executable> | grep -B1 -A50 -e 'DW_AT_name.*<whatever function you are stopped on>'

@aarzilli , yes, I forgot to turn off optimization, after I add gcflags, I can see the value of this local variable.


Add option detect more option of Pan

Thanks @alexandref93, and apologies for the delay merging! I'll push a new release now with this update.

;)


Improve sfpowerkit:org:manifest:build by allowing separate [in|ex]clude filters

Fixes #260 which is closed because it went stale.
--quickfilter (-q) is deprecated, but aliased to --excludefilter to maintain functionality
--excludefilter (-e) replaces --quickfilter and is better named, excludes specified metadata types from the output xml
--includefilter (-i) complements --excludefilter, includes only specified metadata types in the output xml
If both --includefilter and --excludefilter are specified, then --excludefilter is ignored; these flags are logically mutually exclusive.
I'm not sure if README.md and/or oclif.manifest.json need manual updating as a result of this change or if that's an automated process. Happy to make the updates manually if required.

@YodaDaCoda Thanks for the PR. we targeted  a PR to address #260 but had a internal issue due to which we had to put it on hold.


[Bug report]No scroll bar of code area in the phone browser.

Bug report
No scroll bar of code area in the phone browser.

Description
Browsing my website with Edge phone version, there is no scroll bar in the code area  when code reached the limit of a line.
Expected behavior
Working well in the Edge win10 version.

Environment info

Browser: Edge IPhone App & Edge Win 10

I can confirm the issue. It's even reproducible withe the VuePress v2 docs. For instance the codeblock at the top of this page does not have a scrollbar on iOS 14.7.1. (It does not matter which browser you're using, because on iOS all browsers have to use the same engine)
@meteorlxy can we get a label :)


Footer & Nav layout fixes

[x] fixes vertical alignment with footer items and page contents
[x] updates main nav vertical alignment to be consistent with footer
[x] updates footer logos to use b/w versions
[x] updates footer text
[x] improves responsive design of Footer
[x] renders gtag script in <svelte:head> instead of using onMount at runtime

 Site wide footer improvements


[stable/prometheus-redis-exporter] add option to supply extra arguments

What this PR does / why we need it:
Adds option to pass extra arguments to binary. This is particularly useful for monitoring specific keys with --check-keys.

/assign unguiculus

/ok-to-test

/lgtm


src attribute is not removed from turbo-frame after loading content

Actual Behavior
When the response to a submit from within a Turbo Frame is a redirect, the content of the new Turbo Frame is retrieved by setting the src attribute of the Turbo Frame to the redirect URL (that seems to happen here: https://github.com/hotwired/turbo/blob/main/src/core/session.js#L102 ). Once the content has been loaded, however, the src attribute is not removed but remains on the new <turbo-frame> element.
Expected Behavior
I expected that the src attribute would be removed from the Turbo Frame once the content from the redirect has been loaded, since the new Turbo Frame does not have a src attribute.
Background
This is causing issues for me when using a different JavaScript library with no knowledge of Turbo (this one: https://github.com/innoq/tabelle) because the other library removes the Turbo Frame node from the DOM and then reinserts it. Because the src attribute isn't removed after the content of the Frame is loaded, once the Turbo Frame is reinserted in the DOM, Turbo (understandably) thinks that the src attribute needs to be retrieved from the Server and does so. This results in an infinite loop where (1) Turbo retrieves a resource from the server and replaces the content of the Frame, (2) the JavaScript library shuffles the DOM and removes and reinserts the Turbo Frame into the DOM, then (3) go back to (1)
It took me a while to track down this issue because I wasn't manually setting any src attributes on my Turbo Frames, so I couldn't figure out where the src attribute in the DOM of the <turbo-frame> was coming from.

This is by design. The Turbo frame will only consider the attributes of the element when rendering it for the first time. After that, the element is only used to look up the Turbo frame reference, but the element is not modified. The src attribute corresponds to the URL to which the Turbo frame navigated and is also not removed nor is it appropriate to do so.
If you want to set specific attributes on a Turbo frame, you must make sure that those attributes are in the first rendering of the Turbo frame. If that can happen on multiple pages, you should duplicate them.
Additionally, including a Turbo frame as a direct child of the table or thead, tbody or tfooter element is invalid HTML, so it won't work either. That is, you cannot have one Turbo frame per row.
I recommend you to include the element inside the children of the Turbo frame element, if that is the use case. When navigating the Turbo frame, the element should be able to recover, because it is disconnected and a new element is connected.


Edit Pins won't edit repins

The method to edit pins seems to always try to edit the link of the pin, which you're not allowed to do on a repin.  This is what I did to make it work:
public function edit($pindId, $description = '', $link = false, $boardId = false)
    {
        $requestOptions = [
            'id'          => $pindId,
            'description' => $description
        ];
        if($link !== false){
            $requestOptions["link"] = $link;
        }
        if($boardId !== false){
            $requestOptions["board_id"] = $boardId;
        }
        return $this->post($requestOptions, UrlBuilder::RESOURCE_UPDATE_PIN);
    }

@codingmusician , thank you for your feedback. Fixed in v5.4.2!