Browser won't open with test notification

When I run the test notification command npm run test:notification
it just says discord message sent and nothing happens.
I'd like to just open a chrome window if I get a hit instead of getting an email or a text.
How could I make that happen?
Here is the contents of my .env file:
BROWSER_TRUSTED=""
DISCORD_NOTIFY_GROUP=""
DISCORD_WEB_HOOK=""
EMAIL_USERNAME=""
EMAIL_TO=""
EMAIL_PASSWORD=""
HEADLESS=""
IN_STOCK_WAIT_TIME=""
LOG_LEVEL=""
LOW_BANDWIDTH=""
MICROCENTER_LOCATION=""
OPEN_BROWSER="true"
PAGE_TIMEOUT=""
PHONE_NUMBER=""
PHONE_CARRIER=""
PLAY_SOUND=""
PUSHBULLET=""
PUSHOVER_TOKEN=""
PUSHOVER_USER=""
PUSHOVER_PRIORITY=""
PAGE_BACKOFF_MIN=""
PAGE_BACKOFF_MAX=""
PAGE_SLEEP_MIN=""
PAGE_SLEEP_MAX=""
SHOW_ONLY_BRANDS=""
SHOW_ONLY_MODELS=""
SHOW_ONLY_SERIES="3080"
SLACK_CHANNEL=""
SLACK_TOKEN=""
STORES="amazon,bandh,bestbuy,asus,evga,newegg,nvidia"
COUNTRY="usa"
SCREENSHOT="false"
TELEGRAM_ACCESS_TOKEN=""
TELEGRAM_CHAT_ID=""
TWITTER_CONSUMER_KEY=""
TWITTER_CONSUMER_SECRET=""
TWITTER_ACCESS_TOKEN_KEY=""
TWITTER_ACCESS_TOKEN_SECRET=""
TWITTER_TWEET_TAGS=""
USER_AGENT=""

Try doing a "Y" in "OPEN_BROWSER". Thats what I did and that is what happened when it located a card on Nvidias site. I was also successful in placing the order.

I'm having this problem too. Adding "y" didn't solve it. I did notice my user agent is different from default for the chrome value:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36
However, when I try to add this value in to user agent it doesn't make a difference. Discord, works fine and so does the sound notification, but I can't get the open browser to work.

OPEN_BROWSER="true", but it's default to true in the code anyway, so you don't have to set. What OS are you running?

OPEN_BROWSER="true", but it's default to true in the code anyway, so you don't have to set. ~What OS are you running?~
Nevermind, you're testing a notification. That won't open your browser. This test is only for notifications, not an "in stock simulation" I suppose. It may lead you on to believe this, but not the case.

Which browser does it open if it finds a card?
Also, do I need to add anything to my .env file I pasted above, or will what I have work?
Thanks!


ArrayIndexOutOfBoundsException in writing Parquet files

This is reported by @kimaina when running the batch pipeline on AMPATH DB for some specific dates. The stack trace for the exception is copied below. The error is from this line. To find the root cause we need some FHIR resources that trigger this; but while investigating this, I realized we are using a very old version of parquet-column which we should fix regardless of the root cause.
Exception in thread "main" org.apache.beam.sdk.Pipeline$PipelineExecutionException: java.lang.ArrayIndexOutOfBoundsException: 9
        at org.apache.beam.runners.direct.DirectRunner$DirectPipelineResult.waitUntilFinish(DirectRunner.java:348)
        at org.apache.beam.runners.direct.DirectRunner$DirectPipelineResult.waitUntilFinish(DirectRunner.java:318)
        at org.apache.beam.runners.direct.DirectRunner.run(DirectRunner.java:213)
        at org.apache.beam.runners.direct.DirectRunner.run(DirectRunner.java:67)
        at org.apache.beam.sdk.Pipeline.run(Pipeline.java:317)
        at org.apache.beam.sdk.Pipeline.run(Pipeline.java:303)
        at org.openmrs.analytics.FhirEtl.runFhirJdbcFetch(FhirEtl.java:184)
        at org.openmrs.analytics.FhirEtl.main(FhirEtl.java:217)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 9
        at org.apache.parquet.io.MessageColumnIO$MessageColumnIORecordConsumer.startGroup(MessageColumnIO.java:395)
        at org.apache.parquet.avro.AvroWriteSupport.writeRecord(AvroWriteSupport.java:172)
        at org.apache.parquet.avro.AvroWriteSupport.writeValueWithoutConversion(AvroWriteSupport.java:349)
        at org.apache.parquet.avro.AvroWriteSupport.writeValue(AvroWriteSupport.java:278)
        at org.apache.parquet.avro.AvroWriteSupport.access$400(AvroWriteSupport.java:48)
        at org.apache.parquet.avro.AvroWriteSupport$TwoLevelListWriter.writeCollection(AvroWriteSupport.java:547)
        at org.apache.parquet.avro.AvroWriteSupport$ListWriter.writeList(AvroWriteSupport.java:395)
        at org.apache.parquet.avro.AvroWriteSupport.writeValueWithoutConversion(AvroWriteSupport.java:355)
        at org.apache.parquet.avro.AvroWriteSupport.writeValue(AvroWriteSupport.java:278)
        at org.apache.parquet.avro.AvroWriteSupport.writeRecordFields(AvroWriteSupport.java:191)
        at org.apache.parquet.avro.AvroWriteSupport.writeRecord(AvroWriteSupport.java:173)
        at org.apache.parquet.avro.AvroWriteSupport.writeValueWithoutConversion(AvroWriteSupport.java:349)
        at org.apache.parquet.avro.AvroWriteSupport.writeValue(AvroWriteSupport.java:278)
        at org.apache.parquet.avro.AvroWriteSupport.writeRecordFields(AvroWriteSupport.java:191)
        at org.apache.parquet.avro.AvroWriteSupport.writeRecord(AvroWriteSupport.java:173)
        at org.apache.parquet.avro.AvroWriteSupport.writeValueWithoutConversion(AvroWriteSupport.java:349)
        at org.apache.parquet.avro.AvroWriteSupport.writeValue(AvroWriteSupport.java:278)
        at org.apache.parquet.avro.AvroWriteSupport.access$400(AvroWriteSupport.java:48)
        at org.apache.parquet.avro.AvroWriteSupport$TwoLevelListWriter.writeCollection(AvroWriteSupport.java:547)
        at org.apache.parquet.avro.AvroWriteSupport$ListWriter.writeList(AvroWriteSupport.java:395)
        at org.apache.parquet.avro.AvroWriteSupport.writeValueWithoutConversion(AvroWriteSupport.java:355)
        at org.apache.parquet.avro.AvroWriteSupport.writeValue(AvroWriteSupport.java:278)
        at org.apache.parquet.avro.AvroWriteSupport.writeRecordFields(AvroWriteSupport.java:191)
        at org.apache.parquet.avro.AvroWriteSupport.write(AvroWriteSupport.java:165)
        at org.apache.parquet.hadoop.InternalParquetRecordWriter.write(InternalParquetRecordWriter.java:128)
        at org.apache.parquet.hadoop.ParquetWriter.write(ParquetWriter.java:299)
        at org.openmrs.analytics.ParquetUtil.write(ParquetUtil.java:186)
        at org.openmrs.analytics.ParquetUtil.writeRecords(ParquetUtil.java:245)
        at org.openmrs.analytics.FetchSearchPageFn.processBundle(FetchSearchPageFn.java:122)
        at org.openmrs.analytics.FetchResources$SearchFn.processElement(FetchResources.java:112)

a few updates on this.. using --secondsToFlushParquetFiles=120 throws this error after  5 minutes; on the other hand
using --secondsToFlushParquetFiles=30 does not. This only happens in --activePeriod (time) where there are so many records, especially during high-picks of data-entry (between 8am and 11:30am)

Tested the pipeline with   --secondsToFlushParquetFiles=30 for one week data, still having the same error.

I spent some more time on this but have not manage to reproduce the problem yet. Without a reproducible case it is hard to tell what is wrong but from more reading of the code (and some searches) it feels that one record (i.e., one FHIR resource) should be the problem; so it is not obvious why setting --secondsToFlushParquetFiles can mask this issue.
@kimaina can you please try to reproduce this with your data and then reduce the --activePeriod until you pinpoint a few resources that cause this? If you can find a resource that would be great, if not running for a very small period with logging enabled may give us some clue. You can use this commit to enable DEBUG logging for org.apache.parquet.io.

Thanks @bashir2 for following on this. Let me conduct more investigation then get back to you.
Thanks,
Allan

A few updates... Running using 1 thread led to this
ERROR - ParquetUtil.write(190) |2021-07-13T18:07:30,337| Dropping Observation resource with id amrs/ws/fhir2/R4/Observation/c4d02bb3-d466-4f88-9574-bc2813e6ea34 due to exception: org.apache.avro.AvroTypeException: Cannot encode decimal with scale 16 as scale 4 without rounding
Exception in thread "main" org.apache.beam.sdk.Pipeline$PipelineExecutionException: java.lang.ArrayIndexOutOfBoundsException: 9
        at org.apache.beam.runners.direct.DirectRunner$DirectPipelineResult.waitUntilFinish(DirectRunner.java:371)
        at org.apache.beam.runners.direct.DirectRunner$DirectPipelineResult.waitUntilFinish(DirectRunner.java:339)
        at org.apache.beam.runners.direct.DirectRunner.run(DirectRunner.java:219)
        at org.apache.beam.runners.direct.DirectRunner.run(DirectRunner.java:67)
        at org.apache.beam.sdk.Pipeline.run(Pipeline.java:322)
        at org.apache.beam.sdk.Pipeline.run(Pipeline.java:308)
        at org.openmrs.analytics.FhirEtl.runFhirJdbcFetch(FhirEtl.java:185)
        at org.openmrs.analytics.FhirEtl.main(FhirEtl.java:218)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 9
        at org.apache.parquet.io.MessageColumnIO$MessageColumnIORecordConsumer.startGroup(MessageColumnIO.java:402)
        at org.apache.parquet.avro.AvroWriteSupport$ListWriter.writeList(AvroWriteSupport.java:395)
        at org.apache.parquet.avro.AvroWriteSupport.writeValueWithoutConversion(AvroWriteSupport.java:355)
        at org.apache.parquet.avro.AvroWriteSupport.writeValue(AvroWriteSupport.java:278)
        at org.apache.parquet.avro.AvroWriteSupport.writeRecordFields(AvroWriteSupport.java:191)
        at org.apache.parquet.avro.AvroWriteSupport.writeRecord(AvroWriteSupport.java:173)
        at org.apache.parquet.avro.AvroWriteSupport.writeValueWithoutConversion(AvroWriteSupport.java:349)
        at org.apache.parquet.avro.AvroWriteSupport.writeValue(AvroWriteSupport.java:278)
        at org.apache.parquet.avro.AvroWriteSupport.access$400(AvroWriteSupport.java:48)
        at org.apache.parquet.avro.AvroWriteSupport$TwoLevelListWriter.writeCollection(AvroWriteSupport.java:549)
        at org.apache.parquet.avro.AvroWriteSupport$ListWriter.writeList(AvroWriteSupport.java:397)
        at org.apache.parquet.avro.AvroWriteSupport.writeValueWithoutConversion(AvroWriteSupport.java:355)
        at org.apache.parquet.avro.AvroWriteSupport.writeValue(AvroWriteSupport.java:278)
        at org.apache.parquet.avro.AvroWriteSupport.writeRecordFields(AvroWriteSupport.java:191)
        at org.apache.parquet.avro.AvroWriteSupport.write(AvroWriteSupport.java:165)
        at org.apache.parquet.hadoop.InternalParquetRecordWriter.write(InternalParquetRecordWriter.java:128)
        at org.apache.parquet.hadoop.ParquetWriter.write(ParquetWriter.java:301)
        at org.openmrs.analytics.ParquetUtil.write(ParquetUtil.java:186)
        at org.openmrs.analytics.ParquetUtil.writeRecords(ParquetUtil.java:245)
        at org.openmrs.analytics.FetchSearchPageFn.processBundle(FetchSearchPageFn.java:122)
        at org.openmrs.analytics.FetchPatientHistory$1.ProcessElement(FetchPatientHistory.java:54)

Here is the specific obs
{
    "resourceType": "Observation",
    "id": "c4d02bb3-d466-4f88-9574-bc2813e6ea34",
    "status": "final",
    "category": [
        {
            "coding": [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/observation-category",
                    "code": "laboratory",
                    "display": "Laboratory"
                }
            ]
        }
    ],
    "code": {
        "coding": [
            {
                "code": "a898c87a-1350-11df-a1f1-0026b9348838",
                "display": "BODY SURFACE AREA"
            }
        ]
    },
    "subject": {

    },
    "encounter": {
        "reference": "Encounter/xxx",
        "type": "Encounter"
    },
    "effectiveDateTime": "xxxxx",
    "issued": "xxxx",
    "valueQuantity": {
        "value": 1.7126976771553504
    }
}

Thanks @kimaina but this Observation resource should not fail the pipeline. It has the BigDecimal conversion bug (Issue #156) but that bug has an try/catch guard and does not fail the pipeline (as the first line of your log dump shows too, i.e., ERROR - ParquetUtil.write(190) ...). However, the next log lines indicate that you are indeed very close to a resource that demonstrates the ArrayIndexOutOfBoundsException issue.

Thanks @bashir2.
Please see this #188  which reproduces ArrayIndexOutOfBoundsException #168
Also a potential fix can be found in this PR #189

Thanks @kimaina, #188 is really helpful. So the core issue seems to be #156 and the try/catch we added before is creating other issues. So the TL;DR; is that we have to properly fix #156 (adding another more generic catch just hides the problem a little more and will probably bite us again).
The longer version is that all of the 4 resources you have in the new Observation bundle in #188, have the #156 bug. If you drop any of them we cannot reproduce #168 anymore. So it seems when the AvroTypeException in #156 happens we skip some of the required final steps for writing the Avro record, e.g., this call and that causes the AvroWriteSupport and its MessageColumnIO to end up in a bad state.
I think I know the root cause of #156 which is a discrepancy between the value scale and schema scale that Bunsen sets for decimal types (e.g., valueQuantity of Observation resources in this case). The fix is probably not in our code-base but rather in Bunsen. I will try to see if can find a proper fix.

If you drop any of them we cannot reproduce #168 anymore.

Precisely!

Adding another more generic catch just hides the problem a little more and will probably bite us again?

Agreed, Bunsen fix should resolve this problem!

Let's close this issue and track this under #156.


doc(example): expand SVG example to include elements

Based on comments, this will fix https://github.com/wwayne/react-tooltip/issues/306

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Improve Accessibility Panel

Thanks for adding tools to help make electron apps more accessible!
I stumbled upon this while fixing accessibility-developer-tools#291 and as a long-time Atom user/hacker, thought I'd leave this repository a little better off than how I found it.

TODO

[x] make the results elements clickable so they open in the Element Inspector

similar to this example

[x] use the now-working accessibility-developer-tools module instead of using vendor/axs.js

this is non-trivial because accessibility.js uses a private function named axs.utils.getQuerySelectorText(element)

make the results elements clickable so they open in the Element Inspector

This is great 👍

use the now-working accessibility-developer-tools module instead of using vendor/axs.js

Is the path forward here to open up a pull request upstream to make this a public API?

Thanks!
Yes, that might work but... the method generates selectors for an element and seems to only be used internally to generate error messages.
Before creating an Issue, I thought I'd solicit feedback on an approach that does not require exposing axs.utils.getQuerySelectorText(element).
 It is also similar to how react-devtools solved the same problem.
If that strategy seems convoluted or more difficult to maintain I can submit an Issue and PullRequest to accessibility-developer-tools
Getting access to the package in the browser
I was unable to get the electron app access to require('accessibility-developer-tools') so instead of the code looking like this:
// This code does not work

exports.audit = () => {
  return Eval.execute(function () {
    // This code is serialized and runs in the browser.
    // It currently relies on the content_scripts in manifest.json to get access to axs via the window.__devtron.axs global
    const axs = require('accessibility-developer-tools')
    const config = new axs.AuditConfiguration({showUnsupportedRulesWarning: false})

... I added out/browserGlobals.js which is built using browserify and defined in the manifest.json (see ddaa402)
There is probably a better way that I missed, but I could not figure it out.

Really cool, thanks for this 👍

Published in 1.4.0 🎉

This seems kinda blog-worthy.


MD5.Create() Method causes "BUG: Unreferenced static string to 0" on MetaQuest2

Tested versions

Reproducible in 4.2.1.stable, 4.2.2.rc1, 4.2.2.rc2, 4.3-dev5 (Mono versions)
not tested below 4.2 due to different tooling/project setup for XR

System information
Garuda Linux #1 ZEN SMP PREEMPT_DYNAMIC Sat, 16 Mar 2024 17:15:23 +0000 - X11 - Vulkan (Mobile) - integrated Intel(R) Xe Graphics (TGL GT2) () - 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz (8 Threads)
Issue description
Executing MD5.Create() in a C#-Script causes one or multiple of the below errors to appear in the Android Logcat during remote debugging with Meta Quest 2 (Android export template) – depending on the code that was executed before:
USER ERROR: BUG: Unreferenced static string to 0: XRRuntimeVersion
   at: unref (core/string/string_name.cpp:127)
USER ERROR: BUG: Unreferenced static string to 0: XRRuntimeName
   at: unref (core/string/string_name.cpp:127)
USER ERROR: BUG: Unreferenced static string to 0: _compression
   at: unref (core/string/string_name.cpp:127)
USER ERROR: BUG: Unreferenced static string to 0: @export_enum
   at: unref (core/string/string_name.cpp:129)
USER ERROR: BUG: Unreferenced static string to 0: @export_node_path
   at: unref (core/string/string_name.cpp:129)
USER ERROR: BUG: Unreferenced static string to 0: @export_flags
   at: unref (core/string/string_name.cpp:129)
USER ERROR: BUG: Unreferenced static string to 0: @export_placeholder
   at: unref (core/string/string_name.cpp:129)
USER ERROR: BUG: Unreferenced static string to 0: @export
   at: unref (core/string/string_name.cpp:129)
USER ERROR: BUG: Unreferenced static string to 0: @export_multiline
   at: unref (core/string/string_name.cpp:129)
USER ERROR: BUG: Unreferenced static string to 0: @export_range
   at: unref (core/string/string_name.cpp:129)
USER ERROR: BUG: Unreferenced static string to 0: @warning_ignore
   at: unref (core/string/string_name.cpp:129)
USER ERROR: BUG: Unreferenced static string to 0: Variant
   at: unref (core/string/string_name.cpp:127)
USER ERROR: BUG: Unreferenced static string to 0: @export_group
   at: unref (core/string/string_name.cpp:129)
USER ERROR: BUG: Unreferenced static string to 0: ShaderCompilation
   at: unref (core/string/string_name.cpp:127)

Either, there is a bug in the implementation of MD5.Create() on Android which destroys references to static StringNames, a buffer overflow, or something else is off from the Godot side.
Target Framework net8.0 produces the same error.
This incident makes the app crash or terminate itself.
Steps to reproduce
Create a running XR project for Meta Quest 2.
Generate a C# Script.
Add  var md5Hasher = System.Security.Cryptography.MD5.Create();.
Minimal reproduction project (MRP)
When opening the project, please add the Godot XR Vendors plugin and install the export template. (Meta Plugin needs to be enabled in the export settings after adding the plugin.)
md5_bug_godot_4.2.1-stable.zip

PS: this seems to be related to the HashAlgorithm class in general. I get the same problem with SHA1 and SHA256.

C# Android exports don't support System.Security.Cryptography.

See https://github.com/godotengine/godot/issues/84559 for more information.

You should be able to pack libssl.so and libcrypto.so into the exported APK to resolve the issue.
There is also a draft PR that should fix this, but it's still a work in progress. You can wait for the PR to be merged or compile it yourself and see if it works for you.

https://github.com/godotengine/godot/pull/88803.

I'll close this issue to consolidate in the one I mentioned. Thanks for the report nonetheless!


Support user-defined variables #143

Follows https://github.com/MarkBind/markbind/pull/145

Would it be better to store the variables in JSON format? Then we wouldn't need cheerio and use fs-extra#readJsonSync() ?

It might not work well for multi line and quotes " though (the author probably need to follow some special syntax)

As we are using _markbind/variables.md, are we also changing boilerplates feature to use _markbind/boilerplates/ ?


select2 4 focus

Hello!
Do you intend to add the :focus event to select2 4?
For example, i'm working on a project with select2 and have added a tooltip to the selects who's normal behaviour would be to show on mouseover, hide on mouseleave BUT always keep visible when focused on the select. It's not possible to implement this without a :fosuc event. Even worse, using the next best thing, :open and :close results in flickering as select2 4 fires open on unselect.

This is a duplicate of https://github.com/select2/select2/issues/1908.
Yes, we plan on supporting the focus event in the future.


Cloudflare Worker for donation campaign

See https://serlo-donation-campaign.serlo.workers.dev/ for an example of the deployed Cloudflare Worker
Behavior:

Fetches the data from https://docs.google.com/spreadsheets/d/18ri3s1cqw1-jYjnPbPkI_9v4t9wBY1Sp3YtklXO0_Wg and caches it for one hour
Chooses the active experiment (i.e. the last experiment with a start date that is not in the future)
Assigns the user to a group according to the cookie
Responds with the data that we need in the front end

Required to finish the stuff in #70


Share StarlingMonkey headers implementation, getSetCookie

This updates to share the StarlingMonkey headers implementation, based to the work in https://github.com/bytecodealliance/StarlingMonkey/pull/79.
Resolves 40 WPT cases, as well as implementing getSetCookie (https://developer.mozilla.org/en-US/docs/Web/API/Headers/getSetCookie).
Resolves https://github.com/fastly/js-compute-runtime/issues/836 and https://github.com/fastly/js-compute-runtime/issues/221.

The remaining failures here are divergence between StarlingMonkey and js-compute-runtime now that we have new support for separate cookie headers.
I would like to suggest we land this after deprecating the js-compute-runtime build to avoid the need to refactor the js-compute-runtime implementation as well here, since it's a fairly large diff.


Introduce ConnectorFactory and ConnectorManager

Signed-off-by: dorianzheng<EMAIL_ADDRESS>What type of PR is this：

[ ] bug
[x] feature
[ ] enhancement
[ ] others

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

Related with https://github.com/StarRocks/starrocks/issues/5062
Introduce ConnectorManager and ConnectorFactory with some simple API

[FE PR Coverage check]
:disappointed: fail : 0 / 11 (00.00%)
file detail

path
covered line
new line
coverage

:large_blue_circle:
com/starrocks/connector/ConnectorContext.java
0
4
00.00%

:large_blue_circle:
com/starrocks/connector/ConnectorMgr.java
0
7
00.00%

[FE PR Coverage check]
:disappointed: fail : 0 / 11 (00.00%)
file detail

path
covered line
new line
coverage

:large_blue_circle:
com/starrocks/connector/ConnectorContext.java
0
4
00.00%

:large_blue_circle:
com/starrocks/connector/ConnectorMgr.java
0
7
00.00%


Update Pages “home”

Automatically generated by Netlify CMS

👷 Deploy Preview for anatidaephobia processing.

Name
Link

🔨 Latest commit
3d3782e9a2b41d2996d6e106fbf367d4f1ca0fab

🔍 Latest deploy log
https://app.netlify.com/sites/anatidaephobia/deploys/6243fa106639c300082b7908


3.1 clean errors

This should be my last push for more clean/idiomatic errors from GLFW.
Please see the individual commit descriptions for more information.
Alternative to #112 (fixed typo in commit message)

LGTM.

:thumbsup: LGTM

should we add the error anlaysis here (http://www.glfw.org/docs/latest/group__errors.html) to go doc documentation?

According to the doc link @tapir sent, GLFW_PLATFORM_ERROR is:

A bug in GLFW or the underlying operating system. Report the bug to our issue tracker.

On this premise, I'll also turned that one into a panic.

The thing is now all the functions return an error and most of the errors are actually panics.
Seems a bit overdone. Ideas?

should we add the error anlaysis here (http://www.glfw.org/docs/latest/group__errors.html) to go doc documentation?

Done.
PTAL again everyone.

The thing is now all the functions return an error and most of the errors are actually panics.
Looks a bit overdone. Ideas?

Let's not discuss this here: I'll create a new issue to discuss it.

LGTM

LGTM.


@BenjaminBossan
Information

[ ] The official example scripts
[X] My own modified scripts

Tasks

[ ] An officially supported task in the examples folder
[X] My own task or dataset (give details below)

Reproduction
import torch
from diffusers import FluxPipeline
import time
import os
import requests
import zipfile
import tempfile
import shutil

# Variables for easy switching
lora_zip_url = "https://pub-67101706c9e843179b611abc87947bd8.r2.dev/training_results_c2a28eb3-1797-419e-ac89-4ba1de9d229b/training_results.zip"
num_images = 1  # Number of images to generate

def print_benchmark(name, duration):
    print(f"{name}: {duration:.2f} seconds")

# Benchmark: Create pipeline
start_time = time.time()
pipe = FluxPipeline.from_pretrained(
    "black-forest-labs/FLUX.1-dev",
    torch_dtype=torch.bfloat16,
    use_safetensors=True
)
create_pipeline_time = time.time() - start_time
print_benchmark("Create pipeline", create_pipeline_time)

# Benchmark: Move to CUDA
start_time = time.time()
pipe.to("cuda")
move_to_cuda_time = time.time() - start_time
print_benchmark("Move to CUDA", move_to_cuda_time)

# Benchmark: Download, extract, and load LoRA
start_time = time.time()
print("Downloading LoRA zip file...")
response = requests.get(lora_zip_url)
zip_path = tempfile.mktemp(suffix=".zip")
with open(zip_path, 'wb') as f:
    f.write(response.content)
print("LoRA zip file downloaded")

print("Extracting LoRA zip file...")
with zipfile.ZipFile(zip_path, 'r') as zip_ref:
    zip_ref.extractall(tempfile.gettempdir())
print("LoRA zip file extracted")

extracted_folder = os.path.join(tempfile.gettempdir(), zip_ref.namelist()[0].split('/')[0])
print("Loading LoRA weights...")
pipe.load_lora_weights(extracted_folder, weight_name="flux_train_latentgen.safetensors", adapter_name="main_lora")
print("LoRA weights loaded")

# Clean up
os.remove(zip_path)
shutil.rmtree(extracted_folder)

load_lora_time = time.time() - start_time
print_benchmark("Download, extract, and load LoRA", load_lora_time)

# Benchmark: Generate images
start_time = time.time()
prompt = "sks man"
images = pipe(
    prompt=prompt,
    num_images_per_prompt=num_images,
    height=1024,
    width=768,
).images
generate_images_time = time.time() - start_time
print_benchmark("Generate images", generate_images_time)

# Print total time
total_time = create_pipeline_time + move_to_cuda_time + load_lora_time + generate_images_time
print_benchmark("Total time", total_time)

# Return the final image (or first image if multiple were generated)
final_image = images[0]
print("Image generation complete. Final image returned.")

# Save the image
final_image.save("output.png")
print("Image saved as output.png")

# Unload LoRA weights
pipe.unload_lora_weights()
print("Unloaded LoRA weights")

Expected behavior
Issue
LoRA loading takes more than 200 seconds in the load_lora_weights step for custom loras, the script above includes a working url for a LoRA trained on a random person which you can use for testing, you will see that times are considerably long (more than 20 seconds on average) when running it even with 100% GPU usage for the script
Expected behavior
Lower load times
Reproduction steps
I'm running the script with the following command:
(.env) root@machine# HF_TOKEN=hf_token python test.py

Then I get the following benchmarks:
Loading checkpoint shards: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00,  6.70it/s]
Loading pipeline components...:  86%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▊                     | 6/7 [00:01<00:00,  3.93it/s]You set `add_prefix_space`. The tokenizer needs to be converted from the slow tokenizers
Loading pipeline components...: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 7/7 [00:01<00:00,  4.06it/s]
Create pipeline: 1.95 seconds
Move to CUDA: 9.97 seconds
Downloading LoRA zip file...
LoRA zip file downloaded
Extracting LoRA zip file...
LoRA zip file extracted
Loading LoRA weights...
LoRA weights loaded
Download, extract, and load LoRA: 294.35 seconds
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 28/28 [00:11<00:00,  2.37it/s]
Generate images: 12.68 seconds
Total time: 318.95 seconds
Image generation complete. Final image returned.
Image saved as output.png
Unloaded LoRA weights

Notice the time it takes to load the lora weights, the step for pipe.load_lora_weights(extracted_folder, weight_name="flux_train_latentgen.safetensors", adapter_name="main_lora") is taking more than 290 seconds in total. I have tried:

pipe.enable_model_cpu_offload() pipe.to("cuda")
pipe.to("cuda") as currently
Different size loras but every single time it takes a lot of time to load

Help
I would appreciate your help in any pointers or optimizations apart from leaving the LoRA in VRAM? (This is part of a larger process that receives a loRA url and processes images based on it so at any given time I need to be able to load and unload flux loras as fast as possible. Thanks!

Hi @BenjaminBossan,
I added your devices check before loading the LoRA and after it and got CUDA so I don't think that transformers is being loaded on the CPU, note that times are still on the 200+ second range.
I'm curious, did you use my example lora url? Could not having a lora parameter file affect the loading part?
Im using an A100 SXM GPU which has 80GB GPU so I don't think that the issue is on that side.
Pipeline components after creation:
TEXT_ENCODER
obj.device=device(type='cuda', index=0)
param devices: {device(type='cuda', index=0)}
param dtypes:  {torch.bfloat16}
num params:    123,060,480
TEXT_ENCODER_2
obj.device=device(type='cuda', index=0)
param devices: {device(type='cuda', index=0)}
param dtypes:  {torch.bfloat16}
num params:    4,762,310,656
TRANSFORMER
obj.device=device(type='cuda', index=0)
param devices: {device(type='cuda', index=0)}
param dtypes:  {torch.bfloat16}
num params:    11,901,408,320
VAE
obj.device=device(type='cuda', index=0)
param devices: {device(type='cuda', index=0)}
param dtypes:  {torch.bfloat16}
num params:    83,819,683
Downloading LoRA zip file...
LoRA zip file downloaded
Extracting LoRA zip file...
LoRA zip file extracted
Loading LoRA weights...
LoRA weights loaded
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 28/28 [00:11<00:00,  2.35it/s]
Generate images: 13.82 seconds

Pipeline components before unloading LoRA:
TEXT_ENCODER
obj.device=device(type='cuda', index=0)
param devices: {device(type='cuda', index=0)}
param dtypes:  {torch.bfloat16}
num params:    123,060,480
TEXT_ENCODER_2
obj.device=device(type='cuda', index=0)
param devices: {device(type='cuda', index=0)}
param dtypes:  {torch.bfloat16}
num params:    4,762,310,656
TRANSFORMER
obj.device=device(type='cuda', index=0)
param devices: {device(type='cuda', index=0)}
param dtypes:  {torch.bfloat16}
num params:    11,987,326,016
VAE
obj.device=device(type='cuda', index=0)
param devices: {device(type='cuda', index=0)}
param dtypes:  {torch.bfloat16}
num params:    83,819,683

Final Benchmarks:
{'Create pipeline': 47.32027888298035,
 'Download LoRA': 6.121661424636841,
 'Extract LoRA': 2.003812789916992,
 'Generate images': 13.817049741744995,
 'Load LoRA':<PHONE_NUMBER>020447,
 'Move to CUDA': 8.013010263442993,
 'Total time':<PHONE_NUMBER>0476685}
Total time: 343.73 seconds
Image generation complete. Final image returned.
Image saved as output.png
Unloaded LoRA weights

Just want to chime in here, I'm stumped by a similar slowdown using StableDiffusionXLPipeline.  The LoRA (217.89 MB) takes ~3 seconds to load, while the base model (6.5 GB) also takes ~3 seconds to load. I'm loading everything from disk.
Here are my package versions:
"diffusers==0.30.2",
"transformers==4.44.2",
"accelerate==0.34.2",
"safetensors==0.4.4",
"torch==2.4.1",
"peft==0.12.0"

Here is my code:
MODEL_URL = "https://civitai.com/api/download/models/290640?type=Model&format=SafeTensor&size=pruned&fp=fp16"
MODEL_FILE_PATH = "/models/checkpoints/pony_diffusion_v6_xl.safetensors"

VAE_URL="https://civitai.com/api/download/models/290640?type=VAE&format=SafeTensor"
VAE_FILE_PATH="/models/vae/pony_diffusion_v6_xl_vae.safetensors"

STYLE_LORA_URL="https://civitai.com/api/download/models/820564?type=Model&format=SafeTensor&token=<YOUR_CIVITAI_TOKEN>"
STYLE_LORA_FILE_PATH="/models/loras/pony/pony_style_lora.safetensors"

# Load VAE
vae_load_start = perf_counter()
vae = AutoencoderKL.from_single_file(VAE_FILE_PATH, torch_dtype=torch.float16)
vae_load_end = perf_counter()
print(f"VAE loaded in {vae_load_end - vae_load_start} seconds")

# Load Model
model_load_start = perf_counter()
self.pipeline = StableDiffusionXLPipeline.from_single_file(
    MODEL_FILE_PATH,
    vae=vae,
    safety_checker=None,
    torch_dtype=torch.float16,
)
model_load_end = perf_counter()
print(f"Model loaded in {model_load_end - model_load_start} seconds")

self.pipeline.to("cuda")

# Set scheduler to Euler Ancestral Discrete Scheduler
self.pipeline.scheduler = EulerAncestralDiscreteScheduler.from_config(self.pipeline.scheduler.config)

# Load LoRAs
lora_load_start = perf_counter()
self.pipeline.load_lora_weights(STYLE_LORA_FILE_PATH, adapter_name="style")
lora_load_end = perf_counter()
print(f"LoRA loaded in {lora_load_end - lora_load_start} seconds")

 # Add LoRAs to the pipeline
self.pipeline.set_adapters(["style"], adapter_weights=[0.8])

# Generate the image
image_generation_start = perf_counter()
full_prompt = f"score_9, score_8_up, score_7_up, score_6_up,source_anime, {prompt}"
image = self.pipeline(
    prompt=full_prompt,
    negative_prompt="bad quality, score_3, score_2, score_1",
    height=1024,
    width=1024,
    num_inference_steps=25,
    guidance_scale=8.5,
).images[0]
image_generation_end = perf_counter()
print(f"Image generated in {image_generation_end - image_generation_start} seconds")

# Unload LoRAs from the pipeline
unload_lora_start = perf_counter()
self.pipeline.unload_lora_weights()
unload_lora_end = perf_counter()
print(f"LoRA unloaded in {unload_lora_end - unload_lora_start} seconds")

Sample benchmarks:
Model loaded in 3.0992493440000004 seconds
LoRA loaded in 2.928138479000001 seconds
...

These issues seem related, Please let me know if this is the right place to bring this up or if I should open a new issue.

These issues seem related, Please let me know if this is the right place to bring this up or if I should open a new issue.

Judging by the numbers you get, I don't think the issues are related. But I do think that your issue could be the same as https://github.com/huggingface/diffusers/issues/8953 and will be addressed by the work in #1961.

@nachoal  Hello I have small question i have fine tuned flux dev on replicate i have 2 files config.yamal and lora.safetensors
i want to use this fine tuned model on Colab using Flux Pipeline offered by Hugging face but I don't know how can you help

These are the files i got from replicate

Was there a resolution to this? I'm having similar difficulties to @nachoal where flux-dev loads relatively quickly but loading any LORA, regardless of size, takes multiple minutes. I'm also using an 80GB A100.
Example code:
from diffusers import Flux Pipeline
import torch

pipeline = FluxPipeline.from_pretrained(
    "black-forest-labs/FLUX.1-dev",
    torch_dtype=torch.bfloat16,
    use_safetensors=True,
).to('cuda')

pipeline.load_lora_weights(
    "XLabs-AI/flux-lora-collection", weight_name="anime_lora.safetensors"
)

Unfortunately, I also can't reproduce this issue. With the adapter downloaded, loading it took 2.5 sec for me on the first run and 0.5 sec on subsequent runs (probably due to disk caching). Some questions:

Are you on the latest versions of diffusers and PEFT?
If you run this script multiple times in a row with the same LoRA adapter, does it still take the same amount of time for each?
How long do you spend loading the Flux pipeline vs the LoRA adapter?

I'm using a developer release of diffusers: diffusers @ git+https://github.com/huggingface/diffusers@665c6b47a23bc841ad1440c4fe9cbb1782258656
and peft is version 0.12.0

Yes, each time I load a LORA it's slow. If you need exact benchmarks I can provide those.

The adapter takes significantly longer than flux to load. Flux loads in seconds while the LORA takes minutes.

Unfortunately, I also can't reproduce this issue. With the adapter downloaded, loading it took 2.5 sec for me on the first run and 0.5 sec on subsequent runs (probably due to disk caching). Some questions:

Are you on the latest versions of diffusers and PEFT?
If you run this script multiple times in a row with the same LoRA adapter, does it still take the same amount of time for each?
How long do you spend loading the Flux pipeline vs the LoRA adapter?

@BenjaminBossan how can you load the Lora weights plz if you have any hands on material

@cshowley

I'm using a developer release of diffusers: diffusers @ git+https://github.com/huggingface/diffusers@665c6b47a23bc841ad1440c4fe9cbb1782258656
and peft is version 0.12.0

I tried using these exact versions but still the results don't change, loading the LoRA takes ~0.5 sec, the whole loading script is finished in 9 sec.

2. If you need exact benchmarks I can provide those.

Maybe you could check a couple of other LoRAs to see if it's just this one or if all are slow. But I think the next logical step would be to profile the loading step to figure out what exactly it is that is so slow. Do you have some experience with profiling in Python? If I could reproduce this, I'd do it myself, but as is I can't.
@BasmaElhoseny01 I'm not sure what you mean, in this issue you can find code snippets that show how LoRA is loaded. If you need more general info on how to use LoRA in diffusers, check the diffusers docs.


Migrate off of hardcoded strings back to the Android resource system

stringResource we meet again.
One thing of note, is any text that displays clickable links will need to still function, taking into account that different languages have different sentence structure!

Required prep for #293


Update benchmark.yml

Had the weridest issues:
costa@ip-10-52-17-32:/fsx/costa/slurm_tmpdir/tmp.Uz5n3VUbRw$ which python
/fsx/costa/all-action-runners/trl/actions-runner/_work/_tool/Python/3.8.18/x64/bin/python
costa@ip-10-52-17-32:/fsx/costa/slurm_tmpdir/tmp.Uz5n3VUbRw$ python
Python 3.8.10 (default, May 26 2023, 14:05:08)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

For some reason /fsx/costa/all-action-runners/trl/actions-runner/_work/_tool/Python/3.8.18/x64/bin/python is the python 3.8.10 on the cluster. I tried bumping the python version which seems to resolve the issue.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


[Bug]:  [Knowhere 1.3]  index:gpu_ivf_sq8 crash

Current Behavior
Run all cases of L0 , index crashes of gpu_ivf_sq8 crash
Expected Behavior
case Normal execution
Steps To Reproduce

Enter the ci pod
run pytest -v -m  L0

Test case address: https://github.com/milvus-io/knowhere-test/blob/main/tests/test_ivf.py#L234
Log

test_ivf.py::TestIvf::test_ivf_gpu[gpu_ivf_sq8] Fatal Python error: Segmentation fault

Current thread 0x00007f63abfb2740 (most recent call first):
 File "/usr/local/lib/python3.8/dist-packages/knowhere/swigknowhere.py", line 479 in Query
 File "/home/jenkins/agent/workspace/whh/tests/test_ivf.py", line 303 in test_ivf_gpu
 File "/usr/local/lib/python3.8/dist-packages/_pytest/python.py", line 192 in pytest_pyfunc_call
 File "/usr/local/lib/python3.8/dist-packages/pluggy/_callers.py", line 39 in _multicall
 File "/usr/local/lib/python3.8/dist-packages/pluggy/_manager.py", line 80 in _hookexec
 File "/usr/local/lib/python3.8/dist-packages/pluggy/_hooks.py", line 265 in __call__
 File "/usr/local/lib/python3.8/dist-packages/_pytest/python.py", line 1761 in runtest
 File "/usr/local/lib/python3.8/dist-packages/_pytest/runner.py", line 166 in pytest_runtest_call
 File "/usr/local/lib/python3.8/dist-packages/pluggy/_callers.py", line 39 in _multicall
 File "/usr/local/lib/python3.8/dist-packages/pluggy/_manager.py", line 80 in _hookexec
 File "/usr/local/lib/python3.8/dist-packages/pluggy/_hooks.py", line 265 in __call__
 File "/usr/local/lib/python3.8/dist-packages/_pytest/runner.py", line 259 in <lambda>
 File "/usr/local/lib/python3.8/dist-packages/_pytest/runner.py", line 338 in from_call
 File "/usr/local/lib/python3.8/dist-packages/_pytest/runner.py", line 258 in call_runtest_hook
 File "/usr/local/lib/python3.8/dist-packages/_pytest/runner.py", line 219 in call_and_report
 File "/usr/local/lib/python3.8/dist-packages/_pytest/runner.py", line 130 in runtestprotocol
 File "/usr/local/lib/python3.8/dist-packages/_pytest/runner.py", line 111 in pytest_runtest_protocol
 File "/usr/local/lib/python3.8/dist-packages/pluggy/_callers.py", line 39 in _multicall
 File "/usr/local/lib/python3.8/dist-packages/pluggy/_manager.py", line 80 in _hookexec
 File "/usr/local/lib/python3.8/dist-packages/pluggy/_hooks.py", line 265 in __call__
 File "/usr/local/lib/python3.8/dist-packages/_pytest/main.py", line 347 in pytest_runtestloop
 File "/usr/local/lib/python3.8/dist-packages/pluggy/_callers.py", line 39 in _multicall
 File "/usr/local/lib/python3.8/dist-packages/pluggy/_manager.py", line 80 in _hookexec
 File "/usr/local/lib/python3.8/dist-packages/pluggy/_hooks.py", line 265 in __call__
 File "/usr/local/lib/python3.8/dist-packages/_pytest/main.py", line 322 in _main
 File "/usr/local/lib/python3.8/dist-packages/_pytest/main.py", line 268 in wrap_session
 File "/usr/local/lib/python3.8/dist-packages/_pytest/main.py", line 315 in pytest_cmdline_main
 File "/usr/local/lib/python3.8/dist-packages/pluggy/_callers.py", line 39 in _multicall
 File "/usr/local/lib/python3.8/dist-packages/pluggy/_manager.py", line 80 in _hookexec
 File "/usr/local/lib/python3.8/dist-packages/pluggy/_hooks.py", line 265 in __call__
 File "/usr/local/lib/python3.8/dist-packages/_pytest/config/__init__.py", line 164 in main
 File "/usr/local/lib/python3.8/dist-packages/_pytest/config/__init__.py", line 187 in console_main
 File "/usr/local/bin/pytest", line 8 in <module>
Segmentation fault (core dumped)

find me the complete core dump file

/approve  @Presburger

update:
index: gpu_ivf_flat
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
--Type <RET> for more, q to quit, c to continue without paging--
Core was generated by `python3.8 -m pytest test_ivf.py::TestIvf::test_ivf_gpu'.
Program terminated with signal SIGABRT, Aborted.
#0  __GI_raise (sig=<optimized out>) at ../sysdeps/unix/sysv/linux/raise.c:50
50      ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
[Current thread is 1 (Thread 0x7f1f0352b740 (LWP 1254))]
(gdb) bt
#0  __GI_raise (sig=<optimized out>) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  <signal handler called>
#2  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#3  0x00007f1f03719859 in __GI_abort () at abort.c:79
#4  0x00007f1efea5aa42 in void faiss::gpu::runL2Norm<float, float4, int>(faiss::gpu::Tensor<float, 2, true, int, faiss::gpu::traits::DefaultPtrTraits>&, bool, faiss::gpu::Tensor<float, 1, true, int, faiss::gpu::traits::DefaultPtrTraits>&, bool, CUstream_st*) ()
   from /usr/local/lib/python3.8/dist-packages/knowhere/../../../libknowhere.so
#5  0x00007f1efea57ee7 in faiss::gpu::runL2Norm(faiss::gpu::Tensor<float, 2, true, int, faiss::gpu::traits::DefaultPtrTraits>&, bool, faiss::gpu::Tensor<float, 1, true, int, faiss::gpu::traits::DefaultPtrTraits>&, bool, CUstream_st*) () from /usr/local/lib/python3.8/dist-packages/knowhere/../../../libknowhere.so
#6  0x00007f1efe9eac51 in faiss::gpu::FlatIndex::add(float const*, int, CUstream_st*) ()
   from /usr/local/lib/python3.8/dist-packages/knowhere/../../../libknowhere.so
#7  0x00007f1efe9d2196 in faiss::gpu::GpuIndexFlat::addImpl_(int, float const*, long const*) ()
   from /usr/local/lib/python3.8/dist-packages/knowhere/../../../libknowhere.so
#8  0x00007f1efe9d2374 in faiss::gpu::GpuIndexFlat::add(long, float const*) () from /usr/local/lib/python3.8/dist-packages/knowhere/../../../libknowhere.so
#9  0x00007f1efe8c3b4e in faiss::Clustering::train_encoded (this=0x7ffc65105fa0, nx=262144, x_in=0x7f1e6647e010 "", codec=0x0, index=..., weights=0x0)
    at /home/jenkins/agent/knowhere/thirdparty/faiss/faiss/Clustering.cpp:566
#10 0x00007f1efe9da571 in faiss::gpu::GpuIndexIVF::trainQuantizer_(long, float const*) ()
   from /usr/local/lib/python3.8/dist-packages/knowhere/../../../libknowhere.so
#11 0x00007f1efe9dc758 in faiss::gpu::GpuIndexIVFFlat::train(long, float const*) () from /usr/local/lib/python3.8/dist-packages/knowhere/../../../libknowhere.so
#12 0x00007f1efe8a0b3b in knowhere::GPUIVF::Train (this=0x271e9d0, dataset_ptr=std::shared_ptr<class knowhere::Dataset> (use count 1, weak count 0) = {...},
    config=...) at /home/jenkins/agent/knowhere/knowhere/index/vector_index/gpu/IndexGPUIVF.cpp:44
#13 0x00007f1f0270841c in _wrap_GPUIVF_Train (args=<optimized out>) at /home/jenkins/agent/knowhere/python/../python/knowhere/knowhere_wrap.cpp:13349
#14 0x00000000005f69ca in PyCFunction_Call ()
#15 0x00000000005f74f6 in _PyObject_MakeTpCall ()
#16 0x0000000000571164 in _PyEval_EvalFrameDefault ()
#17 0x00000000005f6cd6 in _PyFunction_Vectorcall ()
#18 0x000000000056bbfa in _PyEval_EvalFrameDefault ()
#19 0x0000000000569dba in _PyEval_EvalCodeWithName ()
#20 0x00000000005f6eb3 in _PyFunction_Vectorcall ()
#21 0x000000000050bc2c in ?? ()

index: gpu_ivf_sq8
coredump  bt log:

index: gpu_ivf_pq
coredump  bt log:


Multisig Solution for Cosmos Wallets

The whole proccess of creating, signing and broadcasting of multisig transaction is described in this artice (ref.: https://jake-hartnell.medium.com/cosmos-sdk-multisigs-96a390a9d3cc ). The only thing is not mentioned here is specifying fees while signing the created transaction with individual keys.
First of all you create a multisig wallet from two or more individual ones with specifying multisig threshold, it controls how many of the keys have to sign in order for a transaction to be valid. After that you can generate a transaction without broadcasting it, redirect output to the file and sign it with keys that participate in the current multisig. When you are done with it you should sign it with the multisig key and finally broadcast your transaction to the chain.

[ ] Check for a UI solution that can be used for the multisig

Update
Researched the topic and found some projects for multisig UI.
Some of the notable projects that I've saved are:
https://github.com/notional-labs/multisig-ui - https://multisig.notional.ventures/multisigs
https://github.com/cosmos/cosmos-multisig-ui
https://safe.apollo.farm/
I managed to test creating a multisig wallet successfully on the cosmos-hub with https://multisig.notional.ventures/multisigs
However, when I tried to run the project locally with nolus-rila added to the supported projects, I faced some problems when loading data for nolus and could not create multisig wallet
cc @ivivanov

Update
We decided to go with https://github.com/cosmos/cosmos-multisig-ui. Even though it has less UI functionalities it is much cleaner and robust solution without any functional issues.

Update
Closing this issue as it is not part of this project


implementing a cacheCompile method similar to lessphp

Is this on the roadmap or have you considered what would be involved with this? I'm working on a wrapper for both libraries in a project that contains less and scss. If you have any thoughts on this please let me know, thank you!

Merged #221 into develop branch.


Energy converters disable

Hy, energy converters are all disable in the last version.

Yup, known issue, GTm last update changed the name of the file. Feel free to enable them in config.
(Fixed soon for the UEV Tier Update).


Request to add San Mateo Police Department to Defund12.org list

Subject line for the email: [* INSERT UNIQUE SUBJECT LINE***]**
Email addresses:
<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><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Detailed message concerning the budgeting decisions at stake in your community:
To Whom It May Concern,
My name is [YOUR NAME] and I am a resident of San Mateo county writing to urge you to defund the San Mateo Police Department.
SMPD takes an enormous share of the city’s general fund, and that percentage has only risen over the last two decades, taking away desperately needed resources from essential city programs and services. The investment in policing has not made us safer – SMPD is a lethal threat to San Mateo's Black and Brown communities, while increased police spending shows no correlation to decreasing crime levels over the past 20 years. With San Mateo's current finances in dire jeopardy due to the COVID-19 financial crisis, it is clear that we must defund the police.
As San Mateo residents, we therefore demand that you take immediate action to ensure the following:

Reduce SMPD’s allocation from the General Fund by 50%
Disallow unauthorized overtime by SMPD
Discontinue use of general fund dollars to pay for settlements due to police murder, misconduct, and negligence
Invest in housing, jobs, youth programs, restorative justice, and mental health workers to keep the community safe.

We are amplifying calls to defund the police, not reform them. I urge you to advocate for a meaningful reallocation of the city's expenditures: away from policing, and towards social programs and resources that support housing, jobs, education, health care, child care, and other critical community needs.
San Mateo cannot wait any longer for a budget that meets the needs of its residents. The only way to achieve this is to take immediate steps to Defund SMPD.
Thank you,
[YOUR NAME]
[YOUR ADDRESS]
[YOUR EMAIL]
[YOUR PHONE NUMBER]

Here are some more emails that should be added. They include the members of the board of supervisors and the county counsel.
<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><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><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>

Excellent. Thank you!
On Mon, Jun 8, 2020 at 3:30 PM ellahenn<EMAIL_ADDRESS>wrote:

Here are some more emails that should be added. They include the members
of the board of supervisors and the county counsel.
<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><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><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/defund12/defund12.org/issues/766#issuecomment-640921390,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AP35LPLX6OFNKAE5USCSLWTRVVQ7VANCNFSM4NXYEX2A
.

could use insertion of city budget numbers

I believe that the SMPD serves the city of San Mateo not the county, so maybe revise to say that the San Mateo Sheriff's Office rather than police department. According to the San Mateo County sheriff's office website (https://www.smcsheriff.com/administration/administrative-and-fiscal-services) they have a $254 million annual operating budget. Additionally, the county is predicting to have a budget deficit of approximately $65 million to $100 million due to the coronavirus pandemic. But rather than cutting the Sheriff's Office's budget they forecast that "Departments most impacted by these losses include those that provide direct safety-net services that we chiefly need during this COVID crisis: The Department of Housing, Human Services Agency and County Health and Public Safety, among others." (https://cmo.smcgov.org/press-release/may-29-2020-rough-waters-ahead-county-san-mateo-releases-2020-21-recommended-budget)
** the 2020-2021 recommended budget says that they expect the police to need $275 million which is a slightly larger sum than what the SMC sheriff says on their website. (https://cmo.smcgov.org/sites/cmo.smcgov.org/files/documents/files/FY 2020-21 Recommended Budget.pdf)

@ellahenn i assumed this one was for smpd, not county sheriff, which is why i submitted a separate one for san mateo county! thanks for the numbers & we'll see what @cvpgallinat intended for this template to be for :)

hi all, can someone take over for me on this? I’ve had a family emergency and needed to travel. Would really appreciate help!

@ricee1213 ya i think i found it before you wrote up the sm county one, and it seemed unclear whether it was the county or the city, but i can try to edit a version for SM city, if that hasn't already been done :)


Update contribution/docs template to require testing new/changed app features

This can be:

Another checklist item in the PR template
Add screenshots if the feature is visible

idea: one way to encourage contributors to test is to add a section to the PR template to request screenshots if the changes are visible in the app

I would clarify screenshots to be screenshots or video of both "before" and "after" so it's easy for the reviewer to see the difference

Closed by #2794


PyPI package

@marier-nico are you still maintaining this project?
If not would you be alright with transferring the package to me? I'm working on a pyassuan library and I'd just like to use a simple name if possible.
https://github.com/pygpg/pyassuan
Thanks for your time

Hey there, I'm not really working on it anymore, and I doubt many people are using it, so I'm open to handing over the name! I'll look into this sometime this week 🙂

That's great, thanks much!

Done!


Error while Running SAR Strategy

System information

Have I written custom code (as opposed to using zenbot vanilla):
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 16.04
Zenbot version (commit ref, or version): Zenbot4
Zenbot branch: master
NodeJS version: v9.11.2
Python version (when using a python script): Python 3.5.2
Exact command to reproduce (include everything):  ./zenbot.sh trade binance.AST-BTC --conf conf.js --strategy sar
Did I make any changes to conf-sample.js?: Only Added API Keys for Binance and Telegram

Describe the problem
I am getting the following error when running sar strategy in trade mode. sim runs just fine.
To debug I have put a console.log for s.lookback. This array has only one element.
Source code / Error logs
/home/ujesh/zenbot/extensions/strategies/sar/strategy.js:33
s.sar = Math.max(s.lookback[1].high, s.lookback[0].high)
^
TypeError: Cannot read property 'high' of undefined
at Object.calculate (/home/ujesh/zenbot/extensions/strategies/sar/strategy.js:33:42)
at updatePeriod (/home/ujesh/zenbot/lib/engine.js:162:16)
at withOnPeriod (/home/ujesh/zenbot/lib/engine.js:758:5)
at /home/ujesh/zenbot/lib/engine.js:934:9
at Object.onPeriod (/home/ujesh/zenbot/extensions/strategies/sar/strategy.js:86:5)
at onTrade (/home/ujesh/zenbot/lib/engine.js:921:27)
at /home/ujesh/zenbot/lib/engine.js:899:5
at /home/ujesh/zenbot/node_modules/async/dist/async.js:4096:9
at Object.process (/home/ujesh/zenbot/node_modules/async/dist/async.js:2344:17)
at /home/ujesh/zenbot/node_modules/async/dist/async.js:2252:19
at Immediate. (/home/ujesh/zenbot/node_modules/async/dist/async.js:119:16)
at runCallback (timers.js:763:18)
at tryOnImmediate (timers.js:734:5)
at processImmediate (timers.js:716:5)

Same here I have unmolested code however I am running ubuntu inside vm from windows host.
ERROR:
s.sar = Math.max(s.lookback[1].high, s.lookback[0].high)
^
TypeError: Cannot read property 'high' of undefined
at Object.calculate (/home/ubuntu/zenbot/extensions/strategies/sar/strategy.js:32:42)
at updatePeriod (/home/ubuntu/zenbot/lib/engine.js:162:16)
at withOnPeriod (/home/ubuntu/zenbot/lib/engine.js:757:5)
at /home/ubuntu/zenbot/lib/engine.js:933:9
at Object.onPeriod (/home/ubuntu/zenbot/extensions/strategies/sar/strategy.js:85:5)
at onTrade (/home/ubuntu/zenbot/lib/engine.js:920:27)
at /home/ubuntu/zenbot/lib/engine.js:898:5
at /home/ubuntu/zenbot/node_modules/async/dist/async.js:4096:9
at Object.process (/home/ubuntu/zenbot/node_modules/async/dist/async.js:2344:17)
at /home/ubuntu/zenbot/node_modules/async/dist/async.js:2252:19

Hello
I get a similar error with the pivot strategy and tried your fix. Getting: error: unknown option `--conf'
Any thoughts? Can't find a solution anywhere. Thanks
/zenbot/extensions/strategies/pivot/strategy.js:36
if (s.lookback[5].high <= s.lookback[1].high && s.lookback[4].high <= s.lookback[1].high && s.lookback[3].high <= s.lookback[1].high && s.lookback[2].high <= s.lookback[1].high && s.lookback[0].high <= s.lookback[1].high && s.period.high <= s.lookback[1].high) {
^
TypeError: Cannot read property 'high' of undefined
at Object.onPeriod (/home/user/zenbot/extensions/strategies/pivot/strategy.js:36:25)
at onTrade (/home/user/zenbot/lib/engine.js:896:27)
at /home/user/zenbot/lib/engine.js:874:5
at /home/user/zenbot/node_modules/async/dist/async.js:4096:9
at Object.process (/home/user/zenbot/node_modules/async/dist/async.js:2344:17)
at /home/user/zenbot/node_modules/async/dist/async.js:2252:19
at Immediate._onImmediate (/home/user/zenbot/node_modules/async/dist/async.js:119:16)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)

./zenbot.sh trade --conf someconf.js --period=2m --period-length=2m --min_periods=52
I forgot to add 'trade' between .sh and --conf


dropify-preview

For unknow reason, dropify-preview doesn't work.
http://recordit.co/zvwSwolQzd
my code (Browserify):
let Dropify = require('dropify');
new Dropify($('.dropify'), {
     messages : {
            'default': 'test'
      }
 });

<input type="file" class="dropify" value=""  />

me too. I have many file upload in a form but just first input file can show preview. I have check but not have element same ID.


Error updating scaledObject

time="2019-09-13T20:03:51Z" level=error msg="Error updating scaledObject (twitter-worker) status: Operation cannot be fulfilled on scaledobjects.keda.k8s.io \"twitter-worker\": the object has been modified; please apply your changes to the latest version and try again"
I'm getting these messages on pods even after scaling down to zero.  What changes need to be applied here?

So this looks like it happens from changing something on the scaledobject.  For example if you change the cooldownperiod or add/remove a label.
Once I manually deleted the scaledobject and recreated the errors went away.

Closing this issue.

@anirudhgarg should patching scaledobjects be supported? Currently we use ansible to build and deploy out kubernetes manifests.


[APIM410]API revision can be deployed with the wrong vhost param using Publisher REST API

Description
In APIM 410, an inconsistent behavior was observed where the revision deployment call(using publisher REST APIs) is getting passed without any issue even with the wrong vhost parameter.
Steps to Reproduce

create a new gateway environment us-region with us.wso2.com and foods.com vhosts.

Then we use Publisher REST API to deploy a new revision with the below payload.
[
{
"revisionUuid": "194d5ba6-7d0c-4276-9089-d5e99077e167",
"name": "us-region",
"vhost": "ws.wso2.com",
"displayOnDevportal": true
}
]

As you can see in the payload, we are passing a wrong vhost(ws.wso2.com) with the correct gateway name.

The API call is getting invoked without any issue and the new revision is getting deployed into the gateway with the wrong vhost.

Affected Component
APIM
Version
4.1.0
Environment Details (with versions)
No response
Relevant Log Output
No response
Related Issues
No response
Suggested Labels
No response

Closing this issue as the public fix for this issue has been added via the PR: https://github.com/wso2/carbon-apimgt/pull/12022


Build Succeeds!

Closes #17

FYI, I turned off Vercel for the repo... we don't need two deployments

Closes https://github.com/PlebFM/PlebFM/issues/17


Windows: PowerShell module output pass through

Description
The PowerShell module functions, Load-Win32Bindings & Run-ExecutableAndWait, were modified to utilize an anonymous pipe for writing stdout and stderr of the spawned child process, which provides the parent PowerShell process the ability to read from the pipe and then pass through the output in the normal way.
Issues Resolved
This commit fixes #4045 where the output from any of the chef executables wrapped by the module functions would not allow redirection or variable capture.

@chef/client-windows this is good stuff, review please?

This looks great to me.  Perhaps a comment describing the caveats?  I see both stdout and stderr merged into one pipe and then the entire pipe is read into memory.  I think it fine - I don't expect a lot of scenarios where a chef tools output is going to cause any significant memory pressure but it is worth documenting in case someone somewhere has ohai running with all the bells and whistles turned on and generated a boat load of output only to note the powershell process terminating or something weird like that.

Thanks guys! Let me know if I should still add the comments regarding the caveats with this solution. I am happy to help with this, or any of the other open issues.

@coolmacool there are a number of triaged windows issues that can always use help, if that's a thing you're into: https://github.com/chef/chef/labels/Windows


Traefik does not pick up pre-existing IngressRoute CRD objects on the cluster when installed

Do you want to request a feature or report a bug?
Bug
What did you do?

Installed Traefik in Namespace A
Installed some services and IngressRoute CRD objects into Namespace B (Traefik sees these fine and picks them up)
Uninstalled Traefik from Namespace A
Reinstalled Traefik into Namespace A

What did you expect to see?
I expected Traefik to 'see' the pre-existing IngressRoute objects that it had previously seen in Namespace B
What did you see instead?
Traefik does not see these objects. I must uninstall and reinstall these objects in Namespace B before Traefik will pick them up again.
Output of traefik version: (What version of Traefik are you using?)
v2.1.4
What is your environment & configuration (arguments, toml, provider, platform, ...)?
Kubernetes v1.17.3
Kubernetes CRD provider active in Traefik.

Hi,
I've tried to reproduce the bug, but I didn't succeed.
What did you mean by "uninstalled Traefik from namespace A", which command did you used to do that ?

Hiya,
I am installing / uninstalling Traefik and the CRD definitions using a Helm template. To uninstall I am doing helm del --purge. Thinking about it, I imagine this removes the CRD defs from Namespace A and perhaps Kubernetes then decides to remove the CRD objects themselves from Namespace B?

Hi @dbsanfte,
Did you manage to see if the CRD defs from Namespace B were deleted ?

Just tested this and looks like that was exactly what was happening.
I moved the CRD inserts outside of the Helm template and insert them with a simple kubectl apply -f and can confirm the CRDs in Namespace B are picked up fine by Traefik when it is reinstalled.
Will close this. Cheers.


Changing encoding of xml tag

By default the encoding of xml tag is 'UTF-8'.
I need to set this encoding to 'iso-8859-1'

Hey @HeitorBRaymundo, thanks for bringing this up. Unfortunately this isn't possible at the moment. But PRs are welcome!


Adding option to add description in tickets

Feature Request
Feature Description
Currently there is no option to enter description of the ticket during its creation. I would like to add a field where the user can enter a short description about it.
Would you like to work on the issue?
Yes
@iamareebjamal I would like to work on this

Sure. This field is required so that the end user can get to know more information about the ticket for eg.
If the tickets get SOLD OUT, is there any other way to buy them or is there option to buy ticket from the event site itself.

This is server requirement. Not orga app's responsibility

Can you tell about what other data is missing from the ticket?I thought the description is missing and hence added it

No data is missing from ticket. You can confirm from API docs


Cannot change registered server file locations

When I first ran the app, I accidentally picked the incorrect folder for my server install. Now I cannot manage my server with the app, nor can I change the registered location to get it to properly manage my server.
There is a frustrating lack of documentation and modification for the app settings available.

Sorry about that. It was a fairly quick app I whipped up, but I haven't done any maintenance on it for a while. I'll see if I can get something updated on it.

@Zyferus
Can you try this, and see if your issues are resolved?
https://github.com/micah686/SatisfactoryServerGUI/releases/tag/1.1.4

Closing as no response has been provided. @Zyferus , if you still encounter this issue, feel free to reopen the issue.


crash in functions that can take data and proofs.

def combine : PSum Unit (p → q) → PSum Unit p → PSum Unit q
  | PSum.inr f, PSum.inr proof => PSum.inr $ f proof
  | _, _ => PSum.inl ()

def tst : String :=
  let f : PSum Unit (True → True) := .inr id
  let v : PSum Unit True := .inr .intro
  match combine f v with
  | .inr _ => "inr"
  | .inl _ => "inl"

#evat tst

Note that the type of combine is
combine : {p : Sort u_1} → {q : Sort u_2} → Unit ⊕' (p → q) → Unit ⊕' p → Unit ⊕' q

Possible fixes:

(Easy) Modify the apply_* in our runtime to check whether its arguments have been erased or not. Drawback: it would impact the performance of all Lean programs.

A better fix is to have two sets of apply_* functions in our runtime: the current one; and another for places that can take proofs and data (e.g., combine function above). It would require additional bookkeeping and modifications to our IR.

(Easier) Reject code such as combine where we cannot establish whether something is data or not.

The commit above uses the "easy" fix. @Kha The performance impact seems very small.


#2071 use read range of fs2

Beware, this PR depends on change in fs2 (https://github.com/functional-streams-for-scala/fs2/pull/1257) and will fail the build until that one is merged

fixes #2071


fix: oauth output corrupting JSON payload

(fix for https://github.com/danielgtaylor/restish/issues/71)

Thank you!


Redesign for 0.8

I am thinking of generating functions that returns anyhow::Result<T> for definition that returns T.
Reason one is, while implementing two applications with library I found that calling unwrap in async function is sometimes problematic. async function that panic can not be used with parallel execution tools like BoundedUnordered because failing one future in a row results in failing the entire execution. To work around I need to write this function to return Result. This is very weird.
pub fn into_safe_future<T: Send + 'static>(
    fut: impl Future<Output = T> + Send + 'static,
) -> impl Future<Output = Result<T, JoinError>> {
    async move { tokio::spawn(fut).await }
}

Reason two is analogy to Tonic. Tonic generates a function that returns Result<T, tonic::Status> for a definition that returns T. And tonic::Status is just like (HttpCode, String). norpc is a library to define a in-process service and this is kind of in-process version of Tonic so it is not unnatural to norpc also generates a function that returns Result<T> as well.
So the question what should be the Error type? I think Result<T, String> will suffice but anyhow::Result will be more convenient.

Another choice is define type Error in the service definition.


Fix #1 - get_default_client_directory return value

Adds PathBuf as an return value.

Ah sorry, completely missed this pr. Thanks for the fix!


CTRNAND injection with custom apps on sysNAND

I have FBI installed on sysNAND 9.2 (via Decrypt9) and 2 DSiWare apps. What could happend if i attempt the CTRNAND transfer with these apps on sysNAND?

Nevermind, i tried it and all went well.


Updated dockerfile and docker-entrypoint

1 Updated ubuntu from 14.04 to 16.04
2 Fixed npm "missed License " warning
3 Docker image size has optimized by removing some caches and skipping recommended packages installation
4 Deleted sudo

The docker file has been updated using other image base. So I think this PR doesnt apply now


javac options cannot be blindly passed to javadoc

This currently prevents the scala trunk build from succeeding.  javadoc doesn't take the same options javac does.  Is this configurable somewhere? I couldn't find it.  It seems to be new to 0.11.3-SNAPSHOT, 0.11.2 doesn't fail, but of course I can't build trunk with 0.11.2 so this presently prevents the scala build from completing.
% cat build.sbt
javacOptions ++= Seq("-source", "1.5", "target", "1.5")

% sbt publish-local
[error] javadoc: error - invalid flag: -target
[error] usage: javadoc [options] [packagenames] [sourcefiles] [@files]
[error] -overview <file>          Read overview documentation from HTML file
[error] -public                   Show only public classes and members
[error] -protected                Show protected/public classes and members (default)

This would be like scaladoc options in fact. So specifying additional axes should work:
javacOptions in (Compile, doc) = Seq("-source", "1.5")

Thank you; this did not work for me, but it may just be because I don't know exactly where I'm supposed to change it.  I settled for disabling documentation generation completely, which meets my personal needs but probably doesn't scale worldwide.  Stepping back: perhaps I'm naive but I take the position that an option called "javacOptions" should not be breaking the build by passing the "javac options" to a program which is not javac and which does not accept the javac options.  (I'm not suggesting anyone is saying otherwise, but just in case.)

The confusion I think has few sources:

Compile is an sbt.Configuration and thus belongs to configuration axis (Ivy has this predefined)
compile, doc etc. are sbt.TaskKeys and thus belong to the task axes (note the subtle difference in case)
scalacOptions, javacOptions are sbt.Settings that capture CLI options for the corresponding compiler interface (which cover both scalac and scaladoc -- likewise for java). This point is a dangerous attempt at reading into the mind of @harrah :)

So my settings would look somewhat like this:
lazy val myProjectSettings: Seq[Setting[_]] = Seq(
  // ...
  // Scala compiler interface settings
  scalacOptions ++= DefaultOptions.scalac,  // the obvious, globally relevant stuff
  scalacOptions in (Compile) += Opts.compile.deprecation,  // all stuff that are good for Compile config
  scalacOptions in (Compile, compile) ++= ...  // additional stuff that are good for Compile config and compile task
  scalacOptions in (Compile, doc) <++= (name in (Compile,doc), version in (Compile,doc)) map DefaultOptions.scaladoc, // additional stuff that are good for Compile config and doc task

  // Java compiler interface settings
  javacOptions ++= DefaultOptions.javac,  // the obvious, globally relevant stuff
  javacOptions in (Compile) += Opts.compile.deprecation,  // all stuff that are good for Compile config
  javacOptions in (Compile, compile) ++= ...  // additional stuff that are good for Compile config and compile task
  javacOptions in (Compile, doc) ++= ...  // additional stuff that are good for Compile config and doc task
)

Obviously, scalacOptions is not the point of discussion here. The reason I brought them here is because they are very similar settings wise. Further, I might not really need to go this granular in simpler cases.
Overall, I cannot deny that this took me a while to wrap my head around this -- till I realized scalacOptions has more to do with the interface (and thus relates to both compile and doc). With that settled, javacOptions worked out likewise.
A different name for scalacOptions (and javacOptions) might be a way out -- just wondering aloud.


Upgrade dependencies

Round of patch upgrades for 0.15.13.  Blaze is the important one.

👍 if Travis is happy.


Implemented value_from_dict function to support leftout days

When a format without days is specified the widget now can be used directly with a django DateField. By implementing a value_from_dict function it generates a valid datetime string by the format specified.

Hi, I am not maintaining this project -- I merely forked it to keep track of some changes I was making for myself, and the upstream maintainers did not seem active. It might be better to submit your changes to https://github.com/nkunihiko/django-bootstrap3-datetimepicker or https://github.com/RDXT/django-bootstrap3-datetimepicker -- the two projects upstream from mine. Feel free to submit my changes as well, if they are useful to you.


changing textdisplayfactory creates bogus subtitle track with native webm video.

Have you read the FAQ and checked for duplicate open issues?
yes
What version of Shaka Player are you using?

4.8.5
Are you using the demo app or your own custom app?
own website
What browser and OS are you using?
windows 10, chrome
What did you do?
i configured the player with:
.configure('textDisplayFactory', () => new shaka.text.SimpleTextDisplayer(video));
What did you expect to happen?
that i can play the subtitles on the native video element (not on the ui).
i want that for consistency, regardless if i play an mpd file or webm, it should use the native video element to display the sub.
What actually happened?
it plays the subtitles on the native video element, but if i load a native webm, it seems to produce an additional bogus track with the name "undetermined". this at least was not the case with version 4.4.3 that i had used at the end of 2023.
i probably could work around it by setting the display factory only when i load an mpd (not tested that yet).
Are you planning send a PR to fix it?
again, maybe the professionals here can do that.

This issue has a priority 4, so no one on the maintainer team will resolve it in the short/middle term.

want so share an finding that i made, when i change the code line to this:
.configure('textDisplayFactory', () => new shaka.text.SimpleTextDisplayer(video,"Shaka Player TextTrack"));
it apparently not creates the bogus track and works as expected (for me at least). maybe it also helps tracking the possible bug down.

It's not a bug. There is no API available to remove a TextTrack from a video element. If you don't want to have this behavior you can use: StubTextDisplayer or UITextDisplayer, neither of these two displayers creates a texttrack. Sorry!

no, i think you not understand what i ment. i just wanted to use the SimpleTextDisplayer instead of the UI Displayer for mpd files. Basically using the native Sub Display of the HTML Video Element. In older Versions that worked without a Problem, but in the newer Version it shows me an extra Track with the Name undetermined in the Video UI. It basically switches to the native HTML Video Element to display the Subtitle (which is what i want), but it leaves some bogus track. I only load one Subtitle but it shows me some bogus track in addition. i will probably create an example html file to show the Problem. give me a day or two.

so i built a html to show the problem better (hopefully).
http://s421666117.online.de/shakatest/
you can see it works great with the mpd file, but as soon as i then load a native webm (click on the button), it shows the track "undetermined" listed in the UI. so if i use simpletextdisplayer its not possible to switch back and forth between an mpd and an
native webm without having the bogus track listed in the ui. is this really intended? in that case you can't really use simpletextdisplayer when one has native and dash files (or one can try to ignore the strange track in the tracklist).
code of the html file: http://s421666117.online.de/shakatest/index.txt


Saving progress?

Does this save process? Or is the idea to run it in the background and never shut it down?

Well, it uses local storage so you can potentially dump it and re-create it somewhere else if you want

For those interested, I was inspired by his book and journey of learning Colemak. So, I forked a version of it here, and added features/improvements:
KeyZen-Colemak-DH
https://ranelpadon.github.io/keyzen-colemak-dh/
Features:

Keyboard layout could be chosen. Colemak DH (angle mod) is the default/recommended.
Keyboard layout images are displayed depending on your layout as a handy reference.
Character sequences are spitted gradually and randomly, starting with the most important ones.
If you commit mistakes, the letters will be reintroduced again to maximize training.
Intensity/rigor could be adjusted.
Speed/accuracy stats are displayed.
Characters could be reset/skipped by clicking on it.
There's a timer to keep track your progress, or for better planning.
Useful for beginners to familiarize the keys.
Useful for experienced users to strengthen their weaknesses (e.g. specific letters, capital letters, punctuation, etc).

More details:
https://github.com/ranelpadon/keyzen-colemak-dh/blob/master/README.md


multiple disk with docker compose

i,m using seaweedFS in docker and using this command to run on docker compose
server -s3 -s3.config=/etc/seaweedfs/s3.config -volume.max=${volumeMax} -master.volumeSizeLimitMB=${volumeSizeLimitMB} -dir="/data"'
how can determine multiple disk that described in production setup in docker compose
thanks a lot

Good question! This is not available now.


add option to merge residential and services heat buses

to reduce the number of variables.

closed by #257


Add ability to include generated code in compilation

This tracker is for issues related to:

Common Front End (CFE) and kernel

description
The flutter tool does the following invocation to compile the AOT app.dill:
/Users/aaclarke/dev/flutter/bin/cache/dart-sdk/bin/dart
  --disable-dart-dev
  /Users/aaclarke/dev/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot
  --sdk-root /Users/aaclarke/dev/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk_product/
  --target=flutter
  --no-print-incremental-dependencies
  -DFLUTTER_WEB_AUTO_DETECT=true
  -Ddart.vm.profile=false
  -Ddart.vm.product=true
  --aot
  --tfa
  --packages /Users/aaclarke/dev/flutter-examples/foo/.dart_tool/package_config.json
  --output-dill /Users/aaclarke/dev/flutter-examples/foo/.dart_tool/flutter_build/e8a7daa1dfd64733ed9757f1817652a6/app.dill
  --depfile /Users/aaclarke/dev/flutter-examples/foo/.dart_tool/flutter_build/e8a7daa1dfd64733ed9757f1817652a6/kernel_snapshot.d
  package:foo/main.dart

When the Flutter team implemented the Dart plugin registrant the Flutter tool started generating Dart code to be compiled at build time.  Flutter developers got the generated code incorporated into the app.dill by replacing the package:foo/main.dart argument with a path to the generated code.  This worked, but messes up the behavior of Dart_RootLibrary so that it broke custom entry points (see https://github.com/flutter/flutter/issues/91841).
proposal
Add the ability to specify additional files that will be compiled into the app.dill via a flag.  For example:
/Users/aaclarke/dev/flutter/bin/cache/dart-sdk/bin/dart
  --output-dill /foo/bar/app.dill
  --aot
  --depfile foo.d
  --include /foo/bar/generated.dart
  package:foo/main.dart

generated.dart will live in the package that is being compiled as if it were at lib/generated.dart.
alternatives considered

Generated the code into the lib/ directory - We don't want to fiddle with users source code, they shouldn't have to see it or maintain it.  We want it to be ephemeral and hidden in the build process.

cc @alexmarkov

@johnniwinther We might need to extend CFE APIs (kernelForProgram or CompilerOptions) to support this use case.

129304e09b61025aa48f64297db4432f62e4f9cd added an option --source to the front-end server.
A few caveats:

Specifying multiple sources requires specifying --packages option (otherwise front-end complains that it cannot infer its location).
The front-end server communication protocol was not changed. That means that compile command in the front-end server protocol still takes a single source as input, but extra sources specified on the command line are included into compilation.

@gaaclarke Please try out the new option when the change rolls into Flutter.

@alexmarkov This works in that it fixes the entrypoint bug we had and I can see the code pointed to by --source is compiled and in the output binary.  However when we try to find that symbol with Dart_GetClass there's an error Class '_PluginRegistrant' not found in library ''. here: https://github.com/flutter/engine/blob/4a3e7a5b72363c1f363d3000d04719c6938d963f/runtime/dart_isolate.cc#L703
I'm only using one --source parameter and it doesn't complain.  It seems like the engine is using the RootLibrary but the code from --source isn't associated with that library?

No, those are different libraries.
If you're not using part files, then library is just a Dart source file. So, if you compile using --source foo.dart bar.dart you will end up with 2 distinct libraries, foo.dart and bar.dart. Main library, returned by Dart_RootLibrary is bar.dart. If you're looking for a class in foo.dart, then you need to find foo.dart library using Dart_LookupLibrary.
So, you probably need to change code in https://github.com/flutter/engine/blob/4a3e7a5b72363c1f363d3000d04719c6938d963f/runtime/dart_isolate.cc#L722-L730
and pass a different library to InvokeDartPluginRegistrantIfAvailable.

FYI I printed out all the loaded libraries and the one compiled with --source has a library associated with file:///Users/aaclarke/temp/test_plugin/example/.dart_tool/flutter_build/generated_main.dart, not associated with the package.
This is fine, I'll just make some code that will look for the presence of this.


Set up a database using the mysql-operator

This needs configuring as follows:
helm install -f examples/minikube/values.yaml \
    --set mysql.enabled=false \
    --set mysql_operator.enabled=true \
    --name=fn-dev-svc-v0-0-161 fn

The credentials will be pulled from the mysql.* value tree; behaviour
is controlled by disabling the mysql chart and using the built-in
operator support instead.
(This chart has mysql-operator as a pre-requisite.)

@jan-g should we close this or is there still reason to add MySQL Operator to the OSS Helm chart?


BranchUniversalObject shortUrl is not working on Chrome app / Firefox app - Android

We use  BranchUniversalObject.shortUrl() to referrer users in our app.  This feature used to work fine in all environments till this week. Right now if we try to open the links with chrome app or Firefox app on Android  we got this error:
The Webpage at market://details?id=my.package.name&referrer=af_tranid%3DvvXBecd3VKjI3Zhw1SkWeg%26pid%3DBranch.io%26c%3DAndroid%26_branch_match_id%3D363034991930648285 might be temporary down or it may have removed permanently to a new web address.
If we choose to open the link with browser app on android, the link works.
It seems to be related to the chrome app or Firefox app compatibility with branch.io links.  It's very high priority because almost all android users set chrome app as default browser
We import your library as suggested, so we don't really:
compile 'io.branch.sdk.android:library:2.+'

Hi @eltonealmeida -- In my experience: clicking a link and selecting Chrome as the app to open it with will not cause error, but pasting Branch links into Chrome's address bar may cause error. If you are able to generate this error by clicking links or following some flow I have not described, this is news to me & please write in to<EMAIL_ADDRESS>so we can take a look.

He @EvangelosG, yes it happens clicking on a link received by e-mail.  I'm writing to you in details on<EMAIL_ADDRESS>

Thanks!!

For others, the issue here equated to the above partner using a third party redirection link as his $android_url in Dashboard -> Link Settings. Additional redirects placed on-top of our links will cause Chrome to fail.


Darknet to pytorch yolo v2

Hello @marvis
I have a trained yolov2 version on darknet. In order to use it on pytorch-yolov2 do I need to execute only the darknet.py? Is there any other advice?
Currently the darknet weights are loaded correctly but no detection is shown at testing with an image.

@DreadPiratePsyopus @marvis :  I am also running into similar issue.  Any advice?  Thanks

@DreadPiratePsyopus @rohith14 Have you solved it? I have the same issue.
@marvis When I try to detect the objects in one image after the first conv the x it's made only of nan.
Thanks


Examples are not working

The examples are not working even when the release is out. Why do we have them? Can we put a note into the readme for people not to use them? Or into the tutorial?

Specially the translation do not work because it does not have bpe correctly activated (we have found out because of Matiss who could not get it work). I didn't check it by myslef

Sorry for the false alarm :), there was problem somewhere else. But if you are reading this did someone actually check the examples?

No one did and after quick reading through them i can see:

the string are not in quotes in the ini files
multiobjective trainining using MultiDecoder is deprecated
FactoredEncoder used in factored.ini is broken (I've seen a fix in the Heidelberg fork)

It will be a lot of work to debug everything, but we can at least warn in the examples README that the examples are outdated.

Maybe we could first fix only the translation ini and mark all the others as deprecated or outdated. The translation example is the only one that could do any real harm in the following days.

I would just deleted them all and rather have nice tutorial where we already have two examples and can redirect into tests. I think that the "examples" folder is redundant and because it do not work, Matiss spent a lot of time on it trying to get it work in last few weeks.

i am wokring on functional examples in a new branch.

Hello,
I'm follwing the sters of the tutorial for machine translation on http://neural-monkey.readthedocs.io/en/latest/machine_translation.html
After executing $ bin/neuralmonkey-run exp-nm-mt/translation.ini exp-nm-mt/translation_run.ini
I receive:
There is no output file for dataset: dataset-exp-nm-mt/data/test/Batch3a_en.txt.gz
Where this 'dataset-exp-nm-mt/...' comes from? I guess it should be 'exp-nm-mt/...'.
Best:
Stoyan

Hi,
the "dataset-" is a prefix that forms the name for the dataset (concatenated with paths of the input series). It's a little unfortunate here because the warning message is a bit confusing..
Anyway, if you don't care about the actual outputs for this dataset, you may ignore this warning. Otherwise, you may want to specify the output series path for the dataset by adding something s_target_out=path/to/file.out to the dataset configuration (where target is the ID of the series generated by the decoder).

Hi,
but actually the model is not even really being evaluated after running $ bin/neuralmonkey-run exp-nm-mt/translation.ini exp-nm-mt/translation_run.ini. I get:
2017-03-....: Evaluating model on "dataset-exp-nm-mt/data/test/Batch3a_en.txt"
2017-03-....: ... series_named_greedy/runtime_xent: 0
2017-03-....: ... series_named_greedy/train_xent: 0     and that is.
Does anybody else made this experience? It's probably something on my setup during training.

Hi, it seems you forgot to specify the target series, so there is nothing you can evaluate the model against.

There is no reference (Czech) series for batch3a, so it cannot be evaluated on that.
The losses (and anything else for that matter) in this case simlpy can't be computed. Try adding the validation dataset to the run script as well, including the target series (batch2a_cs)... It should report BLEU and cross entropy on the dev set.

I didn't notice... :D. Thank you, guys! Now it works.

(closing the examples issue (#357 was merged))


Update manifest.json

Define iot_class as cloud_polling
Proposed change
Add iot_class to manifest.json so that proper icon is displayed on integrations page.

Type of change

[ ] Dependency upgrade
[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (which adds functionality)
[ ] Breaking change (fix/feature causing existing functionality to break)
[ ] Code quality improvements to existing code or addition of tests
[ ] Documentation update
[ ] Adds a new shipper
[ ] Update existing shipper

Additional information

This PR fixes or closes issue: fixes #
This PR is related to issue:

This has already been implemented in the dev branch.
Thank you though.

This has already been implemented in the dev branch.
Thank you though.

Sorry to distract and waste your time!


Resetting the picked files.

Is there a way to reset the files chosen after submitting a form?

Done, good job. I had to make only few linting fixes. I will commit them right away.
Thank you a lot!


Excuse me, will there be any information about books in the future?

Excuse me, will there be any information about books in the future?
Thanks

Books?

Yeah, like at here: https://genshin-impact.fandom.com/wiki/Books

I'll put this on my radar to add in the next few months


Added Basic Pic Of the Day App Widget

Description
Added Basic Pic of the Day App Widget
Fixes
#1296
Also fixed indentation using Android Studio's AutoIndent feature.
Tests performed
Tested on Android 8.0 Oreo on Xiaomi Mi A1.
Screenshots showing what changed (optional)

Hi @maskaravivek the build is failing because I have added an external jar file following this link

Why do you need to convert XML to JSON? You can parse the XML response itself. If you are not comfortable parsing the XML, use the JSON version of the API.

@madhurgupta10 Yes, I checked that the feed you are using always returns an XML response.
I found an alternate API that can be used to get the picture of the day. The results returned by both the APIs match.
https://commons.wikimedia.org/w/api.php?action=query&generator=images&titles=Template:Potd/2018-05-17&prop=imageinfo&iiprop=url|size|user|mime|extmetadata
This will return a JSON response.

@madhurgupta10 Also extract the logic of getting the picture of the day outside of the widget class, so that it can be reused.

@maskaravivek how to parse page numbers from the json api?

The best way would be to take the content inside pages as a Map<String, Page>

If all you need is the first element, do you really need to parse page numbers or even save pages?

Hi, I made the necessary changes but after resolving the merge conflict the build seems to be failing

This is the error @madhurgupta10
Try rebasing your branch with master once.

Codecov Report

Merging #1523 into master will increase coverage by 0.78%.
The diff coverage is 44.6%.

@@            Coverage Diff            @@
##           master   #1523      +/-   ##
=========================================
+ Coverage    3.11%    3.9%   +0.78%
=========================================
  Files         140     147       +7
  Lines        7438    7472      +34
  Branches      715     716       +1
=========================================
+ Hits          232     292      +60
+ Misses       7191    7163      -28
- Partials       15      17       +2

Impacted Files
Coverage Δ

.../free/nrw/commons/di/CommonsApplicationModule.java
52.63% <ø> (-1.92%)
:arrow_down:

...w/commons/category/CategoryImagesListFragment.java
0% <0%> (ø)
:arrow_up:

...a/fr/free/nrw/commons/caching/CacheController.java
0% <0%> (ø)
:arrow_up:

...ain/java/fr/free/nrw/commons/utils/ImageUtils.java
0% <0%> (ø)
:arrow_up:

...e/nrw/commons/category/CategorizationFragment.java
0% <0%> (ø)
:arrow_up:

...ee/nrw/commons/media/MediaDetailPagerFragment.java
0% <0%> (ø)
:arrow_up:

.../fr/free/nrw/commons/widget/PicOfDayAppWidget.java
0% <0%> (ø)

...java/fr/free/nrw/commons/upload/ShareActivity.java
0% <0%> (ø)
:arrow_up:

...in/java/fr/free/nrw/commons/mwapi/model/Query.java
100% <100%> (ø)

...ain/java/fr/free/nrw/commons/mwapi/model/Page.java
100% <100%> (ø)

... and 13 more

Continue to review full report at Codecov.

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

@madhurgupta10 I just pulled your branch. I couldn't figure out how to add the widget. Can you elaborate on the steps.

@maskaravivek

@maskaravivek Hi, if there is any improvement needed, please tell me I will be happy do it 😄

@maskaravivek Thanks for the feedback, I will keep on adding more functionality to the app widget.

@misaochan @neslihanturan This PR is ready to be merged. Can this be merged to master or are we waiting for the release to be completed?

I think we have to wait for release for new features, however we have a separate release branch, so merging to master shouldn't be a problem. Anyway better to wait for @misaochan 's answer:)

I'm good with merging to master, as we have a release branch. :)


Validate model attribute is no longer called since upgraded to dotnet core 2.1

Hello,
In some of my api controllers if put my custom attribute [ValidateModel], it works to send a specific error message when the model is invalid.
Since my upgrade to dotnet core 2.1 the attribute is no longer called and now i have a generic error message like :
{
    "lastname": [
        "The field Name is required"
    ]
}

My custom attribute :
    public class ValidateModelAttribute : ActionFilterAttribute
    {
        public override void OnActionExecuting(ActionExecutingContext context)
        {
            if (!context.ModelState.IsValid)
            {
                // Send my specific error message
            }
        }
    }

Can some one explain me why my attribute is no more working ?

In ASP.NET Core 2.1 controllers, an internal Model Validator is implemented internally thus your custom validator would not work.
You can add the line in the ConfigureServices method of Startup class to suppress the default behavior:
services.Configure<ApiBehaviorOptions>(opts => opts.SuppressModelStateInvalidFilter = true);

Thank you very much


Optimization, Organization, implement mutas

Put all functions in alphabetical order
Reduce a lot of Units calls
Implement Mutalisks to counter flying buildings

Please review it carefully, I changed a lot of it from local tests it seems that its the same in functionality but I might have missed something

i dont like Put all functions in alphabetical order  because that is no good ordering of methods.
it makes more sense to order them by usage e.g. highlevel methods top, and low level methods bottom.

ok, I ll order it by usage


图片放大后 比较模糊 请问如何处理 谢谢

🔙 Regression

Old (and correct) behavior
Current behavior
Reproduction steps
Configuration
Version: 1.x
Platform: :robot: Android 9.x

If you're looking for a zoom image component on Android, take a look at my ZoomImage (https://github.com/panpf/zoomimage) library. It can be used for View and Compose, supports scaling, panning, positioning, rotation, and super-large image subsampling. It also integrates image loaders such as sketch, glide, picasso, coil, etc.
如果你正在寻找 Android 上的变焦图像组件，可以看看我的 ZoomImage (https://github.com/panpf/zoomimage) 库。它可用于 View 和 Compose，支持缩放、平移、定位、旋转、超大图子采样，它还集成了 sketch、glide、picasso、coil 等图像加载器


Adding Button Designs

Hi, I want to add some CSS animated button designs under Hactoberfest 2022.

Hello! I would like to solve this issue can you please assign me this issue?
and also accept it and add a label tag of hactoberfest accepted. please

Hi,  I am good at assigning design to  buttons so could you please assign me this issue.

@Pallavibahekar @Ksj14-kumar @mohakgupt You 3 can start accordingly create a new HTML page for buttons and merge it there

Please assign me this issue. I would like to contribute under Hactoberfest 2022.

I want to work on this issue. Assign to me @Ksj14-kumar


Shell check is very unimpressed

Describe the bug
Shellcheck scanning of kroxylicious finds a multitude of warnings, mostly around posix compliance and quoting to prevent word splitting. However it does also flag
SHELLCHECK_WARNING ([CWE-829](https://cwe.mitre.org/data/definitions/829.html)): [[#def108]](https://cov01.lab.eng.brq2.redhat.com/osh/task/448033/log/kroxylicious-0.5.0.redhat-00016/scan-results-all.html#def108) [important]
kroxylicious-app/src/assembly/run-java.sh:474:8: warning[[SC2091](https://github.com/koalaman/shellcheck/wiki/SC2091)]: Remove surrounding $() to avoid executing output (or use eval if intentional).
#  472|     if [ -n "${JAVA_APP_NAME:-}" ]; then
#  473|       # Not all shells support the 'exec -a newname' syntax..
#  474|->     if $(exec -a test true 2>/dev/null); then
#  475|         echo "-a '${JAVA_APP_NAME}'"

To Reproduce
Run shellcheck on the scripts.
Expected behavior
Ideally a clean run, but certainly no important failures.
YAML files and logs
Attach or copy paste your kroxylicious configuration YAML (with sensitive details
like broker address redacted).
Attach or copy and paste relevant logs.
Additional context
Add any other context about the problem here.

+1 to pushing this check left

https://github.com/marketplace/actions/shellcheck <-- would allow us to automate checks

Resolved with https://github.com/kroxylicious/kroxylicious/pull/996