Make pyrosm compatible with newer numpy and shapely version.

Describe the bug
When trying to run:
osm = pyo.OSM("guernsey-jersey-latest.osm.pbf")
buildings = osm.get_buildings()

I get the error:
AttributeError: module 'shapely.geos' has no attribute 'lgeos'

To Reproduce
Steps to reproduce the behavior:

create new conda enviroment 3.8
conda install Pyrosm
conda install jupyter lab
download "andorra-latest.osm.pbf" from: https://download.geofabrik.de/europe.html , just an exampel didnt work with any .pbf file.
run the commands described above

Expected behavior
No error, it loads all buildings in the region
Environment:

OS: Pop!_OS 22.04 LTS
Python package source: conda
Versions of Python: 3.8

Test data and/or script/notebook
requirements.txt
notebook_and_data.zip

Fixed after downgrading to shapely=1.8.5
May have sth. to do with #191

I have installed shapely=1.8.5
now my kernel crashed. it happens again and again.
Can you please share how to build a completely new environment and the package version to avoid this "module 'shapely.geos' has no attribute 'lgeos' " issue?
Thanks.

I removed shapely 2.0 and downgraded to shapely=1.8.5 and I didnt get said issue anymore, If the data I work with is very big I get the expception:
AttributeError: module 'numpy' has no attribute 'float', though.
You can try to use my attachment file, to create an envireoment, with the command conda env create --file requirement.yml it should work.
requirement.zip

Thank you so much. It worked. And to solve the problem,
"AttributeError: module 'numpy' has no attribute 'float'"
please use this line in your terminal

pip install "numpy<1.24"

Thanks for the tipp.
I think it worked, I am not sure I will keep an eye on it and see if the error occurs again.

Is anyone  else experiencing the same:
AttributeError: module 'shapely.geos' has no attribute 'lgeos'
&
"AttributeError: module 'numpy' has no attribute 'float'"
errors even when using  shapely=1.8.5& numpy=1.24?

Hi there, following up on this issue, are there plans to upgrade pyrosm to move to shapely>2 in the near future?
Of course, as this means rewriting the code to stop using pygeos, I understand that this is not exactly a minor change.

Hi all! And thanks for active discussion and helping each other out!
@tfardet : There is a plan to start supporting shapely 2.0 and in general have a better memory management for the library. Unfortunately, I've been extremely busy at my day job and haven't found time for pyrosm. Hopefully, this situation will improve now during the coming months. However, all contributions to the library are also more than welcome to more quickly advance with things. 😉

@HTenkanen thanks for the quick answer!
I completely understand, I would also love to help but I can't spare the time it would require...
Good to know that things might move forward in the future, though, good luck and thanks for your work!

Was wondering if there was any movement on this issue. I'm having issues being able to run on any python version 3.8 or higher. No matter what I do it doesnt work. I install with conda-forge and then downgrade both numpy and shapely as mentioned in this issue but I still run into issues. After downgrading I receive this warning
The Shapely GEOS version (3.10.3-CAPI-1.16.1) is incompatible with the GEOS version PyGEOS was compiled with (3.11.2-CAPI-1.17.2). Conversions between both will be slow.
If I continue anyway, when running get_data_by_custom_criteria(custom_filter=) I get a message saying the kernel crashed and will be automatically restarted. I am using Jupyter Labs.
Any update, or help would be appreciated. I was going to try to use Python 3.6 but it looks like a hassle to get Anaconda to create a venv with anything less than 3.8...

I removed shapely 2.0 and downgraded to shapely=1.8.5 and I didnt get said issue anymore, If the data I work with is very big I get the expception: AttributeError: module 'numpy' has no attribute 'float', though.
You can try to use my attachment file, to create an envireoment, with the command conda env create --file requirement.yml it should work. requirement.zip

For me this suggested solution worked with the additional step of switching off pygeos use (os.environ['USE_PYGEOS'] = '0') when importing the packages, like so:
first, in the terminal
conda env create -f requirement.yml
conda activate PSE

and then in the notebook (commented out = versions that in my case were installed in the PSE env)
import pyrosm # 0.6.1
import numpy # 1.23.5
import shapely # 1.8.5.post1
import pandas # 2.0.3
import geopandas # 0.13.2
import networkx # 3.1
import os
os.environ['USE_PYGEOS'] = '0'

First thanks & kudos to @HTenkanen for such a useful package. Actively using it for research on this project. The ability to create and save Pandana graphs is particular helpful.
Second, depreciating numpy to 1.19.5 after a conda install -c conda-forge pyrosm gets passed the AttributeError: module 'numpy' has no attribute 'float' for me.

This should be now fixed in the new release pyrosm v0.6.2 which fixes the numpy related issues. See #214


Address numpy test failures

Towards #1347

For now, draft: I want to check different patterns of optional installs with an enlarged test matrix, but I don't think we actually want to check all 2^(optional installs) in CI on every commit.

Update: I was actually hoping a test would fail -- Should have pushed the change to the test matrix before the change to the tests. The caching may be getting in the way of demoing the behavior: both the no-extra-installs and two-extra-installs have one test skipped.
Next: Remove CI caching, and add a pip-freeze to help debug.

Test failures, yay! I think we want all of these combinations to pass.

So when the tests pass for all combinations of numpy, sklearn, and randomgen, I'm not sure that we're done -- If someone had one of these partial install states, we want to be sure that opendp does not act up. Perhaps the end state we want is no skipif guards... Where we have them now, wrap the content of the test with a try-except, where the except makes sure that the error is something that explains the missing dependency. Perhaps we make sure there is an explicit import randomgen for example, unless we want an even friendlier exception?

The last commit demonstrates the direction we might want to go: Where there are dependencies on optional libraries in the source code (excluding the tests), we can throw an exception explaining that an extra install is required. Is this a good direction?

lean away from skip-ifs: instead try catch inside the test, looking for ImportException with a friendly message explaining optional install. Most important when randomgen is not installed, because the error is really cryptic.

Keeping as draft to avoid premature merge, but would appreciate feedback: Tests are passing with all combinations of optional dependencies, and when a dependency is not present, we check that a user-friendly exception is raised.
The most interesting part is optional_dependency: This is used in tests to wrap lines which we expect to have a particular optional dependency -- If it's installed, test proceeds as usual; if it's not installed, we confirm that we get the expected user-friendly error message, and then the rest of the test is skipped.
Along with this, instead of wrapped imports in the tests, I'm using pytest.importorskip extensively, which works well when the dependency is in the test itself.
Questions:

What do we want for the test matrix? Maybe all the combinations are run nightly? Though since they're all parallel, it's really not that slow, although it is more total compute time.
Do we want to change how the np_csprng works? Maybe change it to a singleton, raising an exception if dependencies aren't present?
Is there too much try-import-except-raise boilerplate? The tests are also looking for a particular error message, so this is also kind of fragile. Could make a import_optional_dependency (or error) utility function.

Do we want to change how the np_csprng works? Maybe change it to a singleton, raising an exception if dependencies aren't present?

yeah: Making it a singleton makes sense.

The PRNG refactor was getting complicated, so I started a separate draft PR for that:

#1433

So there are a couple skipifs left to handle that, but I think it would be good to review and merge this much.


Remove basic auth

Which project are you reporting a bug for?
kr8s
What happened?
It looks like basic auth was removed in Kubernetes 1.19, which is much older than kr8s supports. So we should be fine to remove this completely.
Anything else?
No response

Can I grab this one? :)

@marceloFA please go ahead!


Use test-kitchen to test changes in the Chef recipes

There's a project called Test Kitchen (http://kitchen.ci) where you can do CI stuff for your infrastructure and Chef repositories. We probably want this so we keep quality up.

This has already been implemented.


come accross a “OSError: [Errno 13] Permission denied”

Hi，matrix1001. I try to use heapinspect to practice pwn.
when I try to use it in pwndocker,I get “OSError: [Errno 13] Permission denied”.
url of pwndocker:
https://github.com/skysider/pwndocker

How I run the docker：
docker run -it --rm -v /root:/ctf/work --cap-add=SYS_PTRACE skysider/pwndocker

and the error info:
root@c83c5dbb35eb:/ctf/work# python HeapInspect.py 48
Traceback (most recent call last):
  File "HeapInspect.py", line 34, in <module>
    hi = HeapInspector(pid)
  File "/ctf/work/heapinspect/core.py", line 93, in __init__
    libc_info = get_libc_info(self.libc_path)
  File "/ctf/work/heapinspect/libc.py", line 133, in get_libc_info
    info.update(get_arena_info(libc_path, size_t))
  File "/ctf/work/heapinspect/libc.py", line 79, in get_arena_info
    result = subprocess.check_output(command.split())
  File "/usr/lib/python2.7/subprocess.py", line 567, in check_output
    process = Popen(stdout=PIPE, *popenargs, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
    raise child_exception
OSError: [Errno 13] Permission denied

would you please tell me how to solve this problem?
thanks a lot : )

This problem should be fixed already.
You can simply use chmod 755 for those libs in heapinspect\libs\libc-2.*\*\* to fix that.
I will check it later.

@wuk0n9 Still have that problem? Use git pull and try again.


Creating an API based project structure

It would be really great if we could have a good structure for an API based project where the backend (a DRF application) is completely separated from the frontend (a Vue or React or Angular application).

DRF is pretty straightforward to set up, but I've thought of adding a basic structure for reference. We would try to get @tomchristie involved in that kind of effort.
As for tying this project to a particular frontend setup (Vie, React, Angular, Riot, or any other framework-of-the-month), that's unfortunately not going to happen (again). We tried it with React and Angular, but the maintenance burden is too much for an unpaid, volunteer project.

@bluesurfer I think you can check out django-init . @theskumar is the core contributor of the package and is build on the lines of @pydanny 's Cookiecutter-Django.
ref : https://github.com/Fueled/django-init
It is specifically designed for API related project with minimal front-end dependencies :)

@theskumar is also a core contributor of Cookiecutter Django, a reviewer of Two Scoops of Django, and an all around awesome guy. Trust his work, it is good stuff. 👍

But is it possible to have a seperated pure DRF and a pure JavaScript framework projects and make them communicate one another through API?

Perfectly happy to review any cookiecutter for REST framework if needed, yup.

@tomchristie, Thanks! I hope to take you up on that soon. 😄
@bluesurfer You have two options:

In your own Cookiecutter Django-rendered project, add a directory and setup that adheres to whatever JavaScript framework you are using. Tie to DRF and enjoy.
Use a different Django-themed Cookiecutter template that has your preferred JavaScript framework and DRF setup already set up as you like. You can find them by using the GitHub search feature.

But is it possible to have a seperated pure DRF and a pure JavaScript framework projects and make them communicate one another through API?

Yes. You can also checkout https://github.com/Fueled/cookiecutter-angular, apart from what's suggested above, it plays nicely with DRF. There are some boilerplate for authentication state management, and a suggested layout and rest is upto you.

@pydanny
Ok, I think I'll go with (1). We have a relatively robust Django project (originally created with this cookiecutter) and it would be perfect if the new fully dynamic application would grow in parallel with the new API we are going to implement in the native Django app. However, I would like to know if there exist a recognized best practice for this kind of situation.


Loading xodr file gives strange output

Hello everyone, I am experimenting with xodr file and tried to load it into carla. I run the following command python3 config.py -x opendrive/TownBig.xodr and got the output something like this. The load are not aligned properly

I followed this tutorial to install Carla https://carla.readthedocs.io/en/latest/start_quickstart/#a-debian-carla-installation (Debian installation). OS linux 18.04, UE 4.26.2-0+++UE4+Release-4.26

Running manual_control.py works fine

After loading xodr map into CARLA, you can move camera via holding mouse click and WASD keys on keyboard.
You see roads as invisible because the camera is viewing them from bottom then just move camera upward and roads will show up correctly.

hello, I have the same question as you. The lane line can't be seen. Do you solve the question? Thank you so much

@JoyMazumder

hello, I have the same question as you. The lane line can't be seen. Do you solve the question? Thank you so much

Hi, you can draw string on each lane. It will show red signs for each lane in server side window. Use this code:
way_points = world.get_map().generate_waypoints(distance=10) for i, wp in enumerate(way_points):         world.debug.draw_string(wp.transform.location, 'O', draw_shadow=False,                                 color=carla.Color(r=255, g=0, b=0), life_time=1200.0,                                 persistent_lines=True)

@hitabm  Thank you so much! I saw many useful function in "debug" library, I will try to draw the line i want.


Fix non qualified function call ahg test ci

Description

Testing by reducing the number of tests running in parallel and see:

If tests pass.
Duration.

Testing if docker memory limits really make any difference.
Update arg BUNDLE_JOBS to 16 in builds, otherwise the docker cache won't work and it will install gems (and following steps) every time.

Results

https://github.com/CartoDB/cartodb/pull/16177/commits/4b645c718dc1c6c4a815aa1e9f06747e7629a618 Test passed after setting runParallelTests.sh 12 (time: 21 min). Logs
https://github.com/CartoDB/cartodb/pull/16177/commits/3602e7c6b1394d77319893b317cfad1af30beb5b Test passed after setting runParallelTests.sh 18 (time: 21 min). Logs
https://github.com/CartoDB/cartodb/pull/16177/commits/5762f4622d53b67b2d02ba3b26b0a1f7c7d4fc60 Tests failed in bulk few minutes ago after starting, with default value runParallelTests.sh 24 Logs
https://github.com/CartoDB/cartodb/pull/16177/commits/ff6b5ea8ac24951192e7baa2456b093537bc5c82 Revert docker memory limits in CI, with default value runParallelTests.sh 24, failing the same. Logs
https://github.com/CartoDB/cartodb/pull/16177/commits/44db74d5d39eb426346e824b19ffd0946dd0716f Tests passed with runParallelTests.sh 18 without memory limits, Logs

Conclusions

Docker memory limits don't make any difference here. So we can revert the commits in cartodb-private.
Parallel tests should be updated to 18 or similar. It doesn't seem to really matter if 12, 16 or 18, but running 24 in parallel probed to cause problems.
We should set the arg BUNDLE_JOBS to 16 in builds to take full advantage of docker cache, which saves up to 3 minutes. Compare Step 7 between this build (1'27") and this one (4'53").

Just wanted to find a workaround for this, as it's quite opaque what is causing this problem.
cc @ibrahimmenem @rafatower

Works reducing threads to 12

I think the error is intermittent, so I guess we need to run every combination a couple of times before we decide about the optimal number of parallel jobs. I'll add more logs in another PR then we decide what to do with this

After many tests @rafatower and I reached the same conclusion as @alberhander :joy: , we still don't know what is the origin of the problem but we can confirm it is a memory issue, actions to do:

for now reduce the number of workers to 18
try to find the root cause (why it started to fail)
remove postgres optimizations when starting the tests (potential time saving is not justified)

    entrypoint: su postgres -c "/usr/lib/postgresql/12/bin/postgres -c fsync=off -c synchronous_commit=off -c full_page_writes=off -c checkpoint_timeout=200min -c log_min_messages=FATAL -c shared_buffers=768MB -c max_connections=1000 -c listen_addresses='*'"

to

    entrypoint: su postgres -c "/usr/lib/postgresql/12/bin/postgres -c shared_buffers=768MB -c max_connections=1000 -c listen_addresses='*'"

put a strict timeout (budget) so failing due timeout is as valid as another causes
save or print logs of failed parallel executions and docker compose services, so we don't spend a lot of time the next time it fails


log4j-core classes were not recorded by the supply-chain indexer

When running the PoC using the sbom.exe watchdog-agent with:
> sdk use java 11.0.22-tem
> mvn clean package -DskipTests
> java -javaagent:/home/elias/code/kth/CHAINS/sbom.exe/watchdog-agent/target/watchdog-agent-0.11.1-SNAPSHOT.jar=sbom=/home/elias/code/kth/CHAINS/log4shell-poc/client/src/test/resources/log4shell.jsonl,skipShutdown=true -jar target/log4shell-poc-1.0-SNAPSHOT.jar &> log.txt

SLF4J(W): No SLF4J providers were found.
SLF4J(W): Defaulting to no-operation (NOP) logger implementation
SLF4J(W): See https://www.slf4j.org/codes.html#noProviders for further details.

Thanks!

This is an extremely weird case. org/apache/logging/log4j/status/StatusLogger (the $1^{st}$ class) does not exist in the jar log4j-api-2.14.1, but it is in the sources - https://github.com/apache/logging-log4j2/blob/be881e503e14b267fb8a8f94b6d15eddba7ed8c4/log4j-api/src/main/java/org/apache/logging/log4j/status/StatusLogger.java.

I reduced the list and apparently these two classes are not in the jar but still being loaded.
[NOT WHITELISTED]: org/apache/logging/log4j/core/pattern/RepeatPatternConverter
[NOT WHITELISTED]: org/apache/logging/log4j/core/filter/MutableThreadContextMapFilter

It is possible that these two classes would be coming from the watchdog-agent.


Adding release instructions for artifact hub

This PR adds instructions for releasing new versions to artifact hub
Checklist

[x] Commits are signed with Developer Certificate of Origin (DCO)
[x] Any necessary documentation is added, such as:

README.md
The docs/ directory
The docs repo

Fixes #
cc/ @tomkerkhove

Thank you!


v5.5.0+ Update breaks build on MetricsController.init()

I tried building my app locally for the first time in about a month and noticed that it was crashing on bootup when making the call to MetricsController.init(). I suspect this is due to the removal of GCM in Mixpanel.
Here's the stacktrace.
 java.lang.NoSuchMethodError: No virtual method getInstanceId()Lcom/google/android/gms/tasks/Task; in class Lcom/google/firebase/iid/FirebaseInstanceId; or its super classes (declaration of 'com.google.firebase.iid.FirebaseInstanceId' appears in /data/app/com.wearhaus.frontend-Ujj1M5P0smL5sHuYSLLgQA==/split_lib_dependencies_apk.apk!classes2.dex)
        at com.mixpanel.android.mpmetrics.MixpanelFCMMessagingService.init(MixpanelFCMMessagingService.java:117)
        at com.mixpanel.android.mpmetrics.MixpanelAPI.getInstance(MixpanelAPI.java:423)
        at com.mixpanel.android.mpmetrics.MixpanelAPI.getInstance(MixpanelAPI.java:369)
        at com.wearhaus.frontend.controllers.MetricsController.init(MetricsController.java:42)
        at com.wearhaus.frontend.controllers.WearhausApp.setupFacebook(WearhausApp.java:132)
        at com.wearhaus.frontend.controllers.WearhausApp.onAppLaunched(WearhausApp.java:122)
        at com.wearhaus.frontend.controllers.WearhausApp.enforceAppLaunched(WearhausApp.java:101)
        at com.wearhaus.frontend.account.LoginActivity.onCreate(LoginActivity.java:76)
        at android.app.Activity.performCreate(Activity.java:7144)
        at android.app.Activity.performCreate(Activity.java:7135)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2931)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3086)
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:193)
        at android.app.ActivityThread.main(ActivityThread.java:6718)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

Specifying Mixpanel v5.4.5 in my build.gradle solved the issue for me. I have a few questions and concerns.

Will doing staying at v5.4.5 have any negative consequences for my Mixpanel experience? We've had it installed and working well for 2 years without having to touch it. We'd rather not spend the time updating all our Gradle dependencies at this time.
What's the logic behind the documentation's instructions to put mixpanel-android:5.+ instead of a specific version number in build.gradle? It goes against Android best practices and issues like what I encountered are exactly why.
Was there any kind of announcement about this change? I didn't see anything about it and it seems like the kind of breaking API update that should be announced.

Hi @richzeng - sorry for the inconvenience. I'll address your issues one by one:

We encourage customers to use the latest version of the SDK since it includes new functionality and bug fixes. From v5.4.5 to v5.6.0 we have added some cool stuff like FCM support, event-triggered in-app notification support and account level analytics! Take a look at the releases notes here.
We will get that changed soon.
For those customers affected, the SDK prints warning logs describing how to migrate from GCM to FCM. It shouldn't crash the app. We did write release notes and they also appear on our changelog. I am curious, where did you try to find this announcement? We can start using other channels, let me know what you think!

For your particular problem, it does seem that you have included on your AndroidManifest.xml references to firebase, but you haven't included the library on your build.gradle. Is that the case?
We do not initialize FCM unless you have com.google.firebase.MESSAGING_EVENT intent.

Hi @richzeng - hope the issue is resolved. In case someone encounters this problem in the future, make sure you are using firebase version 16.2.0 or higher


sorted all lists in helpful material page.

This a pull request for #90
i've sorted all lists in helpful-material.html programmatically. However, the script is not included in this pull request.

Great work, resolve the conflicts and i will merge

i made sure i didn't alter anything. i hope everything is fine. This is my second time sending a PR :D


Docker-machine: command not found

Hello,
I would like use this script, to install the whatsapp API, I get always this Error
root@387228:~/Docker# ./docker.sh
./docker.sh: line 2: docker-machine: command not found
./docker.sh: line 3: docker-machine: command not found
./docker.sh: line 4: docker-machine: command not found
docker - version 1.4
Copyright 2003, Ben Jansens<EMAIL_ADDRESS>
Usage: docker [OPTIONS]

Options:
  -help             Show this help.
  -display DISPLAY  The X display to connect to.
  -border           The width of the border to put around the
                    system tray icons. Defaults to 1.
  -vertical         Line up the icons vertically. Defaults to
                    horizontally.
  -wmaker           WindowMaker mode. This makes docker a
                    fixed size (64x64) to appear nicely in
                    in WindowMaker.
                    Note: In this mode, you have a fixed
                    number of icons that docker can hold.
  -iconsize SIZE    The size (width and height) to display
                    icons as in the system tray. Defaults to
                    24.
  -color COLOR      The background color to use for the tray.
                    Defaults to whatever color the window
                    manager specifies.
root@387228:~/Docker#

Hey,
You need to install docker-machine
https://docs.docker.com/machine/install-machine/, I am assuming that you
are using linux, then you might need to run it differently,  meaning use
docker to run the commands in docker.sh instead of running docker.sh.
Does this help?

After I installed docker-machine I get this Error
root@387228:~/Docker# ./docker.sh
Running pre-create checks...
Error with pre-create check: "VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path"
Host does not exist: "whatsapp"
Host does not exist: "whatsapp"
docker - version 1.4
Copyright 2003, Ben Jansens<EMAIL_ADDRESS>
Usage: docker [OPTIONS]

Options:
  -help             Show this help.
  -display DISPLAY  The X display to connect to.
  -border           The width of the border to put around the
                    system tray icons. Defaults to 1.
  -vertical         Line up the icons vertically. Defaults to
                    horizontally.
  -wmaker           WindowMaker mode. This makes docker a
                    fixed size (64x64) to appear nicely in
                    in WindowMaker.
                    Note: In this mode, you have a fixed
                    number of icons that docker can hold.
  -iconsize SIZE    The size (width and height) to display
                    icons as in the system tray. Defaults to
                    24.
  -color COLOR      The background color to use for the tray.
                    Defaults to whatever color the window
                    manager specifies.
root@387228:~/Docker#

Have you some like a "Getting Start" File for me ?

Basically you'll have to install Virtual box for that as well. Maybe you
should follow the full docker installation process and then follow
docker.sh? In case you do it, it would be nice if you could write down what
you did in order to get it to work.
All the best

Shaked Klein Orbach
http://www.shakedos.com/about
On Thu, Apr 14, 2016 at 2:59 PM, Skillkiller<EMAIL_ADDRESS>wrote:

After I installed docker-machine I get this Error
root@387228:~/Docker# ./docker.sh
Running pre-create checks...
Error with pre-create check: "VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path"
Host does not exist: "whatsapp"
Host does not exist: "whatsapp"
docker - version 1.4
Copyright 2003, Ben Jansens<EMAIL_ADDRESS>Usage: docker [OPTIONS]
Options:
-help             Show this help.
-display DISPLAY  The X display to connect to.
-border           The width of the border to put around the
system tray icons. Defaults to 1.
-vertical         Line up the icons vertically. Defaults to
horizontally.
-wmaker           WindowMaker mode. This makes docker a
fixed size (64x64) to appear nicely in
in WindowMaker.
Note: In this mode, you have a fixed
number of icons that docker can hold.
-iconsize SIZE    The size (width and height) to display
icons as in the system tray. Defaults to
24.
-color COLOR      The background color to use for the tray.
Defaults to whatever color the window
manager specifies.
root@387228:~/Docker#
Have you some like a "Getting Start" File for me ?
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/Shaked/docker-whatsapp/issues/1#issuecomment-209929719

banginpadr:docker-whatsapp $ ./docker.sh
Host already exists: "whatsapp"
export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://<IP_ADDRESS>:2696"
export DOCKER_CERT_PATH="/Users/Diango/.docker/machine/machines/whatsapp"
export DOCKER_MACHINE_NAME="whatsapp"
Run this command to configure your shell:
eval $(docker-machine env whatsapp)
Sending build context to Docker daemon 71.68 kB
Step 1/37 : FROM ubuntu:15.04
---> d1b55fd07600
Step 2/37 : MAINTAINER Shaked KleinO Orbach<EMAIL_ADDRESS>---> Using cache
---> c3217dc19f45
Step 3/37 : RUN apt-get update -y
---> Using cache
---> 377cc432673e
Step 4/37 : RUN apt-get install -y software-properties-common
---> Using cache
---> 1ef5288a610b
Step 5/37 : RUN add-apt-repository ppa:ondrej/php5-5.6
---> Running in b6c64ed2a259
Cannot add PPA: 'ppa:~ondrej/ubuntu/php5-5.6'.
The user named '~ondrej' has no PPA named 'ubuntu/php5-5.6'
Please choose from the following available PPAs:

'apache2':  PPA for Apache 2.x
'apache2-qa':  PPA for Apache2 (QA builds; experimental)
'autotools':  PPA for autotools (not-supported; build-dependency; experimental)
'bind9':  PPA for BIND 9
'cmake':  PPA for CMake (not-supported, experimental)
'common':  Common PPA packages
'courier':  PPA for Courier MTA
'cyrus-imapd':  PPA for Cyrus IMAP
'debhelper':  PPA for Debhelper (and friends)
'golang':  PPA for Go (experimental, build-dependency)
'llvm':  PPA for LLVM
'mariadb-10.0':  PPA for MariaDB 10.0 (don't use, broken)
'mysql-5.5':  PPA for MySQL 5.5 (don't use, broken)
'mysql-5.6':  PPA for MySQL 5.6 (don't use, broken)
'mysql-5.7':  PPA for MySQL 5.7 (don't use, broken)
'nginx':  PPA for NGINX with HTTP/2 on Ubuntu 12.04 LTS and higher
'nginx-mainline':  PPA for NGINX Mainline with HTTP/2 on Ubuntu 12.04 LTS and higher
'pelican':  PPA for Pelican
'php':  ***** The main PPA for PHP (5.6, 7.0, 7.1) with many PECL extensions *****
'php-qa':  PPA for PHP (QA builds; experimental)
'php-zts':  PPA for PHP ZTS (experimental, unsupported)
'php5-compat':  PPA with dummy compatibility php5* packages
'php5-oldstable':  PPA for PHP 5.4 (unsupported, vulnerable)
'pkg-dpkg':  dpkg and friends (very experimental)
'pkg-gearman':  PPA for Gearman
'pkg-nlnetlabs':  NLNetLabs Backported Packages
'postfix+dane':  PPA for Postfix with DANE support
'ppa':  PPA for Ondřej Surý
'sandbox':  Sandbox for preparation of various packages (DON'T USE)
'seafile':  PPA for Seafile
'zonemaster':  PPA for Zonemaster
The command '/bin/sh -c add-apt-repository ppa:ondrej/php5-5.6' returned a non-zero code: 1
banginpadr:docker-whatsapp $

i keep getting this error. can you please help me? im using a mac


Design for search results page

"Search Text" or Generic tagging system to facilitate better search results.


[Feature][dependencies] Bump spring-core from 5.3.12 to 5.3.19

Closes #9842

Codecov Report

Merging #10857 (68c8369) into dev (d29592d) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##                dev   #10857      +/-   ##
============================================
- Coverage     40.66%   40.65%   -0.01%
+ Complexity     4828     4822       -6
============================================
  Files           913      913
  Lines         36306    36299       -7
  Branches       3988     3983       -5
============================================
- Hits          14765    14759       -6
- Misses        20068    20070       +2
+ Partials       1473     1470       -3

Impacted Files
Coverage Δ

...er/master/dispatch/host/assign/RandomSelector.java
77.77% <0.00%> (-5.56%)
:arrow_down:

...org/apache/dolphinscheduler/remote/utils/Host.java
43.47% <0.00%> (-2.18%)
:arrow_down:

...dolphinscheduler/remote/future/ResponseFuture.java
81.96% <0.00%> (-1.64%)
:arrow_down:

...e/dolphinscheduler/remote/NettyRemotingClient.java
51.38% <0.00%> (-1.39%)
:arrow_down:

...rver/master/runner/task/BlockingTaskProcessor.java
75.60% <0.00%> (-0.30%)
:arrow_down:

...eduler/api/service/impl/DataSourceServiceImpl.java
29.49% <0.00%> (ø)

...r/server/master/runner/MasterSchedulerService.java
0.00% <0.00%> (ø)

.../dolphinscheduler/plugin/task/datax/DataxTask.java
0.00% <0.00%> (ø)

...cheduler/plugin/task/api/ShellCommandExecutor.java
0.00% <0.00%> (ø)

...r/plugin/task/sqoop/parameter/SqoopParameters.java
53.33% <0.00%> (ø)

... and 3 more

Continue to review full report at Codecov.

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

Hi, I changed the comments in check-LICENSE.sh to spec the license files should be changed. IMHO this may be helpful for new contributors, since I was confused cuz it lead me think about /LICENSE but it seems need not to change. Is that okay?


Fix WithFirstRun not running on MacOS

I have had trouble setting up my dev environment to correctly build the vpk CLI to test this change works.
Added a prefix of export VELOPACK_FIRSTRUN=1 to the initial run of the installed app triggered in the postinstall script.
In theory, this should be available to Velopack to detect first run.
Closes #167

Thanks! I'll test this shortly but it looks great.

Thanks! I'll test this shortly but it looks great.

Brilliant thanks, looking forward to it getting released once we know it works :)
Realised I forgot to add a closing tag to your issue but looks like you added it, thanks for that.

Your change did not work as intended, the app just failed to start. I have fixed this and merged.

Thank you @caesay, apologies I wasn't able to validate it, spent hours trying to get my local environment setup to run it and gave up.
Interesting your change fixed it, and thanks for picking it up.


[Bug] Unable to create cross-instance resources

Describe the bug
I'm creating datasources and dashboards that should be associated with multiple grafana instances. As far as I can tell this should be supported but It appears it isn't. I'm using the MatchExpression with the in operator to choose a primary instance and a dedicated instance. My goal is to have 1 grafana instance that has a copy of all the dashboards for each datasource and then dedicated grafana instances to each data source. That way a user can login to the master grafana instance to see all dashboards for all datasources or delegate restricted access to the dedicated instance. I know about orgs and teams but this seemed like a much more elegant and easier approach... if only multiple instances were supported.
Version
v5.0.0-rc3
To Reproduce
Create a GrafanaDatasource and GrafanaDashboard resource with the MatchExpression in instance selector like so:
apiVersion: grafana.integreatly.org/v1beta1
kind: Grafana
metadata:
  labels:
    dashboards: grafana-primary
  name: grafana-primary

apiVersion: grafana.integreatly.org/v1beta1
kind: Grafana
metadata:
  labels:
    dashboards: grafana-dedicated
  name: grafana-dedicated

apiVersion: grafana.integreatly.org/v1beta1
kind: GrafanaDatasource
metadata:
  name: grafana-dedicated-datasource
spec:
  datasource:
    access: direct
    database: dedicated_data
    editable: false
    isDefault: true
    jsonData:
      timeInterval: 5s
    name: MySQL
    secureJsonData:
      password: thepass
    type: mysql
    url: myhost:3306
    user: foobar
  instanceSelector:
    matchExpressions:
    - key: dashboards
      operator: In
      values:
      - grafana-dedicated
      - grafana-primary

apiVersion: grafana.integreatly.org/v1beta1
kind: GrafanaDashboard
metadata:
  name: comments-dedicated
spec:
  datasources:
  - datasourceName: grafana-dedicated
    inputName: DATASOURCE_DB
  instanceSelector:
    matchExpressions:
    - key: dashboards
      operator: In
      values:
      - grafana-dedicated
      - grafana-primary
  jsonnet: |
  ...

apiVersion: grafana.integreatly.org/v1beta1
kind: GrafanaFolder
metadata:
  labels:
    folder: grafana-dedicated
  name: folder-dedicated
spec:
  title: "Dedicated Dashboards"
  instanceSelector:
    matchExpressions:
    - key: dashboards
      operator: In
      values:
      - grafana-dedicated
      - grafana-primary

Expected behavior
I would like the primary grafana instance to have a 2 copies of every dashboard, one for the primary datasource in the auto-generated "General" folder and one for the dedicated datasource in the "Dedicated Dashboards" folder. And of course the dedicated-datasource resource to be added to both instances.
Suspect component/Location where the bug might be occurring
My brain. My understanding of kubernetes? My understanding of this operator.
Screenshots
If applicable, add screenshots to help explain your problem.
Runtime (please complete the following information):

OS: Linux]
Grafana Operator Version: v5.0.0-rc3
Environment: EKS v1.22
Deployment type: deployed via helm

Additional context
I'm creating these grafana resources from within my own operator using the go library from this repo.

@ddvdozuki what you describe should be supported, I'll try to reproduce your issue.

@ddvdozuki Ok, not quite sure I follow. I tried your example and the datasource (grafana-dedicated-datasource) got imported into both Grafana instances. Same for the dashboards. That is the expected behaviour, because your datasources and dashboards explicitely select both Grafana instances.

I think "Describe the bug" and "Expected behavior" sections contradict each other.

I would like the primary grafana instance to have a 2 copies of every dashboard, one for the primary datasource in the auto-generated "General" folder and one for the dedicated datasource in the "Dedicated Dashboards" folder.

Unfortunately, you cannot import the same dashboard twice, because dashboards are referred to by uid, and uid stands for "unique ID" (in the whole Grafana instance). The way to go is to have one dashboard in one particular folder + multiple datasources. Those can be imported into multiple Grafana instances.

@ddvdozuki when uid is not hardcoded, it's automatically derived from CR's metadata.uid (assigned automatically by k8s).

@ddvdozuki In theory, it should work. The reality is that we still don't know what exactly you deploy to the cluster, so we can only make some guesses (like for uid).
Please, share a full set of manifests that we can use as is to replicate the behaviour. Without them, it's hard to be certain about anything.


predraw gif images in background thread

New Pull Request Checklist

[x] I have read and understood the CONTRIBUTING guide

[x] I have read the Documentation

[x] I have searched for a similar pull request in the project and found none

[x] I have updated this branch with the latest master to avoid conflicts (via merge from master or rebase)

[x] I have added the required tests to prove the fix/feature I am adding

[x] I have updated the documentation (if necesarry)

[x] I have run the tests and they pass

[x] I have run the lint and it passes (pod lib lint)

This merge request fixes / reffers to the following issues: ...
Pull Request Description
In SDWebImage version 3.x, gif image drawing job executed in main thread.
So, speed for loading gif(first playback) is quite slow.
I know SDWebImage version 4.x changed gif support based on FLAnimatedImage.
But in my experience, FLAnimatedImage uses so much resources such as CPU.
So I want to use this concept(gif to uiimage animatedimage) in this version.

Sorry but for now we are going with the FLAnimatedImage approach. Seems a lot better in the long run.


Feature/small improvements

some small improvements ;-)

Hi,
the first commit is a good addition, as it's more explicit in the usage of pathes and quotes.
But I would not merge b0d913e. Therefor see also sebastianbergmann/phpunit/issues/1914

ok he recommends that normal php unit user should use $this-> instead of self::. But why?
In a technical point of view this is not correct but the common usage seems to be with $this->. Every hit on google links to this issue :-\
Can you provide some more information for me please?

I also only found the information from this issue. There are some which say how to get rid of sum $this writings, but actually most of them still use the instance method call. And as Sebastian said the reason for the static methods was to be able to use the assertion class outside of PHPUnit and as he recommend I would stick to the PHPUnit convention of $this.

that's ok :-) i removed the last commit.


adding nginx-wsgi-flask docker-compose sample

Adding a simple and secure docker-compose sample for using NGINX + WSGI + Flask.
This sample demonstrates using a reverse proxy that points to a WSGI handler with a Flask backend. All images are based on Alpine, use nonroot Docker users, are validated by healthchecks, and are simple/easy to use.

All commits to this pull request are complete. It is ready to be peer reviewed and merged! @glours  @alobbs  🚀

@aiordache, I have made all the edits you have suggested, thank you! Let me know if there is anything else.

Closing this pull request and tracking the new one here. I am opening a new one to include the new yarn.lock changes as seen above. Looking for an approval on that PR. Thanks!


Use complex field in select with join if identifierQuoting="true"

I work on propel with identifierQuoting="true" and I try to make a propel query with join field = A.b :
$query->withColumn($field) or sorting by join field or where condition with join field
I have an issue on find() method because in Criteria::createSelectSql propel try to fetch columnName and tableName and try to link to TableMap column definition, in this case ColumnMap::normalizeName() for explode and fetch column name however with identifierQuoting true the field is convert to A.b so TableMap::getColumn() fail on hasColumn b because the column name is b (without quote)
My workaround is to remove all kind of escaping quote ` for mysql, ' for mssql with trim function (we shouldn't have space too) in normalize function, this can be more elegant with an "unquote" adapter method or change TableMap::getColumn() code but this can less performant and more harder..

Guess we should also include there other quote chars like ', " and [, ]

Would be awesome if you could squash your commits, so I can merge it =)

Thanks :)


switch to using sdk util logging err methods

Codecov Report

Merging #379 (96ed59f) into main (91337d2) will increase coverage by 0.06%.
The diff coverage is 4.12%.

@@            Coverage Diff             @@
##             main     #379      +/-   ##
==========================================
+ Coverage   20.36%   20.42%   +0.06%
==========================================
  Files          48       48
  Lines        5402     5376      -26
==========================================
- Hits         1100     1098       -2
+ Misses       4138     4114      -24
  Partials      164      164

Impacted Files
Coverage Δ

internal/util/util.go
0.00% <ø> (ø)

pkg/server/router/issuance.go
0.00% <0.00%> (ø)

pkg/server/router/manifest.go
9.96% <0.00%> (ø)

pkg/server/router/operation.go
0.00% <0.00%> (ø)

pkg/server/router/presentation.go
3.46% <0.00%> (+0.08%)
:arrow_up:

pkg/server/server.go
81.46% <0.00%> (+0.39%)
:arrow_up:

pkg/service/credential/service.go
0.00% <0.00%> (ø)

pkg/service/credential/storage.go
1.68% <0.00%> (+<0.01%)
:arrow_up:

pkg/service/did/service.go
0.00% <0.00%> (ø)

pkg/service/keystore/storage.go
24.76% <0.00%> (ø)

... and 6 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Make filters its own setting

Create new table for filters

[ ] allow applying to autostar channels
[ ] allow applying to starboards

Settings

[ ] attachment min/max
[ ] allowed/disallowed attachment types
[ ] regex matches/not matches
[ ] min chars/max chars (technically redundant with above, but not premium-only)

Migrate
Need to migrate from old settings to filters. Might not even be possible in plain SQL but I'll figure something out, I hope...

Superseded by #216


suggestions for improving city.get_lunar_eclipse_time

Instead of the (obscure) tuple that swisseph returns, what other data structure could be returned? a dict with start, end times of umbral, penumbral eclipses and moonrise/moonset @vvasuki ?

Prefer a newly defined EclipseTime object to a dict (if returning info about a single eclipse, as I gather from the name of the method). I don't see why it should contain moonrise/ moonset times.


Add repo type search option to repo/search api

First attempt to solve #2321. I want to check, if this way is OK.

Added some comments and rename RepoTypeAll to RepoTypeAny. BTW it's working solution :).

Can you add integration tests for this?

@lafriks I can try. I have to learn what's in test db first and how to do it right.

@lafriks I can't even run tests in gitea, so no...

Rebased on master

Codecov Report

Merging #2326 into master will increase coverage by 0.17%.
The diff coverage is 45.71%.

@@            Coverage Diff             @@
##           master    #2326      +/-   ##
==========================================
+ Coverage   27.59%   27.77%   +0.17%
==========================================
  Files          83       83
  Lines       16928    16902      -26
==========================================
+ Hits         4671     4694      +23
+ Misses      11581    11528      -53
- Partials      676      680       +4

Impacted Files
Coverage Δ

routers/user/profile.go
0% <0%> (ø)
:arrow_up:

models/repo_list.go
41.55% <53.33%> (+17.66%)
:arrow_up:

models/user.go
18.67% <0%> (+0.21%)
:arrow_up:

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 911ca02...144c507. Read the comment docs.

Rebased on top of #2371.  I'll create new tests for added feature soon.

@Morlinest why close this PR?

@lunny I'll reopen this PR once needed changes will be made and merged (#2321, #2371).


Changing names of location-scale to offset-multiplier in math library

Summary
This changes the names of the parameters of the affine transform in the Math library as discussed in issue https://github.com/stan-dev/stan/issues/2656 . The corresponding Stan language PR that this should be merged with is https://github.com/stan-dev/stan/pull/2717 .
Tests
Updated the old tests.
Side Effects
None.
Checklist

[x] Math issue #(issue number)

[x] Copyright holder: (fill in copyright holder information)

Columbia University

[x] the basic tests are passing

unit tests pass (to run, use: ./runTests.py test/unit)
header checks pass, (make test-headers)
docs build, (make doxygen)
code passes the built in C++ standards checks (make cpplint)

[x] the code is written in idiomatic C++ and changes are documented in the doxygen

[x] the new changes are tested

@mitzimorris , could you maybe have a look at this PR and merge it as well as the corresponding language one. What's difficult is that they are dependent on each other, so each is going to fail tests until the other is merged :/. They pass tests on my machine though. Not sure what to do. A monorepo would be so helpful here.

Do you happen to know how to do this? I am completely lost when it comes to Jenkins, sadly.

OK. I've added in the old files too. This PR should now pass on Jenkins. The plan is to merge this first. Then the Stan one. Then I'll submit a third PR to delete the old files in Stan-Math.  These PRs are only changing the names of two parameters. That shouldn't take 5 hours.

Do you happen to know how to do this? I am completely lost when it comes to Jenkins, sadly.

@VMatthijs, I'll try to break down how I get there.

Go to Jenkins. Click on whatever link is at the bottom of the PR.

Log in to Jenkins. We should have the permissions tied to GitHub, but if you don't have permissions, let me know and we'll figure it out.

Exit the Blue Ocean view. You need to get back to the old view to set parameters.

Go to the project. Right now, you're at the build view, but you want to navigate to the project itself.

Get to the "Build with Parameters" page -- almost there!

Start a new build with the appropriate upstream PR numbers. You might only need one.

I'm not so good at navigating either, but there might be a shorter way to get to the "Build with Parameters" page.

Ooh, thank you!!

OK. I've added in the old files too. This PR should now pass on Jenkins. The plan is to merge this first. Then the Stan one. Then I'll submit a third PR to delete the old files in Stan-Math.  These PRs are only changing the names of two parameters. That shouldn't take 5 hours.

@VMatthijs, I get that you're frustrated. It looks like part of the frustration due to cpplint on the other repo. You have the power to change the process, so rather than just calling it idiotic, mind explaining how you think it could go better? We can move the conversation to discourse for the general discussion.
But... with regards to changing names... this is a big deal! It should be hard to change the API, both on the C++ side and the Stan language side, but not impossible. It's much easier to add something new than to change the behavior of something that exists. The motivation is user-facing (from the Math library, the users are the Stan developers).
I think this one should fly because I believe this was introduced post latest release (so it's a feature that hasn't been released yet). Personally, I think the mistake was that we merged the original PR and the Stan PR before we decided on the final name. We would have avoided this type of problem if we did that.
Anyway, if you have suggestions on how to make this less frustrating, I'm all ears! That said, I do want to make sure we're not making changes to the Math API without some thought. The tests did the right thing here. It indicated that there's a problem if we merged this Math because it'd cause Stan to break. We want that check in there. We should make it easier, but how?

Sorry for getting frustrated. This just feels like such a minor change and it's taking me so long. And I am someone who should know how to work with the code base!! I've had to touch 48 files to change location/scale to offset/multiplier. I am just worried that at this rate we are discouraging a lot of external contributions, because it's so hard to get code into Stan. I guess part of the point of rewriting the compiler in OCaml is to reduce the number of files we touch when adding these features. The mono repo would also make things much easier. Adding auto-formatting to Jenkins on the Stan repo would also help.

It's alright to get frustrated. It's better if we figure out a better policy!
Agreed that the code should be minor, but naming is not a minor change. Just FYI, if this were post new release, this set of PRs couldn't go in this way. You'd have to leave the old one in with it being deprecated.
There are lots of things in the math library that I want to rename / change, but we have to wait for a major version for those things to happen.
Anyway, I feel your frustration. Hopefully you don't feel that frustrated most of the time. I think new contributors won't be changing existing parts of the API very often. Most should be adding new functionality or replacing existing functionality. Both are straightforward, the second is really easy.
Adding the monorepo makes it easier for exactly this use case, but because we have the monorepo doesn't mean we can change the API as we wish. Stan isn't the only client to the Math library. But yes, this would have been much, much, much easier under a monorepo. I've been burned by not having a monorepo too, but it happens pretty rarely that we need to make a change to the language like this. And that's a good thing!

Thanks, @syclik ! :-)


Add selected date to MDDatePickerDialog

I've also edited the demo project to set the date - particularly useful for entering a date of birth! ;)

This addresses issue: https://github.com/fpt-software/Material-Controls-For-iOS/issues/27

Thank you for this commit! @xinsight


Timeout Option Not Explained

Hello!
I saw that #129 is here to help with major issues with the timeout (I face them regularly, so thanks for this!).
Could we possibly add a point on this in the Readme doc mentioning if there is a default (doesn't seem like it as shown in the PR).
If you want me to add anything on this matter in the repo let me know, I'd love to help.

We did not do so good on doc obviously. Thanks for spotting this.
If you propose to help, you are absolutely welcome. You can fork this repos, make the changes on your fork in a new branch and then push them and create a pull request from this branch. We will review it carefully, I promise.


Add E2e HA tests

How to categorize this PR?

/area high-availability
/area testing
/kind test
What this PR does / why we need it:
This PR adds HA tests

Updating non-HA shoot to single-zone HA.
Updating non-HA shoot to multi-zone HA.
Ensuring zero downtime while updating k8s version for HA shoot.

Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
I have adapted corresponding make target renaming changes ci-e2e-kind-ha-single-zone, ci-e2e-kind-ha-multi-zone in ci-infra repo

[ ] https://github.com/gardener/ci-infra/pull/480

Release note:

None

/test pull-gardener-e2e-kind-ha-multi-zone

/test pull-gardener-e2e-kind-ha-multi-zone
/test pull-gardener-e2e-kind-ha-single-zone

FYI - let's wait until https://github.com/gardener/gardener/pull/6914 is merged and then rebase this PR/adapt it accordingly.
Please help reviewing https://github.com/gardener/gardener/pull/6914.
/hold

https://github.com/gardener/gardener/pull/6914 is merged
/unhold
/rebase

1.create non-HA Shoot on seed with < 3 zones and later upgrade it to HA w/ failure tolerance type node

To execute this case, local kind cluster need to have three nodes. I assume you are referring local kind cluster is kind-ha.
Are you suggesting to enhance local kind cluster to have three nodes and execute all existing shoot tests + this specific case instead of running in new flavor kind-ha-node.
But Initial intension was to run all shoot tests with failure tolerance type node setting + any specific single-zone tests and it will be executed in one flavor pull-gardener-e2e-kind-ha-node

2.create non-HA Shoot on seed with >= 3 zones and later upgrade it to HA w/ failure tolerance type node

This case needs totally 9 nodes, because shoot can be scheduled on any zone and that zone have to contain three nodes if zone-pining is enabled. Right now I skipped this test case, because we can't create 9 nodes kind cluster for this case.
Having three flavor makes sense upto me, because we can ensure that by creating,

non-HA shoots in local kind cluster setup, if needed we can add specific tests here and easy to enhance.
HA shoots with failure tolerance type node in single-zone kind cluster, if needed we can add specific tests here and easy to enhance.
HA shoots with failure tolerance type node in multi-zone kind cluster, if needed we can add specific tests here and easy to enhance.

Also, can this folder https://github.com/seshachalam-yv/gardener/tree/master/example/gardener-local/kind-ha be deleted now?

/retest-required

/hold
waiting for tests

/unhold


Resolving issue #740

PR solving issue #740
Added a new 1 column section if no section currently exists on selected page. Also added a minimal test for this use case.
P.S. I also updated what I think is a typo on line 183 in page-clientsidewebpart-add.spec.ts. Not 100% sure what the intention of the test case is, but the way I interpret it suggests it was a minor typo.

Coverage remained the same at 100.0% when pulling 454dd11ef11b1b17f3e32b06125c07ed5af9a33c on joakimhogberg:feature/issue-740 into a0602e0e2c1e8f08e2e479bc6882f2e8ff47ef61 on pnp:dev.

Thanks! We'll review it shortly!

Merged manually. Thank you! 👍


Add system test for NI-DCPower that uses channel expansion

There are two system tests for NI-DCPower: test_nidcpower_legacy and test_nidcpower. The latter is disabled with a pytest.mark.skip decorator. This test needs to be updated and enabled now that NI-DCPower supports channel expansion.

#119 suggests removing legacy dc power support.  should we also remove the legacy tests?

Resolved in #143
FYI @ni-erikcrank


Add ability to filter checks to test by changes

Motivation
AppVeyor needs this so we only test certain changed checks for pull requests
Additional Notes
AppVeyor now should have conditional builds set up just like Travis. We'll have to merge to be sure though.

Codecov Report

Merging #2163 into master will decrease coverage by 11.12%.
The diff coverage is n/a.


no sequncer generated after sending large value tx

no sequncer generated after sending large value tx , Garantee is 1.4 million

Due to incorrectly check of TxPool.isBadTx() function, a piece of large guarantee transactions will destroy the confirm process of Sequencers.
This is fixed by commit b0118fd


Docker Examples

I wanted to ask you, @dmacvicar, if you be interested in a couple docker examples? It might help people who want to try out your plugin and adds a easy of use for users. I also found it helpful when I need to manually build your plugin to test out new features, like the 0.12 release.
Here are some examples below:
Build plugin for Alpine images:
# Building Libvirt Plugin Docker
FROM golang:alpine

# Update APK
RUN apk update && apk upgrade

# Install Dependencies
RUN apk add git make pkgconfig libvirt gcc libvirt-dev libc-dev

# Debugging packages
RUN apk add file nano

RUN go get -u golang.org/x/lint/golint
RUN go get github.com/dmacvicar/terraform-provider-libvirt

WORKDIR $GOPATH/src/github.com/dmacvicar/terraform-provider-libvirt
RUN make build

Build plugin for Debian based images(Ubuntu, Debian, etc):
# Building Libvirt Plugin Docker
FROM golang:stretch

# Update APK
RUN apt-get update -y && apt-get upgrade -y

# Install Dependencies
RUN apt-get install git make pkg-config libvirt0 gcc libvirt-dev libc-dev -y

# Debugging packages
RUN apt-get install file nano -y

RUN go get -u golang.org/x/lint/golint
RUN go get github.com/dmacvicar/terraform-provider-libvirt

WORKDIR $GOPATH/src/github.com/dmacvicar/terraform-provider-libvirt
RUN make build

Run Terraform 0.12 and Libvirt plugin on Ubuntu 18.04:
# Grab the Terraform binary
FROM hashicorp/terraform:0.12.5 AS terraform

# Grab the Libvirt plugin binary
FROM terraform-libvirt:latest AS libvirt

FROM ubuntu:18.04

# Set working dir
WORKDIR /root/

# Install Dependencies
RUN apt-get update -y

# Dependencies for Libvirt Plugin
RUN apt-get install dbus dmeventd dmsetup libapparmor1 libavahi-client3 libavahi-common-data libavahi-common3 libdbus-1-3 libdevmapper-event1.02.1 libdevmapper1.02.1 liblvm2app2.2 liblvm2cmd2.02 libnl-3-200 libnuma1 libreadline5 libvirt0 libyajl2 lvm2 readline-common -y

# Dependencies for Local Use(Optional)
RUN apt-get install wget git sshpass gettext python3 python3-pip xsltproc mkisofs -y

# Copy Terraform binary to image
COPY --from=terraform /bin/terraform /bin/

# Copy provider plugin to image(ONLY for x86, could adpat for multi-arch)
RUN mkdir -p /root/.terraform.d/plugins/linux_amd64/
COPY --from=libvirt /go/src/github.com/dmacvicar/terraform-provider-libvirt/terraform-provider-libvirt /root/.terraform.d/plugins/linux_amd64/

# ADD YOUR FILES HERE
COPY example.tf /root/

# Terraform commands
RUN terraform init

ENTRYPOINT /bin/bash

These are all pretty rough Dockerfiles, as I am only using them for quick testing, but I can clean them up and submit a PR if you are interested.

I'm OK to have this unless @dmacvicar thinks the opposite. What I would state in the examples that this aren't maintained by us,  in a long-term perspective we will have no prios to maintain them, so no guarantees that they work. E'g what I see as an issue is something like pkg updating and docker etc it is tricky to maintain.
A part of that, we I would like personally to see also openSUSE in that containers. 😉
If I think more accurately, I would say that you could create your github repository containing this and we can reference it in the Readme.md file as already other projects are there. To me this seems pretty straightforward and we have the best of the worlds

@MalloZup I have no qualms with openSUSE. What do you guys want to see, Leap or Tumbleweed?
As far as adding them to the repo vs having them in my repo, I am flexible. One thing to note, this account is linked to my IBM account, and if I ever leave I am not sure what happens to it.
My main goal to adding Docker containers was to make it easier for people to use the plugin/play around with it.

@james-crowley thx. Leap I think I better. I get your point about the repo. OK we can add a directory to this repo and stating this clearly that they are community effort. Feel free to send a pr with a directory and doc needed

Hi @james-crowley
I have nothing against the Dockerfiles, but today we are doing the builds in the Open Build Service for all major distros!. It gives the user lot of confidence on how the build is done. For example, builds are done without internet connection. I dislike the idea of building using Docker in random workstations and pulling half of the internet on each build.
I would not be against a contrib/ directory and having those scripts there. They would need to be maintained, because it could hit us back with "I tried it and did not work" issues.

@dmacvicar We can do what @MalloZup suggested with just putting them on my repo and linking back to it. That way you do not need to worry about issues from users.
I'll make sure to give you guys a heads up if there are changes with my public github account, that way you can fork it if you guys want to keep it around.
Let me clean up some of the examples I been working on and I'll post back here with the link to my repo.
Also, do either of you know where I could find the docker images for Leap or Tumbleweed? Especially, if they have an s390x  images. I saw they used to host them on docker hub, but since move to self hosting the images?

My vote would be for a 'contrib' folder, it would be much easier to share maintaining that going forward.
Thanks.

I'm ok with the contrib folder . As long we have clear documentation I think we can use it.

@james-crowley
Leap 15.1 -> registry.opensuse.org/opensuse/leap:15.1
Tumbleweed -> registry.opensuse.org/opensuse/tumbleweed:latest
and the registry public is here
https://registry.opensuse.org/cgi-bin/cooverview

@MalloZup Thanks for the links. I am working on the opensuse images right now. I'll make a PR with the contrib folder when done.

You guys can see some stuff I am working on here, https://github.com/james-crowley/terraform-provider-libvirt/tree/docker_examples. Still need to fix some issues and add more docs.

The examples up there now work. I need to document the process and usage, but feel free to test them.
@MalloZup Also, I had to go with tumbleweed as a base image, cause leap seems not to support s390x. Hope that is okay, but I think to do a leap version someone would just need to change the FROM statement from tumbleweed to leap.

@MalloZup Feel free to check out the Docker examples over in my repo, https://github.com/james-crowley/terraform-provider-libvirt/tree/docker_examples. It needs some more cleaning up before a PR, but wanted to see if that style was on point for you guys.

I'm considering this close fix the typo and I will merge it tia!
good work!


Fix spelling of word perturbation in lie-group docstrings

Minor change that corrects the spelling of the word "perturbation" in a few docstrings.

While this is approved, I don’t have the right permissions to merge. Just wanted to make sure you weren’t waiting on me to proceed.


Devops/new env changes

Coverage decreased (-46.09%) to 0.0% when pulling 5fd0a56cfd4d9243d9c42655353612cc323f7e89 on scotlynhatt:devops/new-env-changes into 175b5e113d8d60f2404bc355ba20beb76d0da627 on locationtech:master.


We no longer make entry points for Windows and macOS in post-01

This line confused me. I thought I'd read past something but it looks like the content in post-01 that it is referring to changed in 0b9ca847356c3f932e038d3b32d5e85a6e53e971.
Thanks for the blog!

Thank you!


Cannot combine OR|AND with NOT

Hello,
I'm trying to parse the following query
foo:bar OR NOT baz:qux

I then  get the following output
{
   "left": {
      "field": "foo",
      "term": "bar",
      "similarity": null,
      "boost": null,
      "prefix": null
   },
   "operator": "OR",
   "right": {
      "field": "baz",
      "term": "qux",
      "similarity": null,
      "boost": null,
      "prefix": null
   }
}

As you can see the NOT gets lost.
That might be the correct Lucene implementation but I'm not sure how to express that query then.

With the latest from npm (version 1.0.1) this seems to be an issue even without the AND/OR:
> parser.parse('NOT text:go');
{ left: { field: 'text', term: 'go' } }
> parser.parse('NOT go');
{ left: { field: '<implicit>', term: 'go' } }

It seems like NOT is always ignored.

@whitelynx  This library seems not longer supported. Though the case of NOT text:go isnt actually supported by lucene anyway see https://lucene.apache.org/core/2_9_4/queryparsersyntax.html#NOT. A single field with NOT will always return an empty result, even though it might make sense syntactically

To give a more detailed answer, the query syntax only supports a single operator, so any conjunctions like this will drop everything but the first operator.
A reasonable library upgrade might be to detect situations these, and properly report on them with a error indicating invalid syntax (perhaps as an optional param to the library). Silently dropping portions of the user input is not ideal. I'll open a new ticket to capture that.


ENH: add no_degenerates, sample, get_translation to new Alignment

Summary by Sourcery
Add new methods 'no_degenerates', 'sample', and 'get_translation' to the Alignment class, enhancing its functionality for sequence manipulation and analysis. Refactor existing tests to improve coverage and add new tests for the introduced methods.
New Features:

Introduce the 'no_degenerates' method to remove degenerate characters from alignments, with options for motif length and gap allowance.
Add the 'sample' method to allow random sampling of alignment positions, supporting both with and without replacement options.
Implement the 'get_translation' method to translate nucleotide sequences into protein sequences, with options for handling stop codons.

Enhancements:

Refactor test cases to use parameterized tests for better coverage and flexibility in testing different sequence collection methods.

Tests:

Add new tests for the 'sample' method to verify functionality with and without replacement, and for different motif sizes.
Include tests for the 'no_degenerates' method to ensure correct exclusion of columns with degenerate characters.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>6
Details

40 of 43 (93.02%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.004%) to 92.13%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/cogent3/core/new_alignment.py
40
43
93.02%

Totals

Change from base Build<PHONE_NUMBER>2:
0.004%

Covered Lines:
33634

Relevant Lines:
36507

💛  - Coveralls


Cilium service drop connection after 2minutes

Hi,
On Cilium master, when a long lived connection happens from a pod to a service IP connection drops after 2 min.
Ways to reproduce:
Apply the following manifest:
---
apiVersion: v1
kind: Pod
metadata:
  name: netperf-client
  labels:
    id: netperf-client
    zgroup: testapp
spec:
  containers:
  - name: netperf
    image: tgraf/netperf
---
apiVersion: v1
kind: Service
metadata:
  name: netperf-service
spec:
  ports:
  - port: 12865
  selector:
    name: netperf-server
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: netperf-server
spec:
  replicas: 2
  template:
    metadata:
      name: netperf-server
      labels:
        id: app1
        name: netperf-server
        zgroup: testapp
    spec:
      containers:
      - name: netperf
        image: tgraf/netperf

Exec the following:
kubectl exec -ti netperf-client -- time netperf -l 30000 -t TCP_STREAM -H ${netperf-service-IP}

After two minutes and 11 seconds the connection is drop:
vagrant@k8s1:~/go/src/github.com/cilium/cilium$ kubectl exec -ti netperf-client -- time netperf -l 30000 -t TCP_STREAM -H <IP_ADDRESS>
MIGRATED TCP STREAM TEST from <IP_ADDRESS> (<IP_ADDRESS>) port 0 AF_INET to <IP_ADDRESS> (172.20.) port 0 AF_INET
netperf: send_omni: connect_data_socket failed: Operation timed out
Command exited with non-zero status 1
real    2m 9.40s
user    0m 0.00s
sys    0m 0.00s

Monitor log:

<- endpoint 39609 flow 0x477ff0c7 identity 23855->0 state new ifindex 0: <IP_ADDRESS>:33695 -> <IP_ADDRESS>:34679 tcp SYN
-> stack flow 0x477ff0c7 identity 23855->2 state established ifindex 0: <IP_ADDRESS>:33695 -> <IP_ADDRESS>:34679 tcp SYN
-> 0: <IP_ADDRESS>:33695 -> <IP_ADDRESS>:34679 tcp SYN
<- endpoint 39609 flow 0xed671294 identity 23855->0 state new ifindex 0: f6:4f:a2:ed:88:50 -> da:d1:b4:75:8b:b0 ARP
-> lxc8d9fc8dae525: da:d1:b4:75:8b:b0 -> f6:4f:a2:ed:88:50 ARP

Pod to Pod works ok.
@tgraf is trying to reproduce in 1.2
Actions:

[ ] Fix the issue
[ ] Add a nightly test that test long lived connections using a service.  (Eloy)

Issue also found on PR https://github.com/cilium/cilium/pull/5765 where no persistent connection, but connection cannot be established correctly.

The k8s service installed only translates the control port. Packets for the data connection get dropped:
13:42:25.999879 IP <IP_ADDRESS>.42993 > <IP_ADDRESS>.33857: Flags [S], seq<PHONE_NUMBER>, win 29200, options [mss 1460,sackOK,TS val 50194176 ecr 0,nop,wscale 7], length 0

This is unrelated to the 2 min interval. That is just a timeout in this case.


KAFKA-13646: Implement KIP-801: KRaft authorizer

Currently, when using KRaft mode, users still have to have an Apache ZooKeeper instance if they want to use AclAuthorizer. We should have a built-in Authorizer for KRaft mode that does not depend on ZooKeeper. This PR introduces such an authorizer, called StandardAuthorizer. See KIP-801 for a full description of the new Authorizer design.
Authorizer.java: add aclCount API as described in KIP-801. StandardAuthorizer is currently the only authorizer that implements it, but eventually we may implement it for AclAuthorizer and others as well.
ControllerApis.scala: fix a bug where createPartitions was authorized using CREATE on the topic resource rather than ALTER on the topic resource as it should have been.
QuorumTestHarness: rename the controller endpoint to CONTROLLER for consistency (the brokers already called it that). This is relevant in AuthorizerIntegrationTest where we are examining endpoint names. Also add the controllerServers call.
TestUtils.scala: adapt the ACL functions to be usable from KRaft, by ensuring that they use the Authorizer from the current active controller.
BrokerMetadataPublisher.scala: add broker-side ACL application logic.
Controller.java: add ACL APIs. Also add a findAllTopicIds API in order to make junit tests that use KafkaServerTestHarness#getTopicNames and KafkaServerTestHarness#getTopicIds work smoothly.
AuthorizerIntegrationTest.scala: convert over testAuthorizationWithTopicExisting (more to come soon)
QuorumController.java: add logic for replaying ACL-based records. This means storing them in the new AclControlManager object, and integrating them into controller snapshots. It also means applying the changes in the Authorizer, if one is configured. In renounce, when reverting to a snapshot, also set newBytesSinceLastSnapshot to 0.
There are a few follow-up items not in this PR. One is actually creating the new acl count metric. Another is implementing the "start after we reach the high water mark" authorizer logic. Also, this doesn't implement the new busy error code. Finally, we need to implement logIfDenied.

Failed tests were:
ConnectionQuotasTest#testNonDefaultConnectionCountLimitAndRateLimit
DynamicBrokerReconfigurationTest#testThreadPoolResize

These tests are not related to this change (they don't deal with the new authorizer) and running them locally, they pass.

Test failures are not related


Implementing audit logging to database - issues with capturing certain logs

Hi there,
Our team has recently upgraded from EIA 2.3 to EIA 2.4.1 in one of our dev environments and following this we have followed the steps outlined in the links below to implement and configure audit logging (to database).
https://github.com/IBM-i2/analyze/blob/master/documentation/Preparing-to-use-IBM-i2-Analyze-Developer-Essentials.md
https://github.com/IBM-i2/analyze/blob/master/documentation/Configuring-the-audit-logging-to-database-example-project.md
We have completed these steps and now have an I2AUDIT schema and the four tables (EXPAND, QUICK_SEARCH, RECORD_RETRIEVAL and VISUAL_QUERY). Note that instead of creating a new AUDIT database, we have created the schema and tables within our dev environment ISTORE. We have also not performed step 7 in the second link relating to 'Debugging Developer Essentials in Eclipse'
The tables are capturing some log activity with some issues. Please see below for a summary:
I2AUDIT.EXPAND

Not capturing expands performed via i2 Notebook
Capturing successfully for expands performed via ANB

I2AUDIT.QUICK_SEARCH

Capturing for quick searches performed via i2 Notebook and ANB, however are being captured twice (please see excel sheet attached, note that EVENT_TIME has two records with a few milliseconds apart)

I2AUDIT.RECORD_RETRIEVAL

Not capturing record retrievals performed via i2 Notebook
Capturing successfully for record retrievals performed via ANB

I2AUDIT.VISUAL_QUERY

Capturing successfully for visual queries performed via i2 Notebook
Capturing successfully for visual queries performed via ANB

Are there any known fixes for the issues discussed above? Let me know if there are any other details required from our side.
Thanks
GitHub Ticket Issues.xlsx

aq64
Thanks for raising this issue and the detailed description.
Gaps in audit coverage between i2:Notebook and i2:ANBP would not be anticipated.
I will spin up a test suite and validate the behaviour and plan next steps from here.
Steve

aq94
A brief update. The test harness has similar outcomes.
Discussing further tomorrow.
Steve

Thanks Steve, will keep an ear out and double check from our end to see if there are any other discrepancies to note.
Cheers

Seeing as there haven't been any updates on this issue I'm closing it for now, but feel free to re-open with any new information.

Thanks Colvin this was resolved via Cases/L3 escalation APARS  etc.


Test version?

Says test version,, doesnt work on play system tuner on a11

Follow the instructions in the README for installation.


Fix sign error, int/size_t discrepancies, warnings on windows builds.

A lot of discrepancies with int vs size_t were visible when building on windows.
This PR fixes those.  At least one case was an error, where an attempt was made to negate an unsigned value.

Any news here?

In the meantime, there have been some slight fixes upstream.  Curiosly, the authors have decided to use long long in places in stead of the more standard size_t for reasons unknown.  It should be best to stick to ssize_t since this better reflects the memory model supported.

This PR fixes a lot of internal type discrepancies within functions, using size_t and ssize_t where appropriate.
It does also contain inline comments such as
 return (long long) totlen; /* api really should use ssize_t */

I'll be happy to remove those, since they reflect my personal opinion :)

Moved the discovered bug/bugfix into its separate commit for easy view


Max weights help

Hello,
First thank you for sharing your work.  I am using the code and find it helpful to me.  One thing i am not having success with is incorporating many asset classes.  In the create_test_data function the number of assets is 5.  I understand how to increase the number but am finding a portfolio with many assets and small weights.  I need to constrain the model to set a max and min weight to asset classes.  I am trying to find the efficient frontier and create a portfolio with assets selection/population of around 150 but want to limit the weight of a specific asset to a specific number for example 5%.  100/5 = 20 so i am trying to find a fund of only 20 with 150 selections to choose from.  I am writing in the hopes that you know a simple and elegant solution.  My solutions have not been optimal.  Thanks in advanced and i understand if you are busy.

Hello @Atropos123,
I'm afraid that the problem with the additional restriction of fixing the number of assets with a weight > 0 is not quadratic in nature and, thus, the numerical approach to find optimal solutions used in this library is not applicable. For small asset numbers one could use a (very inefficient) brute force approach by calculating the optimal asset allocation of all possible subsets with 20 assets, but with a universe of 150 assets you would have to solve >10^24 optimization problems, which is practically impossible. Maybe there are suitable algorithms for your problem out there, but I simply don't know.
Otherwise you could come up with some heuristic algorithm and hope that the results will be satisfying. Maybe just selecting the 20 assets with the largest absolute weight can be chosen when normalizing the sum of their weights to unity.


DASH stream stalling and crashing on Samsung Tizen

Have you read the FAQ and checked for duplicate open issues?
Yes
I found this thread which sounded similar https://github.com/google/shaka-player/issues/2620
What version of Shaka Player are you using?
3.0.4 (Update: also tested in v3.0.8 and v3.0.10)
Can you reproduce the issue with our latest release version?
Yes
Can you reproduce the issue with the latest code from master?
Yes (as of 12/10)
Are you using the demo app or your own custom app?
Custom App
If custom app, can you reproduce the issue using our demo app?
Yes. I tried loading the stream on the demo page in the Samsung Browser and it crashed the browser.
What browser and OS are you using?
Tizen 4.0
For embedded devices (smart TVs, etc.), what model and firmware version are you using?
2018 Tizen TV
Model: UN32N5300
Software Version: T-KTSNAKUC-1310.4
What are the manifest and license server URIs?
https://content.jwplatform.com/manifests/4jFmgjZr.mpd

What did you do?

For the custom app:

I created a page following: https://github.com/google/shaka-player/blob/master/docs/tutorials/basic-usage.md
Passed https://content.jwplatform.com/manifests/4jFmgjZr.mpd as the manifestUri
Started the app on the TV
The video loaded and immediately stalled. After ~30 seconds, the app crashed.

This is the log from the custom app
setup.js:12 initApp
shaka-player.compiled.debug.js:1458 IndexedDB.install
shaka-player.compiled.debug.js:1458 InputEvent.install
shaka-player.compiled.debug.js:1459 mathRound.install
shaka-player.compiled.debug.js:1460 MediaSource.install
shaka-player.compiled.debug.js:1562 VideoPlayPromise.install
shaka-player.compiled.debug.js:1564 Using native VTTCue.
shaka-player.compiled.debug.js:1636 EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support.
shaka-player.compiled.debug.js:1642 McEncryptionSchemePolyfill: MediaCapabilities not found
shaka-player.compiled.debug.js:682 Starting attach...
shaka-player.compiled.debug.js:687 Starting load of https://content.jwplatform.com/manifests/4jFmgjZr.mpd...
shaka-player.compiled.debug.js:732 Found variant with audio and video content, so filtering out audio-only content.
shaka-player.compiled.debug.js:406 codecs vp9-vorbis avg bandwidth 843696.8
shaka-player.compiled.debug.js:549 init: completed initial Stream setup
shaka-player.compiled.debug.js:716 No preferred audio language set.  We have chosen an arbitrary language initially
setup.js:44 The video has now been loaded!
shaka-player.compiled.debug.js:431 Calling switch_(), bandwidth=19798 kbps
shaka-player.compiled.debug.js:800 switch_
shaka-player.compiled.debug.js:501 Stall detected at 0.02 for 1.0480000972747803 seconds.
shaka-player.compiled.debug.js:501 Pausing and unpausing to break stall.

This is the more verbose log showing what was happening after the Pausing and unpausing to break stall before it crashed.
shaka-player.compiled.debug.js:501 Pausing and unpausing to break stall.
shaka-player.compiled.debug.js:578 (audio:6) timeNeeded=14.993
shaka-player.compiled.debug.js:578 (audio:6) update_: presentationTime=0.02 bufferedAhead=14.952
shaka-player.compiled.debug.js:579 (audio:6) buffering goal met
shaka-player.compiled.debug.js:607 (audio:6) updating in 0.5 seconds
shaka-player.compiled.debug.js:578 (video:5) timeNeeded=12
shaka-player.compiled.debug.js:578 (video:5) update_: presentationTime=0.02 bufferedAhead=11.979000000000001
shaka-player.compiled.debug.js:579 (video:5) buffering goal met
shaka-player.compiled.debug.js:607 (video:5) updating in 0.5 seconds
shaka-player.compiled.debug.js:578 (audio:6) timeNeeded=14.993
shaka-player.compiled.debug.js:578 (audio:6) update_: presentationTime=0.02 bufferedAhead=14.952
shaka-player.compiled.debug.js:579 (audio:6) buffering goal met
shaka-player.compiled.debug.js:607 (audio:6) updating in 0.5 seconds
shaka-player.compiled.debug.js:578 (video:5) timeNeeded=12
shaka-player.compiled.debug.js:578 (video:5) update_: presentationTime=0.02 bufferedAhead=11.979000000000001
shaka-player.compiled.debug.js:579 (video:5) buffering goal met
shaka-player.compiled.debug.js:607 (video:5) updating in 0.5 seconds
shaka-player.compiled.debug.js:578 (audio:6) timeNeeded=14.993
shaka-player.compiled.debug.js:578 (audio:6) update_: presentationTime=0.02 bufferedAhead=14.952
shaka-player.compiled.debug.js:579 (audio:6) buffering goal met
shaka-player.compiled.debug.js:607 (audio:6) updating in 0.5 seconds
shaka-player.compiled.debug.js:578 (video:5) timeNeeded=12
shaka-player.compiled.debug.js:578 (video:5) update_: presentationTime=0.02 bufferedAhead=11.979000000000001
shaka-player.compiled.debug.js:579 (video:5) buffering goal met
shaka-player.compiled.debug.js:607 (video:5) updating in 0.5 seconds
shaka-player.compiled.debug.js:578 (audio:6) timeNeeded=14.993

For the demo page:

Added Custom Content
Set https://content.jwplatform.com/manifests/4jFmgjZr.mpd as the Manifest URL
Clicked Play
The video loaded, but the page froze and then the browser crashed

I can play the stream in the shaka demo-player on my MacOS Desktop and also in the custom app through the Tizen Simulator, but it keeps failing for me on the TV.
What did you expect to happen?
The DASH stream to play
What actually happened?
The stream loads, stalls, and the app/browser crashes. Sometimes the first frame is shown.

@mamaddox, we have fixed several Tizen-related issues, as well as a memory leak, since v3.0.4.  Can you please try v3.0.8 to see if that resolves the issue for you?

Hi @joeyparrish
Thank you for the suggestion and I am very sorry for taking so long to get back to you.
I tried updating shaka to 3.0.8 and am still seeing the same behavior. I also tried with shaka 3.0.10 and the stalling and crashing was still happening. I tried both versions in the custom app and on the demo page in the samsung browser.
Not really sure what's causing it, but let me know if I can provide anything else.

I tried to test the content on Tizen with our latest source from the master branch.  Since we are still working from home, I used an automated test to run this in our test lab.  Here is the command:
python build/test.py \
  --test-custom-asset https://content.jwplatform.com/manifests/4jFmgjZr.mpd \
  --enable-logging=v2 \
  --no-browsers \
  --uncompiled

However, I was unable to get results.  The Tizen device in our lab does not appear to be on the network, so I will need to go back to the office in person to troubleshoot.

I rebooted our lab's Tizen TV, and everything is working now.
The test described above passed, so I am unable to reproduce the issue with our latest player version.  Please try again with an update such as v3.1.2 or v3.2.0.

@joeyparrish I have a potentially similar issue, both to this one and to #2620. Basically in a few of several attempts, the DASH stream fails to start properly, it's just stuck on the first frame, but can be initiated if the user seeks forward.
From the logs, I can see that the Shaka player has detected a stall, and tries to unstall by pause/play, but with no success.
Only reproducible on Tizen 5.5 (2020). I've been testing on model: UE43TU7072UXXH, but it's reproducible on other 5.5 models as well.
Shaka player version: 3.1.2
The stream where this can be reproduced (not consistently): https://trailers.redbox.com/assets/211568/dash/211568.mpd
And it's not specific to this DASH stream, can be reproduced with others as well, I think that it's happening a bit more often with it.
Logs:

Details

Shaka player config:
{
	streaming: {
		ignoreTextStreamFailures: true,
		// https://shaka-player-demo.appspot.com/docs/api/tutorial-network-and-buffering-config.html
		bufferingGoal: 60,
		// how much to buffer while the video is playing, to have enough content in case of network hiccups
		rebufferingGoal: 3,
		// how much to buffer before resuming playing, aka on video start and after seeking video
		bufferBehind: 30,
		jumpLargeGaps: true,
		stallSkip: 0.1,
		retryParameters: {
			maxAttempts: 10,
			baseDelay: 1000,
			backoffFactor: 1.75,
			fuzzFactor: 0.5,
			timeout: 10000,
		},
	},
	manifest: {
		dash: {
			ignoreMinBufferTime: true,
		},
		retryParameters: {
			maxAttempts: 5,
			baseDelay: 1000,
			backoffFactor: 2,
			fuzzFactor: 0.5,
			timeout: 25000,
		},
	},
	drm: {
		servers: getDrmLicenseServers(),
		advanced: {
			'com.widevine.alpha': {
				videoRobustness: 'SW_SECURE_CRYPTO',
				audioRobustness: 'SW_SECURE_CRYPTO',
			},
			'com.microsoft.playready': withAltTVODDrmConfig
				? {
						distinctiveIdentifierRequired: true,
						sessionType: 'persistent-license',
				  }
				: {},
		},
		retryParameters: {
			maxAttempts: 5,
			baseDelay: 1000,
			backoffFactor: 2,
			fuzzFactor: 0.5,
			timeout: 10000,
		},
	},
	restrictions: {
		minHeight: 360,
	},
	preferredAudioChannelCount: 6,
}

I can open a new issue if you think that this is out of place as a comment here. Any suggestion on how to debug/fix this would be much appreciated.

FYI, I've also tried playing with the default configuration instead of the one above, and the issue persists. After digging some more through issues, Sometimes, the content starts playing after some time, but I could not reproduce this consistently.

Since we could not reproduce the issue with the content from @mamaddox, I believe we should close this issue.
@Puritanic, please feel free to open a new issue.
Thanks, and we apologize for any inconvenience.


Add share feature

Type share -> get shareable URL per backend

https://github.com/sevagh/surge/pull/9


Don't fail without cluster scope.

Fixes #733.
This PR allows the user to have RBAC permissions to the namespaced installation host, but not clusterwide access.  Clusterwide access is still required to join other clusters.
I use this successfully to create federations between my local, namespace-only role, and remote clusterwide roles.

@xunpan, Actually, I did more experimentation, and it looks like a clusterrolebinding is necessary for even namespaced installs.
So, this whole patch is probably irrelevant.
Do you have any thoughts on this?

@michaelfig A clusterrole is required for the healthcheck.  If your goal is limiting the permissions required to join a cluster, it should be possible to ensure the owner of the target namespace also has GET permission for the clusterrole that kubefed2 join would otherwise create.  Provided join can verify that the clusterrole is as expected, it wouldn't need further permission.

Maybe a better approach would be to have kubefed2 join have a --dry-run mode that could be used to dump the YAML of the changes it would be making?

@michaelfig I think you're onto something.  Since the behavior of enable and federate is for -o yaml to force dry-run and just output the yaml of what would be applied, I think the same could be done for join.  There would just need to be clear separation in the output between resources intended for the host cluster and the joining cluster.

I agree to make dry-run things.
But I think the below message of #733 should be fixed. It seems make no sense to create an existing namespace and tells no permission.
F0408 17:42:56.627932   19586 join.go:133] error: namespaces is forbidden: User "michael" cannot create resource "namespaces" in API group "" at the cluster scope

@xunpan, I've repushed the PR, focused entirely on the namespace creation error (and implementing your recommendations).  Please review.

Sorry for late.
It LGTM. Please squash 2 commits into one. And let's wait for checkings succeed.

@xunpan, done.

@michaelfig please help to rebase

Flaky test?

Transient infrastructure failure related to docker build.   I've restarted it.

Thank you!
/approve
/lgtm


Fix local_mic & input width issues in mic.py

Those commits fix 2 issues in the current dev branch:

local_mic.py was not working anymore since the switch to audioengine because of the introduction of the listen function and change in the type of the return value.
mic.py assumes that sample width is 1 byte while it's configured to 2 bytes. I update all (at least I think) computations to use self._input_width. The RMS computations and the silence timeout were doing it (so existing silence timeout was more 1.5s - I switched to 2s because from experience it seems to work ok while 3s seems a little long)

Thanks, I'll look into it as soon as I finished my exams.

Regarding the fix I made for pymad, I checked pymad source code and it always outputs stereo signed 16bits. So i modified the wave parameters to that.
Still it does not fix the popping noise when playing a wave file using pyaudio on my raspberry pi 2 (or B+ for that matter).
I've written a simple python test program that plays a wav file using pyaudio and it does not work correctly either (so it's not jasper's use of pyaudio that causes the problem). A file that plays perfectly with aplay has popping noise when playing with pyaudio.
I've tried to update the portaudio + pyaudio packages to the Debian Jessie version:

libportaudio2_19+svn20140130-1_armhf.deb
libportaudiocpp0_19+svn20140130-1_armhf.deb
portaudio19-dev_19+svn20140130-1_armhf.deb
python-pyaudio_0.2.8-1+b1_armhf.deb
It did not seem to change anything

I'm currently trying to isolate at which level it's happening if it's in libportaudio or in the python bindings.

Issue seems to be in python-pyaudio.
I have C++ code using portaudio that works fine to play a wav file while using a python wav player has popping sound.

Seems that increasing frames_per_buffer to 8192 fixes it.
Will add this to the changes

But it does not work out of the box with the audioengine code.
I need to investigate but output is not always played to the end and the switch between output and input does not seem to work correctly

Small update on my investigations on the behavior of pyaudio when frames_per_buffer is higher than 1024.
My sample python script I've been using seems to show that to have the file play until the end, you need to write 0s to the stream until you reach a multiple of frames_per_buffer.
Otherwise file won't be played until the end.
I don't know if this is specific to the raspbian version of pyaudio but that's what I'm seeing here.

So playing with pyaudio I've been able to get better results but it's more of a workaround than anything else.
I can confirm that increasing the frames_per_buffer for play improves the audio quality on rpi.
However, when you do that, it does not play the audio until the end until you insert some padding at the end (something between 1 and 2 full buffers).
aplay or even a sample C program calling libportaudio works fine so it's in the pyaudio implementation that something goes wrong.

So playing with pyaudio I've been able to get better results but it's more of a workaround than anything else.

I added a new audio engine based on alsa. You could try that, maybe that fixes the issue.
just update and put audio_engine: alsa into your profile.yml.


generate packages for different option values

Feature request
Right now if I set CONAN_BUILD_TYPES="Debug,Release" CPT will create two packages for Debug and Release build types.
However CONAN_OPTIONS does not work in the same way. I'm not sure if this is a feature or a bug.
For example, if I set CONAN_OPTIONS ="foobar:with_bar=True,foobar:with_bar=False" only one package is created.
It would be great if CPT allow creating permutations for options as well,
Environment Details

Conan Package Tools Version: 0.23.0
Operating System: Linux
Operation System Version: Ubuntu 16.04
Compiler+version: gcc-5.4
Docker image: conanio/gcc7
Conan version: conan 1.2.0
Python version: python 3.7.0

Hi @boussaffawalid !
Do you have a log showing your explanation? Also, I would like which env vars you are using.
Regards

@uilianries here is a minimal example to reproduce the issue
https://github.com/boussaffawalid/cpt_issue_457

@boussaffawalid Now I see your question. Unfortunately, CONAN_OPTIONS was not designed to do that, the current behavior is correct. What you want is swapping the option values, which is another case.
I recommend you customizing your ConanMultiPackager with the expected values:
from cpt.packager import ConanMultiPackager
import copy

if __name__ == "__main__":
    builder = ConanMultiPackager(options=["foo:qux=True", "foo:bar=True"])
    builder.add_common_builds()
    for item in copy.copy(builder.items):
        new_options = copy.copy(item.options)
        new_options["foo:qux"] = False
        new_options["foo:bar"] = False
        builder.add(settings=item.settings, options=new_options, env_vars=item.env_vars, build_requires=item.build_requires)
    builder.run()

@uilianries thank you, that what we are doing currently. I just thought that CPT should support this out of the box.

Your request is not bad, but inserting option values which are not explicit, are not good IMO. For instance, fPIC is only distributed as True.
I think we could add new option like CONAN_BUILD_ALL_OPTIONS=foo:qux,foo:bar which do what you need.

@uilianries I agree and think such new option will be very handy


[1.06] Non responsive dialogues, can't select other options in any dialogue

Cyberpunk 2077 on Steam, version 1.06.
After installing this tweak dialogues in the game become unresponsive. Once the game is freshly launched from Steam, dialog options except very first are not available: mouse wheel, arrows and W/S buttons do nothing when one tries to choose other options. This continues until saving and loading. Removing this tweak instantly solves the problem and dialogues become responsive.
Please check.

Had this issue as well, not really common in my case, but it happened.

Had this issue as well, not really common in my case, but it happened.


Use without PIAF

Is it possible to use this to extract data directly from the Pi Servers, without going through a PI AF server?
We have decided not to go down the PIAF route, as there is just too much work to get everything into the right framework.
thanks.
Leigh

Currently this plugin does not have any way to access PI directly. This plugin uses PI WebAPI as the data source, which requires an AF Server.
There is some framework in progress (not yet complete) in the retrieve PI tags data by tag names, however this will still require PI WebAPI and PI-AF to be installed and running.

Thanks,  We have 15 sites, with 100's of thousands of tags, and no nice way of visualising them.
cheers,

Without installing PI AF and PI WebAPI, you have a couple options to visualize data in Grafana.
One would be to create a web service using AFSDK that connects directly to PI (without AF) and mimics the PI WebAPI interface. Optionally it could have it's own data structure, but a new custom Grafana Datasource would be required.
I'm not sure that this help your case much, but in cases where we have data that does not have a native web interface we have used InfluxDB as an intermediate data source. By sending a copy of the data to InfluxDB it is them possible to use Grafana as the front end for visualization. There are some downsides to this approach, such as having to maintain more software and data sources, as well as configuring a connector to get data into Influx. However, Influx is very powerful and provides some nice analytic tools as well.


Add the page for the V2 to the zowe.org

This is a draft to explain the idea and build the page correctly
Signed-off-by: Jakub Balhar<EMAIL_ADDRESS>

Rather than adding a "v2" page, an alternative is to add a "vnext" page, by making the header & URL not contain the version number.
My thought is that in 2 years we'll have a v3, and then need a page for that, and wouldn't it be better if you could bookmark the URL to track v2, v3, v4, whatever version is next?
Once a version is released, its highlights are still going to end up in the release notes, so we may not need distinct highlight pages for v2 & v3 over time, but rather re-use a vnext page and update its contents over time.