text:
Remove current GoViral project

All files have been migrated and individuals are represented as members of that associated (retroactively created) project: https://www.openhumans.org/activity/goviral-2014-2016/
Now the custom GoViral code should be removed from the site -- it matched a retired website and no longer works. Hopefully the new GoViral site will be integrated soon as a standard "project".

Completed in commit 77f50af

repo: OpenHumans/open-humans


text:
Improve main page load time

The main page (/) in production seems to have slow load times, with a median around 1.2 to 1.3 seconds.

Tried a couple of different page speed analyzers, and our biggest issue is images.  Image load times seem to range from 1 to 4 seconds.

Also, Google recommends sending js in smaller payloads.

source: gharchive/issue

authors: jhdulaney madprime

license: mit

license_type: permissive

license_source: bigquery


text:
Cannot get Require oauth2_claim to work with a regular expression

I cannot get the "Require oauth2_claim" to work with regular expression matching. I have this in my Apache configuration:
Require oauth2_claim scope~^.*blankout-read.*$

The client is sending this scope "blankout-read". This is what I see in the Apache logs (with a some of the irrelevant text removed to save space):
[Fri Oct 18 20:45:43.428528 2024] [oauth2:debug] src/server/apache.c(399): oauth2_apache_request_header_set: setting request header: OAUTH2_CLAIM_scope=blankout-read
[Fri Oct 18 20:45:43.428536 2024] [oauth2:debug] src/server/apache.c(543): oauth2_apache_set_envvar: set environment variable: OAUTH2_CLAIM_scope=blankout-read
...
Fri Oct 18 20:45:43.428714 2024] [oauth2:debug] src/mod_oauth2.c(211): oauth2_authz_checker: enter
[Fri Oct 18 20:45:43.428740 2024] [oauth2:debug] src/server/apache.c(1024): oauth2_apache_authorize: evaluating claim/expr specification: scope~^.*blankout-read.*$
[Fri Oct 18 20:45:43.428750 2024] [oauth2:debug] src/server/apache.c(927): oauth2_apache_authz_match_claim: evaluating key "sub"
[Fri Oct 18 20:45:43.428757 2024] [oauth2:debug] src/server/apache.c(927): oauth2_apache_authz_match_claim: evaluating key "aud"
[Fri Oct 18 20:45:43.428764 2024] [oauth2:debug] src/server/apache.c(927): oauth2_apache_authz_match_claim: evaluating key "scope"
[Fri Oct 18 20:45:43.428772 2024] [oauth2:debug] src/server/apache.c(927): oauth2_apache_authz_match_claim: evaluating key "iss"
[Fri Oct 18 20:45:43.428779 2024] [oauth2:debug] src/server/apache.c(927): oauth2_apache_authz_match_claim: evaluating key "active"
[Fri Oct 18 20:45:43.428786 2024] [oauth2:debug] src/server/apache.c(927): oauth2_apache_authz_match_claim: evaluating key "token_type"
[Fri Oct 18 20:45:43.428793 2024] [oauth2:debug] src/server/apache.c(927): oauth2_apache_authz_match_claim: evaluating key "exp"
[Fri Oct 18 20:45:43.428800 2024] [oauth2:debug] src/server/apache.c(927): oauth2_apache_authz_match_claim: evaluating key "iat"
[Fri Oct 18 20:45:43.428808 2024] [oauth2:debug] src/server/apache.c(927): oauth2_apache_authz_match_claim: evaluating key "client_id"
[Fri Oct 18 20:45:43.428815 2024] [oauth2:debug] src/server/apache.c(927): oauth2_apache_authz_match_claim: evaluating key "username"
[Fri Oct 18 20:45:43.428828 2024] [oauth2:debug] src/server/apache.c(366): oauth2_apache_return_www_authenticate: enter
[Fri Oct 18 20:45:43.428844 2024] [oauth2:debug] src/server/apache.c(458): oauth2_apache_hdr_out_add: WWW-Authenticate: Bearer error="insufficient_scope", error_description="Different scope(s) or other claims required."

regular expressions are not (yet) supported in liboauth2/mod_oauth2

If that is the case, then maybe https://github.com/OpenIDC/mod_oauth2/wiki#authorization should be edited as it implies they are supported and I spent several hours trying to get them to work.

oops, my bad: it is supported; we'll try to reproduce

you'll probably need to escape the "-" character, something like:
Require oauth2_claim "scope~^.*blankout\-read.*$"

Changed the regex to scope~^.*blankout.read.*$ but still getting this:
[Fri Oct 18 22:57:05.792432 2024] [oauth2:debug] src/server/apache.c(1024): oauth2_apache_authorize: evaluating claim/expr specification: scope~^.*blankout.read.*$
...
[Fri Oct 18 22:57:05.792536 2024] [oauth2:debug] src/server/apache.c(458): oauth2_apache_hdr_out_add: WWW-Authenticate: Bearer error="insufficient_scope", error_description="Different scope(s) or other claims required."

we can't reproduce this at all so you'll need to check the version of liboauth2/mod_oauth2 that you're using and the claim input, it seems you're on a version < 1.5.0
for Require oauth2_claim scope~^.*blankout-read.*$ we get:
apache-1    | [Sat Oct 19 06:43:48.101215 2024] [oauth2:debug] [pid 24:tid 113] src/server/apache.c(1121): [client 172.27.0.7:42960] oauth2_apache_authorize: evaluating claim/expr specification: scope~^.*blankout-read.*$
...
apache-1    | [Sat Oct 19 06:43:48.101232 2024] [oauth2:debug] [pid 24:tid 113] src/server/apache.c(1026): [client 172.27.0.7:42960] oauth2_apache_authz_match_claim: evaluating key "scope"
apache-1    | [Sat Oct 19 06:43:48.101238 2024] [oauth2:debug] [pid 24:tid 113] src/server/apache.c(950): [client 172.27.0.7:42960] oauth2_apache_authz_match_expr: value "blankout-read" matched regex "^.*blankout-read.*$"
apache-1    | [Sat Oct 19 06:43:48.101240 2024] [oauth2:debug] [pid 24:tid 113] src/server/apache.c(1126): [client 172.27.0.7:42960] oauth2_apache_authorize: require claim/expr 'scope~^.*blankout-read.*$' matched
...
apache-1    | [Sat Oct 19 06:43:48.101244 2024] [authz_core:debug] [pid 24:tid 113] mod_authz_core.c(815): [client 172.27.0.7:42960] AH01626: authorization result of Require oauth2_claim scope~^.*blankout-read.*$: granted

for Require oauth2_claim scope~^.*blankout.read.*$ we get:
apache-1    | [Sat Oct 19 06:46:09.368003 2024] [oauth2:debug] [pid 24:tid 126] src/server/apache.c(1121): [client 172.27.0.7:54254] oauth2_apache_authorize: evaluating claim/expr specification: scope~^.*blankout.read.*$
...
apache-1    | [Sat Oct 19 06:46:09.368017 2024] [oauth2:debug] [pid 24:tid 126] src/server/apache.c(1026): [client 172.27.0.7:54254] oauth2_apache_authz_match_claim: evaluating key "scope"
...
apache-1    | [Sat Oct 19 06:46:09.368022 2024] [oauth2:debug] [pid 24:tid 126] src/server/apache.c(950): [client 172.27.0.7:54254] oauth2_apache_authz_match_expr: value "blankout-read" matched regex "^.*blankout.read.*$"
...
apache-1    | [Sat Oct 19 06:46:09.368025 2024] [oauth2:debug] [pid 24:tid 126] src/server/apache.c(1126): [client 172.27.0.7:54254] oauth2_apache_authorize: require claim/expr 'scope~^.*blankout.read.*$' matched
...
apache-1    | [Sat Oct 19 06:46:09.368029 2024] [authz_core:debug] [pid 24:tid 126] mod_authz_core.c(815): [client 172.27.0.7:54254] AH01626: authorization result of Require oauth2_claim scope~^.*blankout.read.*$: granted

and then just to make sure, for Require oauth2_claim scope~^.*blankout#read.*$ we get:
apache-1    | [Sat Oct 19 06:50:11.681338 2024] [oauth2:debug] [pid 24:tid 104] src/server/apache.c(1121): [client 172.27.0.7:41478] oauth2_apache_authorize: evaluating claim/expr specification: scope~^.*blankout#read.*$
...
apache-1    | [Sat Oct 19 06:50:11.681349 2024] [oauth2:debug] [pid 24:tid 104] src/server/apache.c(1026): [client 172.27.0.7:41478] oauth2_apache_authz_match_claim: evaluating key "scope"
apache-1    | [Sat Oct 19 06:50:11.681354 2024] [oauth2:debug] [pid 24:tid 104] src/server/apache.c(956): [client 172.27.0.7:41478] oauth2_apache_authz_match_expr: pcre error (string): string did not match the pattern
...
apache-1    | [Sat Oct 19 06:50:11.681358 2024] [oauth2:debug] [pid 24:tid 104] src/server/apache.c(459): [client 172.27.0.7:41478] oauth2_apache_hdr_out_add: WWW-Authenticate: Bearer error="insufficient_scope", error_description="Different scope(s) or other claims required."

The version of liboauth2 I am using is the one that comes with Debian bookworm. It is version 1.4.5.4. So, it seems that my version is too old to support PCRE matches. I will create a GitHub issue to add a note to the https://github.com/OpenIDC/mod_oauth2/wiki#authorization page communicating the minimum liboauth2 version needed for regex support. Thank you very much for your quick responses.

authors: macrotex zandbelt

license_source: github-api


text:
feat: Adds placements to readme

Description
Adds a link to the placements page in the "Join a team" section of the readme.
Would resolve issue #50 if merged
Affected Dependencies
None
How has this been tested?

Previewed in a GitHub Page

Checklist

[x] I have followed the Contribution Guidelines and Code of Conduct
[x] I have commented my code following the OpenMined Styleguide
[x] I have labeled this PR with the relevant Type labels
[x] My changes are covered by tests

Awesome, thank you!!

source: gharchive/pull-request

repo: OpenMined/OM-Welcome-Package


text:
FEAT: sklearn Pipeline support and examples

Feature Description
DP is valuable in many "traditional" machine learning pipelines, and sklearn is the largest "traditional" ML ecosystem in Python.  Would examples or first-class support for scikit-learn Pipeline workflows be worth contributing?  We (@licensio) would be happy to contribute this via PR.
Is your feature request related to a problem?
The "framework-free" examples could easily be adapted to sklearn workflows, but substantially more concise usage would be possible with proper sklearn.Pipeline support.
What alternatives have you considered?
As discussed above, sklearn users could adapt the framework-agnostic examples.
Additional Context
N/A

Thanks Michael for suggestion! It sounds interesting. We're open to add native support of different APIs (though having an example is a good start). We have on our roadmap to have better integration with the Python ecosystem.
Let's at first understand how it might look like. I'm not familiar with scikit-learn Pipeline workflows (I've just quickly checked its documentation). Could you please explain your ideas for an example of using PipelineDP and scikit-learn Pipeline?

Let me work up a few options.  I think there might be two distinct use cases - one for unsupervised workflows (e.g., clustering) and one for supervised workflows (e.g., regression).
In the meantime, here are a few more references that might be helpful if you are curious:

https://github.com/scikit-learn/scikit-learn/blob/main/sklearn/feature_extraction/text.py#L557
https://github.com/scikit-learn/scikit-learn/blob/main/sklearn/preprocessing/_function_transformer.py#L19
https://scikit-learn.org/stable/modules/preprocessing.html

Hey Michael:
We've had a couple of internal teams think about this. Would you be open to a 30 min chat on this topic?

authors: dvadym miguelagt mjbommar

repo: OpenMined/PipelineDP


text:
Process tensor request

Register Tensor Requests
Description
Save private tensors requests if a user tries to perform get() on a private tensor without using correct credentials.
Type of change
Please mark options that are relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[X] Create a Private Tensor, send it to a remote Grid Node.
[X] Try to retrieve remote private tensor with wrong credentials.
-  It returns GetNotPermittedException to the user.
- Save tensor request (tensor id, credentials, reason) into the tensor owner account.
[X] Try to retrieve remote private tensor with correct credentials.

Checklist:

[X] I did follow the contribution guidelines
[X] New Unit tests added
[X] Unit tests pass locally with my changes

Blocked by : PySyft's Private Tensors Pull Request

repo: OpenMined/PyGrid


text:
Default window size cuts off text

If I turn off follow, I get;

thanks for reporting, can reproduce

migrated to own forge https://todo.open-music-kontrollers.ch/~hp/issues/15

authors: mxmilkiib ventosus


text:
Error with Get Libraries and no useful information

I'm on portal 8.5 with fixpack 9. I can access the webcontenthandler URL by browser and get the following response:

However, when I click the Get Libraries button, I get an error dialog with no information as shown below.

Cody,  can you verify whether you set your custom content handler URL in the server settings under the dashboard's "Settings" tab?

authors: codyburleson mburati

repo: OpenNTF/WebDevToolkitForDx


text:
Consider re-bundling dependencies with thin OSGi metadata

This is similar to https://github.com/OpenNTF/org.openntf.xsp.jakartaee/issues/166 but applies to dependencies that already contain OSGi metadata. Some of those, such as the RESTeasy components, don't include versions on their exported packages, and so it may be best to re-bundle them to do so.

This isn't currently important in practice - I do this whenever there's a reason to re-bundle a dependency, and future cases where it matters can be handled as they arise.


text:
Sunstone doesn't allow adding custom attributes in instantiate network template form

/!\ To report a security issue please follow this procedure:
[https://github.com/OpenNebula/one/wiki/Vulnerability-Management-Process]
Description
The button that adds a custom attribute to the context of a network doesn't work in the network template instantiation form.

To Reproduce

Create a network template, eg:

AR = [
  IP = "192.168.122.1",
  SIZE = "100",
  TYPE = "IP4" ]
BRIDGE = "virbr0"
CLUSTER_IDS = "0"
VN_MAD = "bridge"

Click instantiate button, open the Network Configuration / Context section, and try to add a custom attribute

Expected behavior
The network resulting from instantiating the template must contain these custom attributes.
For example, from the CLI: onevnet show <id>
VIRTUAL NETWORK TEMPLATE
BRIDGE_TYPE="linux"
PHYDEV=""
SECURITY_GROUPS="0"
VN_MAD="bridge"

Details

Affected Component: Sunstone
Hypervisor: [e.g. KVM]
Version: 6.0

Additional context
Add any other context about the problem here.

Progress Status

[ ] Branch created
[ ] Code committed to development branch
[ ] Testing - QA
[ ] Documentation
[ ] Release notes - resolved issues, compatibility, known issues
[ ] Code committed to upstream release/hotfix branches
[ ] Documentation committed to upstream release/hotfix branches

PRs to merge:

one: OpenNebula/one-ee/pull/1072
doc: pending
test: pending

repo: OpenNebula/one


text:
Issue on docs

Path: /overview
Quisiera saber si puedo entrenar un modelo con la interacción del cliente, runcionario_de_soporte, y con las preguntas del cliente y las respuestas del usuario, ir entrenando el modelo personalizado en llama2, por ejemplo?

Hey Binapps. Yes, training a small model on interactions between support staff and customers is possible, but may not always be advisable. If the staff have a wide range of possible answers and need to deal with many unrelated requests, then a small model will have trouble internalizing all the lessons it needs to learn from a large model in order to properly handle incoming requests. However, if the tasks you want your fine-tuned model to do are narrowly scoped, e.g. fulfill account update requests, triage incoming emails, etc, then a fine-tuned model could do just fine. Does that answer your question?

Closing as duplicate of #220

authors: Binapps arcticfly

repo: OpenPipe/OpenPipe


text:
Multiple robot simulation: Switching from simulation to source code view and back to simulation causes the multiple simulation to end

Is your feature request related to a problem? Please describe.

When using the multiple simulation, if the user switches from the multiple simulation to the source code view and then back to the simulation view, the multiple robot simulation ends and only one robot remains.

Describe the solution you'd like

The user should be given an option to end the multiple simulation when switching to the source code view.

Describe alternatives you've considered

The user can be notified that the multiple robot simulation has ended when shifting to the source code view.

Additional context

Same issue raised closed as not a bug,  https://github.com/OpenRoberta/openroberta-lab/issues/787
Multiple simulation window is single focus view to run different programs, When switched to source code view, current program is brought into focus and simulation switches to the current program robot execution.

This one is a feature request, not a bug report. Here it is proposed that the closing of the multiple sim is handled more gracefully, as not to confuse users why the multiple sim is gone afterwards.

authors: Caffetaria boonto sachinsshetty

repo: OpenRoberta/openroberta-lab


text:
Improved the appearance of the graph and fixed code style.

Graph has now better position and edges has color by node form lower row.

Hello @Honny1! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file tests/test_evaluate.py:

Line 159:1: E303 too many blank lines (3)
Line 189:1: E302 expected 2 blank lines, found 1
Line 190:9: E117 over-indented
Line 192:1: E302 expected 2 blank lines, found 1

In the file tests/test_sigmaJs.py:

Line 120:16: E231 missing whitespace after ':'
Line 142:1: E302 expected 2 blank lines, found 1

Great job with the pep8 style changes :) In general  - don't be afraid to do more smaller pull requests. If you feel it's too much overhead, try to automate it a bit.
Right now, you are merging code yourself, but as soon as you will require code review from somebody, you want them to have really easy job. Otherwise you'll wait longer and whole process might get tedious. So it's better to get the habits right from the beginning.

@Honny1 Let's try it the next time! When you will have a new pull request you can request a review. I will be happy to give you a review :smile:

@dahaic  Tahanks, I will start make pull request with smaller count of commits.
@jan-cerny  As you wish. smile

repo: OpenSCAP/OVAL-visualization-as-graph


text:
Reported sub-group sizes for RDNA2 device and Wave64 mode

Bug summary
device::get_info<sycl::info::device::sub_group_sizes> always returns {32} on RDNA devices despite possibly using Wave 64 mode.
Querying the sub-group size, and (at least some of) the sub-group-based functions work correctly.
To Reproduce
#include <iostream>
#include <sycl/sycl.hpp>

void run_kernel(const sycl::device &syclDevice) {
  sycl::queue queue = sycl::queue(syclDevice);
  int *ptr = sycl::malloc_device<int>(1, queue);
  queue.submit([&](sycl::handler &cgh) {
        cgh.parallel_for<class Kernel>(
            sycl::nd_range<1>{1, 1}, [=](sycl::nd_item<1> id) {
              const int idx = id.get_local_linear_id();
              auto sg = id.get_sub_group();
              if (idx == 0) {
                ptr[0] = sg.get_max_local_range()[0];
              }
            });
      }).wait_and_throw();

  int v;
  queue.copy<int>(ptr, &v, 1).wait_and_throw();
  sycl::free(ptr, queue);
  std::cout << "sub_group::get_max_local_range: " << v << std::endl;
}

int main() {
  for (const auto &dev :
       sycl::device::get_devices(sycl::info::device_type::gpu)) {
    std::cout << dev.get_info<sycl::info::device::name>() << std::endl;

    std::cout << "device::sub_group_sizes: ";
    for (auto sg_size : dev.get_info<sycl::info::device::sub_group_sizes>()) {
      std::cout << sg_size << " ";
    }
    std::cout << std::endl;

    try {
      run_kernel(dev);
    } catch (std::exception &) {
      // pass
    }
  }
}

$ syclcc --hipsycl-targets=hip:gfx1034 -O2 rdna2-wave64.cpp -mwavefrontsize64 -o rdna2-wave64 && ./rdna2-wave64
AMD Radeon RX 6400
device::sub_group_sizes: 32
sub_group::get_max_local_range: 64

Expected behavior
info::device::sub_group_sizes returning {64}. Probably.
Things become tricky if we have multiple translation units. E.g., some kernels can be compiled with -mwavefrontsize64, and others without any extra flags (and use Wave32). So, {32, 64} is more correct.
A compile-time warning when mwavefront64 is used will perhaps suffice.
Describe your setup

Ubuntu 22.04, 6.2.1-060201-generic mainline kernel
OpenSYCL b6171ba0acc3dba7a9d574238f24e21f0c8e85db
Clang 15.0.7 from LLVM APT repos
ROCm 5.4.2 from AMD APT repos

Additional context
The current behavior of returning {32} is consistent with how ROCm itself behaves and perfectly describes the most common use case.
I'm filing this issue since, well, the behavior is not strictly correct, but this is a super-niche case, and catering to it will likely make more common usage overly complicated. That's why I think the compile-time warning can be the best solution is this is addressed at all.
Note: teeeeechnically, the spec does not say that info::device::sub_group_sizes should return all supported sub-group sizes (although I believe, it is implied):

Returns a std::vector of size_t containing the set of sub-group sizes supported by the device.

Of course the compiler and runtime information should be compatible with each other :-)
I agree that {32,64} should be returned. The device can execute subgroups both of size 32 and 64 depending on how kernels were compiled, so this is what the runtime should say.

teeeeechnically, the spec does not say that info::device::sub_group_sizes should return all supported sub-group sizes (although I believe, it is implied):

I read it as "all supported sub-group sizes".
The question is how can best fix this. A hot fix would be to just test if AMD GPU has warpSize of 32, and if so, also return 64. But that asserts that all GPUs support wavefront64 mode, which might not be the case in the future.

repo: OpenSYCL/OpenSYCL


text:
remove pypi infrastructure

As we want (if we want) to distribute our package we will use anaconda https://anaconda.org/opensourceeconomics . So we can remove all files that are simply there for PYPI. This is probably the case for setup.py.

No, you still need a minimal setup.py. But you don't use it to handle dependencies of your package.

@peisenha , do we want to enable conda install with this issue, or simply remove unnecessary PYPI infrastructure and resort to installation from source only for now?

Let's just remove for now ...
On Mon, Apr 8, 2019 at 12:12 PM Boryana notifications@github.com wrote:

@peisenha https://github.com/peisenha , do we want to enable conda
install with this issue, or simply remove unnecessary PYPI infrastructure
and resort to installation from source only for now?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/OpenSourceEconomics/soepy/issues/8#issuecomment-480771009,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADcMJ4UEL9E7KamnOU0k5M3HnQZ_jB_Zks5vexX8gaJpZM4bEg-w
.

--
Philipp Eisenhauer
Economist
Mail eisenhauer@policy-lab.org
Web www.eisenhauer.io
Repository https://github.com/peisenha

Then the setup.py probably can't be quite as minimal as in skillmodels, because you will have to specify the dependencies in it. But I'm not sure.

Resolved by #45

authors: boryana-ilieva janosg peisenha

repo: OpenSourceEconomics/soepy

license: MIT


text:
added myself

hey, I am Rohan Kumar this my first time I create a pull request.
and I loved it.
please add my pull.

please review my pull request


text:
[Feature] Playstation/Playstation 2 support.

Have you checked the GP2040-CE documentation HERE to confirm this feature doesn't already exist?
Yes
Which problem is this feature request solving?
Provide support for Playstation/Playstation2 consoles for easy all in one solution.
Describe the solution you would like to see
Because RP2040 has 30 free pins on board, i think it would be neat to add support for PSX/PS2 since controller needs 7 pins. With standard aracade stick/hitbox there would be plenty of pins left to do it.

Someone already made controller emulator on arduino, so it's possible. https://github.com/veroxzik/arduino-psx-controller
Describe alternatives you've considered
An alternative would be designing controller/PCB with place for ardunio board separately and adding diodes to seperate signals between RP2040 and Arduino.
Can you submit a pull request?
No
Are you planning on working on this feature yourself?
I cannot code, sorry.

Hey @Pazureka ,
While I agree it would be neat to have this support we mainly rely on people making these additions and sharing the code with us.
As such I don’t believe we currently have anyone working on this but I am happy to leave the ticket open should anyone come along that can code it.

Hi! hope they add macos dinput like 8bitdo did, because with that mode, you can use openps2loader to use ps3 emulator gamepad to play playstation 2 games. Now don´t work with normal dinput mode.

PS2 input via OPL PADEMU will work with the upcoming 0.7.10 when using either PS3 or PS4 input modes.  PS4 mode will require using the "Remote/Emulation" input option in order to work in PADEMU.
Sometime in the future, we're looking at options to enable true PS1/2 input using the standard controller port.

authors: Pazureka TheTrainGoes gromber mikepparks


text:
problem with largest joint interior rectangle in Cropper class

At first, im trying using the Stitcher class normally like this
`import stitching
from stitching import Stitcher
settings = {"detector": "akaze", "confidence_threshold": 0.2, "warper_type":"plane"}
stitcher = Stitcher(**settings)
stitcher = stitching.Stitcher()
panorama = stitcher.stitch(["image1_60_left.jpg", "image1_60_right.jpg"])`
but then I noticed it took abnormally long time to finish (let them running for like 5 minutes).  When I'm doing similar thing using [stitching_detailed.py by opencv it only took at most 3 sec. I decided to look at the error message and dive into Stitching_Tutorial.ipynb and found out that 'cropper.estimate_largest_interior_rectangle(mask)' is the one who caused it.

As of right now, idk about the thing further from here. And here is the image I use

Which operating system are you on?

You can get the same result as stitching_detailed by setting crop to false

And can you please share the Error Message?

it shouldn't reach import largestinteriorrectangle if crop is set to False. See https://github.com/OpenStitching/stitching/blob/main/stitching/cropper.py#L54. Can you debug and check why it reaches this part of the code?

Any updates on this?

Sorry to keep you waiting, for now I cant give you updates on this.  I guess I could give you updates tomorrow

I moved it into the stitching package so we only have one place for issues

authors: ChanifRusydi lukasalexanderweber

repo: OpenStitching/stitching


text:
Red Team application option is not rendering correctly

See https://apply.opentech.fund/apply/submissions/3671/, where the selected "What services are you seeking support for?" is showing up as a series of bullets rather than a single selected option.

It looks like the category serializer is not working correctly. it isn't returning a question

I think this is because the field label is optional
https://github.com/OpenTechFund/opentech.fund/blob/3187b9d201c88ed495ffb1ecb42336847a1b52d4/opentech/apply/categories/blocks.py#L30-L33
We shoudl be using the values like the normal field
https://github.com/OpenTechFund/opentech.fund/blob/master/opentech/apply/categories/blocks.py#L48
To pass to the serialize method.
https://github.com/OpenTechFund/opentech.fund/blob/3187b9d201c88ed495ffb1ecb42336847a1b52d4/opentech/apply/stream_forms/blocks.py#L54-L59
See also checkboxes, which is returning a string of the value rather than an array:

This needs a prepare_data method which iterates over the array (remember to test this on the submissions detail page.
def prepare_data(self, value, data, serialize=False):
         return [super().prepare_data(value, item, serialize) for item in data]

Thanks for the quick fix!

@danblah Those are just some dev notes. I haven't made the fix yet. Reopening because this still needs fixing.

Apologies, crossed wires on the other hotfix.

authors: danblah todd-dembrey


text:
🛑 Translator - NLLB - Smart'Gic is down

In 5a0e2b7, Translator - NLLB - Smart'Gic (https://translator.smartgic.io/nllb/status) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Translator - NLLB - Smart'Gic is back up in 1bbd5f1 after 9 minutes.

repo: OpenVoiceOS/status


text:
Error

Version
Build/Run method

[ ] Manually built (git clone - npm install - npm run build )

Zwave2Mqtt version: 1.2.3
Openzwave Version: 1.6
ZWave2MQTT error: /home/pi/ZWave2MQTT/node_modules/openzwave-shared/build/Release/openzwave_shared.node: undefined symbol: ZN9OpenZWave7Options6CreateERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_S8

@Ghada-Ch You are running a very old version of z2m, could you try to use latest please?

Sorry,there is a command line to upgrade or I shoud remove it and install again !!???

mkdir Zwave2Mqtt
cd Zwave2Mqtt
download latest version
curl -s https://api.github.com/repos/OpenZWave/Zwave2Mqtt/releases/latest
| grep "browser_download_url.zip"
| cut -d : -f 2,3
| tr -d "
| wget -i -
unzip zwave2mqtt-v.zip
./zwave2mqtt
I run this code but when I exec ./zwave2mqtt
I got this error
./zwave2mqtt: 1: ./zwave2mqtt: ELF: not found
./zwave2mqtt: 2: ./zwave2mqtt: Syntax error: "(" unexpected

Run the command uname -a and tell me the output. The pkg version only works on amd64

Linux raspberrypi 4.19.118+ #1311 Mon Apr 27 14:16:15 BST 2020 armv6l GNU/Linux

Ok that's the problem, go for docker

authors: Ghada-Ch robertsLando


text:
[Bug] Error when using brackets in Gem Text Field

Accidentally hit left square bracket and got an error.

Its a recoverable error but probably makes sense to not allow brackets in that field at all.

This is already fixed in the next update. It actually shouldn't have been allowing brackets there, but they were being allowed owing to a fairly silly error on my part.

authors: Openarl aggixx

repo: Openarl/PathOfBuilding


text:
Add Lines from some books.

Please check my new lines and merge them.

Great
Thanks @nandan-shah

authors: AnirudhPanda nandan-shah

repo: Opentek-Org/bookquotes


text:
Pipette Config: Define Plunger Position Relative to Default

As an OT-2 user, I would like to be able to specify custom plunger positions relative to the value from pipetteModelSpecs.json, rather than as an absolute position.
For example, in the config pipetteModelSpecs.json, plunger positions look like:
"plungerPositions": {
      "top": 19.5,
      "bottom": 0.5,
      "blowOut": -2.5,
      "dropTip": -6
    },

In the user-set pipette config settings, we should not allow users to set new absolute positions, but instead store the offset as a relative position (added to the absolute position from pipetteModelSpecs.json)

@IanLondon @btmorr
can we close this ticket?

Taken care of by #2941

authors: btmorr umbhau

repo: Opentrons/opentrons


text:
bug: USB hubs not detected on OT-2R

Overview
During testing for #9620, I discovered that two modules plugged into an OT-2R via a USB-hub both report:

Hub: null
Port: the port the hub is plugged into

This means that the sort order (and therefore the load order) of two modules plugged into a USB hub on an OT-2R is non-deterministic. This issue is present on edge.
I identified this issue on a DVT OT-2 Refresh unit, which is the only hardware I have easy access to. It's possible this is not a general problem and is specific to DVT units, but all this USB stuff is pretty beyond me, so I figured it was better to be safe than sorry.
Steps to reproduce

Plug two modules into a USB hub, plug that USB hub into an OT-2R
GET /modules
Observe reported USB port results

Current behavior
{
    "modules": [
        {
            "name": "tempdeck",
            "displayName": "tempdeck",
            "moduleModel": "temperatureModuleV1",
            "port": "/dev/ot_module_tempdeck1",
            "usbPort": {
                "hub": null,
                "port": 2
            },
            "serial": "TDV04P20190129B03",
            // ...
        },
        {
            "name": "tempdeck",
            "displayName": "tempdeck",
            "moduleModel": "temperatureModuleV1",
            "port": "/dev/ot_module_tempdeck0",
            "usbPort": {
                "hub": null,
                "port": 2
            },
            // ...
        }
    ]
}

Expected behavior
Modules plugged into a USB hub on an OT-2R should behave the same way as it does with non-refresh OT-2, where both hub and port are populated properly
Additional information
I've got two dumps of find /sys/bus/usb/devices/usb1/ -name dev on an OT-2R that may be helpful:
# two temp decks, one hub, OT-2 R
# both devices report port 2, hub None
# find /sys/bus/usb/devices/usb1/ -name dev
/sys/bus/usb/devices/usb1/dev
/sys/bus/usb/devices/usb1/1-1/1-1.5/dev
/sys/bus/usb/devices/usb1/1-1/1-1.5/1-1.5:1.0/host0/target0:0:0/0:0:0:0/block/sda/dev
/sys/bus/usb/devices/usb1/1-1/1-1.5/1-1.5:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda1/dev
/sys/bus/usb/devices/usb1/1-1/1-1.5/1-1.5:1.0/host0/target0:0:0/0:0:0:0/bsg/0:0:0:0/dev
/sys/bus/usb/devices/usb1/1-1/1-1.3/dev
/sys/bus/usb/devices/usb1/1-1/1-1.3/1-1.3.2/1-1.3.2.2/dev
/sys/bus/usb/devices/usb1/1-1/1-1.3/1-1.3.2/1-1.3.2.2/1-1.3.2.2:1.0/tty/ttyACM0/dev
/sys/bus/usb/devices/usb1/1-1/1-1.3/1-1.3.2/dev
/sys/bus/usb/devices/usb1/1-1/1-1.3/1-1.3.2/1-1.3.2.1/dev
/sys/bus/usb/devices/usb1/1-1/1-1.3/1-1.3.2/1-1.3.2.1/1-1.3.2.1:1.0/tty/ttyACM1/dev
/sys/bus/usb/devices/usb1/1-1/1-1.1/dev
/sys/bus/usb/devices/usb1/1-1/dev
/sys/bus/usb/devices/usb1/1-1/1-1.2/1-1.2:1.0/media0/dev
/sys/bus/usb/devices/usb1/1-1/1-1.2/1-1.2:1.0/video4linux/video1/dev
/sys/bus/usb/devices/usb1/1-1/1-1.2/1-1.2:1.0/video4linux/video0/dev
/sys/bus/usb/devices/usb1/1-1/1-1.2/1-1.2:1.0/input/input0/event0/dev
/sys/bus/usb/devices/usb1/1-1/1-1.2/dev
/sys/bus/usb/devices/usb1/1-1/1-1.2/1-1.2:1.3/sound/card1/pcmC1D0c/dev
/sys/bus/usb/devices/usb1/1-1/1-1.2/1-1.2:1.3/sound/card1/controlC1/dev

# two temp decks
# ACM1 plugged into hub on port 2, ACM0 plugged into port 3
# devices report port 2, hub None and port 3, hub None respectively
# find /sys/bus/usb/devices/usb1/ -name dev
/sys/bus/usb/devices/usb1/dev
/sys/bus/usb/devices/usb1/1-1/1-1.5/dev
/sys/bus/usb/devices/usb1/1-1/1-1.5/1-1.5:1.0/host0/target0:0:0/0:0:0:0/block/sda/dev
/sys/bus/usb/devices/usb1/1-1/1-1.5/1-1.5:1.0/host0/target0:0:0/0:0:0:0/block/sda/sda1/dev
/sys/bus/usb/devices/usb1/1-1/1-1.5/1-1.5:1.0/host0/target0:0:0/0:0:0:0/bsg/0:0:0:0/dev
/sys/bus/usb/devices/usb1/1-1/1-1.3/dev
/sys/bus/usb/devices/usb1/1-1/1-1.3/1-1.3.2/dev
/sys/bus/usb/devices/usb1/1-1/1-1.3/1-1.3.2/1-1.3.2.1/dev
/sys/bus/usb/devices/usb1/1-1/1-1.3/1-1.3.2/1-1.3.2.1/1-1.3.2.1:1.0/tty/ttyACM1/dev
/sys/bus/usb/devices/usb1/1-1/1-1.3/1-1.3.3/dev
/sys/bus/usb/devices/usb1/1-1/1-1.3/1-1.3.3/1-1.3.3:1.0/tty/ttyACM0/dev
/sys/bus/usb/devices/usb1/1-1/1-1.1/dev
/sys/bus/usb/devices/usb1/1-1/dev
/sys/bus/usb/devices/usb1/1-1/1-1.2/1-1.2:1.0/media0/dev
/sys/bus/usb/devices/usb1/1-1/1-1.2/1-1.2:1.0/video4linux/video1/dev
/sys/bus/usb/devices/usb1/1-1/1-1.2/1-1.2:1.0/video4linux/video0/dev
/sys/bus/usb/devices/usb1/1-1/1-1.2/1-1.2:1.0/input/input0/event0/dev
/sys/bus/usb/devices/usb1/1-1/1-1.2/dev
/sys/bus/usb/devices/usb1/1-1/1-1.2/1-1.2:1.3/sound/card1/pcmC1D0c/dev
/sys/bus/usb/devices/usb1/1-1/1-1.2/1-1.2:1.3/sound/card1/controlC1/dev

Assuming this is tracked elsewhere and/or not a priority due to niche use-case


text:
Update Sabio logo url in code_schools.yaml

Feature
Paired Issue
Please note this issue requires simultaneous resolution with https://github.com/OperationCode/operationcode_frontend/issues/690
Why is this feature being added?
We're changing the Sabio logo on the front-end from .jpg to .png. The change will need to be reflected in code_schools.yaml in order to properly render from /code_schools API calls.
What should your feature do?
Change the last 3 characters of this line to .png

I'd love to take this issue and the frontend issue as well!

@shawnlknight - it is yours!  When you submit your pull request, please be sure to mention/remind  that there needs to be coordinated deployment between the front and backends.

authors: hpjaj kylemh shawnlknight


text:
Add Software Guild to Code Schools

name: The Software Guild
url: www.thesoftwareguild.com
logo: sg-logo

full_time: true
hardware_included: false
has_online: true
online_only: false
locations:
va_accepted: true
address1: 252 E Market St
city: Louisville
state: KY
zip: 40202

@ksmacleod99 - Can you please supply a url for the logo.  For example, here is the one for GA:
"https://raw.githubusercontent.com/OperationCode/operationcode_frontend/master/src/images/codeSchoolLogos/general_assembly.jpg"

Not quite sure where to put the image to generate a URL

@kylemh - Can you pls help with the above

@ksmacleod99 - When you have a URL for the logo, can you pls drop a comment in here, and @ mention me?   I'll then add the school's info to prod.

https://raw.githubusercontent.com/OperationCode/operationcode_frontend/master/src/images/codeSchoolLogos/software_guild.jpg
@hpjaj  at long last!

Done!
https://operationcode.org/code_schools


text:
Relocate Gala Call To Action

Feature
Why is this feature being added?

The gala link is kind of hidden due to the background image on the home page.
What should your feature do?
Remove the 'Gala 2017' link from the nav menu.
Add the attached banner under the splash image and above the 'What We Do' section.
Clicking on the banner should take you to /gala.
Be sure to check that it looks ok on mobile!

@rickr Hello! I'm a beginner looking for my first contribution project. I would like to help out with this. I can do it today. May I be assigned this task?

I'd like to take a crack at this if that's ok :) I'm quite new to open source development, but have experience with Rails and React. I think I have everything setup for the frontend (having some issues with the backend setup), but I'll try to submit a pull request for this by the end of the week.

Absolutely - it's all yours! Let me know if you have any questions.
And FYI you shouldn't need the backend for this ticket.

authors: ianroberts131 rickr susybiasdesign


text:
Add helper script to install prometheus exporters on 64-bit Linux machines

Test Results
Tested by using this script to install the mysqld_exporter and viewing the metrics in Grafana
Details
Prerequisite
opsverse-agent already running on my Ubuntu machine - configured to send metrics to my dev ObserveNow instance
Steps
(1) Ran a test version of mysql on my ubuntu machine:
$ docker run --name some-mysql -p 3306:3306-e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql

(2) Used this script to intall mysqld_exporter:
$ sudo ./install-exporter-amd64.sh -e mysqld

(3) Verified metrics in Grafana

Notes

As we add new exporters, we implement the following 4 functions:

  download_<EXPORTER>_exporter
  set_<EXPORTER>_exporter_custom_confs
  set_<EXPORTER>_exporter_systemd
  set_<EXPORTER>_exporter_scrape_target

No need for user to add target (we write new target to the targets/ dir for agent to auto-scrape)
If user needs to update mysql connection info, they can edit /etc/opsverse/exporters/mysqld/.my.cnf and restart the service

Can we include opsverse somewhere in the name of the script? Example - opsverse-install-exporter-amd64.sh
Otherwise, looks great!

@arul-opsverse Just FYI, the docs page will have the following line for users to reference for install:
curl https://raw.githubusercontent.com/OpsVerseIO/installers/main/prometheus-exporters/install-exporter-amd64.sh | sudo bash -s -- -e mysqld

It'll be referencing OpsVerseIO org in command. Let me know if preference is also to include opsverse in base name?

repo: OpsVerseIO/installers


text:
Derive Debug for subdivided

This adds Debug to Subdivided and should hopefully not break anything. I have a specific use of this in a derived table structure where at each vertex I store data, T that may be a float or another icosphere. If both types implement Debug it's trivial to print information from a common function.

Hmmm, this is a much more difficult PR to address. Lots of the fields in Subdivided aren't really meant to be exposed to the public eye, and are basically just book keeping structures... I'll take a closer look at this later tonight or when I get home, but I would strongly suggest just writing a specialized printing machinery for your use. This isn't the intended usage of the library

Hmmm, this is a much more difficult PR to address. Lots of the fields in Subdivided aren't really meant to be exposed to the public eye, and are basically just book keeping structures... I'll take a closer look at this later tonight or tomorrow, but I would strongly suggest just writing a specialized printing machinery for your use. This isn't the intended usage of the library

I use it mostly during development and can of course handle printing in other ways if needed, so no big issue. I think most other objects in the library implement Debug and Subdivided sticks out so to say.

I think most other objects in the library implement Debug and Subdivided sticks out so to say.

Yeah that's a leftover from development, when I wanted to print things to debug them.

I've been giving this some thought over the past two days, and unfortunately, there's not really a good way to print a Subdivded. There are three major components to a Subdivded according to the user:

The raw points as Vec3As.
The raw user data.
The indices that make up the triangles for a mesh.
However to the library, there are more nuanced details:
The edges shared by the triangles in the original source polyhedron (the shared_edges field).
The contents of the triangles in the original source polyhedron (the triangles field).
The source shape (the shape field).
Exposing these nuanced details to the user wouldn't likely provide any useful information to the user, as they're essentially implementation details about the algorithm used under the hood. Additionally, there are a few more caveats:
There is no indices field in the struct -- that's because they need to be generated from the triangle contents. Hence this means that Debug causes an allocation which isn't great.
Triangle is a recursive structure which is very implementation-detail-y, and would honestly just be gobbledygook to someone who isn't very familiar with the algorithm (and afaik, I am the only one who is as I wrote out the algorithm four years ago on a notebook and it's been mainly sitting in my head since).
The most common usage of raw_data is to just store (). Hence printing out raw_data wouldn't even be useful to most people!

For these reasons, I believe that implementing Debug on subdivided isn't a great idea, and would recommend you just newtype with application-specific behaviour. If you're actually interested in how the algorithm works (it's not particularly complicated, just annoying to picture/come up with), the feel free to ask me and/or fork the crate to make fields pub and add Debug as it is in this PR.
Hence, I will be closing this PR. I apologize for the inconvenience.

Thanks for the explanation - I agree. Btw. I found this book on the topic very helpful and genrerally fun to read: https://dividedspheres.com

I'm pretty happy with the current results of hexasphere, but I might give it a read 🙂

Yes, me too :-) I'm hoping to publish what we're working on, and will of course reference Hexasphere. You could also consider adding a citation file to the repo and/or connect it to zenodo.org.

You could also consider adding a citation file to the repo and/or connect it to zenodo.org.

Done!

authors: OptimisticPeach mlund

repo: OptimisticPeach/hexasphere


text:
CSS compilation issue when $enable-rounded: true

Prerequisites

[X] I have searched for duplicate or closed issues
[X] I have validated any HTML to avoid common problems
[X] I have read the contributing guidelines

Describe the issue
When $enable-rounded is set to true, CSS compilation fails:
     ╷
1875 │ $carousel-indicator-active-radius:      0 100% 100% 0 / 50% !default;
     │                                         ^^^^^^^^^^^^^^^^^^^
     ╵
    scss/_variables.scss 1875:41           valid-radius()
    scss/mixins/_border-radius.scss 20:20  border-radius()
    scss/_carousel.scss 277:9              @import
    scss/boosted.scss 41:9                 root stylesheet

Error: 0%^-1 isn't a valid CSS value.
   ╷
20 │     border-radius: valid-radius($radius);
   │                    ^^^^^^^^^^^^^^^^^^^^^
   ╵
  scss/mixins/_border-radius.scss 20:20  root stylesheet
ERROR: "css-compile" exited with 65.

Reduced test cases

Locally, set $enable-rounded: true !default in _variables.scss
Run npm run css

What operating system(s) are you seeing the problem on?
Linux
What browser(s) are you seeing the problem on?
N/A
What version of Boosted are you using?
main branch

Note: I didn't merged https://github.com/twbs/bootstrap/commit/ebbed79df7bb4735894f31bc558377a531c93710 from Bootstrap. Try to do so after this issue is merged (maybe there won't be anything to do).

Tried something in https://github.com/Orange-OpenSource/Orange-Boosted-Bootstrap/pull/1600 but that doesn't work with GitHub actions.


text:
Externalized remote config in git as an alternative to embedded configuration

When changes are made to the configuration, the service broker needs to be re-pushed. Versionning need to be performed by service owners (e.g. versionning the cloudfoundry manifest.yml file).
This builds ontop of #9
Externalizing the configuration in remote config server might be an attractive alternative which enables to manage properties with more flexibility:

have versionning builtin through git
have distinct files
support hot reloading

http://cloud.spring.io/spring-cloud-static/spring-cloud.html#_spring_cloud_config_server
Initially, a git repo backend would be adopted (possibly over https, and using encryption).
In a second step, other backends could be considered such as hashicorp vault
The deployment process would then become:
# Edit the application-myprovider-team-name.yml into git (into a hiearchical format drafted into #9 ) with credentials
# git commit & git push

# Download the binary release of this broker
$ curl -O -L https://github.com/Orange-OpenSource/static-creds-broker/releases/download/v1.0/static-creds-broker-1.0.war

# Configure the broker through environment variables to point to the git repo, possibly captured in a manifest
$ curl -O -L https://raw.githubusercontent.com/Orange-OpenSource/static-creds-broker/master/manifest.yml

$ vi manifest.yml
---
applications:
- name: my-broker
  memory: 256M
  instances: 1
  host: mybroker
  domain: my-admin-domain.cf.io
  path: static-creds-broker-1.0.war

  env:
    spring_cloud_config_uri: https://user:secret@mygit.mycompany.com/myrepo.git
    # Choose an alternative file in the git repo
    spring.cloud.config.application: myprovider-team-name
     # The "label" is useful for rolling back to previous versions of configuration; with the default  Config Server implementation it can be a git label, branch name or commit id.
    spring.cloud.config.label: master

# deploy the broker
$ cf push

If an update to the git configuration is made, a hot refresh may be performed through the refresh http endpoint
$ curl https://user:MySecurePwd@mybroker.my-admin-domain.cf.io/refresh

# $ cf update-service-broker SERVICE_BROKER USERNAME PASSWORD URL
cf update-service-broker mybrokername user MySecurePwd https://mybroker.my-admin-domain.cf.io/

#Notify consummers apps that they need to rebind and restage (pending improvement through notifications service for this)

In terms of implementation, as a 1st step the config server would be embedded within the static broker app:
If you want to read the configuration for an application directly from the backend repository
(instead of from the config server) that’s basically an embedded config server with no endpoints.
You can switch off the endpoints entirely if you don’t use the @EnableConfigServer annotation
(just set spring.cloud.config.server.bootstrap=true).

Hi @gberche-orange ,
Will this be the default way to get config ?
Cheers

@s-bortolussi We're likely to need to still support flat environment variables as the default mechanism, primarily because it has no dependency on the availability of a reacheable secured remote git repo to hold credentials.

Missing documentation on how to enable remote git config. Need an intro description that points to https://github.com/Orange-OpenSource/static-creds-broker/blob/master/manifest.tmpl.remote-config.yml

readme updated

authors: gberche gberche-orange s-bortolussi

repo: Orange-OpenSource/static-creds-broker


text:
Server not started when trying to trigger calculation

When I try to evaluate an expression by shorcut e.g. Ctrl+Shift+Alt+N, VS Code will pop a Activating the server... Please retry for a moment., but eventually it is not activated. Not sure if this Violation is related, which only shows up during such unsuccessful attempts:
[Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider
marking event handler as 'passive' to make the page more responsive. See
https://www.chromestatus.com/feature/5745543795965952

However, I can manually start the server by entering the extension path and python server.py.
Version: 1.6.0
VS Code: 1.85.0-insider
OS: Debian 6.5.10-1 x86_64 GNU/Linux

When I try to evaluate an expression by shorcut e.g. Ctrl+Shift+Alt+N, VS Code will pop a Activating the server... Please retry for a moment., but eventually it is not activated. Not sure if this Violation is related, which only shows up during such unsuccessful attempts:
[Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider
marking event handler as 'passive' to make the page more responsive. See
https://www.chromestatus.com/feature/5745543795965952

However, I can manually start the server by entering the extension path and python server.py.
Version: 1.6.0 VS Code: 1.85.0-insider OS: Debian 6.5.10-1 x86_64 GNU/Linux

hello,i encountered the same problem and tried for many times with no success, have you finished it?

I appear to be having the same issue, have either of you found a solution?

There is a work around. Start the server manually, similarly to the following:
Using Windows:
C:\Users\charl.vscode\extensions\orangex4.latex-sympy-calculator-1.6.0>python server.py
This allows the calculator to work.

authors: CharlesKnell DonnJohnson YuruiHong xiaoxiaoli666


text:
better enum support and optional parameters

Updated enum parse and added it for method arguments too.
Also added support for optional method parameters in commandline

ye there is a tryparse, I couldn't get it to work with that since u need a generic T to cast, which i am not sure how to get from a type if possible.
eg.
T val;
return (T)Enum.TryParse(value, true, out val);

repo: OrchardCMS/Brochard


text:
Culture Picker widget not showing in list since version 1.9

There is an issue with the built-in Culture Picker Module. The issue can be replicated by following thee steps:

Install brand new instance of Orchard 1.9.x
Run the default setup recipe.
Enable the Localization module and the Culture Picker feature.
extra info: The culture picker for the admin screens does work.
Confirm the Page content type has the Localization part.
Enabled secondary language language in Settings (tried with multiple languages).
Set the culture to en-US for the default home page and publish.
Add a test translation of the home page and publish.
Go to Widgets. Click Add in the Content section. There is no option for the Culture Picker widget.

There are no errors in the error logs.
As you can see it is an issue that has been happening for a while now:
https://orchard.codeplex.com/discussions/644204
Anyone with suggestions how to fix this, without going to source and debugging?

I have the same problem.

I think currently Orchard has no builtin culture picker.

Culture Picker is a shape, you need to create a Shape Widget for it, and it will work in the front end.

I did the following steps:
Install and setup new instance of Orchard 1.9.2
Enable the Localization module and the Culture Picker feature.
Enable secondary language in Settings.
Go to Widgets. Click Add in the Content section. There is no option for the Culture Picker widget.
I placed @Display.FrontEndCultureSelector() in my theme. it renders a link that does not switch culture correctly.

Any fix for this problem? I don't have the CulturePicker widget on 1.9.2. Followed almost the same steps as everyone else having the problem.

dear @Jetski5822 could you explain more ...

Don't remember details but my comments on this ticket on the orchardpros.net site may help.
Best

Finally, I could manage to show culture selector on the website using this module: http://gallery.orchardproject.net/Packages/Orchard.Module.Orchard.CultureSwitcher
After making sure that the module migrations took place on the database (by deleting Orchard.Web\App_Data\Sites\Default\mapping.bin). Excluding the module from the Orchard.Web project ( because it did some duplicates....)
Build & run
Thanks to valentin.gushan
Cheers....

In 1.10 after adding jetbrains.annotations to the project, it appears but it doesn't works.
After following the trace, I've seen that if I dont change the language it gets called only once, but if you chage the langauage it gets called twice. I am loosing my mind with this

authors: Jetski5822 armanforghani gabboman glidingmonster jtkech ramiassi vlatkost

repo: OrchardCMS/Orchard


text:
InputField value is always null after setting it and building it's editor

It's a DefaultValue bug in all field drivers.

@sebastienros we have the fix for this, which branch shall I target with a PR?

1.10.x., I will merge it  in 1.10.2
How do you want to fix it?

@sebastienros here's the PR!

authors: BenedekFarkas alberthajdu sebastienros


text:
ReferenceError: System is not defined on loading lazy

hi
i have a problem in bundle angular 2 project with lazy loaded module using gulp
and the error is this
Error: Uncaught (in promise): ReferenceError: System is not defined
ReferenceError: System is not defined
at t.loadAndCompile (bundle.js:32)
at t.load (bundle.js:32)
at t.loadModuleFactory (bundle.js:18)
at t.load (bundle.js:18)
at e.project (bundle.js:18)
at e._tryNext (bundle.js:24)
at e._next (bundle.js:24)
at e.next (bundle.js:29)
at e._subscribe (bundle.js:26)
at e.t.subscribe (bundle.js:29)
at t._subscribe (bundle.js:29)
at t.call (bundle.js:24)
at t.subscribe (bundle.js:29)
at t._subscribe (bundle.js:29)
at t.call (bundle.js:24)
at t.loadAndCompile (bundle.js:32)
at t.load (bundle.js:32)
at t.loadModuleFactory (bundle.js:18)
at t.load (bundle.js:18)
at e.project (bundle.js:18)
at e._tryNext (bundle.js:24)
at e._next (bundle.js:24)
at e.next (bundle.js:29)
at e._subscribe (bundle.js:26)
at e.t.subscribe (bundle.js:29)
at t._subscribe (bundle.js:29)
at t.call (bundle.js:24)
at t.subscribe (bundle.js:29)
at t._subscribe (bundle.js:29)
at t.call (bundle.js:24)
at resolvePromise (shims.js:486) [angular]
at resolvePromise (shims.js:471) [angular]
at :702/app/js/shims.js:520:17 [angular]
at Object.onInvokeTask (bundle.js:31) [angular]
at ZoneDelegate.invokeTask (shims.js:274) [angular]
at Zone.runTask (shims.js:151) [ => angular]
at drainMicroTaskQueue (shims.js:418) []
at HTMLAnchorElement.ZoneTask.invoke (shims.js:349) []
how could i solve this problem ?

How is that related to Orchard?

my mistake


text:
Added support for snippet manifests

This fixes #6672
The basic idea is that instead of declaring the fields within the snippet template itself, they are declared in a separate file next to the snippet.
This solves some peculiar side-effects, such as the issue described in #6672, and it is a cleaner implementation.
In addition, having a separate manifest allows us to add more information about a snippet, such as a friendly name, description and toolbox icon for example.
This PR retains full backwards compatibility with the way parameterized snippets currently work. Only when you add a .Params.txt manifest file will the snippet element harvester look into it and use that file instead of invoking the HTML helpers within the snippet itself to discover the snippet fields.
I also added a Module.md file as a proposal for allowing module developers to provide documentation alongside their module. We could potentially display these markdown files within the admin somewhere, or even generate online documentation for all modules at some point.

I don't dislike the idea of Module.md but it looks out of scope for this PR. Doing it only for a project is almost useless as people won't follow continue it. If this is something we want to push it should be at least in the codegen templates. And if there is no actual usage in the admin then it will die by itself. I would favor a new entry in the documentation instead, even a placeholder in the RDT site from @agriffard.

I like the idea of having a separate file triggering the new behavior, keeping the current one otherwise.

Makes sense regarding Module.md, and it is indeed out of scope. I removed it for now., but will update the documentation separately.

Agree with Module.md being nice but out of scope for this.
Since we intend to do more with the snippet manifest for 1.11 that just parameter declaration (like snippet display name, description and toolbox icon) I think we should avoid naming the manifest something with "Params".
Instead I suggest:

SomeSnippet.Info.txt
SomeSnippet.Manifest.txt
or even better, simply SomeSnippet.txt

Other than that, this is great! I especially love the inclusion of a YAML parser. For 1.11 we should also change the extension harvesters to use this rather than doing their own parsing.

I like Daniel's suggestion of simply naming the manifest SomeSnippet.txt.

authors: DanielStolt sebastienros sfmskywalker


text:
PricePart default currency

I've implemented a few small changes for the PricePart.

Fixed a NullReferenceException when creating a new content item that contains a PricePart.
Added SEK (Swedish krona) currency. Thinking about making an editor for maintaining currency data.
Added a settings page with option to configure default currency.

I'm interested in participating in the development of the OrchardCore.Commerce module.

If you could also squash out those gitignore changes, to keep history clean, that would be great. Thanks!

Great thanks. Unless you're going to do it yourself, I'll squash some of those before I merge.

Hi, I don't know how to do the squash. I'll learn that for future commits. Can you do it for this change? Thanks

Sure, no problem. I'll do it, that's perfectly fine. FWIW, the way you do it is that you do an interactive rebase, something like git rebase -i HEAD~7 where 7 should be replaced with how many changes you want to act on. Then you get a text editor with the list of changes, and on each line you can replace the operation according to the comment that got inserted in there, to squash changes with the ones above (I used 'f' the most, personally). Once you're satisfied with the result, and you have a clean change list, you do a push of the branch with the --force-with-lease option. That last one is what rewrites history on the github side.

authors: bleroy microposmp


text:
No sound in game after 15-20 minute play

[12:29:59] [Thread-34/ERROR]: Error in class 'CodecJOrbis'
[12:29:59] [Thread-34/ERROR]: Unable to acquire inputstream in method 'initialize'.
[12:29:59] [Thread-34/WARN]: ERROR MESSAGE:
[12:29:59] [Thread-34/INFO]: minecraft:sounds/random.anvil_use.ogg
[12:29:59] [Thread-34/WARN]: STACK TRACE:
[12:29:59] [Thread-34/INFO]: net.minecraft.client.resources.FallbackResourceManager.func_110536_a(FallbackResourceManager.java:68)
[12:29:59] [Thread-34/INFO]: net.minecraft.client.resources.SimpleReloadableResourceManager.func_110536_a(SimpleReloadableResourceManager.java:65)
[12:29:59] [Thread-34/INFO]: net.minecraft.client.audio.SoundManager$2$1.getInputStream(SoundManager.java:496)
[12:29:59] [Thread-34/INFO]: paulscode.sound.codecs.CodecJOrbis.initialize(CodecJOrbis.java:281)
[12:29:59] [Thread-34/INFO]: paulscode.sound.libraries.SourceLWJGLOpenAL.play(SourceLWJGLOpenAL.java:616)
[12:29:59] [Thread-34/INFO]: paulscode.sound.Library.play(Library.java:706)
[12:29:59] [Thread-34/INFO]: paulscode.sound.Library.play(Library.java:675)
[12:29:59] [Thread-34/INFO]: paulscode.sound.SoundSystem.CommandPlay(SoundSystem.java:2076)
[12:29:59] [Thread-34/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2599)
[12:29:59] [Thread-34/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121)
[12:29:59] [Thread-34/ERROR]: Error in class 'SourceLWJGL OpenAL'
[12:29:59] [Thread-34/ERROR]: Audio Format null in method 'play'
[12:29:59] [Thread-34/ERROR]: Error in class 'CodecJOrbis'
[12:29:59] [Thread-34/ERROR]: Unable to acquire inputstream in method 'initialize'.
[12:29:59] [Thread-34/WARN]: ERROR MESSAGE:
[12:29:59] [Thread-34/INFO]: minecraft:sounds/random.anvil_use.ogg
[12:29:59] [Thread-34/WARN]: STACK TRACE:
[12:29:59] [Thread-34/INFO]: net.minecraft.client.resources.FallbackResourceManager.func_110536_a(FallbackResourceManager.java:68)
[12:29:59] [Thread-34/INFO]: net.minecraft.client.resources.SimpleReloadableResourceManager.func_110536_a(SimpleReloadableResourceManager.java:65)
[12:29:59] [Thread-34/INFO]: net.minecraft.client.audio.SoundManager$2$1.getInputStream(SoundManager.java:496)
[12:29:59] [Thread-34/INFO]: paulscode.sound.codecs.CodecJOrbis.initialize(CodecJOrbis.java:281)
[12:29:59] [Thread-34/INFO]: paulscode.sound.libraries.SourceLWJGLOpenAL.play(SourceLWJGLOpenAL.java:616)
[12:29:59] [Thread-34/INFO]: paulscode.sound.Library.play(Library.java:706)
[12:29:59] [Thread-34/INFO]: paulscode.sound.Library.play(Library.java:675)
[12:29:59] [Thread-34/INFO]: paulscode.sound.SoundSystem.CommandPlay(SoundSystem.java:2076)
[12:29:59] [Thread-34/INFO]: paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2599)
[12:29:59] [Thread-34/INFO]: paulscode.sound.CommandThread.run(CommandThread.java:121)
[12:29:59] [Thread-34/ERROR]: Error in class 'SourceLWJGL OpenAL'
[12:29:59] [Thread-34/ERROR]: Audio Format null in method 'play'

Last version of DynamicSurroundings, Minecraft 1.10.2
Without DynSurroundings - no problem

Toward the begging of the log look for a line that looks like:
[21:02:47] [Client thread/INFO] [dsurround/dsurround]: Sound channels: 112 normal, 16 streaming (total avail: 255)
Let me know what it says.

[12:00:51] [Thread-15/INFO] [dsurround]: Checking for newer mod version

[12:00:51] [Client thread/INFO] [dsurround]: Sound channels: 112 normal, 16 streaming (total avail: 255)
[12:00:51] [Thread-15/INFO] [dsurround]: Dynamic Surroundings version [3.1.3BETA] is the same or newer than the current version [3.1.3BETA]

Thats all

Was there a lot of sound activity at the time?

Hmmm, no i started new world and no have machines thats do a lot of sound
Just NPC village, normal level of sounds

Were you using an anvil at the time?

Its the most strange of logs - there is no anvil in loaded chunks
I don't craft it and NPC-village have no anvil too

Yeah, its wierd.  This line has a smell to it:
[12:29:59] [Thread-34/INFO]: minecraft:sounds/random.anvil_use.ogg
That period between 'random' and 'anvil' is suspicious.  I would have expected to see it be a '/'.  I think the period is throwing it off, so when the sound system calls back into the Minecraft resource manager it cannot find that resource and throws an exception.  If this is the case, I have to wonder what is triggering that sound.

@GordonHollow If you could can you block the 'minecraft:block.anvil.use' sound?  Goal is to see if it can get past the 15-20 mins.  You can configure that in the Minecraft GUI by going to the mod options.  Dynamic Surroundings has a button for Block Sounds.  Scroll down that list to find it.

No, it "." there in log - random.anvil_use.ogg - no period "/"
Maybe some mods that add another anvil have this fail in code
But there is no anvil around anyway

I try to block it, if this sound showed in the list of sounds

Looked in the 1.10.2 sounds.json in my config and it looks correct:
  "block.anvil.use": {     "sounds": [       "random/anvil_use"     ],     "subtitle": "subtitles.block.anvil.use"   },
What modpack are you using?

The New Frontier modpack + many mods adding to this modpack by me
I block this sound and playing, need more time to prove that all good

All works good with this blocked sound

Cool.

Not sure of the origin of the problem.  Dynamic Surroundings does not use the Anvil sounds.  Going to keep open to see if there is something I can log if/when something like this happens.

Okay, if something strange with sound happen again, log will be there.

Do you have any resource packs loaded?

Faithfull x32 Modded edition
There is no sounds in this resourcepack, only textures and models

Ok.  Normally if there is a bad sound configuration you would see something like this in the Minecraft log:
[09:31:55] [Client thread/WARN]: Invalid sounds.json java.lang.NullPointerException 	at net.minecraft.client.audio.SoundHandler.func_110549_a(SourceFile:82) [bzw.class:?] 	at net.minecraft.client.resources.SimpleReloadableResourceManager.func_110542_a(SimpleReloadableResourceManager.java:122) [bxi.class:?] 	at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:446) [bcx.class:?] 	at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:351) [bcx.class:?] 	at net.minecraft.client.main.Main.main(SourceFile:124) [Main.class:?] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_111] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_111] 	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_111] 	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] 	at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] [09:31:55] [Client thread/WARN]: File minecraft:sounds/cloth1.ogg does not exist, cannot add it to event inventorypets:cloth1 [09:31:55] [Client thread/WARN]: File minecraft:sounds/wood1.ogg does not exist, cannot add it to event inventorypets:wood1
This is from the New Frontier modpack without any additions.  During startup Minecraft caught two issues and made sure it wouldn't be a problem during operation.  However, it appears that something is sneaking by.  May be one of your add on mods that isn't in the pack by default.

It happen again!
With blocked anvil.use sound
Logs the same as 1st message, nothing new in this log

OK.  In terms of blocking the sound I found a bug in the event handling that will be fixed in the next BETA.  It may be the sound is getting past the blocking logic.  Also, I changed how Dynamic Surroundings interacts with the Minecraft sound engine so if DS is somehow the culprit it may fix it.  I should have this release wrapped up in a couple days.

@GordonHollow Just pushed a 3.2.0.0 version to CurseForge.  Check out that version and let me know if it works any better for you.

DynamicSurroundings-1.10.2-3.2.1.1
All works fine =)

Good to hear.  Going to close the issue.  If you find anything else let me know.  Thanks!

authors: GordonHollow OreCruncher

repo: OreCruncher/DynamicSurroundings


text:
Dependency warnings when setting up dev environment

The following warnings are seen when one sets up the dev environment for the first time:

 dshop % yarn install
yarn install v1.22.10
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning " > eslint-config-standard@16.0.1" has unmet peer dependency "eslint-plugin-import@^2.22.1".
warning "workspace-aggregator-40e56b74-cf3b-4117-bd01-5f757e0ff6a5 > @origin/shop > ckeditor4-react@1.2.0" has incorrect peer dependency "react@^16.0.0".
warning "workspace-aggregator-40e56b74-cf3b-4117-bd01-5f757e0ff6a5 > @origin/shop > ckeditor4-react@1.2.0" has unmet peer dependency "ckeditor4@^4.15.0".
warning "workspace-aggregator-40e56b74-cf3b-4117-bd01-5f757e0ff6a5 > @origin/shop > fbt@0.16.0" has incorrect peer dependency "babel-plugin-fbt@^0.10.x".
warning "workspace-aggregator-40e56b74-cf3b-4117-bd01-5f757e0ff6a5 > @origin/shop > fbt@0.16.0" has incorrect peer dependency "react@0.12.0 - 16.x.x".
warning "workspace-aggregator-40e56b74-cf3b-4117-bd01-5f757e0ff6a5 > @origin/shop > react-select@3.1.0" has incorrect peer dependency "react@^16.8.0".
warning "workspace-aggregator-40e56b74-cf3b-4117-bd01-5f757e0ff6a5 > @origin/shop > react-select@3.1.0" has incorrect peer dependency "react-dom@^16.8.0".
warning "workspace-aggregator-40e56b74-cf3b-4117-bd01-5f757e0ff6a5 > @origin/shop > react-stripe-elements@6.1.2" has incorrect peer dependency "react@^15.5.4 || ^16.0.0-0".
warning "workspace-aggregator-40e56b74-cf3b-4117-bd01-5f757e0ff6a5 > @origin/shop > react-stripe-elements@6.1.2" has incorrect peer dependency "react-dom@^15.5.4 || ^16.0.0-0".
warning "workspace-aggregator-40e56b74-cf3b-4117-bd01-5f757e0ff6a5 > @origin/shop > babel-plugin-fbt-runtime@0.9.12" has incorrect peer dependency "babel-plugin-fbt@^0.14.2".
warning "workspace-aggregator-40e56b74-cf3b-4117-bd01-5f757e0ff6a5 > @origin/shop > bootstrap@4.5.3" has unmet peer dependency "jquery@1.9.1 - 3".
warning "workspace-aggregator-40e56b74-cf3b-4117-bd01-5f757e0ff6a5 > @origin/shop > bootstrap@4.5.3" has unmet peer dependency "popper.js@^1.16.1".
warning "workspace-aggregator-40e56b74-cf3b-4117-bd01-5f757e0ff6a5 > @origin/shop-backend > connect-session-sequelize@7.0.4" has incorrect peer dependency "sequelize@>= 6.1.0".
warning "workspace-aggregator-40e56b74-cf3b-4117-bd01-5f757e0ff6a5 > @origin/shop > react-select > react-input-autosize@2.2.2" has incorrect peer dependency "react@^0.14.9 || ^15.3.0 || ^16.0.0-rc || ^16.0".
warning "workspace-aggregator-40e56b74-cf3b-4117-bd01-5f757e0ff6a5 > @origin/shop > webpack-dev-server > webpack-dev-middleware@3.7.2" has incorrect peer dependency "webpack@^4.0.0".
warning "workspace-aggregator-40e56b74-cf3b-4117-bd01-5f757e0ff6a5 > @origin/shop-backend > ipfs-http-client > native-abort-controller@0.0.3" has unmet peer dependency "abort-controller@*".
warning "workspace-aggregator-40e56b74-cf3b-4117-bd01-5f757e0ff6a5 > @origin/services > ipfs > libp2p-delegated-content-routing@0.7.0" has incorrect peer dependency "ipfs-http-client@^46.0.0".
warning "workspace-aggregator-40e56b74-cf3b-4117-bd01-5f757e0ff6a5 > @origin/services > ipfs > libp2p-delegated-peer-routing@0.7.0" has incorrect peer dependency "ipfs-http-client@^46.0.0".
warning "workspace-aggregator-40e56b74-cf3b-4117-bd01-5f757e0ff6a5 > @origin/shop > react-router-dom > react-router > mini-create-react-context@0.4.0" has incorrect peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0"

Incorrect peer dependencies:
The line react-select@3.1.0" has incorrect peer dependency "react@^16.8.0" suggests that it is possible to resolve the warning by manually installing one of the following react module versions:
16.8.0, 16.8.1, 16.8.2,16.8.3, 16.8.4, 16.8.5, 16.8.6
16.9.0
16.10.0, 16.10.1, 16.10.2
16.11.0
16.12.0
16.13.0, 16.13.1
16.14.0
Relevant command: npm install <package_name>@<version>
yarn install currently only appears to install react version 17.0.0 in accordance with the specification in dshop/shop/package.json despite there being a mention of two versions of react in dshop/yarn.lock:
react@16.10.2:
  version "16.10.2"
  resolved "https://registry.yarnpkg.com/react/-/react-16.10.2.tgz#a5ede5cdd5c536f745173c8da47bda64797a4cf0"
  integrity sha512-MFVIq0DpIhrHFyqLU0S3+4dIcBhhOvBE8bJ/5kHPVOVaGdo0KuiQzpcjCPsf585WvhypqtrMILyoE2th6dT+Lw==
  dependencies:
    loose-envify "^1.1.0"
    object-assign "^4.1.1"
    prop-types "^15.6.2"

react@^17.0.0:
  version "17.0.0"
  resolved "https://registry.yarnpkg.com/react/-/react-17.0.0.tgz#ad96d5fa1a33bb9b06d0cc52672f7992d84aa662"
  integrity sha512-rG9bqS3LMuetoSUKHN8G3fMNuQOePKDThK6+2yXFWtoeTDLVNh/QCaxT+Jr+rNf4lwNXpx+atdn3Aa0oi8/6eQ==
  dependencies:
    loose-envify "^1.1.0"
    object-assign "^4.1.1"

Online reading suggests that developers should evaluate these warnings in the context of their current (development) needs, installing dependencies for packages that the(ir) project rely upon.

repo: OriginProtocol/dshop


text:
Update ENS for buyback

OriginBuyback.eth points to 0x6C5cdfB47150EFc52072cB93Eea1e0F123529748 but should point to 0xD7B28d06365b85933c64E11e639EA0d3bC0e3BaB.

It doesn't seem like many people use these much and it costs a nontrivial amount of gas to setup ENS for every contract. My thinking is to keep them for the main addresses but otherwise just let these expire. I've already removed the ENS names from the OETH version of the docs.
If we really want them, we should setup ENS subdomains instead.

authors: joshfraser micahalcorn

repo: OriginProtocol/origin-dollar


text:
Remove System.Drawing reference from live deployment

Designers shouldn't use attributes, generate descriptions during design time on request.

Based on these:

https://code.msdn.microsoft.com/Windows-Workflow-9e867448
http://stackoverflow.com/questions/15423061/wf4-runtime-attempts-to-load-loosely-coupled-activity-designer
http://blogs.msdn.com/b/tilovell/archive/2011/05/08/iregistermetadata-and-best-practice-associating-workflow-activity-designers.aspx

None of them are working:

When you separate the designers into a separate .Design.dll, there is no way to set icons and descriptions for the toolbox. Only the WF designer uses the IRegisterMetadata interface, the toolbox browses only the .dll where the activity is located.
So, when you use IRegisterMetadata to add design time attributes to activities, you can't separate the ToolboxBitmapAttribute this way, you must add this to the activity, but this way the activity .dll will still have reference on System.Drawing...

Help wanted: maybe somebody knows the solution.


text:
🛑 Jstash is down

In e813819, Jstash (https://jstash.to) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Jstash is back up in 4c11148 after 260 days, 9 hours, 56 minutes.

repo: OsintUK/Up-or-Down


text:
🛑 MPGH is down

In 5e3aaca, MPGH (https://mpgh.net) was down:

HTTP code: 0
Response time: 0 ms

Resolved: MPGH is back up in ee0e187 after 10 hours, 45 minutes.


text:
🛑 CrdClub is down

In 09d20f0, CrdClub (https://crdclub.su) was down:

HTTP code: 503
Response time: 775 ms

Resolved: CrdClub is back up in 5e23f63.


text:
🛑 A11Y.co is down

In a9e249f, A11Y.co (https://a11y.co) was down:

HTTP code: 0
Response time: 0 ms

Resolved: A11Y.co is back up in 0b90f49.

repo: OswaldLabsOpenSource/status


text:
Cambios y arreglos importantes

Cambiada indentacion de dos espacios, a una tabulacion
Codigo arreglado para que compile:

Añadida definicion de algunas funciones
Re-acomodado codigo

Removido codigo innecesario
Mas correcciones de indentacion
Añadidos algunos comentarios

Gracias @PinkDev1
Si lo vas a traducir al español mejor copiar un código por separado para mantener la internacionalidad del código principal.
Esto entonces te funciona con ESP? cual usas?

repo: OttoDIY/OttoDIYESP


text:
Play travis

Добрый день! Сделайте аппрув PR пожалуйста )

Auto-assign not work


text:
[BUG] Correct value of evm call in data

https://evm-testnet.flowscan.io/address/0xA6B4571DAEcFe4Aa5456aD326fbe01BCf93525AC?tab=write_contract

This bug already be solved. No new feedback from Dapps.
Hence, we can close this ticket

repo: Outblock/FRW-iOS


text:
text input placeholder to be there after question's answer received or question sent

Hi
As per demo available here https://deepchat.dev/docs/styles/#generic-example I can see after first question I am not able to get the placeholder back.
Can anybody help me on how to go about it?

Hi @abhinavverma-sf.
I have added a new method to the Deep Chat component called setPlaceholderText. This method is going to be used to dynamically set and change the input placeholder text.
To note, this method will not change the input text if the user has focused the input or has already typed something there as otherwise it would lead to bad UX.
The method type is:
(text: string) => void

The method can be used as follows:
deepChatEl.setPlaceholderText('New text');

This method is currently available in deep-chat-dev and deep-chat-react-dev packages version 9.0.178. These packages behave the same way as the core ones except their names are different. To note, we are preparing for a big release, so some properties are called differently - e.g. request is called connect etc. Nevertheless, all of the old properties should work just fine - but you might get TS/console warnings which you can ignore.
Let me know if this help you.

@OvidijusParsiunas thanks. So it is not available in release 1.4.11 of deep-chat, and would be available next in the big release. Alright

Hi, setPlaceholderText is available in Deep Chat 2.0.0.

authors: OvidijusParsiunas abhinavverma-sf

repo: OvidijusParsiunas/deep-chat


text:
Implement some sounds

This should by reviewed by Loukas for any issues with the sound, before being reviewed by a programmer.
Task card: https://trello.com/c/aGNf6ZTv/993-programming-implement-some-sounds
The buttons in the pause menu and start menu all play a sound when you hover over the button, and when you press the button down. There is also music, which restarts in each scene because the current music is only for the settings menu.

The sounds are on their place and working fine, both in Main and Pause menu.
Minor things to know (no need for a change right now)

Footsteps sound playing when moving the sfx slider bar.
Music volume turning up when pressing the control button in the settings menu.

I wasn't able to reproduce the bug where music volume increases when pressing the control button.


text:
List ITEM_REMOVED event with index of the removed object as param of the eventHandler onSuccess function

List ITEM_REMOVED event with index of the removed object as param of the eventHandler onSuccess function.
the list.remove function receives an index but the ITEM_REMOVED callback is called with the element removed and without the index information

Also, providing a method list.add(item, index) would be interesting


text:
ID Mapping: weird behavior

While responding to a user request, I cut and paste list of 800+ uniprotkb accession in the search box, select
from "uniprotkb-accession" to "patric id" via refseq locus tag. I get no results. However, if I sub select only about  100 search ids, it works fine.
Attached is the file with list of uniprotkb accessions I tried (second column).
Please check why the search returns no results and fix it.
-Maulik
organisms.txt

@aswarren can you look into this or work with one of the new developers to get this fixed in next few days?
I can't respond to the user until it is fixed.

@JacobPorter's fix for this is on prod.  I tested on alpha and it seemed to work on the entire column.  Feel free to test and close if all good.
There may be some other, unrelated issues with that text field, but I didn't pinpoint where things go awry.


text:
Request terms in NCIT for missing drugs

Description
As a developer, I want to map all the drugs for harmonization of the datasets.
No NCIT terms (https://ncit.nci.nih.gov/ncitbrowser/) exist for the following drugs:
CENP-E inhibitor GSK923295A
Published: https://pubmed.ncbi.nlm.nih.gov/21584937/
NSC 750854, a Novel Purine Analog
Published:  https://pubmed.ncbi.nlm.nih.gov/26797892/
NAMPT inhibitor STF-118804
Published: https://www.nature.com/articles/s41375-019-0683-6?proof=t
NSC060043 - unknown mechanism, only mentioned in the following publication:
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5050128/
Acceptance criteria

[x] terms requested in NCIT

Requested terms for everything except NSC060043, as there is no description or publication available at the moment.

repo: PDXFinder/pdxfinder


text:
Create Transformation task for Mutation_marker

As a developer, I want to have a Luigi task that transforms the data/metadata given by providers into a suitable format for the entity Mutation_marker.
Design
Database Schema

Create entry in scripts/init.sql for the creation of the table, pk and fks.
Create entry in etl/workflow/transformer.py with the class TransformModel.
Create entry in etl/jobs/transformation/spark_transformation_job.py
Create job etl/jobs/transformation/mutation_marker_transformer_job.py
Create entry in luigi.cfg
Create entry in etl/workflow/loader.py

Acceptance Criteria

[x] Table model was created according with the designed database schema
[x] The transformation task can be executed and it finishes correctly
[x] Data in the Mutation_marker table is the expected one for the provider(s)

@CsabaHalmagyi done


text:
OTG-Core: Crash when i launch a modpack - ClassNotFoundException: net.minecraft.entity.Entity

latest.log
can you plz help me

Related to https://github.com/PG85/OpenTerrainGenerator/issues/220

Hey @EchoBuster , thanks for teporting this and sorry for the late response. Should be fixed with v8_r2, to be released on the OTG Discord at #openterraingen asap. This should hopefully fix any coremod issues with Sponge.


text:
Document message attribute of after filter

<after duration="" message="">
Also <after> should not be listed as an operator but under "Mechanisms".
https://docs.oc.tc/modules/filters#countdown
https://github.com/PGMDev/PGM/blob/dev/core/src/main/java/tc/oc/pgm/filters/parse/FilterParser.java#L529-L537

Documented in 79425c05cd4779354a33600340f372e7df92fef9

authors: CoWinkKeyDinkInc RuedigerLP

repo: PGMDev/Website


text:
please guide me

Q
A

Bug?
no

New Feature?
no

Version Used
"php-ffmpeg/php-ffmpeg": "^0.9.5",

FFmpeg Version
FFmpeg or AVConv and version

OS
Centos 6.9 x86_x64

please guide me
is code me CodeIgniter
I just want to video watermark

?php
if (!defined("BASEPATH"))
{
exit("No direct script access allowed");
}
ini_set("max_execution_time", 0);
ini_set("memory_limit", "64M");
class videoapi
{
private $CI;
private $error;
private $video_id;
private $path_video = "uploads/videos/";
private $config;
private $vid_ext = array("mp4", "flv", "mpeg", "avi");
public function __construct()
{
$this->CI =& get_instance();
$this->CI->load->model("admin/setting_model");
$this->config               = $this->CI->setting_model->get_custom_settings(array(
"dailymotion_video_download",
"youtube_video_download",
"youtube_video_quality",
"dailymotion_video_quality"
));
$this->curl_follow_location = $this->CI->config->item("curl_follow_location");
$this->video_limit_size     = $this->CI->config->item("video_limit_size");
$this->providers            = $this->CI->config->item("video_down_providers");
}
public function getVideo($url, $provider = NULL)
{
$this->video_id = NULL;
if ($provider != NULL)
{
return $this->$provider($url);
}
if (0 < count($this->providers))
{
foreach ($this->providers as $provider)
{
if (strposa($url, $provider["needle"]))
{
return $this->$provider"value";
}
}
}
$this->error = "The content url you entered did not match any service provider.Make sure the video Url is correct.";
return false;
}
public function dailymotion($url)
{
if ($this->config["dailymotion_video_download"] != 1)
{
$this->error = "Video downloads seem to be closed at Youtube Api.";
return false;
}
if (strpos($url, "dailymotion"))
{
$this->video_id = strtok(basename($url), "_");
}
else
{
if (strpos($url, "dai.ly"))
{
$this->video_id = end(explode("/"));
}
}
if (preg_match("#[A-Za-z0-9]#si", $this->video_id, $matches))
{
$get                 = curlGet("http://www.dailymotion.com/embed/video/" . $this->video_id);
$data["duration"]    = "";
$data["description"] = $data["duration"];
$data["thumbnail"]   = $data["description"];
$data["title"]       = $data["thumbnail"];
switch ($this->config["youtube_video_quality"])
{
case "good":
$target_formats = array(
"stream_h264_hd1080_url",
"stream_h264_hd_url",
"stream_h264_hq_url",
"stream_h264_ld_url",
"stream_h264_url"
);
break;
case "medium":
$target_formats = array(
"stream_h264_hd_url",
"stream_h264_hq_url",
"stream_h264_ld_url",
"stream_h264_hd1080_url",
"stream_h264_url"
);
break;
case "low":
$target_formats = array(
"stream_h264_url",
"stream_h264_ld_url",
"stream_h264_hq_url",
"stream_h264_hd_url",
"stream_h264_hd1080_url"
);
}
$formats = array(
"stream_h264_url",
"stream_h264_ld_url",
"stream_h264_hq_url",
"stream_h264_hd_url",
"stream_h264_hd1080_url"
);
foreach ($formats as $format)
{
if (preg_match("#"" . $format . ""\:"(.?)"#si", $get, $videoSource))
{
$avail_formats[$format] = str_replace("\/", "/", urldecode($videoSource[1]));
}
}
if (!isset($avail_formats))
{
$this->error = "Video source not found.";
return false;
}
$data["duration"]    = "";
$data["description"] = $data["duration"];
$data["thumbnail"]   = $data["description"];
$data["title"]       = $data["thumbnail"];
foreach ($target_formats as $target_format)
{
foreach ($avail_formats as $avail_format_name => $avail_format)
{
if ($target_format == $avail_format_name)
{
$data["videoUrl"] = $avail_format;
}
}
}
if (!isset($data["videoUrl"]))
{
$this->error = "Video source not found.";
return false;
}
if (preg_match("#(.?)<\/title>#si", $get, $videoTitle))
{
$data["title"] = $videoTitle[1];
}
if (preg_match("#thumbnail_url"\:"(.?)"#si", $get, $videoThumbnail))
{
$data["thumbnail"] = str_replace("\/", "/", $videoThumbnail[1]);
}
if (preg_match("#duration":(.?),#si", $get, $videoduration))
{
$data["duration"] = $videoduration[1];
}
return $data;
}
$this->error = "Please enter video Url like http://www.dailymotion.com/video/[videoID]XXX";
return false;
}
public function metacafe($url)
{
$ex = explode("/", $url);
if (!is_numeric($ex[4]))
{
$this->error = "Please enter video Url like http://www.metacafe.com/watch/[videoID]/XXX";
return false;
}
$this->video_id      = $ex[4];
$data["duration"]    = "";
$data["description"] = $data["duration"];
$data["thumbnail"]   = $data["description"];
$data["title"]       = $data["thumbnail"];
$get                 = curlGet("http://www.metacafe.com/embed/" . $this->video_id . "/", true);
if (preg_match("#source src="(.?)"#si", $get, $videoUrl))
{
if (preg_match("#(.?)<\/title>#si", $get, $videoTitle))
{
$data["title"] = $videoTitle[1];
}
if (preg_match("#property="og\:image" content="(.?)"#si", $get, $videoThumbnail))
{
$data["thumbnail"] = $videoThumbnail[1];
}
if (preg_match("#name="description" content="(.?)"#si", $get, $videoDescription))
{
$data["description"] = $videoDescription[1];
}
$data["videoUrl"] = urldecode($videoUrl[1]);
return $data;
}
$this->error = "Video source not found.";
return false;
}
public function facebook($url)
{
if (preg_match("#v=[0-9]+#si", $url, $pattern))
{
$this->video_id = end(explode("=", $pattern[0]));
$get            = curlGet("https://www.facebook.com/video.php?v=" . $this->video_id);
$al             = facebook_encode_replace($get);
$al             = stripslashes($al);
if (preg_match("#"sd_src":"(.*?)"#si", $al, $videoUrl))
{
$data["videoUrl"] = ayir(""sd_src":"", """, $al);
if (($hdvid = @ayir(""hd_src":"", """, $al)) != NULL)
{
$data["videoUrl"] = $hdvid;
}
$data["thumbnail"] = "";
$data["duration"]  = "";
$data["title"]     = @ayir("<title id="pageTitle">", "", $al);
return $data;
}
$this->error = "Video source not found.Make sure the video are trying to retrieve public.";
return false;
}
$this->error = "Please enter video Url like https://www.facebook.com/video.php?v=[videoID]";
return false;
}
private function url_check($video_id)
{
if (!empty($video_id))
{
$my_id = $video_id;
if (11 < strlen($my_id))
{
$url   = parse_url($my_id);
$my_id = NULL;
if (is_array($url) && 0 < count($url) && isset($url["query"]) && !empty($url["query"]))
{
$parts = explode("&", $url["query"]);
if (is_array($parts) && 0 < count($parts))
{
foreach ($parts as $p)
{
$pattern = "/^v\=/";
if (preg_match($pattern, $p))
{
$my_id = preg_replace($pattern, "", $p);
break;
}
}
}
if (!$my_id)
{
$this->$error = "No video id passed in";
return false;
}
}
else
{
$this->error = "Invalid url";
return false;
}
}
$this->video_id = $my_id;
return true;
}
$this->error = "Please enter video Url like http://www.youtube.com/watch?v=[videoID]";
return false;
}
public function youtube($url)
{
if ($this->config["youtube_video_download"] != 1)
{
$this->error = "Video downloads seem to be closed at Youtube Api.";
return false;
}
if ($this->url_check(parse_yturl($url)))
{
if (($ydata = YoutubeGen($this->video_id)) == false)
{
$this->error = "Error could not be identified given the video content.";
return false;
}
switch ($this->config["youtube_video_quality"])
{
case "high":
$target_formats = array(
"137",
"136",
"135",
"134",
"133",
"5",
"160"
);
break;
case "medium":
$target_formats = array(
"134",
"135",
"5",
"38",
"133",
"160",
"136",
"137"
);
break;
case "low":
$target_formats = array(
"133",
"5",
"160",
"136"
);
}
foreach ($target_formats as $target_format)
{
if (isset($ydata["link"][$target_format]))
{
$redirect_url = $ydata["link"][$target_format][0];
}
}
if (isset($redirect_url))
{
$data             = $this->get_youtube_description($this->video_id);
$data["videoUrl"] = $redirect_url;
return $data;
}
$this->error = "Video download link not found.Entered the youtube Url can be private or not allowed access only through YouTube.";
return false;
}
return false;
}
public function vk($q, $page = 1)
{
if (empty($q))
{
$this->error = "Music name is mandotary to fill.";
return false;
}
$settings = $this->CI->setting_model->get_custom_settings(array(
"vk_video_upload",
"vk_client_id",
"vk_secret_key",
"vk_access_token",
"vk_lyrics_support"
));
if ($settings["vk_video_upload"] == 1)
{
$this->CI->load->library("vk", array(
"client_id" => $settings["vk_client_id"],
"secret_key" => $settings["vk_secret_key"],
"access_token" => $settings["vk_access_token"]
));
$result = $this->CI->vk->api("audio.search", array(
"v" => "2.0",
"q" => $q,
"count" => 20,
"offset" => ($page + 0) * 20 - 20
));
if (isset($result["error"]))
{
$this->error = $result["error"]["error_msg"];
return false;
}
if (1 < count($result))
{
foreach ($result as $value)
{
if (!is_array($value))
{
continue;
}
$data["embed"][]    = "[VK_AUDIO=" . $value["owner_id"] . "" . $value["aid"] . "]";
$data["duration"][] = floor($value["duration"] / 60) . ":" . (($value["duration"] % 60 < 10 ? "0" : "")) . $value["duration"] % 60;
$data["name"][]     = $value["artist"] . " — " . $value["title"];
if (isset($value["lyrics_id"]) && $settings["vk_lyrics_support"] == 1)
{
$data["lyrics_id"][] = $value["lyrics_id"];
}
else
{
$data["lyrics_id"][] = 0;
}
}
$data["page"] = $page;
return $data;
}
$this->error = "Music not found for your search";
}
else
{
$this->error = "Vk Api seem to be closed so your operation can not be performed.";
}
return false;
}
public function vk_get_lyrics($lyrics_id)
{
$settings = $this->CI->setting_model->get_custom_settings(array(
"vk_client_id",
"vk_secret_key",
"vk_access_token",
"vk_lyrics_support"
));
$this->CI->load->library("vk", array(
"client_id" => $settings["vk_client_id"],
"secret_key" => $settings["vk_secret_key"],
"access_token" => $settings["vk_access_token"]
));
if (!empty($lyrics_id) && $settings["vk_lyrics_support"] == 1)
{
$lyric           = $this->CI->vk->api("audio.getLyrics", array(
"lyrics_id" => $lyrics_id
));
$data["content"] = html_entity_decode(nl2br($lyric["text"]));
}
else
{
$data["content"] = "";
}
return $data;
}
public function download_url_video($url)
{
if ($this->get_size($url) <= $this->video_limit_size)
{
$pathinfo = pathinfo($url);
if (isset($pathinfo["extension"]))
{
$extension = explode("?", $pathinfo["extension"]);
$extension = (stristr($extension[0], "title") ? "mp4" : $extension[0]);
if (!in_array($extension, $this->vid_ext))
{
$extension = "mp4";
}
}
else
{
$extension = "mp4";
}
mt_srand();
$video_name = md5(uniqid(mt_rand())) . "." . $extension;
$ch         = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13");
curl_setopt($ch, CURLOPT_REFERER, "http://www.google.com.tr");
curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, $this->curl_follow_location);
$video    = curl_exec($ch);
$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if (200 <= $httpcode && $httpcode < 300)
{
$file = fopen(FCPATH . $this->path_video . $video_name, "w");
fwrite($file, $video);
fclose($file);
return $video_name;
}
$this->error = "Could not access the source for downloading the video.";
}
else
{
$this->error = "Size of the video you are trying to download is above limits.You can change limits on /application/config/videnox.php ";
}
return false;
}
public function videoThumbDuration($videoPath, $gthumb = true, $gduration = true)
{
$ffmpeg = @trim(@shell_exec("type -P ffmpeg"));
if (!empty($ffmpeg))
{
$data  = false;
$video = FCPATH . $this->path_video . $videoPath;
if ($gthumb)
{
$data["thumbnail"] = "";
mt_srand();
$thumb     = md5(uniqid(mt_rand())) . ".jpg";
$thumbnail = FCPATH . "uploads/thumb/" . $thumb;
shell_exec("ffmpeg -i " . $video . " -deinterlace -an -ss 1 -t 00:00:01 -r 1 -y -vcodec mjpeg -f mjpeg " . $thumbnail . " 2>&1");
if (file_exists($thumbnail))
{
$data["thumbnail"] = $thumb;
}
}
if ($gduration)
{
$data["duration"] = "";
$videoTime        = shell_exec("ffmpeg -i "" . $video . "" 2>&1");
if (preg_match("/Duration: (\d{2}:\d{2}:\d{2}\.\d{2})/", $videoTime, $matches))
{
$time = explode(":", $matches[1]);
list($hour, $minutes) = $time;
$seconds          = round($time[2]);
$data["duration"] = $hour . ":" . $minutes . ":" . $seconds;
}
}
return $data;
}
return array(
"duration" => "",
"thumbnail" => ""
);
}
public function upload_video($ffmpeg = true)
{
$config["upload_path"]   = FCPATH . $this->path_video;
$config["allowed_types"] = "avi|flv|wmv|mp4";
$config["max_size"]      = $this->video_limit_size;
$config["encrypt_name"]  = true;
$this->CI->load->library("upload", $config);
if (!$this->CI->upload->do_upload("qqfile"))
{
$data = array(
"success" => false,
"error" => $this->CI->upload->display_errors("", "")
);
}
else
{
$video    = $this->CI->upload->data();
$response = array(
"thumbnail" => "",
"duration" => ""
);
if ($ffmpeg)
{
$response = $this->videoThumbDuration($video["file_name"]);
}
$data = array(
"success" => true,
"video_url" => $video["file_name"],
"image_url" => $response["thumbnail"],
"duration" => $response["duration"]
);
}
return $data;
}
private function curlGet($URL)
{
$ch      = curl_init();
$timeout = 5;
curl_setopt($ch, CURLOPT_URL, $URL);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
if (curl_exec($ch) === false)
{
$this->error = "Curl error: " . curl_error($ch);
return false;
}
$tmp = curl_exec($ch);
curl_close($ch);
return (empty($tmp) ? false : $tmp);
}
private function get_size($url)
{
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_NOBODY, true);
$data = curl_exec($ch);
$size = curl_getinfo($ch, CURLINFO_CONTENT_LENGTH_DOWNLOAD);
curl_close($ch);
return $size;
}
public function get_youtube_description($video_id)
{
$json = json_decode($this->curlGet("http://gdata.youtube.com/feeds/api/videos/" . $video_id . "?v=2&alt=json"), true);
if (isset($json["entry"]))
{
$data["description"] = $json["entry"]["media$group"]["media$description"]["$t"];
$data["title"]       = $json["entry"]["title"]["$t"];
$data["duration"]    = $json["entry"]["media$group"]["yt$duration"]["seconds"];
$data["thumbnail"]   = str_replace("default", "hqdefault", $json["entry"]["media$group"]["media$thumbnail"][0]["url"]);
return $data;
}
return false;
}
public function get_error()
{
return $this->error;
}
}
?>

https://github.com/PHP-FFMpeg/PHP-FFMpeg
I would like to put this code inside this and use it, please guide

Sorry, but personally, I do not want to support users who just want to copy and paste their code.

I beg you to help me

send nudes, then we are up for debating about spoonfeeding you

authors: Isabaella error-aux jens1o

repo: PHP-FFMpeg/PHP-FFMpeg


text:
Error when adding watermark on Windows

Q
A

Bug?
yes

New Feature?
no

Version Used
Specific tag or commit sha

FFmpeg Version
1.1.0

OS
Windows 11

Actual Behavior
Error when adding watermark.
$video->filters()
                ->watermark($watermark, array(
                    'position' => 'absolute',
                    'x' => 1,
                    'y' => 1,
                ));

The problem is incompatibility of paths with OS Linux
If you write:
$watermark = 'D:\\logo.png';

Gives an error:
[Parsed_movie_0 @ 0000024e12d88cc0] Failed to avformat_open_input 'D'
[AVFilterGraph @ 0000024e1511c040] Error initializing filter 'movie' with args 'D:logo.png'
That doesn't work either:
$watermark = 'logo.png';

Gives an error message:
"FFMpeg\Exception\InvalidArgumentException
File logo.png does not exist"
if (!file_exists($watermarkPath)) {
            throw new InvalidArgumentException(sprintf('File %s does not exist', $watermarkPath));
        }

It only works like this:
$watermark = './logo.png';

I'm having the same issue in Windows 10. And the workaround specifying the relative path is not a solution for me, because I'm using Laravel.

authors: jonatasbaldan youra-h


text:
Reimplement logic of coin capture

Right now for seeing a capture of coin the function iterates over all set coins and checks whether some matches with Mario or not. This is highly ineffective and needs to be changed.

I took a look at the code and I have an idea.
Currently coins are created and put into a list. I want to add an additional layer to this by creating a nested dictionary which uses the coin coordinates as keys and stores the coin index in the resulting nest structure (so something like `{"x coordinate"{"y coordinate" = coin index}}). Then instead of checking every coin the dictionary is referenced to check if a coin exists. If it does the coin list is accessed to update the coin's state.
If this sounds like a viable implementation I'll work on it.

Nice idea and seems viable you may get going with it

Currently debugging. I'm thinking that just using the x and y isn't viable because of a few issues:

Mario's overall coordinates aren't tracked by the board, he's just identified by the board which means checking Mario's coordinates requires more checks then originally intended.
The math required to calculate Mario's size from his seed coordinates will take roughly as much work as the current coin logic implementation.

Right now I'm testing moving the coin logic into the board update logic so it removes the coin at the updated location if Mario passes it using the coin dictionary I implemented.

Nice


text:
attn_mask

I cannot use xformers , so attnention_mode set "math"
get_video() return  dict(video=video, input_ids=input_ids, cond_mask=cond_mask)
but (x, attn_mask, input_ids, cond_mask) in enumerate(train_dataloader) , attn_mask from where?

In the collate_fun of dataloader.

repo: PKU-YuanGroup/Open-Sora-Plan