The popByChannel method of Swoft\Connection\Pool\AbstractPool will return last connection,While the idle time of all connections is greater than maxIdleTime

Q
A

Bug report?
yes

Feature request?
no

Swoft version
2.0.1

Swoole version
4.2.9 (by php --ri swoole)

PHP version
7.1.6 (by php -v)

Runtime environment
liunx in Docker etc.

Details

While the idle time of all connections is greater than maxIdleTime, below method will return last connection.

/**
     * Pop by channel
     *
     * @return ConnectionInterface|null
     */
    private function popByChannel(): ?ConnectionInterface
    {
        $time       = time();
        $connection = null;

        while (!$this->channel->isEmpty()) {
            /* @var ConnectionInterface $connection */
            $connection = $this->channel->pop();
            $lastTime   = $connection->getLastTime();

            // Out of `maxIdleTime`
            if ($time - $lastTime > $this->maxIdleTime) {
                $this->count--;
                continue;
            }

            return $connection;
        }

        return $connection;
    }

2.0.2 发布


⚠ Bofrost.es has degraded performance

In 34d6fc0, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1883 ms

Resolved: Bofrost.es performance has improved in 1d0059c after 27 minutes.


How to use hotstrings

How to use hotrings in the script? Can you add an example in CommandsGenerator?
the "top" command seems not work, the code is missing.
Also some *.ahk files like eg ShowAHKScripts.ahk
Thank You!

You should be able to just use the "k" type and type your hotstring in the next column with the Excel tool.
Those files are missing as you may have guessed, are in my local computer a folder above LNCHR. They're considered out of scope for this repo.


podman images --filter is missing 'since' support

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Docker allows you to filter images based on the since keyword:
[root@compute-0 ~]# docker images --filter since=5730ecdbe270
REPOSITORY                                               TAG                 IMAGE ID            CREATED             SIZE
<IP_ADDRESS>:8787/rhosp13/openstack-nova-compute         2019-10-31.1        63a28c287f5f        3 months ago        1.67 GB
<IP_ADDRESS>:8787/rhosp13/openstack-ceilometer-central   2019-10-31.1        ab188979b384        3 months ago        722 MB
Podman seems to not have implemented this yet:
$ sudo podman images
REPOSITORY                  TAG      IMAGE ID       CREATED       SIZE
docker.io/library/busybox   latest   6d5fcfe5ff17   5 weeks ago   1.44 MB
$ sudo podman images --filter 'since=6d5fcfe5ff17'
Error: unable to get images: invalid filter since
Output of podman version:
Version:            1.7.0
RemoteAPI Version:  1
Go Version:         go1.13.5
OS/Arch:            linux/amd64

Package info (e.g. output of rpm -q podman or apt list podman):
podman-1.7.0-2.fc31.x86_64

I might take a stab in the next week or so, I only filed it because I noticed the discrepancy while doing some unrelated work.

SGTM

@mbaldessari Any chance you have time to work on this?


Use ElasticLoadBalancingv2 to support Application Load Balancers

I've tested this in my AWS cluster and it was able to update all certificates on Application Load Balancers.
I'm not quite sure if elbv2 also works for Classic ELB.

I struggled with this exact issue today.  elbv2 does not pull classic load balancers right now.  So some logic will need to be implemented for this to support both types.


some minor bug found, hopefuly my modifications are valid~

thank you for providing such a excellent opensource fastq preprocessor, I have studied your code recently and found s minor some minor bugs:
1, the adapter sequence should be the overlap part of external provided adapterseq and the fastq read seq? If so, I think my modification is reasonable, if not, I would appreciate your idea about this treating
2, during the estimation of read number of a fastq file, the left bytes shouldn't take the first read into account, so I think the divisor records should minus 1
check it here:

Thanks, I will review it soon.

Sorry, but after a careful review, I think both of your changes are incorrect, so I cannot merge them.
Your future contributions are still welcome.

thank you, I realized where am I wrong now, when estimate the read number, after the first read is readed, in fact there have been more bytes red into the buffer  than that one read needed, so we minght just minus one read, the accurate amount is really so hard to calculate to my knowledge, but aftet minus - read, i test this function and found the results is still accurate for my tested fastq file, an I think this little offset will not affect the results if the fastq is large enough. anyway, keep it just like the original will not affect so much about the estimation as well.

as the adapter sequence, I agree with your calculation now after some through thought, thank you for reviewing my misleading modifications very much.


feat-taankdhirendra#131: Dockerize the application

Summary
Briefly describe the purpose of this PR.
Description
Explain in detail what this PR is all about. This should include the problem you're solving, the approach taken, and any technical details that reviewers need to know.
Images
Include any relevant images or diagrams that can help reviewers visualize the changes, if applicable
Issue(s) Addressed
Enter the issue number of the bug(s) that this PR fixes

Template should be strictly Closes <issue_number>
Example: Closes #1

Prerequisites

[ ] Have you followed all the CONTRIBUTING GUIDELINES?

nothing

merge code with production cdde


How can i attach extra Headers to a request

As per the documentation the api mode uses axios
I would like to attach a bearer token to each request. How do i attach extra headers
Currently fro the documentation it shows the apiUrl but how do i attach a header to the request?

@Geowan Please search the issues in vuetable-2 using "axios" keyword. There are many people posting the solution to this already.


[711] Smoke test for healthcheck and courses index routes

Context
https://trello.com/c/tcSBRSoL/711-m-healthcheck-smoke-test
https://trello.com/c/2EUGHq7k/713-m-courses-endpoint-smoke-tests
Changes proposed in this pull request

Smoke test to check V1 /healthcheck endpoint returns HTTP status of 200, json and expected shape
Smoke test to check V1 /courses endpoint returns HTTP status of 200

Guidance to review
As per the instructions in https://github.com/DFE-Digital/teacher-training-api/pull/1725
Checklist

[x] Make sure all information from the Trello card is in here
[x] Attach to Trello card
[x] Rebased master
[x] Cleaned commit history
[x] Tested by running locally

 [M] Courses endpoint smoke tests

 [M] Courses endpoint smoke tests

 [M] Healthcheck smoke test

 [M] Healthcheck smoke test

 Investigate load-balancing and redundancy

 Investigate load-balancing and redundancy

@defong thanks! changed the URL and now checking that at least one record is returned in courses data. not sure what you mean by meta.count != 0 though?

@defong thanks! changed the URL and now checking that at least one record is returned in courses data. not sure what you mean by meta.count != 0 though?

@defong thanks! changed the URL and now checking that at least one record is returned in courses data. not sure what you mean by meta.count != 0 though?

Sorry I meant greater than 1

Its the total course count that is available

@defong thanks! changed the URL and now checking that at least one record is returned in courses data. not sure what you mean by meta.count != 0 though?

Sorry I meant greater than 1

Its the total course count that is available

@defong - as discussed, looks like meta in only on qa at the moment. Should I add the test in anticipation make new PR adding the extra assertion later?

@defong - as discussed, looks like meta in only on qa at the moment. Should I add the test in anticipation make new PR adding the extra assertion later?

 [M] Courses endpoint smoke tests

 [M] Courses endpoint smoke tests


update tag explanations of  bibliographic reference documentation, fix typos

Coverage remained the same at 37.409% when pulling 70aa313f4ddcc47a3bf05560a1e99142c0bd7834 on iorala:improve_documentation into c438d3a277529fe04e1a3fe2436ef92822688f52 on kermitt2:master.


feat: Support JSONLD [DEV-1931]

Task linked: DEV-1931 Build full support for JSON-LD credentials into credential-service & setup veramo to user this

Closing this, as its been fixed in the parent branch


Function worker service is not done initializing. Please try again in a little while.  Reason: HTTP 503 Service Unavailable

After I deployed the cluster on two centos7 servers, I was prompted with this error when I used pulsar-admin to create functions or use functions list commands. This problem did not occur when I used single node deployment. I have read other issues and found similar problems, but could not find a solution
pulsar version：2.6.0

@sijie I have read your answers to other issues, but I can't solve them


Advanced refinement algorithms supporting bitvectors

This pull request adds additional refinement strategies that can be used when interpolation is unavailable (for example in case of bitvector problems using Z3). The refinement strategies added are:

UCB
NEWTON_SP
NEWTON_WP
NEWTON_IT_SP
NEWTON_IT_WP
NEWTON_SP_LV
NEWTON_WP_LV
NEWTON_IT_SP_LV
NEWTON_IT_WP_LV

My benchmarking showed that actually NWT_IT_WP is the most effective (in terms of that it can solve the most problems).

@as3810t okay, I will update the readme.


Char values being treated as unsigned...

This topic has been covered by other bugs which have been closed, but the issue still exists... here is the work-around...
int twos_complement_8( char i)
{
int mask = 128;
int i32 = (int)(i);
return -(i32 & mask) + (i32 & ~mask);
}
int4 twos_complement_8v(char4 v_i)
{
return (int4){
twos_complement_8( v_i.x),
twos_complement_8( v_i.y),
twos_complement_8( v_i.z),
twos_complement_8( v_i.w)
};
}
...
kernel void test(__global const char4 * refData) {
...
int4 val = twos_complement_8v(  refData[i])
...
}

This may be a driver issue, I'm currently testing with a different vulkan enabled device... will report back.

This may be a driver issue, The only device I have that supports int8 is MoltenVK, so I can't verify.

This was fixed by this...
https://github.com/KhronosGroup/SPIRV-Cross/issues/939


Request: TrackBar controls must be allowed having no interval markers if so desired.

Added with commit ec2184f2c523394aa034e5bddbbb7ea290531a29


[Feature Request] Automate Weakness use leading to Experience gain

Heya, a simple request here, it would be nice to have it that when a Weakness tag is selected on a roll then the sheet automatically adds a pip to the Experience tracker.

This automation would need to be optional control by GM as there are alternative rules for example, which allow increase exp gain on weakness invoked once per session, rather than each time. Forced automation of this would take away the flexibility of the systems design.

Could have a button that you can click... perhaps?


Update walkthrough.md

Hi everyone, i made some changes beacause some methods used are now obsolete. So it's just an update !

@Art-istote : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Strange behavior trying to install in conda with PyTorch built from source

I'm running on a machine where I built PyTorch from source on CUDA 9.2 cuDNN 7.2.1, with Ubuntu 18.04. I built PyTorch from source exactly following directions, but when I went to install conda vision (conda install torchvision) I got this message:
justinkterry@Station:~$ conda install torchvision
Solving environment: done

## Package Plan ##

  environment location: /home/justinkterry/miniconda3

  added / updated specs:
    - torchvision

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    cudatoolkit-9.0            |       h13b8566_0       340.4 MB
    libtiff-4.0.9              |       he85c1e1_1         566 KB
    nccl-1.3.5                 |        cuda9.0_0         8.6 MB
    torchvision-0.2.1          |           py36_0          75 KB
    pillow-5.2.0               |   py36heded4f4_0         586 KB
    ninja-1.8.2                |   py36h6bb024c_1         1.3 MB
    olefile-0.46               |           py36_0          48 KB
    pytorch-0.4.1              |   py36ha74772b_0       215.8 MB
    cudnn-7.1.2                |        cuda9.0_0       367.8 MB
    ------------------------------------------------------------
                                           Total:       935.1 MB

The following NEW packages will be INSTALLED:

    cudatoolkit: 9.0-h13b8566_0
    cudnn:       7.1.2-cuda9.0_0
    libtiff:     4.0.9-he85c1e1_1
    nccl:        1.3.5-cuda9.0_0
    ninja:       1.8.2-py36h6bb024c_1
    olefile:     0.46-py36_0
    pillow:      5.2.0-py36heded4f4_0
    pytorch:     0.4.1-py36ha74772b_0

The fact that torchvision is trying to install pytorch again seems to imply that the instructions to build from source don't properly integrate it into conda, or that the dependencies in torchvision are wrong. It appears to be torch vision, because of this:
justinkterry@Station:~$ conda list
# packages in environment at /home/justinkterry/miniconda3:
#
# Name                    Version                   Build  Channel
[...]
torch                     0.5.0a0+c8b246a           <pip>
[...]

Additionally, why is installing cuDNN and CUDA the default with conda install torchvision? Using torchivison doesn't require them, and accidentally adding a CUDA installation to a workstation can cause a huge number of issues.

This seems to be a duplicate of #590.
cc: @fmassa @soumith

Without knowing what's causing #590 it doesn't seem like it's gauranteed to
be the same.
I do have a small hypothesis as to the origin of the bug though (which
would mean it is a duplicate): torchvision says it depends on pytorch,
except in conda pytorch is an alias of torch, and I'm 51% sure that conda
doesn't resolve aliases when looking for met dependencies.
Also, could you please comment on my concerns about the CUDA and cuDNN
dependencies?
On Thu, Sep 13, 2018, 3:52 AM Vishwak Srinivasan<EMAIL_ADDRESS>wrote:

This seems to be a duplicate of #590
https://github.com/pytorch/vision/issues/590.
cc: @fmassa https://github.com/fmassa @soumith
https://github.com/soumith
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/pytorch/vision/issues/603#issuecomment-420916900, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AShd7PkiLoRxJqO8uwOI1fCQlSDhL1Z2ks5uag7UgaJpZM4WmVbU
.

--
Thank you for your time,
Justin Terry


Updated to Django2.1 and refactored the models to support Django2.1 and Python3

Updated django1.11 to django2.1 and made changes in the models to support django2.1 and Python 3. Added a missing argument- on_delete in the ForeignKey field.

Looks good 👍


Project Idea : Simple Avatar Maker

Simple Avatar Maker
A simple and useful API, microservice app to generate minimalistic profile pic using the username initials.
Example : for username = John Doe

Main goal

Using node.js make an API to fetch the avatar image when passed username name and other details as parameters
make the API a microservice, so that it can be used with other major projects
Host it on cloud
make a website to showcase its demo
make API documentation, so others can use it easily

Tech stack

Backend: Node.js, express.js, canvas, etc
Frontend: HTML, SCSS and JavaScript.
Cloud: AWS or Heroku (as per need)

As a part of GSSoC'21, I would like to work on this project and contribute to this repo !

@jhamadhav We are only using vanilla js. Let me know if you can do something with only vanilla js :)

@urvashi-code1255 definitely as this - project will only need Javascript, I can make it using only vanilla Javascript too 👍

Can I start making it ?
@urvashi-code1255

@urvashi-code1255 and @Vishal-raj-1, please close this issue as the PR for it has been merged!

Sorry for the dealy @jhamadhav
You can start working.


.aoc leaderboard #deleted-channel

When .aoc leaderboard is ran in a channel that it isn't allowed in, the alert that people get:

Not gonna happen.
Sorry, but you may only use this command within #bot-commands, #seasonalbot-commands, #ot0-everyone-is-lemon-except-you, #ot1-import-that, #ot2-change-the-colours-back, #deleted-channel, #advent-of-code.

references a #deleted-channel

Since the outdated constant still hasn't been removed I will do it in #329.


x/vuln: make progress-like output opt-in for -json flag

What version of Go are you using (go version)?

$ go version
go1.20.4

Does this issue reproduce at the latest version of golang.org/x/vuln?
Yes
What did you do?
govulncheck -json
What did you expect to see?
Currently, the nature of -json flag is that it emits progress-like output. This is extremely hard to parse by other tools, because many of them don't support multiple JSON objects defined one after another. I think the progress-like output should be opt-in instead of default value (at least for -json flag). I feel like this would improve handling certain scenario.
To give concrete example is that I would envision using job where I run govulncheck -json > vulns.json and then pass this vulns.json artifact file to next job that would do something with it. But then this other job would need to parse and omit all the objects which don't match certain structure. For example it is obsolete to parse:
{
  "progress": {
    "message": "Scanning your code and 625 packages across 64 dependent modules for known vulnerabilities..."
  }
}

because this is not related to the vulnerabilities itself.
What did you see instead?
I would like to see just one structure that could be parsed and is emitted after all the checks/passes are done. For example instead of:
{
  "config": {
    "version"<EMAIL_ADDRESS>    "data_source": "https://vuln.go.dev",
    "last_modified": "2023-05-24T18:13:11Z",
    "go_version": "go1.20.4"
  }
}
{
  "progress": {
    "message": "Scanning your code and 625 packages across 64 dependent modules for known vulnerabilities..."
  }
}
{
  "vulnerability": {
    ...
  }
}

do:
{
  "config": {
    "version"<EMAIL_ADDRESS>    "data_source": "https://vuln.go.dev",
    "last_modified": "2023-05-24T18:13:11Z",
    "go_version": "go1.20.4"
  },
  "progress": {
    "message": "Scanning your code and 625 packages across 64 dependent modules for known vulnerabilities..."
  },
  "vulnerabilities": [
    {
      ...
    }
  ]
}

CC @golang/vulndb

Are there any particular tools you have in mind? All the existing tools that we were thinking about handle json streams, and if you are writing a new tool we provide some very simple code to handle it.
You can always convert it to an array using something like jq -s '.' if you have an unusual use case that really needs a non stream version

Maybe "tools" was not the correct word. You are right jq could help with processing the output. But the problem happens when you try to for example read this file with:
data, _ := os.ReadFile(...)
var output any
err := json.Unmarshal(data, &output)
fmt.Println(err)

This would produce error invalid character '{' after top-level value.
One could use json.Decoder (as suggested for example in https://stackoverflow.com/a/50352805) but the thing is that you would need to handle 3 different structs (at least for now).
That's why I'm saying having some kind of "wrapper" struct over all of this would solve the problem because I could read everything and then focus on the part that I'm most interested. Right now, there are options to deal with it, like jq or this json.Decoder and probably some more, but I would love to see that working out of a box.

Another thing, is that even if you are relaying on jq -s '.' then you get array of objects. Then you need to filter out things that match or not match the object that you are interested in particular (worse if you rely on index in this array). And what happens if govulncheck decides to change the order or add something in between? Then suddenly your script could start failing. If we would have well defined structure adding new field would not affect any existing tools/scripts.

To list all findings you need to do govulncheck -json ./... | jq -s '.[].finding | select(. != null)' which in my opinion is not easy. And you need to have jq in the first place.

Easy is not really the goal of the format, powerful and flexible for writing tools on top of it is.
The normal way to process the stream is using code like internal/govulncheck/handler.go
That is the code used by govulncheck itself when converting from json to text, and that package is intended to be code you can copy paste into your own tools. It is not a lot of code.
govulncheck makes no promises at all about the ordering of messages in the output, or how many it will emit (even when scanning the same code with the same database, because it is using heuristics to pick representative call paths), so you can never safely index into the array.

Easy is not really the goal of the format, powerful and flexible for writing tools on top of it is.

As I agree with this statement, I don't fully understand how this applies to my proposal. Could you give me some use-case when the streaming format is more "powerful and flexible" comparing to my static definition? Also not sure if this is good comparison in the first place since they have their different purposes.
Also, as I mentioned, I don't really want to drop the streaming, I just want to add an option to disable it.

That is the code used by govulncheck itself when converting from json to text, and that package is intended to be code you can copy paste into your own tools. It is not a lot of code.

But could be less :D Also, you already have Message defined which is almost exactly what we need https://go.googlesource.com/vuln/+/master/internal/govulncheck/govulncheck.go#21 we just need to make some of the fields arrays instead of just single values.

Streaming is useful for cases where the scanning is going to take a long time.
For instance, you can emit the progress messages that tell you how much work it thinks it is going to have to do, so the user has some idea how long it is going to take, or you can abort early on the first finding if you are just trying to determine vulnerable or not.
Streams can also be merged, if you concatenate two streams, the resulting stream is still valid, the same would not be true for a static form (you would have to write the merge tool).
It is easy to see how to build a static form from the streaming one, it is impossible to go the other way round, so we either only have streaming, or we have both streaming and static (which would have to be more code).
Understanding the streaming form is so easy that it seems pointless to add a static form on top of it. If you really want it, you can easily define your own static form and write a small tool that takes the streaming form and makes your static form from it.
The vast majority of uses will have to group or filter the data in some form (by vulnerability, by package etc), which they will do by iterating the findings anyway, so there is no benefit to the static form when it comes to processing the data.

Understanding the streaming form is so easy that it seems pointless to add a static form on top of it. If you really want it, you can easily define your own static form and write a small tool that takes the streaming form and makes your static form from it.

I see that you have pretty strong opinion about that, so I guess then this enhancement proposal is not going to happen :(


Make sure the port forwarding protocol is always lowercase

The ServicePort.Protocol is always uppercase, e.g. "TCP", but the api.IPPort.protocol is always lowercase, i.e. "tcp".
Since UDP support was added in #2411 the hostagent filters on the protocol values.
cc @pendo324 @balajiv113 @Nino-K

Testing (fails without this PR, succeeds after it is applied):
limactl start --tty=false template://k3s
export KUBECONFIG="$HOME/.lima/k3s/copied-from-guest/kubeconfig.yaml"
kubectl create deployment nginx --image=nginx
kubectl create service nodeport nginx --tcp=80:80 --node-port=32000
curl http://localhost:32000


Incorrect slide selection when centeredSlides = false, slidesPerView > 1

There's some error in the number of slides that can be selected when centeredSlides = false and slidesPerView > 1
The result seems to be something like this (I'm not really sure):
available slides = total number of slides - slidesPerView + 1
I found it when implementing a variant of thumbs-gallery demo, so I've made a testcase using it: http://jsfiddle.net/rfc1en11/

That is how Swiper works, control doesn't work based on slide indexes it works on a percentage divider between (maxTranslateParent - minTranslateParent)/(maxTranslateChild - minTranslateChild). So when centeredSlides = false, you can't move thumbs to the most right slide that is why those multiplication percentage became different
Here is solution http://jsfiddle.net/1gLna398/8/

Thanks, could you please add a note about it? It definitely isn't easy to figure out for those who don't know the source-code specifics.

margin-left: calc(-40% - 5px);

Btw, couldn't you make it do the margin calc automatically when when centeredSlides == false and slidesPerView > 1? Otherwise, I think it would be helpful if it trigger an alert in console.
Or maybe you will find a formula to handle both cases...

It definitely isn't easy to figure out for those who don't know the source-code specifics.

Should be visually easy, it is default offset of first slide from the left in centered slide, where each slide is 20% width in your case

Btw, couldn't you make it do the margin calc automatically when when centeredSlides == false and slidesPerView > 1? Otherwise, I think it would be helpful if it trigger an alert in console.

No, it is normal behavior how it is now, it is just your case which is not default one and pretty specific

No, it is normal behavior how it is now, it is just your case which is not default one and pretty specific

How could one think two options can't work together if there is nothing about it anywhere?

it is normal behavior how it is now

How would one know what is or isn't normal behavior if all documentation available is an API page and Demos?

Another solution which worked for me.
I manually added a  data-gflsi="INCREMENTED_VALUE" to each slide of both the main slider and the thumbnail slider.
I did not add any default swiper calls to control each other. Instead I targeted the thumbnail slider slides only like this:
// This will only bind to the thumbnail slider items, the main slider has a different class name in the container
jQuery('.swiper-container-single-thumbs .swiper-slide').click(function () {

       var current_index = jQuery(this).attr('data-gflsi');
       // Control the main slider
       mySwiperSingle.slideTo(current_index);

   });

I just did centeredSlides: true, and fixed the position of slider wrapper with css left: -40%. I know it is not the best solution but it worked for me.


Updating the carousel on component updates

Is there a fix for updating the carouse on component updates. So far when my component updates with new cells the carousel breaks out and nothing is displayed apart from the nav arrows.
It sucks cos otherwise this package is very good :)
Thanks for the help!

@AdrienVictor Hey. Try to install the latest version of the library.

Workaround:
#For Initial Loading:  use like: it will only show carousel when data is available
<carousel *ngIf="list.length != 0">

#For Update use like: it will show new carousel when data is changed
<carousel *ngIf="list.length != 0 && isLatest">

In subscription change isLatest to false and then after a tick timeout set isLatest=true
Note: It will re-render the list and may cause performance issue if list is too big or not using lazy loading
Hope this will help someone.


editable bool field

Laravel Version: 6.17.1
PHP Version: 7.2.19
Laravel-admin: 1.7
Description:
How to make boolean field editable?
When click value changes from 0 to 1 and vice versa.
Something like that
        $grid->column('is_published', 'Опубликовано')->bool()->editable();

you must add this column in your form

I already opened similar issue about wrong behaviour of select field here https://github.com/z-song/laravel-admin/issues/4251

can somebody help on this issue?
Obviously select field doesn't work as it is explained in documentation.
I found working solution, but it works only with eloquent relationships.
Working is
$form->select('category_id')->options(NewsPost::selectOptions());

instead of this (explained in documentation)
 $form->select('category_id')->options(NewsPost::all()->pluck('category_id'));

As result you will see Parent category in select dropdown field.
I found that looking in the code of admin menu controller.
But it doesn't work for another fields.
So this will not work  $form->select('is_published')->options(NewsPost::selectOptions());


Errors after baselines repo latest commit

After cleanups done in baselines repo I am getting new errors while running train_mineral_shards (with enjoy_mineral_shards everything works just fine)
Traceback (most recent call last):
  File "C:/Users/Artur/Documents/PySC2/train/train_mineral_shards.py", line 14, in <module>
    from a2c.policies import CnnPolicy
  File "C:\Users\Artur\Documents\PySC2\train\a2c\policies.py", line 3, in <module>
    from baselines.acktr.utils import conv, fc, dense, conv_to_fc, sample, kl_div
ImportError: cannot import name 'conv'

Process finished with exit code 1

Any help?

I'm encountering the same issue, no progress yet.

Same here. Seems baselines changed their API. conv now only has dense and kl_div (see current utils.py and this commit where it was deleted ). I think baselines.a2c.utils can be used instead because it seems to be a duplicate.
If you like I can provide a pull request.


SAK-32515 Section Info: Improve sorting functionality by including 'r…

…eadOnly' sections in the 'unassigned' students selector

Hi @manuelal , can you please submit a contributor license agreement so that we can accept your contribution?
To learn about the Apereo licensing process and to find a link to the ICLA form (individual contributor license) , please see
https://www.apereo.org/licensing
Thanks!

@plukasew
Thanks for the suggestions. I'll make the changes.


[External] T113 GetSalesShptLines / T115 GetReturnRcptLines

Can you please put following functions to 'External'?

T113 GetSalesShptLines  : to retrieve the Sales Shipment Lines linked to a Sales Invoice Line
T115 GetReturnRcptLines : to retrieve the Sales Return Receipt Lines linked to a Sales Cr. Memo Line

Thank you for reporting the issue. I've recieved the following reply from one of our developers. If you do not agree with the reply, please re-open this issue.
The function GetReturnRcptLines is a local function created with the purpose of aggregating all receipt lines into a temporary record. We do not foresee a need to have access to such a temporary record except in the case where we use it locally. That's why we have decided not to fix this request.
Having said that, it should be straight-forward to get the return receipt lines by creating a custom function that does the following:

Filtering on the value entry via the EXTERNAL FilterPstdDocLineValueEntries function
Get the Item Ledger Entry from the value entry
From the item ledger entry, get to the return receipt document/ document line.


Spanish locale .json

Hi! This is the locale translated to spanish. Cheers from Argentina :)

Thank you for the translation!

@Maugenta it is deployed, you can check it under: https://glamwikidashboard.org


Icon Request: Lock/padlock (hengelås)

We need an icon for locked content that user can't access when parent control is activated.
Probably useful for other stuff as well.

I made this and I think it's GREAT:

It is GREAT. Do you have it as an SVG file @jorgeneidem? Any comments on the design @formfett?

Lock made.


[OS Data Sync] Export health data to db (iOS & Android)

Changes

Save all health data relating to activity (e.g. steps) and sleep to db for both iOS (HealthKit) and Android (Google Fit)

Requirements
N/A
PR Dependencies
Depends on: #189
Subtasks / Progress

[x] Implement base for saving
[ ] Save iOS
[ ] Save Android
of benchmarks.

Testing
Manual

Hey @MarkDavies0 do you know what's the status of this PR? It doesn't have any labels so I'm not sure where we are at with it. Have you tested it on iOS and Android to see if it's saving properly?


useless comparisons

In the GetStarted Example there are useless comparisons like
if (humidity != humidity)
{
json_object_set_null(root_object, "humidity");
}
Those could be confusing for starters with the DevKit.
Please remove them.

not useless, send the humidity to IoT hub only it has changed

float humidity = readHumidity(); //Here you read the value of the humidity sensor
...
if (humidity != humidity) //Here you compare the value of the humidity Sensor you read out, to its self
{} //Therfore this Code will never be executed since the same variable can't have two values at once
Please correct me if I'm wrong, since i am normally developing in C#

My bad, didn't review the code carefully.

No Problem, I'm happy to help.


Exam Type to be added to Scan screen

Above enhancement is done . I am able to see examType field in ui for ongoing scan screen .


Visualizing trace jumps for discontinuous solution

If I've computed a discontinuous solution in an L2 or RT space, is there a good way to compute and output the jumps on the interfaces as a GridFunction, for example using an H1 or ND space? Hopefully that question makes sense, but I'm stuck as to how to get a projection of the jumps represented in some trace space of the elements onto a full domain representation in the element interiors. This seems similar to a questions in #1288 or #106.
Perhaps it's not a well posed question, but this would be a common thing for example to compute surface currents from the magnetic field in an electromagnetics code.

Thanks for the quick response. I'll have to think a bit more about your ideas but in the mean time it may help if I am more specific since perhaps I'm over complicating things.
I want to compute something like X = n x [B], where B is in a vector L2 space of the same dimension as n and thus X is continuous on each element interface (and tangent to the face) and it's value doesn't really matter inside the element. I was thinking maybe you could just get the projection by assuming X is in an H1 or ND space and ending up with a system where the system matrix is just a vector mass matrix and the RHS looks like the inner product (n x [b], v). Maybe this is the wrong direction to go in but thanks as always for your help and suggestions MFEM community.

@tzanio I think I've come up with a better statement of my problem and a potential solution, and would like to hear any feedback you might have.
Instead of visualizing the jumps I'm content with just looking at the quantity J = n x H on boundaries of the domain where H is discontinuous (though in general n x H is continuous across elements). I think the way to do this is just to use a VectorGridFunctionCoefficient for the DG field H, and solve the linear system resulting from the surface integrals (u, v) = (n x H, v) where the solution is J in an ND space and the RHS can be computed using a VectorFEBoundaryTangentLFIntegrator.
There is an issue when the boundary of interest is internal to the domain (two sided), in which case the call to GetBdrFaceTransformations inside of GridFunction::GetVectorValue called by the integrator for the discontinuous field coefficient will return NULL since the face attached to the boundary element is an interior face. However if I just comment out lines 1032-1036 in mesh.cpp I think I can force the quantity n x H just be evaluated in a one-sided fashion on an interior surface which still works since n x H should be continuous across elements based on the problem.
I've tested this out and it seems to be doing the right thing, though I'm not 100% convinced that it's the best way to accomplish what I want. Since the VectorFEBoundaryTangentLFIntegrator is only available for ND spaces, I am forced to represent J in an ND space and get some weird out of plane components even though the quantity n x H should always lie tangent to the surface. Maybe I need to project the final solution onto a fully continuous space, perhaps using GridFunction::ProjectDiscCoefficient to average out the discontinuities?
I'd be very interested if anyone else has encountered this type of problem and how they have approached it in their own applications!

Hi @sebastiangrimberg,
I've never had to do anything like this myself, but maybe Mark (@mlstowell) has experience with similar problems and can offer advice.
Tzanio

Hi @mlstowell, any chance you've had to think about similar postprocessing problems? Would love your input whenever you get a chance.
Sebastian

Hi, @sebastiangrimberg,
Sorry for the delay. I must have missed this when it first arose.
I have done something like this in the past although I typically start with ND or RT spaces. If you're transferring a field from one representation to another and the target representation can exactly capture the source field then you can avoid solving a linear system and just use a projection. It sounds like this will work in your case if you're certain that n x H is continuous.
There are two ways to accomplish this. The first is to write a custom loop over the relevant faces and project n x H onto the corresponding degrees of freedom. The second is to create a DiscreteLinearOperator which can be reused multiple times. The second option would be more complicated but more efficient if you need to reuse this operation several times in your simulation.
One thing to keep in mind is that on interior faces n is not uniquely defined. There is a normal direction for each face but its sign is arbitrary. To resolve this you'll need to define a vector field, v for example, which everywhere points in the direction you've chosen. This allows you to check the sign of v . n on each face and correct the sign of n when necessary.
I assume you need to compute n x H on a small subset of interior faces and perhaps on most or all of the outer boundary. If you choose the second option we may be able to reuse DiscreteLinearOperator::AddTraceFaceInterpolator but we'd need to write a custom DiscreteInterpolator. If you choose the first option it might be easiest to just write your own loop over interior faces and compute the projection at a fairly low level.
Let me know what you think would work best and I'd be happy to guide you through the necessary steps.
Best wishes,
Mark

Hi Mark, thanks for the fast follow up. I think starting with the first option just for clarity would help and if performance becomes an issue then I can try out the second.
Indeed as you can imagine I have a solution E in an ND space and B in an RT space and am going from there like the Maxwell miniapp. I don't think H can be in an ND space because of internal boundaries where the tangential component is discontinuous. In this case looping over the relevant faces (for example they may be all labeled as boundary elements), I would need to choose the neighboring element that is somehow consistent with the chosen normal orientation (for example, always compute n x H using the element on the side of an internal surface into which n points). Or maybe if I am confident that n x H will be continuous even though H is not tangentially continuous there is a way to average the results from both neighboring elements. How to do this over the boundary elements isn't immediately clear to me, so maybe the first method isn't actually that simple?
Am I just overly complicating things or do internal boundaries with two neighboring elements make  things a bit harder?
Sebastian

Hi, Sebastian,
Things do get complicated quickly. If B is in RT then we cannot guarantee that n x B is continuous. However, this is often an artifact of the numerical approximation. If the magnetic permeability is the same on both sides of the interface and there are no surface currents imposed on the interface then the true B field should be entirely continuous.
I'm curious, what type of physics are you interested in near these internal boundaries?
Best wishes,
Mark

For an example using Maxwell miniapp, consider a metal box with some current source inside as well as some other internal metal surface on which we impose a PEC BC. I would be interested in viewing the induced currents both on the external box boundaries (one sided) as well as the internal surface (which are two sided). If the internal surface is infinitely thin, then I'm pretty sure the tangential components of B will point in opposite directions on either side of the surface which is the kind of issue I'm struggling with.
Does that make sense? Could be that I'm just not anticipating this correctly.
Sebastian

I see. To accurately see surface currents on metal surfaces the PEC boundaries should be one sided. Applying PEC BCs to double sided surfaces should work fine but you won't have enough degrees of freedom to see the surface currents correctly. You could compute the averaged currents but I doubt these would be physically meaningful. On the one hand if the metal surface is much thicker than the skin depth then the two currents don't interact so their average is not relevant. On the other hand if the metal is thin compared to the skin depth then the currents interact strongly and their average could be relevant but the PEC BC is probably not an adequate representation of the physics on such a thin sheet so the fields won't be reliable.
I had a similar situation arise recently and I chose to split the interior surface in to two separate surfaces. In most cases these two surfaces can lie directly on top of each other as long as they use different vertices so that topologically they form a cut in the mesh. In rare cases the vertices might need unique coordinates but this can be handled by shifting the vertices on one side of the cut by a very small number. Clearly this scheme has the advantage that all of your PEC surfaces are now on the outer boundary so n x H will be single valued everywhere.
I hate to complicate things further but I have to mention this. If the accuracy of your n x H values are paramount then you may want to consider using an DH formulation of the Maxwell equations. What I mean by this is rewriting the Maxwell equations so that you solve for H and D rather than E and B. This formulation would produce more accurate values for H at the boundaries whereas the EB formulation approximates the flux of B through the interior of the elements.

I totally agree and was thinking that going the route of fixing at the mesh level would be the best approach. I think that this will be possible to add at the preprocessing stage and the tricky use of double sided internal surfaces probably wasn't a great idea.
Regarding the EB vs. HD formulations, I agree with your points and thanks for bringing it up. For the most part accuracy in E is what we are looking for which was the motivation for going this direction. Postprocessing for B and J is just a nice added feature.
Closing this now, thanks again so much!
Sebastian

Glad to help!


Inaccurate MACD indicator calculator

I'm submitting a...

[x] bug

What is the current behaviour
Signal line is calculated before the macd itself which skews future values once macd becomes available.
What is the expected behaviour
Signal is an EMA of macd, calculation can only start once we have a sufficient number of macds.
Please tell us about your environment

Version: 2.0.1
Browser: [all | Chrome XX | Firefox XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari ]

Other information

@markmcdowell Would be great to have a release with the fix from PR #694 included. Thank you.


ERROR com.pinterest.doctorkafka.DoctorKafka - No brokerstats info for cluster

Hi,
I am getting below error while starting doctorkafka and doctorkafka ui is not populated with cluster details
I have pasted the doctorkafka UI screenshot and startup log
INFO  [2019-04-18 10:26:36,215] org.apache.zookeeper.ZooKeeper: Client environment:user.dir=/kafka/doctorkafka-<IP_ADDRESS>-build
INFO  [2019-04-18 10:26:36,217] org.apache.zookeeper.ZooKeeper: Initiating client connection, connectString:2181=kafka-poc-2.com,ka
fka-poc-3.com:2181,kafka-poc-4.com:2181 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@65383667
INFO  [2019-04-18 10:26:36,246] org.apache.zookeeper.ClientCnxn: Opening socket connection to server kafka-poc-2.com/<IP_ADDRESS>:
2181. Will not attempt to authenticate using SASL (unknown error)
INFO  [2019-04-18 10:26:36,247] org.apache.curator.framework.imps.CuratorFrameworkImpl: Default schema
WARN  [2019-04-18 10:26:36,262] org.apache.zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and att
empting reconnect
! java.net.ConnectException: Connection refused
! at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
! at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
! at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
! at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1141)
INFO  [2019-04-18 10:26:36,364] org.apache.zookeeper.ClientCnxn: Opening socket connection to server kafka-poc-2.com/<IP_ADDRESS>:2181. Will not attempt to authenticate using SASL (unknown error)
WARN  [2019-04-18 10:26:36,365] org.apache.zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
! java.net.ConnectException: Connection refused
! at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
! at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
! at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
! at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1141)
INFO  [2019-04-18 10:26:36,466] org.apache.zookeeper.ClientCnxn: Opening socket connection to server kafka-poc-4.com/<IP_ADDRESS>:2181. Will not attempt to authenticate using SASL (unknown error)
INFO  [2019-04-18 10:26:36,468] org.apache.zookeeper.ClientCnxn: Socket connection established to kafka-poc-4.com/<IP_ADDRESS>:2181, initiating session
WARN  [2019-04-18 10:26:36,554] com.pinterest.doctorkafka.util.OstrichAdminService: Failed to load properties from build.properties
! java.lang.NullPointerException: null
! at com.pinterest.doctorkafka.util.OstrichAdminService.startAdminHttpService(OstrichAdminService.java:39)
! at com.pinterest.doctorkafka.util.OperatorUtil.startOstrichService(OperatorUtil.java:282)
! at com.pinterest.doctorkafka.DoctorKafkaMain.startMetricsService(DoctorKafkaMain.java:130)
! at com.pinterest.doctorkafka.DoctorKafkaMain.run(DoctorKafkaMain.java:80)
! at com.pinterest.doctorkafka.DoctorKafkaMain.run(DoctorKafkaMain.java:38)
! at io.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:43)
! at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:87)
! at io.dropwizard.cli.Cli.run(Cli.java:78)
! at io.dropwizard.Application.run(Application.java:93)
! at com.pinterest.doctorkafka.DoctorKafkaMain.main(DoctorKafkaMain.java:149)
INFO  [2019-04-18 10:26:36,903] org.apache.zookeeper.ZooKeeper: Initiating client connection, connectString:2181=kafka-poc-2.com,kafka-poc-3.com:2181,kafka-poc-4.com:2181 sessionTimeout=30000 watcher=org.I0Itec.zkclient.ZkClient@3586412d
INFO  [2019-04-18 10:26:36,904] org.I0Itec.zkclient.ZkEventThread: Starting ZkClient event thread.
INFO  [2019-04-18 10:26:36,904] org.I0Itec.zkclient.ZkClient: Waiting for keeper state SyncConnected
INFO  [2019-04-18 10:26:36,908] org.apache.zookeeper.ClientCnxn: Opening socket connection to server kafka-poc-3.com/<IP_ADDRESS>:2181. Will not attempt to authenticate using SASL (unknown error)
INFO  [2019-04-18 10:26:36,909] org.apache.zookeeper.ClientCnxn: Socket connection established to kafka-poc-3.com/<IP_ADDRESS>:2181, initiating session
INFO  [2019-04-18 10:26:37,249] com.twitter.ostrich.stats.LatchedStatsListener$$anon$1: Starting LatchedStatsListener
INFO  [2019-04-18 10:26:37,520] com.twitter.ostrich.admin.AdminHttpService: Admin HTTP interface started on port 2052.
INFO  [2019-04-18 10:26:37,533] io.dropwizard.server.ServerFactory: Starting DoctorKafkaMain
INFO  [2019-04-18 10:26:37,620] org.eclipse.jetty.setuid.SetUIDListener: Opened application@ea00de{HTTP/1.1,[http/1.1]}{<IP_ADDRESS>:8080}
.............
INFO  [2019-04-18 10:26:39,226] org.apache.kafka.common.utils.AppInfoParser: Kafka version : 1.1.0
INFO  [2019-04-18 10:26:39,226] org.apache.kafka.common.utils.AppInfoParser: Kafka commitId : fdcf75ea326b8e07
15:56:39.233 [pool-8-thread-1] ERROR com.pinterest.doctorkafka.DoctorKafka - No brokerstats info for cluster kafka-poc-2.com:2181,kafka-poc-3.com:2181,kafka-poc-4.com:2181
INFO  [2019-04-18 10:26:39,242] org.apache.kafka.clients.consumer.internals.AbstractCoordinator: [Consumer clientId=consumer-5, groupId=operator_brokerstats_group_sidharth-kafka-poc-1] Successfully joined group with generation 7
INFO  [2019-04-18 10:26:39,243] org.apache.kafka.clients.consumer.internals.ConsumerCoordinator: [Consumer clientId=consumer-5, groupId=operator_brokerstats_group_sidharth-kafka-poc-1] Setting newly assigned partitions [brokerstats-0, brokerstats-1, brokerstats-2]
dropwizard_yaml_file.yaml
config:  doctorkafka.properties
server:
type: default
maxThreads: 1024
doctorkafka.properties
###################################################################################

DoctorKafka global settings, including the zookeeper url for kafkastats topic

###################################################################################
[required] zookeeper quorum for storing doctorkafka metadata
#doctorkafka.zkurl=zookeeper001:2181,zookeeper002:2181,zookeeper003:2181
doctorkafka.zkurl:2181=kafka-poc-2.com,kafka-poc-3.com:2181,kafka-poc-4.com:2181
[required] zookeeper connection string for kafkastats topic
#doctorkafka.brokerstats.zkurl=zookeeper001:2181,zookeeper002:2181,zookeeper003:2181/cluster1
doctorkafka.brokerstats.zkurl:2181=kafka-poc-2.com,kafka-poc-3.com:2181,kafka-poc-4.com:2181
[required] kafka topic name for kafkastats
doctorkafka.brokerstats.topic=brokerstats
[required] the time window that doctorkafka uses to compute
doctorkafka.brokerstats.backtrack.seconds=86400
[optional] ssl related setting for the kafka cluster that hosts brokerstats
can PLAINTEXT, SSL, SASL_PLAINTEXT, SASL_SSL
doctorkafka.brokerstats.consumer.security.protocol=SSL
doctorkafka.brokerstats.consumer.ssl.client.auth=required
doctorkafka.brokerstats.consumer.ssl.enabled.protocols=TLSv1.2,TLSv1.1,TLSv1
doctorkafka.brokerstats.consumer.ssl.endpoint.identification.algorithm=HTTPS
doctorkafka.brokerstats.consumer.ssl.key.password=key_password
doctorkafka.brokerstats.consumer.ssl.keystore.location=keystore_path
doctorkafka.brokerstats.consumer.ssl.keystore.password=keystore_password
doctorkafka.brokerstats.consumer.ssl.keystore.type=JKS
doctorkafka.brokerstats.consumer.ssl.secure.random.implementation=SHA1PRNG
doctorkafka.brokerstats.consumer.ssl.truststore.location=truststore_path
doctorkafka.brokerstats.consumer.ssl.truststore.password=truststore_password
doctorkafka.brokerstats.consumer.ssl.truststore.type=JKS
[required] zookeeper connection string for action_report topic
#doctorkafka.action.report.zkurl=zookeeper001:2181,zookeeper002:2181,zookeeper003:2181/cluster1
doctorkafka.action.report.zkurl:2181=kafka-poc-2.com,kafka-poc-3.com:2181,kafka-poc-4.com:2181
[required] kafka topics for storing the actions that doctorkafka takes.
doctorkafka.action.report.topic=operator_report
[optional] broker replacement interval in seconds
doctorkafka.action.broker_replacement.interval.seconds=43200
[optional] broker replacement script
doctorkafka.action.broker_replacement.command="/usr/local/bin/ec2-replace-node.py -r "
[optional] ssl related settings for action report producer
doctorkafka.action.producer.security.protocol=SSL
doctorkafka.action.producer.ssl.client.auth=required
doctorkafka.action.producer.ssl.enabled.protocols=TLSv1.2,TLSv1.1,TLSv1
doctorkafka.action.producer.ssl.endpoint.identification.algorithm=HTTPS
doctorkafka.action.producer.ssl.key.password=key_password
doctorkafka.action.producer.ssl.keystore.location=keystore_path
doctorkafka.action.producer.ssl.keystore.password=keystore_password
doctorkafka.action.producer.ssl.keystore.type=JKS
doctorkafka.action.producer.ssl.secure.random.implementation=SHA1PRNG
doctorkafka.action.producer.ssl.truststore.location=truststore_path
doctorkafka.action.producer.ssl.truststore.password=truststore_password
doctorkafka.action.producer.ssl.truststore.type=JKS
[required] doctorkafka web port
doctorkafka.web.port=8080
[optional] disable doctorkafka service restart
doctorkafka.restart.disabled=false
[required] doctorkafka service restart interval
doctorkafka.restart.interval.seconds=86400
[optional] ostrich port
doctorkafka.ostrich.port=2052
[optional] tsd host and port.
#doctorkafka.tsd.hostport=localhost:18621
[required] email addresses for sending general notification on cluster under-replication etc.
doctorkafka.emails.notification=email_address_1,email_address_2
[required] email addresses for sending alerts to
doctorkafka.emails.alert=email_address_3,email_address_4
[optional] brokerstats.version
doctorkafka.brokerstats.version=<IP_ADDRESS>
################################################################################
cluster1 settings
[required] whether DoctorKakfa runs in the dry run mode.
kafkacluster.cluster1.dryrun=true
[required] zookeeper url for the kafka cluster
#kafkacluster.cluster1.zkurl=zookeeper001:2181,zookeeper002:2181,zookeeper003:2181/cluster1
kafkacluster.cluster1.zkurl:2181=kafka-poc-2.com,kafka-poc-3.com:2181,kafka-poc-4.com:2181
[required] the network-inbound limit in megabytes
kafkacluster.cluster1.network.inbound.limit.mb=35
[required] the network-outbound limit in megabytes
kafkacluster.cluster1.network.outbound.limit.mb=80
[required] the broker's maximum network bandwidth
kafkacluster.cluster1.network.bandwith.max.mb=150
[optional] ssl related kafka consumer setting for accessing topic metadata info of cluster1
kafkacluster.cluster1.consumer.security.protocol=SSL
kafkacluster.cluster1.consumer.ssl.client.auth=required
kafkacluster.cluster1.consumer.ssl.enabled.protocols=TLSv1.2,TLSv1.1,TLSv1
kafkacluster.cluster1.consumer.ssl.endpoint.identification.algorithm=HTTPS
kafkacluster.cluster1.consumer.ssl.key.password=key_password
kafkacluster.cluster1.consumer.ssl.keystore.location=keystore_path
kafkacluster.cluster1.consumer.ssl.keystore.password=keystore_password
kafkacluster.cluster1.consumer.ssl.keystore.type=JKS
kafkacluster.cluster1.consumer.ssl.secure.random.implementation=SHA1PRNG
kafkacluster.cluster1.consumer.ssl.truststore.location=truststore_path
kafkacluster.cluster1.consumer.ssl.truststore.password=truststore_password
kafkacluster.cluster1.consumer.ssl.truststore.type=JKS

@sidharthk , how are you deploying kafkastats?

Thank you for your response. Initialy maven build was failing due to
zookeeper connectivity. The error in maven build pointed towards different
zookeeper-urls then one I provided in property file, hence I avoided the
test cases by using skipTest in maven build and build was successful.
Post build I just followed all the steps mentioned in the Readme.
I can see message flowing to brokerstats Kafka topic as well.
Warm Regards
Sidharth Kumar | Mob: +91 8197 555 599| Skype: itzsidharth
On Fri, 19 Apr, 2019, 12:28 AM kabochya<EMAIL_ADDRESS>wrote:

@sidharthk https://github.com/sidharthk , how are you deploying
kafkastats?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/pinterest/doctorkafka/issues/128#issuecomment-484642205,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALXRSIPETLEJWCL6DMUJ3ILPRDAFPANCNFSM4HG4ACWA
.

@sidharthk It seems that doctorkafka cannot find your cluster. Can you check if the "kafkacluster.<yourclustername>.zkurl" for your cluster in the doctorkafka config file is the same as the "zookeeper.connect" config on the broker's kafka configuration file (i.e. the file you provided as an argument to kafkastats)? Currently these must be the same for doctorkafka to recognize the cluster.

Hi,
I have crossed verified all the configs and zookeeper configs are correct,
doctorkafka is starting with issues already discussed in #87. I could see
doctorkafka consumer log and consumer id in kafka cluster as well. But the
drkafka UI doesn't display any cluster information
Warm Regards
Sidharth Kumar
On Fri, 19 Apr, 2019, 10:06 PM kabochya<EMAIL_ADDRESS>wrote:

@sidharthk https://github.com/sidharthk It seems that doctorkafka
cannot find your cluster. Can you check if the
"kafkacluster..zkurl" for your cluster in the doctorkafka
config file is the same as the "zookeeper.connect" config on the broker's
kafka configuration file (i.e. the file you provided as an argument to
kafkastats)? Currently these must be the same for doctorkafka to recognize
the cluster.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/pinterest/doctorkafka/issues/128#issuecomment-484951307,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALXRSIINOUCYXFQMEPCFRD3PRHYI7ANCNFSM4HG4ACWA
.

We could not reproduce this issue. Closing this issue as non-repro.


THANK YOU!

Hi team,
I am just an average developer with a medical condition that prevents me from working long hours infront of a laptop. For this purpose, I purchased an iPad Pro with blind hopes that it could get it to replace my laptop which was causing my medical condition. And I almost gave up, until I started using VS Code via GitHub spaces. I can’t thank you enough, this has completely changed the way I work, I run large media sites and web applications used by millions of end users in production and VS Code has been able to immensely allow me to have my freedom of breaking free from the shackle of laptops with large power bricks. I am writing this heartfelt thank you letter as a word of support for all you contributors and your hard work that changes peoples lives like it did mine. I just wanted to reach out and say thank you so you understand how much this helped me. It is actually a huge contribution towards my career and it is definitely more than just a tool.
Sorry I am not following any issue templates.  I just wanted to say thanks and sorry if this violates any spam policy or something.
Thank you!

Thanks for the kinds word ❤  I have closed this issue "as-designed" because empowering everyone is what we are aiming for. #HappyCoding and let us know how and what we can improve.


DNS Challenge in the face of slow DNS update propagation

I'm in the process of adding a DNS challenge provider for namecheap, but I've been hitting the 30-second propagation timeout.  I don't know if it's just because namecheap happens to be particularly slow at propagating DNS changes, but the 30 second window does seem optimistic.  Has anyone given any thought to making the timeout configurable?

Uh, yes, in fact, see #148 :wink:

Oh sorry I missed that. Closing this.


File Dependencies relative path under pipeline file properties

Describe the issue
My project contains folder structure as follows:
/servicelib/controllers/
/servicelib/models/
/pipelines/main/
/pipelines/experiment/

I have notebooks and related pipelines under /pipelines/main/ and some python libraries used by the notebooks under /servicelib/. This is why I added a relative path to the parent folder as ../../servicelib/ under File Dependency as part of the notebook properties in the pipeline. This runs successfully when running the pipeline in-place locally, but when running it using the kubflow runtime the following error occurs:
Traceback (most recent call last):
  File "/src/conda/envs/notebook/lib/python3.7/site-packages/tornado/web.py", line 1704, in _execute
    result = await result
  File "/src/conda/envs/notebook/lib/python3.7/site-packages/elyra/pipeline/handlers.py", line 89, in post
    response = await PipelineProcessorManager.instance().process(pipeline)
  File "/src/conda/envs/notebook/lib/python3.7/site-packages/elyra/pipeline/processor.py", line 70, in process
    res = await asyncio.get_event_loop().run_in_executor(None, processor.process, pipeline)
  File "/src/conda/envs/notebook/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/src/conda/envs/notebook/lib/python3.7/site-packages/elyra/pipeline/processor_kfp.py", line 69, in process
    format(pipeline_name, pipeline_path), str(ex)) from ex
RuntimeError: ('Error compiling pipeline reftest-0527064628 at /tmp/tmpavdhj1ol/reftest-0527064628.tar.gz', "Node 'reftest' referenced dependencies that were not found: {'../../servicelib/controllers/*.py', '../../servicelib/services/*.py', '../../servicelib/models/*.py'}")

Screenshot of the properties window

Expected behavior
Expected to be able to run the pipeline successfully with File Dependencies copied from relative parent path
Pipeline runtime environment
If the issue is related to pipeline execution, identify the environment where the pipeline is executed

Kubeflow Pipelines

I confirmed the behavior but believe that the Elyra packaging process does not support the kind of directory layout you are using. Can you please clarify how the notebooks are referencing the Python scripts?

To illustrate the [directory] problem, assume the following directory layout:
mypipeline.pipeline
mynotebook.ipynb
sub-dir/my-python-dependency.py

The produced input artifacts archive contains the following (/ denotes the root directory of the archive, not the root directory!):
/mynotebook.ipynb
/sub-dir/my-python-dependency.py

In this context, ../ in mynotebook.ipynb would therefore refer to something that conceptually does not exist when the notebook is  executed in KFP/AA.

A potential workaround, although it's not ideal and I haven't tested it yet, would be to define symlinks in the directory where the pipeline file/notebook is located. Support for symlinks was only recently added by https://github.com/elyra-ai/elyra/pull/1689, which is not yet included in any stable release.

Confirmed that with #1689 in-place the following would work:
/servicelib/controllers/
/servicelib/controllers/a-file.py
...
/pipelines/main/mypipeline.pipeline
/pipelines/main/mynotebook.ipynb   << references symlink instead of symlink source
/pipelines/main/servicelib         << directory symlink for ../../servicelib/controllers/
/pipelines/main/a-link.py          << file symlink to ../../servicelib/controllers/a-file.py
...

Adding symlink does look like a logical workaround to avoid having to change the folder structure to have the pipeline files in the root directory. We put all pipeline files in a different subdirectory for organisation sake.
Indeed it would be good to have best practices documented on how to structure development projects.

And just to clarify things, the actual pipeline files can be anywhere. The requirement we have is relative to the notebook, where its dependencies need to be contained as children of the same directory, otherwise, we can't reconstruct the folder hierarchy on the root of the container during runtime execution.

To summarize:

the next 2.3 release includes support for symlinks
development best practices will be documented (#1703)
validation service will check for file references that are outside the pipeline [project's] scope (#1664) to prevent the reported issue

Please let me know if I missed anything.

Thanks for the summary. This covers everything 👍🏻

To summarize:

the next 2.3 release includes support for symlinks
development best practices will be documented (Document development best practices for notebook | script based nodes #1703)
validation service will check for file references that are outside the pipeline [project's] scope (Validation service initial changes #1664) to prevent the reported issue

Please let me know if I missed anything.

Thanks @ptitzler, what is ETA for 2.3 release stable?

@pacospace 2.3 will now be called 3.0 and you can see the current status at the release milestone but my feeling is that we still need about a couple of weeks to get it stabilized and released.

@pacospace 2.3 will now be called 3.0 and you can see the current status at the release milestone but my feeling is that we still need about a couple of weeks to get it stabilized and released.

Thank you very much for the update @lresende! I will keep an eye on that! 🚀


Fix a couple of issues with TouchMenu

Menu event listeners are now properly cleared when going directly from the menu to the launcher
Menu now fills all available screen space, respecting widgets if there are any (using Bangle.appRect)

Neat - thanks!


Fix events getDuration undefined error

Fixes #11.

While it fixes the sentry error, I am not sure this is the correct fix?
What would you display in a session recording if there's no events to display? Why was the link to the recording shown in the first case?

Hey Karl, sorry for the extremely delayed response. rrweb notifications were buried in my Github inbox but finally getting to it now that session recordings is a hot topic again 🔥
This definitely isn't the root cause of the error, but I think this fix makes this class more robust as a standalone EventIndex class.
I find it odd that we only perform a events length check in the constructor and allow a new EventIndex to be initialized, when calling method getDuration() on an EventIndex instance with empty events will error out regardless. I propose we either throw an error during construction or add an additional check in the getDuration() method so that it accurately reflects its contents.

Going to merge this in for the above reasons


Is it still maintained?

I ask because after an installation the whole thing no longer seems to work.
Sorry for my bad English, DeepL was helpful ;)

@Bluefish67 yes it is maintained (albeit not very frequently).
Which part of the installation process is not working for you?

Directly when creating the code:
function doGet(e){
return MMMGoogleSheets.doGet(e);
}
and save reports Google:
Syntax error: SyntaxError: Unexpected identifier line: 1 file: Code.gs

@Bluefish67 can you send a screenshot of what the page looks like before you save and get that syntax error?
If you're getting a syntax error it is likely a copy-paste issue.

No matter how you write it, it always comes up with the same error message. As I understand it, the script does not cope with "doGet".
I hope the English of DeepL is understandable.

Try function instead of funktion.

@winfieldlittle thank you for responding. @Bluefish67 he is correct, you misspelled function in both locations, and you capitalized it in one (it should be lower case). Closing this issue, feel free to open it again if you are still having problems.


Update deye_2mppt.yaml

scale to set 100% not 10%

Can you show me the value it shows to you? Just to be sure... Maybe there is difference to 4MPPT though....

10.2 with Scale 0.1 and 102 with scale 1

Yes with the yaml i can set 0 to 120% its work good

Another question, where did you got this list?
          - key: 0x0000
            value: "OK"
          - key: 0x1
            value: "DC OverVoltage"
          - key: 0x2
            value: "DC Bus OverVoltage"
          - key: 0x4
            value: "DC Bus Uneven Voltage"
          - key: 0x8
            value: "DC Bus UnderVoltage"
          - key: 0x10
            value: "DC Bus2 Uneven Voltage"
          - key: 0x20
            value: "DC A path OverCurrent"
          - key: 0x40
            value: "DC B path OverCurrent"
          - key: 0x80
            value: "DC Input Disturbance"
          - key: 0x100
            value: "Grid OverCurrent"
          - key: 0x200
            value: "IGBT OverCurrent"
          - key: 0x400
            value: "Grid Disturbance 2"
          - key: 0x800
            value: "Arc Self-Test Protection"
          - key: 0x1000
            value: "Arc Fault Reservation"
          - key: 0x2000
            value: "Grid Current Sample Abnormality"

Cause some values are conflicting with the FXX table from the https://github.com/user-attachments/files/16597960/Deye.Modbus.protocol.V118.pdf

I have the same doc but i ask deye for a New doc

Can you share?

sure if I get something new I will share it. I also sent a question to deye about the error

Great! Let me know if they reach out to you.
For now I don't know what to do though as I started with enhancing of the "Device Fault" messaging (you can see in the sg04lp3 profile) and it seems so that it should be similiar also for the 2mppt and 4mppt but I'm not sure what to do with those conflicting values...

Dear Sir/Madam,
We have received your message. We apologize, but the Modbus protocol of our micro-inverter products is not open to the public, so we are unable to send the documentation to you. If you encounter any further issues, please feel free to contact us. We wish you all the best.
Sincerely,
Heran Zhang
deye technical support

Yes yes I thought so!

Dear Sir/Madam,
We have received your message. Please send us the serial numbers of your inverter and Logger, along with the blinking status of the micro inverter and the relay (if you are using G3 series or MG3 series models). If the device is malfunctioning, we can remotely check the device's status (if you have previously configured the network) to help diagnose the issue and provide a solution.
Additionally, the F01-F64 error codes only appear on the display of Hybrid Inverters and Grid-connected PV Inverters. Therefore, if you have purchased a micro inverter, there shouldn't be any explanations regarding these error codes. If you encounter any further issues, please feel free to contact us. We wish you all the best.
Sincerely,
Heran Zhang
deye technical support


Integrating to C++ project

Hello,
First, I would like to say that I'm new to objective-C world so I'm sorry if my question is too lame...
I'm currently trying to integrate this bridge into my C++ project and I have some issues targeting an iOS device.
What I've done is simple, I've just put the WebViewJavascriptBridge.* files to my project and compiled it with -x and objective-c++ flags.
On WebViewJavascriptBridge.h, I have a lot of semantic issue with WVJB_WEBVIEW_TYPE but after a quick search I found that adding the import of UIKit is enough to remove these errors.
But know, I have 12 semantic issues into WebViewJavascriptBridge.m with typeof and strongDelegate and I don't know how to fix that.
Do you have any idea of what can be the origin of these issues ? Did I do something wrong ?
Thanks in advance for your answer.

hi,
I try to use your code in unity3d Xcode project but i have a strange problem.
i have used unity3d 4.6.2  with Xcode 6.1.1 and she import your code in Xcode i have a error:
webViewDidStartLoad
2015-03-03 10:37:19.195 perceval[1355:1715745] -[__NSCFType countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance 0x18913bf0
2015-03-03 10:37:19.196 perceval[1355:1715745] *** WebKit discarded an uncaught exception in the webView:didFinishLoadForFrame: delegate:  -[__NSCFType countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance 0x18913bf0
2015-03-03 10:37:22.363 perceval[1355:1715745] WVJB RCVD: {"data":"Hello from JS button","callbackId":"cb_1_1425375442341"}
2015-03-03 10:37:22.363 perceval[1355:1715745] ObjC received message from JS: Hello from JS button
2015-03-03 10:37:22.363 perceval[1355:1715745] -[__NSCFType addObject:]: unrecognized selector sent to instance 0x18913bf0
you have any idea?

Thansk a lot.


link to the self-hosting guide

Signed-off-by: Ken Bingham<EMAIL_ADDRESS>

@dovholuknf Will you please re-review this since I cancelled your first review by updating?


Params

Fixes #164
Specifically, adds (and tests) 3 parameters:

pitch_shift(abs_distribution), which can be used to give a distribution over all pitches, regardless of the chosen pitch. This value is multiplied by the corresponding relative distribution pitch and then re-normalized if both are given.
pitch_shift(align_pitch), which can be used to force the shifted pitch to align with an existing pitch.
add_note(pitch_distribution), which can be used to define a sample distribution over pitches for add_note.

Just realized that I haven't updated the degradations ipynb doc with the new parameters...


Automatically release to DockerHub using automated build or Travic-CI

Hi!
Amazing project! Way to go and keep up the good work.
I've noticed v0.1.1 was released but the Docker image with this tag isn't yet available in DockerHub.
Can you please either set up an automated build on DockerHub or docker build and docker push in Travis?
Thanks.

@oryband thanks for you kind words. I'll fix up the deployments.

v0.1.2 was just released to github and Docker Hub.


Fixed Issues #40, #39, #38, and created F16_lab03.md file.

Created the F16_lab03.md file for lab03 of cs56-f16.

I fixed issue #39 and @xosherry fixed issues #40 and #38. Issue #39 actually should only NOT save the game when the user has won or lost, it is OK if they have not placed any mines and want to save the game (same as the actual minesweeper settings).

@johnnyzhang1738 Hey Johnny, I'm playing the original version and the version with your updated code and I'm not sure what actually changed for the save functionality. Can you explain what changed?

Yeah. The save function should only be called when you haven't won or lost
a game. So for example if you open a mine, then close the pop-up dialog
box, and then go to main-menu, you will see that it doesn't save
the session wherein you lost the game.
On Tuesday, November 8, 2016, Jimmy Le<EMAIL_ADDRESS>wrote:

@johnnyzhang1738 https://github.com/johnnyzhang1738 Hey Johnny, I'm
playing the original version and the version with your updated code and I'm
not sure what actually changed for the save functionality. Can you explain
what changed?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/UCSB-CS56-Projects/cs56-games-minesweeper/pull/41#issuecomment-259285759,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AM8eEzy5emtL3TmLL_mFD72BGsjDg32aks5q8P4FgaJpZM4Kqvef
.

Yeah. The save function should only be called when you haven't won or lost
a game. So for example if you open a mine, then close the pop-up dialog
box, and then go to main-menu, you will see that it doesn't save
the session wherein you lost the game.

If you play a game and then lose, a pop up dialog comes up with the choices reset game or main menu. What you're saying is that if I click on main menu on the pop up box it doesn't save the game or do you mean if I close the pop up box without clicking on one of the choices and then click on main menu on the top then it doesn't save the game.

It should work in both scenarios. I've only tested the way I described but
it should be ok in both
On Tuesday, November 8, 2016, Jimmy Le<EMAIL_ADDRESS>wrote:

Yeah. The save function should only be called when you haven't won or lost
a game. So for example if you open a mine, then close the pop-up dialog
box, and then go to main-menu, you will see that it doesn't save
the session wherein you lost the game.
If you play a game and then lose, a pop up dialog comes up with the
choices reset game or main menu. What you're saying is that if I click on
main menu on the pop up box it doesn't save the game or do you mean if I
close the pop up box without clicking on one of the choices and then click
on main menu on the top then it doesn't save the game.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/UCSB-CS56-Projects/cs56-games-minesweeper/pull/41#issuecomment-259287663,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AM8eE6k2IeXybxImQ9oeRiyZGG7GdYfLks5q8QAEgaJpZM4Kqvef
.

It should work in both scenarios. I've only tested the way I described but
it should be ok in both

The main menu button in the pop up box works, but I don't think the one at the top works. It still saves. Check if that's correct just in case for some reason mine's funky.

Ok I'll take a look when I get home.
On Tuesday, November 8, 2016, Jimmy Le<EMAIL_ADDRESS>wrote:

It should work in both scenarios. I've only tested the way I described but
it should be ok in both
The main menu button in the pop up box works, but I don't think the one at
the top works. It still saves. Check if that's correct just in case for
some reason mine's funky.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/UCSB-CS56-Projects/cs56-games-minesweeper/pull/41#issuecomment-259288942,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AM8eE7GYL6X-L7W2wAK6whWgdujvFXS2ks5q8QF4gaJpZM4Kqvef
.

Ok I'll take a look when I get home.

Great, but don't work on any other issues besides this problem until I accept the pull request because I don't want to have you guys fix all your issues in one pull request, unless you guys fix the issues in a separate branch, then that's ok.


Event Emitters

Consider emitting events after data retrieval.
Be.on('projects:updated', function(newData) {
  // Do something like re-render a component etc...
}

After considering this more, it seems like an edge case where events would need to be baked in. An event can be emitted from the callback if events are necessary in an implementation.
const EventEmitter = require('events').EventEmitter
const BeEvent = new EventEmitter()

Be.userProjects('USER_NAME', function (err, res, data) {
  if (err) throw err
  BeEvent.emit('data:received', data)
}

BeEvent.on('data:received', function (data) {
  // Do something with the data
}


Add wrapper for mock_smartseq2.wdl

Add a wrapper wdl file for mock_smartseq2.wdl that takes in the bundle_uuid and bundle_version and passes the appropriate inputs to the mock_smartseq2 workflow.

@dshiga did you also want to take a look at this PR?


Experiment with adding an AssetCache

#29  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @tommy-xr and the rest of your teammates on  Graphite


added maven profile for sonarqube

Refer to this link for build results (access rights to CI server needed):
https://jenkins.airvantage.io/job/av-sched-pull-requests/66/
Integration build result

Commit: 33bf96101cf3e4978d6878d00d78bd1754096a77
Status: SUCCESS :white_check_mark:
Report: http://av-ci-test-reports.s3-website-eu-west-1.amazonaws.com/av-backend/66/report.html

:+1:

Refer to this link for build results (access rights to CI server needed):
https://jenkins.airvantage.io/job/av-sched-pull-requests/67/
Integration build result

Commit: c0a9e2f9eddf21fe19c440bdf6d988321766997e
Status: SUCCESS :white_check_mark:
Report: http://av-ci-test-reports.s3-website-eu-west-1.amazonaws.com/av-backend/67/report.html


/app being added to all URL's

Hi,
Not sure what is going wrong, but every link and picture on my site has had /app/ added after the domain. So it is breaking all the links, pictures, CSS etc.
How do I fix this?

Hi. What is your docker command? The example is:
docker run -p "80:80" -v ${PWD}/app:/app mattrayner/lamp:...

.


[SMALLFIX] Fix error message

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/20338/
Test PASSed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/20339/
Test PASSed.


Added a link to the instructions

Merge PR pls

I have added this into the YAML file with my newest refactoring. Thanks.


Problem with adding new api token

After adding a valid api token, prompt show up again

Problem has been repeated on my machine after a credentials deletion. Gonna investigate it

Released fix


feat: thorchain lp render YourPositions with ReactTable

Description
Same as the PR below - allows your positions to be sorted by pool name, balance, or pool share.
Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[ ] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[x] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)

N/A
Risk

High Risk PRs Require 2 approvals

Low to none - if things still look good, we're good - @reallybeard to tackle the mobile responsiveness

What protocols, transaction types or contract interactions might be affected by this PR?

Testing

Your positions are sortable by name, balance, and pool share
Things still look good

Engineering

☝🏽

Operations

☝🏽

Screenshots (if applicable)

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#6459  👈
#6454
develop

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @gomesalexandre and the rest of your teammates on  Graphite

Opening for early review - responsive still in-progress


Feature detection media query ignored?

What is your Test Scenario?
Animations, particularly hover triggered ones that use CSS media queries such as @media (hover: hover) and (pointer: fine) {
What is the Current behavior?
Media query is not triggered in TestCafé therefore animation/styles are not visible
What is the Expected behavior?
Media query is triggered and animation is visible
What is your web application and your TestCafe test code?

JS Bin link

Your website URL (or attach your complete example):
@media (hover: none) {

    &:active {
      transform: scale(0.97);

      @media (prefers-reduced-motion: reduce) {
        transform: none;
      }
    }
  }

  @media (hover: hover) and (pointer: fine) {

    &:hover {
      transform: scale(1);

      @media (prefers-reduced-motion: reduce) {
        transform: none;
      }
    }

    &:active {
      transform: scale(0.97);
    }
  }

Your complete test code (or attach your test files):

 ('KX: Button – brand', async t => {
      await t
        .takeScreenshot({ path: 'buttons-base-examples--brand-kinetics__initial.png' })
        .hover('button')
        .takeScreenshot({ path: 'buttons-base-examples--brand-kinetics__hover.png' })
        .click('button')
        .takeScreenshot({ path: 'buttons-base-examples--brand-kinetics__click.png' })
        ;
    })

Your complete configuration file (if any):

{
  "browsers": "chrome",
  "src": "testcafe/*.js",
  "screenshots": {
    "path": "testcafe/screenshots/"
  },
  "videoPath": "testcafe/videos"
}

Your complete test report:

Screenshots:
Expected:
![image](https://user-images.githubusercontent.com/32829/109693663-c8ae7f80-7b3e-11eb-8d97-9e4fd9ebcff1.png)
Actual:

Steps to Reproduce:

Load the following URL in TestCafé debug: https://output.jsbin.com/diponofuyo
Unlock page
Manually hover to see button color changes to pink instead of the expected orange

Your Environment details:

testcafe version:                   1.11.0
node.js version:                    v12.16.1
command-line arguments:  --debug-mode --speed 0.5
browser name and version: Chrome 88
platform and version:          macOS 10.15.7
other:

Hello,
Thank you for your example project. We’ve reproduced the issue and need some time to investigate it. We'll get back to you when we have any results.

Hi this issue is still there. Any progress or is it solved in the 2x major version of Testcafé?

Also in 2.0.0 I am facing this issue, it makes that I cannot test about 50% of my test cases with TestCafé.
We use @media for our responsive design. This causes testing issues on every element that is affected by the window size :S

Hi,
At present, there are no updates. We will update this thread once we have news.

I did not manage to reproduce the issue in the latest TestCafe version in Native Automation mode. Starting from TestCafe 3.0, TestCafe has a new Native Automation mode for Chromium-based browsers. This mode is enabled automatically. Please refer to the following help topic for details: https://testcafe.io/documentation/404237/guides/intermediate-guides/native-automation-mode


Pasting does not trigger complete event

After pasting code, that has required length the complete event is not triggered.
Console shows error like:
Uncaught TypeError: Cannot read property 'removeAttribute' of null
I managed to change part of paste event, which fixes that error (You should not focus field further than last):
if (i < pasted.length - 1) {
  that.focus(i+1);
} else {
  pasteField.blur();
}

But also after that complete event is not triggered.
I read that it is run only on input event in your code. I wonder if it relates to browsers triggering or not input event on paste? I had to also manually dispatch event on each input field in paste event to make it work.
pasteField.dispatchEvent(new Event('input'));

Btw it is possible to paste more digits than one in fields other than first.
I know this is a lot, but can you look into that?
System configuration
Browser: Chrome 80.0.3987.106 (Mac)

I'm also having this problem. I solved it like this:
for (var i = 0; i < that.settings.fields; i++){

	var pasteField = that.getField(i);

	pasteField.removeAttribute('readonly');
	pasteField.value = pasted[i];
	that.values[i] = pasted[i];

	if (!that.validateInput(i))
		break;

	if (i < pasted.length - 1) {
		that.focus(i + 1);
	} else {
		if (that.settings.hideinput)
			this.value = that.settings.placeholder;

		var pin = that.values.join('');

		// reset the plugin
		if (that.settings.reset)
			that.reset();

		// fire complete callback
		that.settings.complete(pin);
	}
}

replace: https://github.com/bobhageman/pinlogin/blob/04055dd8b437244e2c31d31801cfc0efbd43b38c/dist/pinlogin.pkgd.js#L260 with
if ( i+1 < that.settings.fields ) {
 that.focus( i + 1 );
} else {
 that.settings.complete( pasted );
}

It will fix 2 issues... one that will throw error due to i+1 exceeding the number of fields and another triggering complete event.


Clicking the building status bar item requires an extra step

With terminal tabs enabled and all the build tasks in one split terminal group, this quick pick seems in the way to me:

I'd rather you just open the split terminal and I can click the one I want. It's the same number of clicks in the worst case, and one less in the frequent case (reading the output only which doesn't require selection anymore).

Makes sense to me since the command is show, not focus, focus goes to the editor.


prepared statement not working when in operator in statement with conjunction with Seq[String]

prepared statement not working when in operator in statement with conjunction with Seq[String],
code:
def getDemand(advertizerId: String, demandIds: Seq[String]): Future[Array[QueryResult]] = {
    val args = List(advertizerId, value)
    val query: String = s"""SELECT "demand_id"
                      |from demand where "partner_id"=? and "demand_id" in (?);""".stripMargin
    connection.sendPreparedStatement(query, args)
}

demand_id is a string field (character varying(32))
pg sql logs:
2017-08-01 16:23:35 IDT LOG:  execute 1/1: SELECT "demand_id" from demand where "partner_id"=$1 and "demand_id" in ($2);
2017-08-01 16:23:35 IDT DETAIL:  parameters: $1 = 'ea47ef7e8b4c4847894004198e7b9e56', $2 = '{"565f776a61db4ccdab36946116699622"}'

I couldn't figure out what todo, i tried to serialize to comma separated list myself but this didn't work as well, directly on the db its working obviously.
thanks.

bumped into the same problem, SELECT * FROM bar WHERE column IN (?) with arg in the form of list/seq doesn't work. any workaround?

found a workaround (at least for postgre) one can write SELECT * from bar WHERE column = ANY(?) then pass an array or list. It should have the same results (see here)


Snakemake workflows fail (SLURM)

As I attempted to test pyani-plus on Streptomyces via ArchieWest, I encountered some problems.
There is a high chance that I am doing something wrong, but it seems like the snakemake workflows are causing issues when I try to run the analysis with the parameters --executor slurm.
I started with a small example of two Streptomyces genomes using the following command line:
pyani-plus anim input --create-db --database streptomyces_pyani_plus.sqlite --name "streptomyces aniM" --executor slurm

The full SLIURM script is:
#!/bin/bash

#=============================================================
#
# Job script for phylogenetic analysis
#
#=============================================================

#======================================================
# Propagate environment variables to the compute node
#SBATCH --export=ALL
# Project Account
#SBATCH --account=pritchard-grxiv
# Run in the standard partition (queue)
#SBATCH --partition=standard
# No of cores required (max. of 40)
#SBATCH --ntasks=40 --nodes=1
# Runtime (hard)
#SBATCH --time=00:30:00
# Job name
#SBATCH --job-name=snakemake_test
# Output file
#SBATCH --output=slurm-%j.out
#======================================================

# Enable conda enviroment
module load anaconda/python-3.8.8/2021.05
source ~/.bashrc

#Orthofinder only works in orthofinder conda environment
conda activate pyani_plus_smk
#=========================================================
# Prologue script to record job details
#=========================================================
/opt/software/scripts/job_prologue.sh
#----------------------------------------------------------

pyani-plus anim input --create-db --database streptomyces_pyani_plus.sqlite --name "streptomyces aniM" --executor slurm

conda deactivate

#=========================================================
# Epilogue script to record job endtime and runtime
#=========================================================
/opt/software/scripts/job_epilogue.sh
#----------------------------------------------------------

which results in the following error:
  GNU nano 2.9.8                                                                                slurm-11538260.out

===================================================================================
SLURM Job ID:            11538260
Submit time:             Sat Nov 23 12:35:25 GMT 2024 (Unix Epoch time:<PHONE_NUMBER>)
Start time:              Sat Nov 23 12:35:25 GMT 2024 (Unix Epoch time:<PHONE_NUMBER>)
No. nodes:               1
No. tasks:               40
Job name:                snakemake_test
Account:                 pritchard-grxiv
QoS:                     priority
Partition (queue):	 standard
Submit directory:        /users/xmb20196/pyani_plus_test/small_test
Script name:             /users/xmb20196/pyani_plus_test/small_test/slurm_pyani_plus_testing.sh
Master node:             node004
Nodes used:              node004
Task distribution:
===================================================================================

Indexing FASTAs  ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a 100% 0:00:0$
ANIm run setup with 2 genomes in database
Database already has 0 of 2  =4 comparisons, 4 needed
Error: maximum number of parallel jobs/used nodes has to be specified for remote execution (use --jobs N with N being a number >= 1)
Snakemake workflow failed
===================================================================================
SLURM job 11538260 ended:     Sat Nov 23 12:35:31 GMT 2024 (Unix Epoch time:<PHONE_NUMBER>)
This is an estimated end time using the 'date' command from node node004.hpc.strath.ac.uk
For accurate timings, use 'sacct -j 11538260 -X --format=Submit,Start,End,Elapsed'
======================================================================================

My initial thought is that we might need to add some options to the snakemake CLI to pass the information about available cores. I was under the impression that, if not specified, it should by default use all available cores.
I will look into this in more detail on Monday.

I was running pyani-plus on an interactive login node directly- it submits
jobs based on the profile which I set via an environment variable (there
are other ways to configure snakenake).

See
https://github.com/pyani-plus/pyani-plus/issues/132#issuecomment-2442562200
which
includes limiting the number of nodes and CPUs. This is the attraction of
snakenake as a cluster control layer, we don’t have to deal with those
settings in our code at all.

Full example on #158 which added snakemake executor support tested with SLURM on Archie-WeSt

Interesting to see how the progress bar looks in the captured stdout, and that the squared superscript character isn’t showing up properly, quoting your example:
Indexing FASTAs  ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a ^t^a 100% 0:00:0$
ANIm run setup with 2 genomes in database
Database already has 0 of 2  =4 comparisons, 4 needed
Error: maximum number of parallel jobs/used nodes has to be specified for remote execution (use --jobs N with N being a number >= 1)
Snakemake workflow failed

Thanks @peterjc! As I said ealier, I was pretty sure that I was probably doing something wrong 😅
I managed to figure it out now, so hopefully I get some answers for Monday.

Interesting to see how the progress bar looks in the captured stdout, and that the squared superscript character isn’t showing up properly

I think I've seen this before with other tools, including the old pyANI :).
I will close this issue for now. It might be worth documenting how to run pyani-plus via SLURM, so end-users don't end upu silly mistakes like me.

Agreed - key details hidden away on pull requests is difficult enough for our team to use :wink:


Script to register the bot user with a profile

another option is to have config options to set the displayname/avatar of the bot user.

This would be fixed by #454, which registers bots automatically


tests: kernel: userspace: fix test for non-secure builds

This commit fixes a tests in kernel/mem_protect/userspace,
which was attempting to read from an address that was not
necessarily within the image memory ranges, causing faults
in TrustZone-enabled builds.
Signed-off-by: Ioannis Glaropoulos<EMAIL_ADDRESS>

Honestly, I am not sure I get what the tests is doing. In ARM images, it tries to write to Flash from unprivileged mode, and it should fail. But it should fail in privileged mode, too, since the Flash is Read-Only, anyways.
Also, it seems to me, the test depends on not setting the MPU_ALLOW_FLASH_WRITES to true.
I only provided a fix, to be able to run the test in non-secure mode, that might not be able to read from address 0.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@c478b5b). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master   #13671   +/-   ##
=========================================
  Coverage          ?   52.48%
=========================================
  Files             ?      329
  Lines             ?    46910
  Branches          ?    10811
=========================================
  Hits              ?    24621
  Misses            ?    17352
  Partials          ?     4937

Continue to review full report at Codecov.

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


gleam-ts-mode: Is auto-indentation when pressing RET at the end of a line supposed to work?

e.g. when typing a function signature and pressing RET after the opening {, should the new line be automatically indented by an additional 2 spaces?
I see that the gleam-ts-mode.el file has a good amount of stuff related to indentation, but I'm not sure if such auto-indentation on RET is supposed to work yet. It doesn't for me.

I'd say that ideally it should work.  The rules get a bit odd because when starting e.g. a new function, there's not an concrete syntax tree (CST) node there that we can attach indentation rules to.  I thought we had worked around this with a rule like "anything after the braces is indented" but I'll need to check again.

Thank you, that explanation makes a lot of sense.

@J3RN should indentation work when creating a newline inside of a pub type Blah {} brace? Seems to not work in those.

Obviously I'm a bit strapped for time lately, but if someone wants to investigate these issues, you can play with the indentations rules.  Happily they're quite declarative, though the selectors (e.g. parent-bol) are a bit arbitrarily defined.


linked blas+lapack libraries issue

I was trying to run [ boolean_least_squares.py ]

and I encounter the error message,

FATAL: Cannot solve SDPs with > 2x2 matrices without linked blas+lapack libraries
Install blas+lapack and re-compile SCS with blas+lapack libray locations
ERROR: initCone failure
Failure:could not initialize work

While I am working on [ Windows 10 x64 ], [ Python 3.5.5 ], [ conda 4.5.11 ],
and having the conda-packages as below (selective),

blas                       1.0                         mkl
lapack                    3.6.1                     h8933c1f_2    conda-forge
cvxpy                     0.4.11
cvxpy                     0.4.2                     py_0    cvxgrp
cvxpy                     0.4.2

I successfully ran the first example which appears in [ 5.3 Sample usage ], a small BQP without lifting.
and only encountered this issue when I, then, was trying to run [ boolean_least_squares.py ].

Could I get some advice please?
Because it doesn't seem to be just installing blas, and lapack, independently using anaconda.

Thanks.

I have the same issue.