SEPA countries IBAN

This package did not support SEPA countries IBAN. I want to validate Austria IBAN: AT61 1904 3002 3457 3201  but its return false, not validate. I have to check all SEPA county's IBAN.
Please confirm, is it true or me something doing wrong.
Thanks

I reports it as valid for me. I even tried AT483200000012345864 which is listed in https://www.iban.com/structure as an Austrian IBAN and that is reports as valid too.

Indeed, the lib support IBAN validation for all SEPA countries, and the iban you're testing comes up as valid for me on the demo page. Closing this issue as not reproducible.


docker exec user process caused "permission denied"

hi , just updated my dockerfile  and docker-compose and after Successfully creating the container i get this error on logs command and cant connect to proxy either ...
mtprotoproxy_1  | standard_init_linux.go:207: exec user process caused "permission denied"

Hello, could you please retry with the latest master.

Problem solved using that explicit launch... thanks


SpeechRecognition installed with pip and pip3 but can't import it in either terminal or atom.io

Steps to reproduce

(How do you make the issue happen? Does it happen every time you try it?)
Every time I try to import speech_recogntion in a python file, it can't be imported and I get an error.

(Make sure to go into as much detail as needed to reproduce the issue. Posting your code here can help us resolve the problem much faster!)
I wrote a one-line file with simple command
import speech-recognition and it gives me the following error:
import speech_recognition as sr
ImportError: No module named speech_recognition
I have this module installed using both pip and pip3 and it appears in
their list of installed modules but I can't seem to get it to be imported when i try executing a script either from the terminal or in atom.io. I am not sure why this is, I would really appreciate any help in this regard

(If there are any files, like audio recordings, don't forget to include them.)

Expected behaviour
(What did you expect to happen?)
Actual behaviour  for the module to be imported properly without any error
(What happened instead? How is it different from what you expected?)
(If the library threw an exception, paste the full stack trace here)

System information
(Delete all the statements that don't apply.)
My system is <Ubuntu 16.04 LTS >
My Python version is <Python 2.7.12>.
My Pip version is <pip 9.0.1>.
My SpeechRecognition library version is <SpeechRecognition (3.6.5)

.

My PyAudio library version is 0.2.8

You must have multiple versions like anaconda also installed which overrides the running instances but the module is installed in the pip versions. Also if you are using pycharm : you can configure your idle through File --> settings --> Project intrepreter --> choose the intrepreter for the project. The problem is that there are multiple pip's of 2 and 3
Like Anaconda pip itself, and then python pip2 and python pip3
while the pip is the main thing that It might be possibility that anaconda is being overriden on all pips so for that  use
"CONDA INSTALL Speech_recognition" and then try

I actually don't have anaconda installed on my system. I had it in the past and i removed it from my system and the scripts I am trying to execute now had worked in the past after I had removed the anaconda package which is why I am not sure why they stopped working now

Check the default environment settings, there must be a missing environment of python there.
and which python version are you using ?

I am just getting started with the whole python environment thing so please excuse me asking such simple questions, but how would i check the default environment settings, or a missing python environment?

When i input this command into the terminal
readlink -f $(which python)
it gives me
/usr/bin/python2.7
Is this what you were asking for about the version of python

Hi @sanster9292,
Can you post the following outputs?

which pip and which python.
The full output of pip install --upgrade speechrecognition.
python -c 'import sys; print(sys.path)'.

We can probably figure out what the problem is from these outputs.

Hey guys thanks a lot for helping me out. Here are the requested outputs
which pip : /home/sanwal092/anaconda3/bin/pip
which python: /home/sanwal092/anaconda3/bin/python
pip install --upgrade speechrecognition:
Collecting speechrecognition
Downloading SpeechRecognition-3.8.1-py2.py3-none-any.whl (32.8MB)
100% |████████████████████████████████| 32.8MB 42kB/s
Installing collected packages: speechrecognition
Found existing installation: SpeechRecognition 3.6.1
Uninstalling SpeechRecognition-3.6.1:
Successfully uninstalled SpeechRecognition-3.6.1
Successfully installed speechrecognition-3.8.1
python -c 'import sys; print(sys.path)':
['', '/home/sanwal092/anaconda3/lib/python36.zip', '/home/sanwal092/anaconda3/lib/python3.6', '/home/sanwal092/anaconda3/lib/python3.6/lib-dynload', '/home/sanwal092/anaconda3/lib/python3.6/site-packages']

Hmm, can you check if there's a speech_recognition folder in the /home/sanwal092/anaconda3/lib/python3.6/site-packages folder? I don't use Anaconda myself, so wouldn't be able to offer much advice having to do with its unusual packaging situation.

Strange, that should be the correct directory structure. Can you list the contents of that speech_recognition directory above?

Hey guys thanks so much for your help. Here are the contents of this folder.
flac-linux-x86     flac-mac        init.py  pocketsphinx-data
flac-linux-x86_64  flac-win32.exe  main.py  pycache

just change the default environment settings to the anaconda environment, that works for me.

You must have multiple versions like anaconda also installed which overrides the running instances but the module is installed in the pip versions. Also if you are using pycharm : you can configure your idle through File --> settings --> Project intrepreter --> choose the intrepreter for the project. The problem is that there are multiple pip's of 2 and 3
Like Anaconda pip itself, and then python pip2 and python pip3
while the pip is the main thing that It might be possibility that anaconda is being overriden on all pips so for that use
"CONDA INSTALL Speech_recognition" and then try

bro thanks I was stuck because of this problem but know I resolved it because of you

You must have multiple versions like anaconda also installed which overrides the running instances but the module is installed in the pip versions. Also if you are using pycharm : you can configure your idle through File --> settings --> Project intrepreter --> choose the intrepreter for the project. The problem is that there are multiple pip's of 2 and 3
Like Anaconda pip itself, and then python pip2 and python pip3
while the pip is the main thing that It might be possibility that anaconda is being overriden on all pips so for that use
"CONDA INSTALL Speech_recognition" and then try

bro thanks I was stuck because of this problem but know I resolved it because of you

Cheers mate.

That was quite helpful✌

will uninstalling anaconda work in this case??


Starting bot error

Install By: ./setup.sh -i
Run By: ./run.sh
OS: Ubuntu 14.04.4 LTS
Branch: master
Python Version: Python 2.7.12

I'm having this issue as well.
commit: 7a6a5f09


quarkiverse's LambdaBuildTimeConfig interface conflicts with io.quarkus's LambdaBuildTimeConfig class

Hello,
I'm trying to use quarkus-amazon-lambda from io.quarkiverse .amazonservices to inject AWS lambda client in a service that uses
       <dependency>
            <!-- AWS Lambda Client injection -->
            <groupId>io.quarkiverse.amazonservices</groupId>
            <artifactId>quarkus-amazon-lambda</artifactId>
        </dependency>

        <dependency>
             <!-- My service or some async job lambda -->
            <groupId>io.quarkus</groupId>
            <artifactId>quarkus-amazon-lambda-rest</artifactId> <!-- or just quarkus-lambda -->
       <dependency>

I tried all available versions of quarkus and quarkiverse and theirs combinations. However it doesn't work. You can try with the version combinations mentioned in https://github.com/quarkiverse/quarkus-amazon-services.
As a result my build fails with

[ERROR] Failed to execute goal io.quarkus.platform:quarkus-maven-plugin:3.8.1:build (default) on project inventory-management-rest: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[ERROR]         [error]: Build step io.quarkus.amazon.lambda.deployment.LambdaProcessor#setupClient threw an exception: java.lang.IncompatibleClassChangeError: Found class io.quarkus.amazon.lambda.runtime.LambdaBuildTimeConfig, but interface was expected
[ERROR]         at io.quarkus.amazon.lambda.deployment.LambdaProcessor.setupClient(LambdaProcessor.java:104)
[ERROR]         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR]         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
[ERROR]         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR]         at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[ERROR]         at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:849)
[ERROR]         at io.quarkus.builder.BuildContext.run(BuildContext.java:256)
[ERROR]         at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
[ERROR]         at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2513)
[ERROR]         at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1538)
[ERROR]         at java.base/java.lang.Thread.run(Thread.java:840)
[ERROR]         at org.jboss.threads.JBossThread.run(JBossThread.java:501)
[ERROR] -> [Help 1]

In this commit you added LambdaBuildTimeConfig interface that conflicts with the LambdaBuildTimeConfig class used by io.quarkus. See io quarkus class LambdaBuildTimeConfig
I guess the config interface package or the interface name need to be modified. So far a workaround is to not use quarkiverse and inject clients manually.

@radcortez Is is expected that we cannot share the root prefix in two different packages ? Is it because in we use interface mapping in the extension while quarkus is using class mapping.

You can share them, but I think the issue is something else. Both classes have the same FQN io.quarkus.amazon.lambda.runtime.LambdaBuildTimeConfig:
https://github.com/quarkusio/quarkus/blob/86ba00e29a9a326afa02a74dd81a8228a5d04c02/extensions/amazon-lambda/runtime/src/main/java/io/quarkus/amazon/lambda/runtime/LambdaBuildTimeConfig.java
https://github.com/quarkiverse/quarkus-amazon-services/blob/9377e50a406db11355bf12b32e2bb09aee50f7c8/lambda/runtime/src/main/java/io/quarkus/amazon/lambda/runtime/LambdaBuildTimeConfig.java

It seems there are limited solutions available:

Alter the configuration prefix to "lambdaclient." However, this adjustment would deviate from the convention used for all other extensions, where the artifact ID of the AWS package serves as the key.
Modify the package name prefix to io.quarkiverse. Historically, "io.quarkus" was utilized when the project was under the umbrella of "quarkus/quarkus." While this change should be seamless, it might pose issues for extensions like S3 and DynamoDB, which offer custom annotations.

I would vote for option 2.

any news?

Hi folks,
Thank you for taking a look at the problem. I apologise for the radio silence.
I've tested the proposed fix, but it seems that there's another issue (unless I do smth. wrong) https://github.com/quarkiverse/quarkus-amazon-services/pull/1267#issuecomment-2231490200

@emakunin @GheorgheGanea Version 3.0.0.alpha1 is out. Could you have a look at it.

I'm have the need to write a lambda to invoke another lambda, so I though that using the io.quarkiverse.amazonservices:quarkus-amazon-services LambdaClient would be the correct approach.
On 2.8.1 I get the error mentioned in this issue
java.lang.RuntimeException: java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.amazon.lambda.deployment.LambdaProcessor#discoverTelemetry threw an exception: java.lang.IncompatibleClassChangeError: Found class io.quarkus.amazon.lambda.runtime.LambdaBuildTimeConfig, but interface was expected
	at io.quarkus.amazon.lambda.deployment.LambdaProcessor.discoverTelemetry(LambdaProcessor.java:99)
	at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:733)
	at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:856)

On 3.0.0.alpha1 the error below since I'm using https://quarkus.io/guides/aws-lambda
Caused by: java.lang.IllegalStateException: Multiple extensions registered a feature of the same name: amazon-lambda
	at io.quarkus.deployment.steps.MainClassBuildStep.build(MainClassBuildStep.java:297)
	at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:733)
	at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:856)
	at io.quarkus.builder.BuildContext.run(BuildContext.java:256)

I have the need to write a lambda to invoke another lambda, so I though that using the io.quarkiverse.amazonservices:quarkus-amazon-services LambdaClient would be the correct approach.
On 2.8.1 I get the error mentioned in this issue
java.lang.RuntimeException: java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.amazon.lambda.deployment.LambdaProcessor#discoverTelemetry threw an exception: java.lang.IncompatibleClassChangeError: Found class io.quarkus.amazon.lambda.runtime.LambdaBuildTimeConfig, but interface was expected
	at io.quarkus.amazon.lambda.deployment.LambdaProcessor.discoverTelemetry(LambdaProcessor.java:99)
	at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:733)
	at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:856)

On 3.0.0.alpha1 the error below since I'm using https://quarkus.io/guides/aws-lambda
Caused by: java.lang.IllegalStateException: Multiple extensions registered a feature of the same name: amazon-lambda
	at io.quarkus.deployment.steps.MainClassBuildStep.build(MainClassBuildStep.java:297)
	at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:733)
	at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:856)
	at io.quarkus.builder.BuildContext.run(BuildContext.java:256)

too bad, I missed you comment after releasing. Will do a 3.0.1 with another feature name.


ngHide/ngShow do not work on any element with ngInclude

This used to work in 1.1.5.  I just upgraded to 1.2.0-rc.2, and it has broken a lot of my existing code.
Basically, the following no longer works...

    [div ng-hide="!loading" ng-include=" 'loading.tpl.html' "] [/div]

(having a devil of a time figuring out how to get escaped html in this post)
The ng-hide does absolutely nothing to the element in this new version.
Here's a fiddle displaying the problem - http://jsfiddle.net/thardy/4jKSB/

Hi. Can anybody help me.
In index.html, I run ng-view, which code corresponds to Routing.js file. The menu calls two pages main.html and product.htm.
main.htm, has included another page called filterApp.html.
I need to hide a page element that is embedded main.html the filterApp.html. I have not succeeded.
If I take the include and put the code directly into main.html works. I read that ng-ng-hide and include not working properly. Is there anything I can do. I need to have it in separate files.
Here is the code of the pages.
Thank you so much
Index.html

Main.html

main  Page

{{ message }}

Product.html

Product Page

{{ message }}

p ng-hide="hide1">este parrafo se debe borrar

filterApp.html

            <select id="select-1" multiple="multiple" onchange="RecargaSelectBU()" >
            </select>

Routing.js
// create the module and name it dbApp
    var dbApp = angular.module('appDataBoard', ['ngRoute']);

    // configure our routes
    dbApp.config(function($routeProvider) {
        $routeProvider

            // route for the home page
            .when('/main', {
                templateUrl : 'template/main.html',
                controller  : 'mainController'
            })

            // route for the about page
            .when('/product', {
                templateUrl : 'template/product.html',
                controller  : 'productController'
            })

    });

    // create the controller and inject Angular's $scope
    dbApp.controller('mainController', function($scope) {
        // create a message to display in our view
        $scope.message = 'Pagina principal';
        $scope.hselect1 = true;
    });

    dbApp.controller('productController', function($scope) {
        $scope.message = 'Pagina de producto.';
        $scope.hide1 = true;

    });

@cbugari, this sounds like a general support question. Please, use one of the appropriate support channels for these types of questions.
GitHub issues are reserved for bug reports and feature requests.
Thx !


Add node.js bindings

Description of changes:
Node.js apps can access HawkTracer data through 'hawk-tracer-client' package.
Still need to do:

[x] fix stalling after test run
[x] make it available as a npm dependency directly from git repo
[x] add types for typescript
[ ] figure out deployment
[ ] remove unneeded line (https://github.com/amzn/hawktracer/pull/67#discussion_r422652771)
[ ] move TS-related files to bindings/nodejs (https://github.com/amzn/hawktracer/pull/67#discussion_r422655391, https://github.com/amzn/hawktracer/pull/67#discussion_r422655514)
[ ] catch exception in the example (https://github.com/amzn/hawktracer/pull/67#discussion_r422657151)
[ ] check the klass from klass_id (https://github.com/amzn/hawktracer/pull/67#discussion_r423149521, https://github.com/amzn/hawktracer/pull/67#discussion_r422657928)
[ ] set label only for HT_CallstackIntEvent (https://github.com/amzn/hawktracer/pull/67#discussion_r423164051)
[ ] check if klass_name exists (https://github.com/amzn/hawktracer/pull/67#discussion_r423181555)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

I think overall we should be focusing on 2 things that are separate:

provide low-level node.js bindings which expose raw events as they are and expose API for querying the registry
provide high-level helper classes that help users e.g. converting integer labels into strings etc.

At the moment those two functionalities are tightly coupled and the code assumes that user always want to use our helper methods. I think it'd be valuable to separate those two, so the user can access low-level API from nodejs if needed.
Having said that, I think the contribution so far is enormous and extremely valuable. Having current changes we can already build simple clients with nodejs. I think we could work a bit more on having the API more flexible (i.e. exposing low-level APIs) so even more users could benefit from that.

I don't think having raw events APIs would actually help users. JavaScript/TypeScript users are already accustomed to checking the existence of properties. Checking if a particular property exists is much more familiar and convenient than getting the type information from somewhere else than the object itself.
Having said that, even though we decide to provide the raw events APIs, I think it'd better be done in another PR.

As a matter of fact, we need the source mapping feature right now. I don't
see any customer facing profiling tool for callstack events to be
practically useful without source mapping.
The whole idea of having C++ layer below javascript bindings was to reuse
existing/stable code. I was able to add this mapping feature using the
existing mapping code in short time. If I have to implement source mapping
on top of low-level bindings, I'll have to rewrite that part. To be honest,
I don't think we can do that at this point.
If providing low-level APIs is important, what do you think about providing
both mapping/non-mapping APIs from the same implementation? In effect, it
would be something like disabling source mapping for low-level non-mapping
API.
If we decide on that, we'll have to decide how to enable/disable that
feature. We could either use an option, or another set of separate APIs.
On Sun, 24 May 2020 at 17:00, Marcin Kolny<EMAIL_ADDRESS>wrote:

@loganek commented on this pull request.
In bindings/nodejs/hawktracer_client_nodejs.cpp
https://github.com/amzn/hawktracer/pull/67#discussion_r429650776:

       return String::New(env, value.value.f_STRING);

   case parser::FieldTypeId::POINTER:

       return String::New(env, "(pointer)");

   default:

       assert(0);

}
+}

+Object Client::_convert_event(const class Env& env, const LabeledEvent& event)
+{

auto o = Object::New(env);
for (const auto& it: event.get_values()) {

   o.Set(it.first, _convert_field_value(env, it.second));

}
if (!event.get_label_string().empty()) {

   o.Set("label", String::New(env, event.get_label_string()));

The whole mapping thing is more like a client feature, not a parser
feature. I'd recommend to provide bindings only for parser first, and we
might extend it to client if needed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/amzn/hawktracer/pull/67#discussion_r429650776, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABDE5UJPTM7LLHY5EWKX2I3RTFACBANCNFSM4MCJPIVA
.


Password Strength Validator

Aim

A password validator is a software component or tool that helps enforce security measures by evaluating the strength and validity of user passwords. It is commonly used in various applications, websites, and systems to ensure that passwords meet specific requirements and guidelines.
Making of a dynamic website with HTML CSS and javaScript

Details

A password validator typically checks several criteria to assess the strength of a password. Here are some common features and checks performed by a password validator:

Length Requirement: It verifies if the password meets a minimum length requirement. For example, it may require a password to be at least eight characters long.
Character Complexity: It examines whether the password includes a combination of different character types, such as uppercase letters, lowercase letters, numbers, and special characters. This check promotes the use of complex passwords that are harder to guess.
Error Messages: It provides meaningful and specific error messages to guide users in creating valid passwords. This helps users understand why their password is being rejected and provides suggestions on how to improve it.
Do I want to work on this:

[X]  Yes
[ ] No

Too Basic, Can be found any where Online.


Delete unused job templates

Part of openshift.io -> che.openshift.io transition.

We would need to delete the jobs from centos ci first.

cc: @ibuziuk @chmouel

Sounds good! you can remove the fabric8-build  and fabric8-webhook too

Sounds good! you can remove the fabric8-build and fabric8-webhook too

@chmouel thanks! Removed them too.

Thanks!

It's ready for review but please coordinate with @pbergene on merging it.

here is list of the jobs that are going to be removed, please PTAL:
removed_jobs:
- devtools-che-starter-prcheck
- devtools-fabric8-jenkins-idler
- devtools-build-tool-detector-build-master
- devtools-fabric8-build-coverage
- devtools-fabric8-build-fabric8-push-build-master
- devtools-fabric8-webhook-coverage
- devtools-fabric8-webhook-fabric8-push-prcheck
- devtools-build-tool-detector
- devtools-fabric8-build-build-master-coverage
- devtools-fabric8-planner-f8planner
- devtools-fabric8-env-client-build-master
- devtools-fabric8-env-build-master-push-client
- devtools-che-starter-build-che-credentials-master
- devtools-fabric8-build-fabric8-push-prcheck
- devtools-fabric8-ui-npm-publish-build-master
- devtools-fabric8-jenkins-idler-build-master
- devtools-test-e2e-prod-preview.openshift.io-planner-functional-tests
- devtools-test-e2e-openshift.io-planner-functional-tests
- devtools-fabric8-jenkins-proxy
- devtools-fabric8-webhook-fabric8-push-build-master
- devtools-fabric8-env-client
- devtools-fabric8-jenkins-proxy-build-master
- devtools-fabric8-env
- devtools-fabric8-webhook-build-master-coverage
- devtools-fabric8-ui
- devtools-fabric8-planner-npm-publish-build-master

all LGTM, just wondering what is devtools-fabric8-env /  devtools-fabric8-env-client ?

@ibuziuk seems that devtools-fabric8-env was a job for pr checks of fabirc8-env repo
and devtools-fabric8-env-client is exactly same thing as devtools-fabric8-env-client-build-master

FYI: let's keep the jenkins images and servers for now since this would be moved to devetool and may need to redo that job by then,

funny, I never used https://github.com/fabric8-services/fabric8-env and was literally not aware of it's existence https://github.com/fabric8-services/fabric8-env
Anyways, rh-che is not dependent on this service - just decided to double-check

@ibuziuk it was made for the OSD work (along a couple of other services) but obv never went live with it,

@chmouel what do you mean by jenkins images and servers?
are we good to drop these jenkins jobs now?

@alexeykazakov couple of jobs running tests need to be removed. How do we want to proceed? I can list them here so that you update this PR or  I can create a new PR or something else?

@ppitonak Please create separate PR, I think that would be easier to proceed.

so @chmouel if you can confirm that we can drop these ci jobs I can do that right away.
This will only remove Jenkins jobs nothing else. But I think you have also a plan to clean up images/namespaces/repos etc...

@riuvshin i meant, we have some jobs in there that generate the jenkins images, slaves images  etc... It maybe a good idea to keep them in there (it hasn't been removed nonetheless), so feel free to merge this!

@chmouel ah! I thought one of these jobs that you care about is in the list, ok going to merge this :)

[test]


New ARC-0013

I request comment for ARC-0013 - Community Algorand Standards

This is an interesting idea for having more machine readable ARC documents.
As a first comment I think I'd prefer the URL point to the spec document in this repo.
Also maybe a PullRequest type field that points to the actual PR containing the proposal.
Are you expecting that 2 prs are filed? 1 for the json object and 1 for the spec document?

lets discuss the topic here please: https://github.com/algorandfoundation/ARCs/issues/20
After this pr will be committed, we will loose the discussion if we discuss it here.
Please note that proposed CAS.json file is included in this PR https://github.com/algorandfoundation/ARCs/pull/19/files

After this pr will be committed, we will loose the discussion if we discuss it here.

The conversation will persist in the same was as an issue. It may be closed but will still be visible.
I'd prefer comments in the PR because any notes on the spec file itself will be inline as well.

I'm not clear on the necessity of this proposal at this time.

I wasn't able to find any example references that have defined such an ARC schema.  Do you have any example references to share to see what others have done for this? e.g. Ethereum, Python

It seems like Fergals original request to define ARC formatting on Algorand should be resolved before a standard JSON schema for ARC submittals is defined so that we know whether there are additional properties that are needed.
https://github.com/algorandfoundation/ARCs/issues/9

Where or in what process would this schema be used? When submitting to github? If so where?

Is there a need in the community at large for this? How great?

Does this proposal mean to suggest by the 'url' property name that the contents of the ARC requests could be kept outside of Algorand's github? I believe ARC's should remain on Algorand's github in all cases for historic purposes.

To me defining an official Algorand schema for this at this time seems premature and rushed before a wider community need for a schema of this type has been defined and established.

Closed in favor of ARC-0


bug: Reports that Claude 3 Opus has higher frequency of early output termination

Version
N/A
Describe the bug
From slack
From discord
Let's investigate and roll any remediation into the output sequence epic
Reports that Opus is terminating without completing the "thought" fully.
Expected behavior
Cody gracefully handles early terminations or allows user to continue chat
Additional context
No response

In my experience, this happens if you give the LLM not enough room to answer fully. For example, if you constrain an LLM to only 256 output tokens, it will mostly provide only a partial answer if code is involved. Asking Claude for a full implementation of the SURF (Speeded-Up Robust Features) algorithm takes about 1302 tokens.
Cody will of course cut partially. If you want to stay within a token limit, then prepend a hidden prompt to the users prompt to only answer briefly.


Update sketch.js

Added correct syntax for offset value

Community Contribution
Link to live project, video, or image:

Sharing

[ ] I would be happy to have my project shared on The Coding Train's social media!

Instagram:
Twitter:

Thanks for catching this!


Nodes not joining the cluster even after successful join command output

I started having this behaviour where when a node is joining the cluster it does not appear on the node list on the cluster:
$ kubectl get nodes -o wide

NAME            STATUS   ROLES    AGE     VERSION                    INTERNAL-IP   EXTERNAL-IP   OS-IMAGE             KERNEL-VERSION    CONTAINER-RUNTIME
ip-10-0-0-251   Ready    master   7d20h   v1.23.1-2+b7120affd6631a   <IP_ADDRESS>    <none>        Ubuntu 20.04.3 LTS   5.11.0-1025-aws   containerd://1.5.7

Despite the output of the join process being the following:
$ microk8s join <IP_ADDRESS>:25000/<my-token> --worker

Contacting cluster at <IP_ADDRESS>
The node has joined the cluster and will appear in the nodes list in a few seconds.
Currently this worker node is configured with the following kubernetes API server endpoints:
    - <IP_ADDRESS> and port 16443, this is the cluster node contacted during the join operation.
If the above endpoints are incorrect, incomplete or if the API servers are behind a loadbalancer please update
/var/snap/microk8s/current/args/traefik/provider.yaml

All the nodes are running the same exact MicroK8s version:
$ snap list
Name              Version     Rev    Tracking         Publisher   Notes
amazon-ssm-agent  3.0.1124.0  4047   latest/stable/…  aws✓        classic
core18            20211215    2289   latest/stable    canonical✓  base
core20            20211129    1274   latest/stable    canonical✓  base
lxd               4.0.8       21843  4.0/stable/…     canonical✓  -
microk8s          v1.23.1     2854   1.23/stable      canonical✓  classic
snapd             2.53.4      14296  latest/stable    canonical✓  snapd

Communication between nodes is enabled for all TCP and UDP ports, as in 0-65535 range.
How may I debug this situation?
$ microk8s inspect: inspection-report-20220119_142836.tar.gz

Upon further investigation, I found out that this error is causing the kubelite to restart over and over again:
Jan 19 14:56:28 ip-10-0-0-251 microk8s.daemon-kubelite[127659]: E0119 14:56:28.592874  127659 tags.go:98] Tag "KubernetesCluster" nor "kubernetes.io/cluster/..." not found; Kubernetes may behave unexpectedly.
Jan 19 14:56:28 ip-10-0-0-251 microk8s.daemon-kubelite[127659]: E0119 14:56:28.593468  127659 server.go:307] "Failed to run kubelet" err="failed to run Kubelet: could not init cloud provider \"aws\": AWS cloud failed to find ClusterID"
Jan 19 14:56:28 ip-10-0-0-251 systemd[1]: snap.microk8s.daemon-kubelite.service: Main process exited, code=exited, status=1/FAILURE
Jan 19 14:56:28 ip-10-0-0-251 systemd[1]: snap.microk8s.daemon-kubelite.service: Failed with result 'exit-code'.
Jan 19 14:56:28 ip-10-0-0-251 systemd[1]: snap.microk8s.daemon-kubelite.service: Scheduled restart job, restart counter is at 715.
Jan 19 14:56:28 ip-10-0-0-251 systemd[1]: Stopped Service for snap application microk8s.daemon-kubelite.
Jan 19 14:56:28 ip-10-0-0-251 systemd[1]: Started Service for snap application microk8s.daemon-kubelite.

Is this tag supposed to be the AWS Resource tag, as in:
Key=kubernetes.io/cluster
Value=cluster-name
Or is this tag supposed to be referring to anything else? I did not specify any specific flags regarding the Kubelet/Kubelite for Microk8s, this is a standard/fresh install.
Can this cause my nodes to not be able to join the cluster or them joining but not being available to the cluster?

This particular issue is similar to yours.
https://github.com/awslabs/amazon-eks-ami/issues/310
The tag name seems to be the culprit.


--starting-version not working

I have an old git project with 10 years of commit in it.
I created a tag v5.0.0 and passed --starting-version v5.0.0 so that auto-changelog wouldn't create a huge changelog file with all the commits in it (i'm using --commmit-limit false).
However, no matter how I cut it (create new tags before v.5.0.0, bumping starting-version higher, etc), it always creates a huge 3MB CHANGELOG.md file because it takes the commit specified with --starting-version and puts the entire git history there.

starting version is ignored with my config
        "commitLimit": false,
        "unreleased": true,
        "releaseSummary": true,
        "tagPattern": "ui-kit_\\d+\\.\\d+\\.\\d+$",
        "issuePattern": "^GC-\\d+",
        "starting-version": "ui-kit_4.0.0",
        "ignoreCommitPattern": "^(Changelog|Merge pull request)",

I got from first to the last tags, but I expect from ui-kit_4.0.0 (or from next) to the last

Options in the package.json need to be camelCase, like all the other options in your example. This is in the readme:

You can set any option in package.json under the auto-changelog key, using camelCase options.

https://github.com/CookPete/auto-changelog#configuration

Oh, yeah, sorry :)


Add exception handling for Amazon throttling a request.

Hi,
I've been working with your API (which is great) and once in a while if people on my site use the api too frequently I'm getting a 503 error returned. This code adds handling for 503 errors that are explained as throttled requests here: http://docs.aws.amazon.com/AWSECommerceService/latest/DG/ErrorNumbers.html
I'm not sure how I could test this - probably could create a mock of the bottlenose response, but is that necessary?
Let me know if I can improve (and whether it's not even necessary). I'm new to open source and this is my first pull request ever (!), so any feedback would be fantastic!

Congratulations @YPCrumble for your first pull request (and apologies for taking so long to reply)! It would be nice to test this portion of the code as well if you're up for it. Moking out bottlenose seems sensible. Thank you for your contribution!


fix failing tests on 32 bit architectures

I tested this merge request on a Debian porter box for armhf and the failing test cases succeed now.


createObjectURL

When trying to use it in a Cordova-electron app I get this error:
Uncaught (in promise) TypeError: Failed to execute 'createObjectURL' on 'URL': Overload resolution failed.
at t. (js-file-downloader.min.js:10)
(does not depend on the file type or server).

Hi @shahind , it's probably related to cordova electron.
This lib is born to support download in browser web app, the createObjectURL is part of the Web APIs.
I think you need to find a poly lib (or create it) to make this method available in your project.
Bye

Thanks @AleeeKoi, I'm trying to match it with Cordova, but should the type of downloadedFile be URL?, I guess it must be a File, Blob, or MediaSource even if you are working with Web APIs.

Thanks @AleeeKoi, Cordova uses Chromium or the internal browser, and as far as I checked, createObjectURL is available. The problem must be related to the type of downloadedFile which is URL, but it must be File, Blob, or MediaSource. Maybe a plugin has changed something. I'm working on it and will let you know if I find a solution.

Thanks @AleeeKoi

For any other person who faces this problem, there is no fix for this problem so far (see related issue) to fix the problem you need to save the window.File and window.FileReader before executing the Cordova for example in your index.html before Cordova.js script tag. You can re-assign them in the mounted function or you may change the js-file-downloader as I did by replacing File and FileReader with originalFile and originalFileReader.(sorry @AleeeKoi :)

Hi @shahind thanks for the feedback and the solution. 👍


[eBPF] Replace runtime.casgstatus with runtime.execute

This PR is for:

Agent

Improves the performance of go uprobe
Added benchmark

Benchmark result
<Paste benchmark results>

用 rust-sample 测试 go-server-sample 的结果.由于是虚拟机,具体硬件信息不确定,只需要看相对变化.
// baseline
[root@localhost wrk]# ./wrk -d3s http://localhost:8080
Running 3s test @ http://localhost:8080
  2 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    18.33ms    3.51ms  41.78ms   81.92%
    Req/Sec   272.27     27.82   320.00     70.00%
  1636 requests in 3.02s, 0.86MB read
Requests/sec:    542.14
Transfer/sec:    292.78KB

// execute
[root@localhost wrk]# ./wrk -d3s http://localhost:8080
Running 3s test @ http://localhost:8080
  2 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    21.71ms    4.44ms  58.91ms   82.02%
    Req/Sec   230.58     24.47   272.00     76.67%
  1388 requests in 3.03s, 749.57KB read
Requests/sec:    458.38
Transfer/sec:    247.54KB

// casgstatus
[root@localhost wrk]# ./wrk -d3s http://localhost:8080
Running 3s test @ http://localhost:8080
  2 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    23.84ms    3.86ms  39.69ms   68.60%
    Req/Sec   209.55     25.00   252.00     61.67%
  1258 requests in 3.02s, 677.40KB read
Requests/sec:    416.33
Transfer/sec:    224.18KB


A question about reproducing the results

Hi @memray, thanks for sharing the code.
How do I reproduce the results in the paper by training a new model?

Hi -- I have the same question.  I have downloaded the subset of 20k docs from the google drive link in the README, unzipped and placed in pykp/data/.   I have tried to run train.py from command line but get error: the following arguments are required: -data, -vocab  [This is even after I provide arguments in the command line]
What is the equivalent of keyphrase/keyphrase_copynet.py in this version?

Hi,
I think the current implementation cannot reproduce the 100% same performance as in paper (Theano), because I only implement a simple CopyNet and it doesn't cover every detail. But it is workable and can generate reasonable outputs. You can refer to this setting I used to start running.
Thanks,
Rui

Thanks for your replies.
I have run the latest code according to your setting. Final Test-f_score@10_exact is around 0.1.
Note that I met some errors when attempting to run the code (e.g., the option -copy_model doesn't exist in the latest code). So I sincerely hope you check and update scripts.

Sorry, I have refactored some configs and you should use the flag -copy_attention instead of -copy_model to enable copy mode. Try it out to see if it works. I think the current score should be around 0.25.

Thanks. I'll try it again.

Hi,
I have trained the model for 20000 batches (batch_size = 128). But reported Test-f_score@10_exact is 0.096 and reported Test-f_score@10_soft is 0.243.
Here is the command I used

CUDA_VISIBLE_DECIVE=0 PYTHONPATH=. python3 train.py -data data/kp20k/kp20k -vocab data/kp20k/kp20k.vocab.pt -exp_path "exp/attn_general.input_feeding.copy/%s.%s" -model_path "model/attn_general.input_feeding.copy/%s.%s" -pred_path "pred/attn_general.input_feeding.copy/%s.%s" -exp "kp20k" -bidirectional -copy_attention -run_valid_every 5000 -save_model_every 50000 -train_ml -input_feeding -batch_size 128 -beam_search_batch_size 16 -attention_mode general -gpuid 0

I set a larger beam_size (32 rather than 16). But I don't think it is so important to result in the gap between 0.096 and 0.25.
So what went wrong? :) Or I omitted some important options? :)

It should not be this bad even beam size is small. You are running the master branch right?

Yes. The latest commit is on Sep 26.

Hi, @memray
I want to know which F_1@K in your paper on the dataset KP20k did you use, exact version or soft?

Sorry, I have refactored some configs and you should use the flag -copy_attention instead of -copy_model to enable copy mode. Try it out to see if it works. I think the current score should be around 0.25.

Did you use all ground-truth keyphrases in the predicting present keyphrases task, while in absent keyphrases task, only use absent keyphrases as ground-truth? So, the 0.25 is the F@10 score of the predicting present keyphrases task, right?

@memray 你好，我在你的theano版的项目里看到了如果需要复现present结果就如此set config['predict_filter'] and config['target_filter'] to 'appear-only'，是不是可以理解为论文中present的F@k值是只考虑了present keyphrase，只在文中出现过的短语，ground truth和predict都是如此。而absent则只考察了没有在文中出现过的短语。
还烦请解答


clspv::ComputeStructuredOrder crashes on infinite loops

The following IR crashes clspv in clspv::ComputeStructuredOrder. It was produced while reducing another issue using bugpoint.
target datalayout = "e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024"
target triple = "spir-unknown-unknown"

define dso_local spir_kernel void @kernel() {
entry:
  br label %for.cond

for.cond:                                         ; preds = %for.cond, %entry
  br label %for.cond
}

GDB shows:
Reading symbols from clspv...
(gdb) r
Starting program: build_shared_debug/bin/clspv -x ir reduced.ll
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
clspv: clspv/lib/ComputeStructuredOrder.cpp:58: void clspv::ComputeStructuredOrder(llvm::BasicBlock*, llvm::DominatorTree*, const llvm::LoopInfo&, std::deque<llvm::BasicBlock*>*, llvm::DenseSet<llvm::BasicBlock*>*):
Assertion `continue_block && merge_block && "Bad loop"' failed.

Program received signal SIGABRT, Aborted.
0x00007ffff7063fb7 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0  0x00007ffff7063fb7 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff7065921 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007ffff705548a in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#3  0x00007ffff7055502 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#4  0x00007ffff77655a7 in clspv::ComputeStructuredOrder (block=0x55555579c860, DT=0x5555557a7450, LI=..., order=0x7fffffffab00,
    visited=0x7fffffffaa70) at clspv/lib/ComputeStructuredOrder.cpp:58
#5  0x00007ffff776573b in clspv::ComputeStructuredOrder (block=0x55555579c6b0, DT=0x5555557a7450, LI=..., order=0x7fffffffab00,
    visited=0x7fffffffaa70) at clspv/lib/ComputeStructuredOrder.cpp:87
#6  0x00007ffff77c5563 in (anonymous namespace)::SPIRVProducerPass::PopulateStructuredCFGMaps (this=0x5555557ee9e0)
    at clspv/lib/SPIRVProducerPass.cpp:5667
#7  0x00007ffff77b31aa in (anonymous namespace)::SPIRVProducerPass::runOnModule (this=0x5555557ee9e0, M=...)
    at clspv/lib/SPIRVProducerPass.cpp:737
#8  0x00007ffff2bf9059 in (anonymous namespace)::MPPassManager::runOnModule (this=0x55555579dff0, M=...)
    at clspv/third_party/llvm/llvm/lib/IR/LegacyPassManager.cpp:1550
#9  0x00007ffff2bf4241 in llvm::legacy::PassManagerImpl::run (this=0x5555557a57b0, M=...)
    at clspv/third_party/llvm/llvm/lib/IR/LegacyPassManager.cpp:541
#10 0x00007ffff2bf98e3 in llvm::legacy::PassManager::run (this=0x7fffffffafe0, M=...)
    at clspv/third_party/llvm/llvm/lib/IR/LegacyPassManager.cpp:1677
#11 0x00007ffff785b6e7 in clspv::Compile (argc=4, argv=0x7fffffffdd68) at clspv/lib/Compiler.cpp:941
#12 0x00005555555547ca in main (argc=4, argv=0x7fffffffdd68) at clspv/tools/driver/main.cpp:18

Reading https://www.khronos.org/registry/spir-v/specs/unified1/SPIRV.html#StructuredControlFlow I'm not sure this construct can be supported. However, clspv should not crash but instead report an error if that's the case.
(This issue and #702 may be duplicate, but I was not able to get 100% confidence that's the case.)

https://github.com/google/clspv/issues/708
Could you please advice what exactly is not supported while() -> break? I my try transform it to do {} while or just while(someFlag) construct

I'm not very familiar with SPIR-V structured control flow, but if I read the spec correctly:

SPIR-V can explicitly declare structured control-flow constructs using merge instructions. These explicitly declare a header block before the control flow diverges and a merge block where control flow subsequently converges. These blocks delimit constructs that must nest, and must be entered and exited in structured ways, as per the following.

then this statement implies a loop must have an exit. In other words, while (true) { ... no breaks ... } cannot be represented in SPIR-V.
(I don't know about your particular setup in #702 so I cannot fully judge whether the problem is the same. It might help to have the backtraces of the crashes you've mentioned.)

I beleive we are running into this as well. Here's a simple repro: https://godbolt.org/z/bYhWqTYdx


Remove Vimeo in favor of native video element

Vimeo adds 10+ requests and significant chunk to our javascript bundle, we can use a native video element and simplify this component implementation/boost performance.

This is complete correct? Please re-open if I'm thinking of the wrong thing


Switch network when shortName prefix changes

What it solves
Resolves #2828
How this PR fixes it
A listener is attached to the history object which checks that a shortName exists and differs to the current config one. When it detects a change, it sets the new network.
How to test it
Open a safe on one network and connect, then open a safe on another network and connect. Click the back button and you should get prompted to connect to the previous network.
Accessing a NETWORK_ROOT_ROUTES route, i.e. .../app/polygon sets the app to that network. The network selector in the top right should still work on these routes that have no chain prefix in the URL.

The PR is stuck loading for me:
https://pr2832--safereact.review-safe.gnosisdev.com/app/rinkeby/

The PR works now.
Looks good to me.
I loaded 2 safe, one in Rinkeby and one in xDai. and visited one after the other.
In both networks I'm connected automatically when switching.
I use the "Back" button of the browser to go from the xDai safe to the Rinkeby safe.
Result: the app now gives the option to change networks.
Gif:


Loading only

Hello,
I have installed the passcore tool on a IIS Webserver.
But i get only the header of the website and "Loading...".
I have done every step of the instruction. What can i do to solve this issue?
kind regards

Have you tried everything on: https://github.com/unosquare/passcore/issues/1
Other than that I can't really help you without more info.

Please try with the latest version and let us know if this is still a problem. Reopen the issue if necessary.


Searching for a terms on GitHub repos with apis.json does not work as expected

I expected that
kiota search microsoft365

would have found the Microsoft Graph apis in the microsoftgraph/msgraph-metadata repo.
However, the GitHub search only seems to search in the description of the repo, not in the apis.json file.

This is a limitation of the GitHub search API. You can either search repos or code (well users, topics, labels, issues, pull requests, commits are also supported but they wouldn't help in our scenario).
Kiota is currently searching repos

This query searches for repositories with the word tetris in the name, the description, or the README

This results in a single request per topic (2 total).
It then goes and gets the apis.json/yaml of the results and parses them.
When the user is authenticated, we could additionally search code for each organization they are a member of, but this would increase the number of requests, and would be limited to authenticated users and the organizations they are members off.
Alternatively we could simply do a topic list, and for each repo run a code search. This would work as long as only a few repos are tagged, but wouldn't scale.
The search code requires an organization/user/repository to be provided, I can't express today "give me all repos with that topic and this term in this or that file".
We could have a tiered approach in the GitHub search provider where if the first search (currently implemented as is) doesn't return anything, we'd run a second (list all repos under the topic, and run a code search for each of them). This might introduce confusing behaviour where one week I get the desired repo/API from the second tier, and the following I don't because somebody published a repo that matches my search terms in the first tier.
Thoughts?

The current solution works well for API producers with a small number of APIs.  It doesn't work so well for API producers with a long list of APIs that are very varied, nor for folks who want to aggregate a list of APIs in a single list.
Maybe this isn't a bad thing.  Maybe we shouldn't be trying to provide "yet another place" to put a directory of APIs.  I'm going to close this issue for the moment and noodle on the problem some more.

We could provide guidelines for people to favour repositories over apis.json/yaml entries. They'd get a granular access control as a benefit.


Compilation configuration error with CTK_PLUGIN_org.commontk.slicer activation

Hi,
When I activate
CTK_PLUGIN_org.commontk.slicer ON
in ccmake interface, I got the following error after pressing 'c' to configure :
CMake Error at CMake/ctkMacroValidateBuildOptions.cmake:177 (MESSAGE):
org_commontk_slicermodule depends on CTKModuleDescription, which does not
exist
Call Stack (most recent call first):
CMakeLists.txt:521 (ctkMacroValidateBuildOptions)
Is there a known to correct this?
I am working under Fedora OS.
Regards,

I can precise that all the others options are set to ON when this error occurs.
Regards

I don't think this option is very stable, that is why we disabled it by default.
Do you need it ?

Not specially, it was just a test. Thanks!


Null reference error in Bridge.Translator.Emitter.GetInline(IEntity)

I'm attempting to compile an existing C# library with Bridge.Net, however building fails with the following error message:
Error		2018-01-28T01:09:32:356 	Error		Object reference not set to an instance of an object.    at Bridge.Translator.Emitter.GetInline(IEntity entity)
at Bridge.Translator.MetadataUtils.ConstructMemberInfo(IMember m, IEmitter emitter, Boolean includeDeclaringType, Boolean isGenericSpecialization, SyntaxTree tree)
at Bridge.Translator.MetadataUtils.<>c__DisplayClass0_0.b__2(IMember m)
at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext()    at System.Collections.Generic.List1..ctor(IEnumerable1 collection)    at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)
at Bridge.Translator.MetadataUtils.ConstructTypeMetadata(ITypeDefinition type, IEmitter emitter, Boolean ifHasAttribute, SyntaxTree tree)
at Bridge.Translator.EmitBlock.DoEmit()
at Bridge.Translator.AbstractEmitterBlock.Emit()
at Bridge.Translator.Emitter.Emit()
at Bridge.Translator.Translator.Translate()
at Bridge.Build.BridgeCompilerTask.Execute()	Nucleus.JS	C:\Users\jeffe\OneDrive\Documents\Nucleus\Nucleus\Nucleus.JS..\Nucleus\Model\Loading\PanelLoad.cs	12
(The error is shown to occur in the PanelLoad class, with source here: https://github.com/pnjeffries/Nucleus/blob/BridgeDotNet_Compile_Bug/Nucleus/Nucleus/Model/Loading/PanelLoad.cs - however there is nothing particularly special about this class definition to indicate cause.)
Steps To Reproduce

Download library source code here: https://github.com/pnjeffries/Nucleus/tree/BridgeDotNet_Compile_Bug
Build the Nucleus.JS sub-project.
Build should fail with the above error message.

Hi @pnjeffries – Still having compilation problems? Any chance you could isolate a sample that demonstrates how to reproduce this issue? Ideally a Deck.

Hi @pnjeffries – Please update to the latest public release (16.8.2) of Bridge. We think this issue might have been related to something fix after the 16.7.0 release that you're using in the project.
Hope this helps.

We were able to compile the Nucleus.JS project using Bridge 16.8.

I'm marking this as "invalid" and closing as we were unable to reproduce it, and also didn't get feedback from @pnjeffries for a long while.


Role commands: New

New.....
Delet this

what?

It says new next to the name

I'm still confused as to what you mean

Lmao the green block thing that says “New!”

Ah i see

I dont speak english anymore


nixos/prometheus: add option to support 'alert_relabel_configs'

Motivation for this change
Running a Prometheus HA pair and sending identical alerts to Alertmanger requires the setting 'alert_relabel_configs' to relabel 'external labels' .
This change adds support for 'alert_relabel_configs'. I tested it on a test system and it works for me.
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

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

[x] Fits CONTRIBUTING.md.

@Fluepke Could you please check if this can be closed in favor of #142654?

@schmidc-bevuta  Could you please check if this can be closed in favor of #142654?

@yrd https://github.com/NixOS/nixpkgs/pull/142654 does not include my change. My change adds "alert_relabel_configs" (supported by Prometheus 1.1 and later) which is still a missing option.

Oh yeah, my bad. @basvandijk could you have a look, since we are updating the configuration options anyways? A rebase would probably be in order, though

Rebase: done

warning: literalExample is deprecated, use literalExpression instead

Fixed


2017.3 compatibility

Apache commons IO added as a library

This is great. Thanks :)

Awesome :) Should this make the graphql plugin work in EAP?
Want to make a release? :)

Yeah, I'm hoping to cut a new release tonight. Have been away for a conference.


Making the bundle work with disabled csrf protection

So currently if u have application that uses some functional testing, there is a big chance that u
have csrf protection disabled in your test environment. This PR will fix the issue, where there
is fatal error thrown whenver token manager isnt registered definition.

@dunglas is there anything else to do here?

@defrag not related with this PR but why don't you use https://github.com/Behat/Symfony2Extension?

And can you add some lines in the readme about this PR and the form extension?

No real reason, but u dont really need any driver on anything, just handling the request and checking the response, so i didnt bother pinning the sf2 extension. I will open pr with form docs soon, im pretty busy now. This PR is kind of from whats blocking me of replacing my own system for handling csrf with yours. I would like to do it soon :)

thanks @defrag. I'll tag a new release when doc will be added.


Improving Stompy Walk Training Pipeline

Fixed outstanding clarity issues from previous PR
Added way to specify different policy & value network parameters
Added (slightly buggy) LQR implementation for balancing
Added way to render trajectories from cluster (assumes OpenGL access / Mesa)

Most notably, Stompy (with the stompy_walk.pth weights included) is now able to balance and maximize the height reward). This task is surprisingly difficult to train, and it can be greatly beneficial for bootstrapping an end-to-end goal-conditioned walking policy.
https://github.com/kscalelabs/ksim/assets/43460304/3ad489dd-6b83-4453-9461-f65f9f017c28
This was achieved with the following network sizes:
policy_hidden_layer_sizes: [64, 64, 64, 64, 64]
value_hidden_layer_sizes: [256, 256, 256, 256, 256]
Future runs might build upon these weights while lowering the control cost penalty and heavily increasing the forward reward weight.

sweet :)


Feature: Check for free wave leaks in test cases

It is possible to write igor code that won't release free waves after they are no longer used. This can conclude to big wave leaks and therefore useless memory consumption.
With this commit the ability to check for these free wave leaks is introduced. To enable this it is only required to set waveTrackingMode in RunTest to UTF_WAVE_TRACKING_FREE, UTF_WAVE_TRACKING_LOCAL or UTF_WAVE_TRACKING_ALL. This will track the number of created and released waves during a test case run. If there is a difference this will produce a CHECK error.
If the user wants to opt-out a single test case from this wave tracking the test case as to be tagged with UTF_NO_WAVE_TRACKING.
Close #200.
Dependency

[x] PR #306: CI Bug
[x] PR #310: Use new TestCaseFail methods
[ ] Results in MIES
[ ] WaveMetrics Bug Reports regarding Wave Tracking

I have resolved the merge conflict.

@MichaelHuth I've assigned you instead due to workload issues on my side.

Before this is merged I would like to start a CI run with MIES to see if it is working as intended. I can think of data generators being a problem or user hooks.

This PR requires PR #306 to be merged first.

I was forced to do a rebase to let the CI pipeline rerun. You need to approve this PR again.

Michael and me played around with this PR and MIES. And found some bugs in IP. I've reported them as #4280/#4281. Once these are fixed I'll resume testing.

@Garados007 Resulting testing with Thomas, I have moved the wavetrack evaluation to a function that is called after the user hook code. This is required as we need in tests the user hook to cleanup created waves to reach the same state as on test case entry.

@Garados007 Can we have a new PR with only the introduction of TestCaseFail? And also maybe reuse the new ReportError/ReportErrorAndAbort functions? And avoid code duplication with printFailinfo? And also use TestCaseFail in other cases (I've found at least AfterTestCase). Thx.

Note to self: Reported another issue to WM regarding correct tracking.

Can we have a new PR with only the introduction of TestCaseFail?

See PR #310. The commit is still included in this PR (for compatibility issues). I remove it after #310 is merged to main.

And also maybe reuse the new ReportError/ReportErrorAndAbort functions?

Done.

And avoid code duplication with printFailinfo? And also use TestCaseFail in other cases (I've found at least AfterTestCase).

Let's move this to PR #310.

I have included the new TestCaseFail method into this PR.

After some more playing with the MIES Basic.pxp tests, I found https://gitlab.byte-physics.de:4001/internal/json-xop/-/issues/125. This is very likely reponsible for the vast majority of SF wave leaks.
The JSON-XOP testsuite does not wave any wave leaks though.

Oh and I don't think you need to return NaN after ReportErrorAndAbort. At least in other places you also skip the return.


Failing to remove liquidity

Describe the bug
A clear and concise description of what the bug is.
https://cdn.discordapp.com/attachments/975758333757775953/1155145957462257664/image.png
To Reproduce
Steps to reproduce the behavior:

User tries to remove liquidity from their router (any asset)
Gets the error above

Additional context
Add any other context about the problem here.

It seems that the error in the captured image is an unrelated error. I'm not sure which dependency it's from, but it's not related to the execute reverted issue.
By the way, we've added the console log record: [removeRouterLiquidityFor] that contains the parameters passed when calling removeRouterLiquidityFor. @just-a-node Could you please take a look and confirm whether all the parameters are correct?

specific issue with one of the router, will follow up with them to debug more.


Roundcube: add larry skin

How can I add larry theme for roundcube?
This variant will not work, since the skin must be installed in the ./skins/ folder:
  pkgs.roundcube.withPlugins (plugins: [ plugins.larry ]);

Source - https://github.com/roundcube/larry
cc @Ma27

@Izorkin Larry skin was deprecated in RC 1.6.x and there is no separate package for this in nixpkgs.
However, you can quickly hack it back in using something like this:
let roundcubeSkinLarry = pkgs.stdenv.mkDerivation rec {
      skinName = "larry";
      pname = "roundcube-skin-larry";
      version = "1.6.1";
      src = pkgs.fetchFromGitHub {
        repo = skinName;
        owner = "roundcube";
        rev = version;
        sha256 = "sha256-QoRYKFvqIOJhMdNWi4VLJVbQE91jQmizGBQTlFZ7r64=";
      };
      installPhase = ''
        mkdir -p $out/skins
        cp -r ${src} $out/skins/${skinName}
      '';
    };

and then activating using:
services.roundcube = {
  enable = true;
  package = pkgs.roundcube.withPlugins (plugins: [ roundcubeSkinLarry ]);
  extraConfig = ''
     # ...other configs...
     $config['skins_allowed'] = [ 'elastic', '${roundcubeSkinLarry.skinName}' ];
  '';
};

A proper solution would be to add something like withSkins though...


Label for Action: None showing property name

When choosing the None action for a Power, the property name is being shown on the Powers page rather than "None".

Thank you for raising the issue :). That should actually be fixed in the dev version, and you made me realize i missed a place where a similar thing was happening, which is also fixed in the dev version now


Issue #6 child: revise reload code

https://github.com/ctomkow/verify/blob/b733eab0d168f7b06c882e67eca9224c0a872a90/Verify.py#L168

Implemented an API call to reload the switch. Also implemented a job_complete and job_successful method calls for template API calls


Correct size in Sets example.

Should s.size not resolve to 3 instead of 2?

Example is correct.

It's correct since it's adding hello two times and Sets have unique values?

Aargh - you're so right. :)  Apologies for the mixup.


Release date year was incorrect - fixed

Fixed 2014 to 2018

@xyh1 : Thanks for your contribution! The author, @stepsic-microsoft-com, has been notified to review your proposed change.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

flow-docs/release-notes.md
:white_check_mark:Succeeded

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


Transformer block that supports jagged tensor as input

The standard transformer block supports input tensors that will have same sequence length.
This requires padding the example sequences to the same length in a batch if the lengths are not equal.
The introduction of JaggedTensor does support the variable length examples. Can we support a transformer block that can efficiently work with JaggedTensor or KeyedJaggedTensor as input, instead of converting them to the dense and padded form?

Hi, this seems like a question for core library https://github.com/pytorch/pytorch


Ability to regrid global data to a cartesian region

Is your feature request related to a problem? Please describe.
It seems like we will want to be able to (longer term) run regional simulations using the HybridBox domain, but reading in parameters from a file. We cannot do so now for two reasons:

no way to specify which lat/lon the box (or column, point, plane) refers to
regridding tools are not setup for this task (only work with global data on spherical surface)

We should also support 3D parameters (global data as a function of depth).

I think we have this now, right?

thanks! I will edit the description


Adjust Exit Action implementation to allow Ctrl-click and Shift-click.

I think that this patch may require some discussion, in case there is a better/prefered way to accomplish this -- I'm definitely willing to re-work it with a different approach if needed.
My goal was to make the existing "Exit Action" feature continue to work as expected, even if a player ignores the destination-selection dialog (by either ctrl-clicking on a rail, or shift-clicking on a train stop).
In the current version of the mod, the following situations may occur after entering a shuttle:

The player selects a destination via the mod's dialog

In this case, everything works as expected

The player opens the map and ctrl-clicks on a rail

The shuttle will go to the requested rail, but it will depart after 5 seconds (regardless of whether the player is still inside)
Also, the shuttle will return to the location where a pickup was requested, instead of the depot

The player opens the map and shift-clicks on a train stop

Since shift-clicking adds a train stop to the end of the current schedule, the shuttle will not move at all

With my patch, all of the above situations are handled properly: the shuttle will travel to the requested train stop or rail, and take the configured exit action after the player has left the shuttle.

Automatic: After 2 minutes with no passanger, return to the depot
Manual: Stay in place and switch to manual mode
Depot: Immediately return to the depot

This patch accomplishes in two parts:

In order to allow players to easily control the shuttle via ctrl/shift-clicking, the shuttle's current schedule is cleared when the first player enters it.
Since (1) breaks the existing Exit Action implementation, it is also necessary to restore the schedule once the last player leaves a shuttle

The biggest changes were made to "onPlayerDrivingChangedState(event)", which is now wholely responsible for Exit Actions. I also added a helper function "getNextRailForTrain(train)" (currently only used by onPlayerDrivingChangedState(event)), but I'm not sure whether or not it should be moved to another file. Perhaps utils.lua would make more sense?
The relevant Exit Action logic was also removed from the following functions, since that is now handled elsewhere:

transportTo(train, player, destination)

No longer includes logic to add an extra schedule entry for the depot

onTrackedTrainChangedStatus(train)

No longer includes logic to set the shuttle to manual mode

sendPickupTrain(train, player, destination)

Now adds a schedule entry to return the shuttle to the depot, regardless of the player's exit action (so long as a depot name exists)

Basically a good idea. I gave it a test run and found some things that I do not like that much and some small bugs. Please give me a little time to think about it, then I answer more in depth to this.

Basically a good idea. I gave it a test run and found some things that I do not like that much and some small bugs. Please give me a little time to think about it, then I answer more in depth to this.

Just a quick note: I have not forgotten this pull request. I really like your idea but I am still not sure how I want it to be handled in detail. It will take some more time for me to figure it out. Sorry for the delay.

Just a quick note: I have not forgotten this pull request. I really like your idea but I am still not sure how I want it to be handled in detail. It will take some more time for me to figure it out. Sorry for the delay.

Thank you for letting me know -- and, please do take as much time as you need!

Thank you for letting me know -- and, please do take as much time as you need!

After thinking about a good solution I implemented a different approach to your ideas that is IMO less invasive
to the existing code. It's probably not much better at the end than what you have made.
I close this pull request as it is now probably obsolete. Please tell me if you think different.

After thinking about a good solution I implemented a different approach to your ideas that is IMO less invasive
to the existing code. It's probably not much better at the end than what you have made.
I close this pull request as it is now probably obsolete. Please tell me if you think different.


Fixed invalid JSON (missing comma) in code example

Why:
Fixed invalid JSON (missing comma) in code example
Check off the following:

[X] I have reviewed my changes in staging, available via the View deployment link in this PR's timeline (this link will be available after opening the PR).

For content changes, you will also see an automatically generated comment with links directly to pages you've modified. The comment won't appear if your PR only edits files in the data directory.

[x] For content changes, I have completed the self-review checklist.

martinssipenko:patch-1

@martinssipenko Thank you so much for opening a PR for this fix! ✨ Unfortunately, this is a file that we are unable to accept contributions toward. I'll open an issue internally to fix this, and close out this issue 💛


lstm: Include missing header

lstm/recodebeam.h was using PointerVector from ccutil/genericvector.h without including it.

There is no any GenericVector usage in this file.

There is no any GenericVector usage in this file.

... but it still uses PointerVector which is also defined in genericvector.h.

Oops, sorry. :)


fixed when is not possible get the description

Thanks! I actually ended up doing this in a slightly different way:
https://github.com/TelescopeJS/Telescope/commit/65f30864c6e457c379b1497a265bb541b4732493


Add a deal and/or ticket

The plugin is great but it would be gorgeous if it could create a deal associated to the contact.
Is it planned to create a new deal with other fields of the same form?

This isn't a feature I had previously considered. It seems to me that while some deal fields could be easily automated (e.g. source, related to, tags, description, milestone) a number would usually be populated by the owner (e.g. name, value, close date, probability, etc).
The concerns that come to mind are how to enable useful deal-specific functionality without adding unnecessary complexity. If a user still has to jump into Agile to edit a number of fields for a newly-generated deal, then I'm not convinced it would be worth the effort of implementing.
However, if you can describe how you can envisage it working for your use case, I'll certainly give it some thought.

In my case, we have different forms for different audience.

Contact form that create a helpdesk ticket. It can be made mapping text area field to agile crm ticket field
Contact form for business. That we want to create a deal for each new entry.

In order to keep it simple, it should be enough only relate the deal with the contact (a new one) and mapping a text field with notes or description of the deal. Only with that it will be great.
It will be fantastic to open Agile CRM and see deals coming from my wordpress site :)
What do you think about with this simple implementation?


Enable configure for running evcc in docker

Added an "configure" option to the entrypoint.sh which can write a evcc.yaml into a volume and prints it to system out.
Running:
   docker run -it --rm -p 7070:7070 -p 8887:8887 -p 7090:7090/udp -p 9522:9522/udp \
                     -v evcc:/etc/evcc evcc/evcc configure

should generate now a evcc.yaml within the docker-volume evcc
In order to take this new config the volume has to be mounted at evcc-start as well.

Warum brauchts das? Reicht nicht einfach
evcc configure

nach dem Container?

Tested and working


Changed slice::check_range to RangeBounds::assert_len.

In 1.49 the slice::check_range unstable funciton got moved to RangeBounds::assert_len.
https://github.com/rust-lang/rust/pull/76885

Thanks a lot!
According to the CI, the core::slice import is no longer needed now. Could you remove it?

Hi @phil-opp,
Soory about that, missed the warning locally. The import is now removed.

No worries, thanks for the quick update!

Published as v0.4.2


docs: update the section on nested MVU

Hey @hayleigh-dot-dev, what do you think?

Oh thank you, super appreciated! Could we remove the section on parent-child comms for now? I think it's more important that the docs have an authoritative opinion on what pattern to use, and I don't think I have one yet!

Of course, @hayleigh-dot-dev I've just pushed the changes :)

Wicked, thank you!


[Enhancement] Add hover variant for Cards

Describe the feature in detail (code, mocks, or screenshots encouraged)
I really like the default card styles but I would really like it if something similar to this could be added:
https://codepen.io/Gelsot/pen/xpGYyd
or something like:
https://codepen.io/makaveli-dev-web/pen/Roxoqa
The existing card style is nice, but often there could be times where I want the text to be hidden so the image can be larger. Then show the text on hover. The second one is most similar to the existing theme of skeleton so that might be easier to implement.
What type of pull request would this be?
Enhancement
Provide relevant links or additional information.
No response

@sakgoyal I'm not sure we could build a single variant that could do something like this. This is a combination of effects that Tailwind can though. It might involve several of the following features:

https://tailwindcss.com/docs/translate
https://tailwindcss.com/docs/brightness
https://tailwindcss.com/docs/opacity
https://tailwindcss.com/docs/transition-property (all transition settings)
https://tailwindcss.com/docs/hover-focus-and-other-states#styling-based-on-parent-state

By using group you can target the children then the parent is hovered.
I'm not saying this will be a trivial thing to add, but all the tools are there. This is one of those cases where the effect is so unique that I think it's best for you to handle yourself here. The goal of Skeleton is to provide privative building blocks, but we don't want redundancy with what Tailwind provides.
Hope this helps.


Version information is missing

For the UI, the git version displays the suffix '-dirty'.
For the backend, it displays "VERGEN_IDEMPOTENT_OUTPUT"

Is that on the deployed version?

Yes, it's from https://staging.trustification.dev/

Closed on staging:

It is still "dirty", as that is what it is.


Let's set up authentication (at least somewhat)

In theory, the backend is now ready!

TODO:

I need to finish writing api.tsx (in particular the POST function).
I need to integrate the api.tsx helper functions into the login page.
I need to create a sign up page and put it side-by-side with the login page.
I need to make sure the backend is equipped to add new users and not just authenticate existing ones.
I need to set up cookies.
I need to test everything!

TODO:

I need to debug the login form.
I need to create a sign up page and put it side-by-side with the login page.
I need to make sure the backend is equipped to add new users and not just authenticate existing ones.
I need to set up cookies.
I need to test everything!
I should see if I can remove noStore now that I'm running the api.tsx functions on a client component as opposed to a server component.

TODO:

I need to figure out how to call post on the server side despite the form/button being on the client side.
I need to create a sign up page and put it side-by-side with the login page.
I need to make sure the backend is equipped to add new users and not just authenticate existing ones.
I need to set up cookies.
I need to test everything!

TODO:

I need to solve the 401 Unauthorized error message
I need to create a sign up page and put it side-by-side with the login page.
I need to make sure the backend is equipped to add new users and not just authenticate existing ones.
I need to set up cookies.
I need to test everything!

TODO:

I need to set up cookies.
I need to handle errors in fetching gracefully.
I need to style the UI properly.
I need the frontend to list the constraints on valid passwords that Django enforces (or relax those constraints).
I need to have the user be redirected to the list of their debates after logging in.
I need to set up logging out.
I need to test everything!

TODO for future branches:

Send an email to reset the password if the user forgets / generally deal with resetting passwords.

TODO:

I need to set up cookies.
I need to configure account-button to have appropriate dropdown menus.
I need to handle errors in fetching gracefully.
I need to style the UIs for the pages in account/ properly.
I need to figure out account/change-password.
I need the frontend to list the constraints on valid passwords that Django enforces (or relax those constraints).
I need to have the user be redirected to the list of their debates after logging in.
I need to set up logging out.
I need to send an email to reset the password if the user forgets.

TODO:

I need to figure out how the username interacts with state.
I need to configure account-button to have appropriate dropdown menus.
I need to handle errors in fetching gracefully.
I need to style the UIs for the pages in account/ properly.
I need to figure out account/change-password.
I need the frontend to list the constraints on valid passwords that Django enforces (or relax those constraints).
I need to have the user be redirected to the list of their debates after logging in.
I need to set up logging out.
I need to send an email to reset the password if the user forgets.

Note: I think that it's okay for the username cookie to never expire. Instead, if the user attempts to login and the login attempt is rejected, the username is deleted at that point and the user is prompted to sign in again.

TODO:

I need to configure account-button to have appropriate dropdown menus.
I need to handle errors in fetching gracefully.
I need to style the UIs for the pages in account/ properly.
I need to figure out account/change-password.
I need the frontend to list the constraints on valid passwords that Django enforces (or relax those constraints).
I need to have the user be redirected to the list of their debates after logging in.
I need to set up logging out.
I need to send an email to reset the password if the user forgets.
After I'm convinced that I won't break anything, I need to remove user-context.

TODO:

I need to make sure that everything in account-actions works as intended (remember to always delete old cookies before creating equivalent new ones).
I need to handle errors in fetching gracefully.
I need to style the UIs for the pages in account/ properly.
I need to figure out account/change-password.
I need the frontend to list the constraints on valid passwords that Django enforces (or relax those constraints).
I need to have the user be redirected to the list of their debates after logging in.
I need to send an email to reset the password if the user forgets.
After I'm convinced that I won't break anything, I need to remove user-context.
I need to remove the user/[users]/ nesting since I'm using the username cookie for that now.

TODO:

Stop the username cookie from going away every time I return to the page.
I need to make sure that everything in account-actions works as intended (remember to always delete old cookies before creating equivalent new ones, remember to remove all console log commands).
I need to handle errors in fetching gracefully.
I need to style the UIs for the pages in account/ properly.
I need to figure out account/change-password.
I need the frontend to list the constraints on valid passwords that Django enforces (or relax those constraints).
I need to send an email to reset the password if the user forgets (make the email attribute optional in case the user doesn't want this feature).
After I'm convinced that I won't break anything, I need to remove user-context.
I need to have a change-email page and associated cookie.

TODO for future branches:

Fix the debate_name_goes_here placeholder.
Give debates their debateID's.


Allow Sprite to share ownership of underlying Texture data.

Title.
This change allows the underlying sf::Texture data to be shared between the user sf::Texture object and the sf::Sprites it is attached to. In the case the user relinquishes ownership of their sf::Texture object, the underlying data will still be available to any sf::Sprite objects that it is attached to, avoiding the infamous "white square problem" without any public API changes.
Test with any code that causes the "white square problem" to manifest itself, e.g.:
#include <SFML/Graphics.hpp>

int main()
{
    sf::RenderWindow window(sf::VideoMode({200, 200}), "Test");

    auto texture = sf::Texture::loadFromImage(sf::Image({100, 100}, sf::Color::Red));
    sf::Sprite sprite(*texture);
    texture.reset();

    while (window.isOpen())
    {
        while (const auto event = window.pollEvent())
        {
            if (event.is<sf::Event::Closed>())
                return 0;
        }

        window.clear();
        window.draw(sprite);
        window.display();
    }
}

Thank you for experimenting with solving the sprite lifetime issues -- I believe it's a problem that requires some attention and I appreciate you putting some effort into it.

I am not in favour of this particular direction, as previously discussed in https://github.com/SFML/SFML/issues/2385 (specifically, see https://github.com/SFML/SFML/issues/2385#issuecomment-1925372755). I don't like the idea of SFML forcing a particular ownership model on its users -- a texture should just be a texture, and if someone wants to share its ownership through run-time reference counting they can always use std::shared_ptr<sf::Texture>.
If we make sf::Texture internally use a std::shared_ptr, then we're forcing a particular ownership model on every users, even those who only need basic scope-based lifetimes (simplest, and most efficient), or std::unique_ptr-based unique ownership (simpler, and more efficient shared ownership).
By storing the sf::Texture by value inside sf::Sprite, we are making sf::Sprite a heavyweight object, as it now contains a std::shared_ptr. Applications/games that do not need a shared ownership model based on atomic operations (meant for non-deterministic lifetimes in multithreaded contexts) will now be forced to use such an ownership model. Copying a sprite will be a much heavier operation compared to before. Similarly, creating a temporary sf::Sprite on the spot to render something will also be a much heavier operation compared to before.
Few other minor drawbacks of this change, for completeness:

Texture.hpp becomes a physical dependency of Sprite.hpp.
<memory> becomes a physical dependency of Texture.hpp.
sf::Texture and sf::Sprite become more coupled together due to friendship.
Any access to a sf::Texture's data members requires one extra indirection through std::shared_ptr's control block.

In general, it would be very difficult for me to accept this PR.
I am still convinced that this is all a self-inflicted problem due to an unhealthy overuse of OOP -- the existence of sf::Sprite itself is just surface area for footguns.
I re-propose my PRs #3072 and #3080, which solve the problem at design-time by completely eliminating the possibility of the lifetime issue of arising in the first place, without any extra overhead or imposing ownership model constraints on our users.
Making "illegal states unrepresentable" at compile-time should be our direction, as we have done with our std::optional-based factory APIs. Adding shared ownership to work around a self-inflicted lifetime issue is something I will very likely never be happy about.
I would also like to point your attention to #3097, which introduces a lightweight debug-only lifetime tracking mechanism that does not impact any API, does not introduce any run-time or memory overhead in release mode (or when turned off), and prevents lifetime issues not only for sf::Sprite but for all SFML types that can have the same issue, presenting users with a helpful message that educates them on the concepts of lifetime and ownership without sweeping them under a rug.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

132 of 142 (92.96%)  changed or added relevant lines in 6 files are covered.
No unchanged relevant lines lost coverage.
Overall first build on feature/shared_texture_data at 56.024%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/SFML/Graphics/Sprite.cpp
3
4
75.0%

src/SFML/Graphics/Texture.cpp
110
119
92.44%

Totals

Change from base Build<PHONE_NUMBER>:
56.0%

Covered Lines:
11652

Relevant Lines:
19679

💛  - Coveralls

Closing in favour of #3122.


Failed to execute 'insertBefore' on 'Node'

Hi!
some time. when move block from one column to top another, browser catch error in console Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node..
After this error app broken and need reload page.
Code broken on this line https://github.com/cheton/react-sortable/blob/master/src/index.jsx#L63

The Node.insertBefore method:
var insertedNode = parentNode.insertBefore(newNode, referenceNode);

For a controlled component, this code will move the draggable element from the target position back to the original position:
evt.from.insertBefore(evt.item, store.nextSibling);

evt.from is the parent of the draggable element.
evt.item is the draggable element.
store.nextSibling is the next sibling of the draggable element.

First, could you try not making any state changes (i.e. do nothing) within your onChange method and check if it still generate this error?
onChange={(order) => {
    // do nothing
}}

If on errors being occurred, try the following:
onChange={(order) => {
    setTimeout(() => {
        this.props.sortByOrder(order); // Call your sort method
    }, 0);
}}

You can paste your sample code here that will be useful for me to find out what's going wrong.

part of code
let sortableOptions = {
    onUpdate: this.submitMoveCard,
    onAdd: this.submitMoveCard,
};
componentWillReceiveProps(nextProps) {
    ....
    this.setState({
        cards: nextProps.cards,
    });
}
submitMoveCard(event) {
    ...
    this.props.moveCard(reqData);
}

updateOrder(order) {
    ...
    this.setState({
        cards: newState
    });
}

return <Sortable tag="ul"
    options={sortableOptions}
    onChange={ (order) => this.updateOrder(order) }
>
    {this.renderCard()}

</Sortable>

on sorting update component state and submit new order to server(websocket).
when server response(also with ws) sortable component recive new props with updated order
if onChange callback wrapped with setTimeout - catch more often error.

Not sure if it's caused by multiple sortable instances while mounting/unmounting component. I made an update in v1.0.1 that will remove the instance in componentWillUnmount. Hope this work for you.

yes i have many columns and i sort card beetwen them
v1.0.1 - doesnt help

If it's possible, could you create a zip archive that contains a workable example so that I can try to reproduce this issue from my side. Thanks.

I am getting the same error: NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node
I have two image galleries that users can sort and drag/drop images between. I only seem to get this error when I try to pull an image from one gallery to the other within the first 5-6 seconds after the page loads.

    const filteredOrder = order.filter(item => {
      return item.length > 10 ? item : null;
    });

    this.galleryImages = filteredOrder;
  }

  @action onListingsChange(order, sortable, e) {
    this.isFocused = false;
    this.listingImages = order;
  }```

...

```  <ReactSortable
        className="listing-gallery"
        items={this.galleryImages}
        onChange={this.onGalleryChange}
        options={{
          animation: 150,
          group: 'galleryImages',
          scroll: true
        }}
        >
        {this.galleryImages.map((image, i) => {
          return (

Gallery Photo #{i + 1}

{this.getImageName(image)}

                <input
                  className="image-cb"
                  id={`${image}-gallery-${i}`}
                  type="checkbox"
                />
                <label htmlFor={`${image}-gallery-${i}`}>

          );
        })}
        </ReactSortable>```
...
```<ReactSortable
                className="listing-images"
                id="thumbs"
                items={this.listingImages}
                onChange={this.onListingsChange}
                options={{
                  animation: 150,
                  group: 'galleryImages',
                  ghostClass: 'listing-ghost'
                }}
              >
                {this.listingImages.map(image => {
                  return (

                  );
                })}
              </ReactSortable>```
...
```<ReactSortable
                className={!this.galleryImages.length > 0 ? 'add-image' : 'has-image'}
                onChange={this.onGalleryChange}
                options={{
                  animation: 150,
                  group: 'galleryImages'
                }}
              >
                  {GalleryContents}
              </ReactSortable>```

https://gist.github.com/brybrophy/fffa54f39e18f93e9a436f0cd4a3c5dc
Here is a gist with some of the code. I am using mobx for state management which is why there are actions and no this.setState's.

The "onChange" method relied on Sortable's onStart event to remember the original position of a draggable element. The "nextSibling" variable is used to store the next sibling of the draggable element.
https://github.com/cheton/react-sortable/blob/master/src/index.jsx#L38
options[name] = (evt) => {
    if (name === 'onStart') {
        store.nextSibling = evt.item.nextElementSibling;
        store.activeComponent = this;
    }
}

In normal circumstances, the onStart event should be fired immediately when dragging an item. However, if you do drag & drop very fast, the onStart event may be fired after dropping to the target container, and then evt.item will become an item in the target container as well. In that case, it's not possible to find the original dragging position due to a delayed onStart event.
Replace onStart event with onChoose event might be a solutioin to it, unfortunately, the new onChoose event is only available in Sortable's latest master branch, not in NPM<EMAIL_ADDRESS>A new version release is necessary for binding new events.

Hi, is this related (https://github.com/facebook/react/issues/8025), if so please upgrade chrome, i persume it solves the issue.

The latest version of<EMAIL_ADDRESS>should have resolved the problem. Has anyone tried it?

I'm using react-sortablejs 1.2.0 and sortablejs 1.5.0-rc1 and still having this issue.

I have the latest version of sortablejs and react-sortablejs.
I am using multi-dragging with onChoose (i tried also with onStart), but no success.
I am getting the same error: Uncaught DOMException: Failed to execute 'insertBefore' on 'Node'

I had the same issue using sortablejs (not using react).
An error appears when all following conditions are met:
1)You have two nested sortable containers
2)option “pull:clone” is set at least on the parent container
3)You drag an item from the parent container into the nested container
I solved with a small midification of the sortablejs library.
I made a pull request with my small patch:
https://github.com/SortableJS/Sortable/pull/1784

I use newest version of sortablejs, 1.15.3, still can reproduce this issue.
When I select two discontinuous cards in a list, and drag them to another empty list. This will reproduce.


how to specify object as response in storage ObjectsService.Get

https://godoc.org/google.golang.org/api/storage/v1#ObjectsService.Get

Get: Retrieves an object or its metadata.

How can I retrieve the object not its metadata?

Use the https://godoc.org/google.golang.org/api/storage/v1#ObjectsInsertCall.Media call.

Sorry, should have been the https://godoc.org/google.golang.org/api/storage/v1#ObjectsGetCall.Download call.

It works. Thank you.


default_setup client is not attaching to the buffer

default_setup client is not attaching to the buffer. If i put a custom server setup like this for example
require('lspconfig').lua_ls.setup {
    -- ... other configs
    settings = {
        Lua = {
            diagnostics = {
                globals = { 'vim' }
            }
        }
    }
}

then the client will be attached, otherwise nothing,
The following attached below is my lsp.lua file along with :LspInfo
It could be possible I goofed up somewhere, i've checked the docs and doubled checked to make sure everything was spelled correctly but still having this problem. if everything i've shown so far is supposed to work, then this could possibly be a bug?

You can test .default_setup() is being called by mason-lspconfig. Maybe something like this.
require('mason').setup({})
require('mason-lspconfig').setup({
  handlers = {
    function(server)
      vim.print({server})
      lsp_zero.default_setup(server)
    end,
  },
})

After running the test function, on both my windows machine and macbook everything works as intended even with just the original line lsp_zero.default_setup.
I doubled checked just in case it was an error on my part but it seems like calling default_server standalone without passing servers first was an issue.
If anymore problems arise I'll post another issue thanks for helping!


Create a website that allows to display 'biologic' data

On the home page we have basic information about how to use 'galvanicium'
The following path allows to drag / drop biologic files (or '.ium' files)
This kind of URL should work:
https://www.galvanicium.org/galvanicium#?filelist=https://zakodium-oss.github.io/analysis-dataset/biologic.json

No


Appsettings.json issue

Appsettings.json contains unsupported template generation logic.
Affect:
appsettings.json can not be loaded.

It will be fixed with 1.1.0 version


Add shortcut for database search and metadata search

Would be pretty useful at least for me 😄

You mean like focus search field on keyboard shortcut?

Exactly.


Detailed route view

Describe your changes
Create detailed route view for a route. Includes navigation to the route's feed, and the ability to archive the route. We are not implementing deletion of routes in our project, and editing perhaps but that will come later and only for draft routes.

Issue ticket number and link
#26
#56

I think we can improve upon the design of this page, we can center the thumbnail on the left half of the screen and organize the fields on the right. I'm also thinking this page would be the ideal place to put the Edit Route button, so we could position things to make it easy to convert into a form once the button is pressed.

Yeah you're right. I removed the Edit Route/Delete Route buttons because of our discussion about this being problematic, but i suppose we could allow employees to only edit the fields that are not cached in the DB. I think these are Route Name and something else I am forgetting? Also can i get an idea of how to better organize the fields on the right? Its pretty ugly rn

I think we can improve upon the design of this page, we can center the thumbnail on the left half of the screen and organize the fields on the right. I'm also thinking this page would be the ideal place to put the Edit Route button, so we could position things to make it easy to convert into a form once the button is pressed.

Yeah you're right. I removed the Edit Route/Delete Route buttons because of our discussion about this being problematic, but i suppose we could allow employees to only edit the fields that are not cached in the DB. I think these are Route Name and something else I am forgetting? Also can i get an idea of how to better organize the fields on the right? Its pretty ugly rn

I believe the two fields that cannot change are the name and grade.

I think we can improve upon the design of this page, we can center the thumbnail on the left half of the screen and organize the fields on the right. I'm also thinking this page would be the ideal place to put the Edit Route button, so we could position things to make it easy to convert into a form once the button is pressed.

Yeah you're right. I removed the Edit Route/Delete Route buttons because of our discussion about this being problematic, but i suppose we could allow employees to only edit the fields that are not cached in the DB. I think these are Route Name and something else I am forgetting? Also can i get an idea of how to better organize the fields on the right? Its pretty ugly rn

I believe the two fields that cannot change are the name and grade.

Bet, ill update this epic then

As far as organizing the fields on the right, just play around with spacing and maybe add a background color to the box that contains all the fields.


[Feature] Add Intermediary agents

Hi @pblanchardie,
For some of our payments, we need to specify intermediary banks. For example, we need to enter a name and an account number for the first intermediary bank and a name and a swift for the second.
Credit Transfer Transaction Information
+Intermediary Agent 1Account
++ ....

Specifications (page 53):
ig-credit-transfer-v2.0.2-en.pdf
Can this be implemented in the library please?

@valh1996 have a look at https://github.com/inisos/bank4j#readme is it sufficient? or do you also need SchmeNm and other fields?

@pblanchardie Sorry for the late reply, but yes, that's enough for now!
Thank you 🙏🏻


Added Validation for Projection with M2M Mappings (not supported yet)

Projection is not currently supported with M2M Mappings in Studio (calls JSONModelConnection), added descriptive validation (old cryptic message: "Cannot find match: JSONModelConnection instance of...")

This PR is stale because it has been open for 30 days with no activity. Please remove stale label or add any comment to keep this open. Otherwise this will be closed in 5 days.

This PR was closed because it has been inactive for 35 days. Please re-open if this PR is still relevant.