Parallelize unit and functional tests by default.

This may not work with all projects, but those projects should opt out or else fix their tests.

MAD Results
= Unit Test Performance =
Command:  time mvn clean test
Default:
real    1m7.637s
user    1m35.997s
sys     0m4.932s
3.0.11-SNAPSHOT w/ Surefire changes:

Parallel all
Unlimited threads
No thread count
Default per core (no-op)

real    0m43.512s
user    1m42.794s
sys     0m5.080s
= Integration Test Performance =
Command:  time mvn integration-test
Note: This runs both the surefire and failsafe tests so we're looking for gains beyond ~24 seconds.
Default:
real    1m29.167s
user    1m23.417s
sys     0m6.732s
3.0.11-SNAPSHOT w/ Failsafe changes:

Parallel all
Unlimited threads

== Attempt 1 ==
FAIL
KafkaSourceIT.testKafkaSourceFromConfig » ProducerFenced There is a newer producer with the same transactionalId which fences the current one.
^ Fixed by using an AtomicInteger to generate message ids
== Attempt 2 ==
real    0m52.398s
user    1m27.417s
sys     0m7.181s
= Results =

Unit test parallelization saved ~24 seconds (67s - 43s)
Integration test parallelization saved ~13 seconds (89s - 52s - 24s)
Total build time decreased by 37s

= Notes =

Tested with 3.0.11-SNAPSHOT since MAD is not setup to use HEAD of arpnetworking-parent-pom (namely JDK version)
The mvn integration-test target seems to leave the containers running (perhaps an outdated docker plugin or incorrectly bound targets)


Added missing Nancy.StaticConfiguration Properties to Nancy.Testing.StaticConfigurationContext

.. and thereby fixes #1912

Thanks! :smile:


Use Yocto Thud for the NPE X500 M3 board

Tested on an NPE X500 M3.

Can one of the admins verify this patch?


[test] Don't skip CI on crowdin commits [skip ci]

So I relied on CircleCI behavior and I already know that they work different. I need to check all CI providers before implementing a CI fix.

Seems like you simply can't skip CI for PRs in netlify and azure. [skip ci] only works in PRs for CircleCI. I guess that's sufficient.


clean up gradle files and make them more readable

major changes:

update incubus core to fix build
update minotaur to 2.0 and change task accordingly
remove CDAgaming's crowdin translate plugin
clean up mavens and apply a name to each
clean up old plugin declaration for guntram's crowdin translate in favor of the new, cleaner style
explain dependencies
move plugin repositories to settings.gradle
change all '' to ""
add more comments
remove unused maven repositories

closes #671
closes #681

Let me know if you're finished and I'll merge

in my projects I always just use lowercases because it's simpler, so that's what I default to
this pr is finished unless you have any comments @Jack-Papel


osqp-eigen compiled successfully, but example test failed.

I want to use osqp-eigen on windows 11, and I have already installed and tested Eigen3.4.0 and osqp0.6.2 which ran normally. However, When I compiled and installed osqp-eigen successfully, I want to test it using MPCExample.cpp and it failed with the following error:
E:\C++\test\cmake-build-debug\test.exe

Process finished with exit code -1073741515 (0xC0000135)

The CMakeLists.txt I used for the example is
cmake_minimum_required(VERSION 3.20)
project(test)

set(CMAKE_CXX_STANDARD 14)
#set(OSQPEIGEN_INCLUDE_DIR D:/cppThirdParty/libInstall/osqpEigenLib/include)
#set(OSQPEIGEN_LIB_DIR D:/cppThirdParty/libInstall/osqpEigenLib/bin)
find_package(Eigen3 REQUIRED)
find_package(osqp REQUIRED
             PATHS D:/cppThirdParty/libInstall/osqpLib
              NO_DEFAULT_PATH)
find_package(OsqpEigen REQUIRED
             PATHS D:/cppThirdParty/libInstall/osqpEigenLib
             NO_DEFAULT_PATH)

#include_directories(${OSQPEIGEN_INCLUDE_DIR})
#link_directories(${OSQPEIGEN_LIB_DIR})

add_executable(test main.cpp)
target_link_libraries(test Eigen3::Eigen osqp::osqpstatic OsqpEigen::OsqpEigen)

I installed osqp to customized path, so I declare it on find_packages(). I guass the error occurs for false to find the osqp-eigen library. I used both find_package() way and include_package() manually, but both failed. Can someone help me solver it? Thank you!

Hi @reflector-li, thanks for opening the issue. I suspect it might be related to a setup issue. Can you try to add the path where you installed OsqpEigen to the Windows PATH env variable?

Hi @reflector-li, thanks for opening the issue. I suspect it might be related to a setup issue. Can you try to add the path to the bin folder where you installed OsqpEigen to the Windows PATH env variable?

Thank you very much.! I use MinGW as my complile enviroment. It remind that libosqp-eigen.dll can not be found. So I compile it with my cmake configuration. Now I can use it. I will post the CMakeLists.txt I use to help someone who met the same problem with me.
cmake_minimum_required(VERSION 3.20)
project(osqp_eigen)
include_directories(./include)
aux_source_directory(./src DIR_LIB_SRCS)
find_package(Eigen3 REQUIRED)
# add the customed install path of osqp
find_package(osqp REQUIRED
        PATHS D:/cppThirdParty/libInstall/osqpLib
        NO_DEFAULT_PATH)
add_library(osqp_eigen STATIC ${DIR_LIB_SRCS})
target_link_libraries(osqp_eigen Eigen3::Eigen osqp::osqpstatic)
install(TARGETS osqp_eigen ARCHIVE DESTINATION lib)
install(DIRECTORY ./include/ DESTINATION include)

Hi @reflector-li, I closed the issue since according to https://github.com/robotology/osqp-eigen/issues/118#issuecomment-1098213601 it seems that you were able to have a working  setup. Please do not hesitate to open it again if I misunderstood


Something wrong when implementing

The version 0.2.1 of texar installed from github may not have the module 'reduce_with_weights' in 'texar.utils' with the attribute error when called by rewriting_main.py.

The particular version of Texar used in this code is uploaded under third_party/

Is the data used for generation included in the repositories? It seems like raw sentences rather than the TimeTravel dataset.

Or how can I get the 'train.tf_record'?

Thanks for the question! You'll need to run prepare_data_rewriting.py to process and transform the raw text data into TFRecord format. I've updated the README to reflect this.

Hi,
I have a question about prepare_data_rewriting.py
It looks like the raw data should be .txt
Do you simply rewrite the .json files (keys and values) as text or keep the sentences (values) only?
Thanks!


ci(vitess): faster vitess tests in functional tests

Before

After

All tests for a given PR now take 18min to complete, before ~38min ⏩

Note from discussion with @SevInf
But you are not limiting max workers?
No but for relationMode test files we run them one by one on GitHub action, so it's limited to 1 worker in the end.


Token deletion

Hello,
I have a question, how to delete a token that has not been used for a long time, how to add a delete button to it.
thx

python version


login register form

Follow Figma designs
Use React Hook Form: https://react-hook-form.com/advanced-usage#CustomHookwithResolver
Don't worry about backend until auth is merged
closes #50

I think all the issues you guys brought up have been addressed, but let me know if there is still anything left to correct. I replaced the absolute positioning of the logo with flexbox so the main problem should be resolved now.


Add keyword overwrite=True to to_parquet to remove dangling files when overwriting a pyarrow Dataset.

[x] Tests added / passed
[x] Passes black dask / flake8 dask
Addresses #6824

I've added a test for the overwrite case, and for the partition_on case, but the question of handling the empty path is an interesting one.  I believe it makes the most sense to require a value passed for path.  If nothing is passed for path, then to_parquet() raises an exception.  If path is passed an empty string, then the files get written to the current directory, and an overwrite recursively deletes those directory contents.  Suggest that, for overwrite=True, path must be a string that does not include the current directory.  Thoughts?

I've added a test for the overwrite case, and for the partition_on case, but the question of handling the empty path is an interesting one. I believe it makes the most sense to require a value passed for path. If nothing is passed for path, then to_parquet() raises an exception. If path is passed an empty string, then the files get written to the current directory, and an overwrite recursively deletes those directory contents. Suggest that, for overwrite=True, path must be a string that does not include the current directory. Thoughts?

I'm really sorry for my terribly-worded comment - Rather than saying "whether or not the path is empty", I really meant to say "whether or not the directory is empty".  I was just hoping to see a test for the case that there is nothing to overwrite.

@rjzamora -- I've added tests to verify that the directory can not be empty, and that path can not be the current working directory, else there's a risk of unexpectedly deleting files.  I've also verified it works with partitioned directory structures.  It will delete everything and rewrite the entire partition structure.  Appreciate any feedback.

I'll merge this at the end of the day unless there is any feedback.

Would an alternative be to only run the check if the user has instantiated LocalFilesystem?  Thoughts?

On Nov 17, 2020, at 12:41 PM, Julia Signell<EMAIL_ADDRESS>wrote:

@jsignell commented on this pull request.
In dask/dataframe/io/parquet/core.py:

@@ -473,6 +481,21 @@ def to_parquet(
# Trim any protocol information from the path before forwarding
path = fs._strip_protocol(path)

if overwrite:

   working_dir = fs.expand_path(".")[0]

Ok I am convinced! I guess the conscensus is to get rid of the check and error and add a warning to the docstring.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

Since dask already depends on fsspec and this doesn't bring in any new deps, would be ok.

I added the import of LocalFileSystem at the top of core.py.  After doing it, I started to wonder if its better to have that import occur after overwrite=True?  Thoughts?

It's fine, would be nice and fast.

Ok so all good to merge?

Thanks @hayesgb and congrats on your first PR in dask!


[Feature]Added banner Prompt

Added banner Prompt

This function will be merged at 10 pm in the East Eighth District.

you can not now.

This function will be merged at 10 pm in the East Eighth District.

we have some trouble here


Update Example

The example and docs need to be updated.

https://www.youtube.com/watch?v=9FQhO9nPwm0 try this


#1981 - Request Offering Change: Ministry View/Approve/Deny (UI only) - Part 1

As a part of this PR, the following tasks were completed:

[x] Created the models for Approve and Decline the application offering change request by the ministry.

Please note: Placeholder added for the API endpoint.
Screenshots:
Decline Application Offering Change Request Modal

Approve Application Offering Change Request Modal

Nice start to the story. Please have a look at the comments.


Wrong tense (present instead of continious) in messages that come from Gradle daemon

Current Behavior
The Gradle sync window in IntelliJ IDEA shows events in the wrong tense. These Gradle messages come directly from Gradle daemon, so I believe it should be fixed from Gradle side.
See the attached picture with "Download" event.

Expected Behavior
It should be "Downloading".
Other examples: "Building model..." and "Downloading x.jar".
Context (optional)
Some users still complain about this bug https://youtrack.jetbrains.com/issue/IDEA-271010
Self-contained Reproducer Project
In IntelliJ IDEA:

Clone any gradle-based project with a lot of dependencies and complex model
Open sync tool window
Observe the events appeared in the window while the project is getting synced

Gradle version
8.2 (but actually any)
Build scan URL (optional)
No response
Your Environment (optional)
MAC OS, M2

This issue is a good choice for first-time contributors to Gradle, it is actionable and ready for contribution.
See CONTRIBUTING.md for more information.
Start with: https://github.com/gradle/gradle/blob/89f503a69215ef105d7fcb721297ee3dcb2eaab4/platforms/software/dependency-management/src/main/java/org/gradle/internal/resource/transfer/ProgressLoggingExternalResourceAccessor.java#L59

Hello
Can you asign me this issue? I believe this will be a good issue that i can solve at my level.

I have made the required changes in the files inside repo/platforms/software/ .But I cant run
./gradlew :platforms:software:dependency-management:quickTest

.I figured maybe it was configured in settings under a different name and  i tried
.gradlew projects | findstr /i "keywords"

Keywords = Software,dependency-management,platforms .But couldnt find the one that i needed.What should i do?

Hi @lkasso ,
Can you assign this issue to me? I would like to try solving it


[Project Addition] Chronic Kidney Disease Prediction

Please assign me this task under GSSOC'2024

@TAHIR0110 you can assign me this project! I have worked on similar projects before

@AmrutaJayanti how would this help in further enhancing ThereForYou?

@TAHIR0110 Hope you are doing well!
I would like to work an issue,Will you please assign me this.

@TAHIR0110
Kindly assign this issue to me. I will surely complete it within 3 to 4 days.


Loads of errors with TypeError: 'type' object is not subscriptable

Hi.
I used to use the archived MAL-API-Client, that this project is based. I have upgraded to use this project and it's failing with the TypeError
It fails installing it from PIP and using cloned from the directory.
import malclient
access_token = <secret>
client = malclient.Client(access_token=access_token, nsfw=True)
anime = client.get_seasonal_anime("summer",2022,limit=150)
len(anime)

➜ python anime_season_post.py
Traceback (most recent call last):
  File "anime_season_post.py", line 1, in <module>
    import malclient
  File "/home/hugo/MAL-API-Client-Upgraded/malclient/__init__.py", line 1, in <module>
    from .client import Client, generate_token
  File "/home/hugo/MAL-API-Client-Upgraded/malclient/client.py", line 4, in <module>
    from .anime import Anime
  File "/home/hugo/MAL-API-Client-Upgraded/malclient/anime.py", line 3, in <module>
    from .models import AnimeObject, Node, Season, PagedResult, RankingType, Sorting
  File "/home/hugo/MAL-API-Client-Upgraded/malclient/models.py", line 333, in <module>
    class AnimeObject(MALBaseModel):
  File "/home/hugo/MAL-API-Client-Upgraded/malclient/models.py", line 352, in AnimeObject
    genres: list[Genre]
TypeError: 'type' object is not subscriptable

There are a lot more errors than this one, after fixing the list to List you have issues with
Traceback (most recent call last):
  File "bug.py", line 4, in <module>
    import malclient
  File "/home/hugo/MAL-API-Client-Upgraded/malclient/__init__.py", line 1, in <module>
    from .client import Client, generate_token
  File "/home/hugo/MAL-API-Client-Upgraded/malclient/client.py", line 4, in <module>
    from .anime import Anime
  File "/home/hugo/MAL-API-Client-Upgraded/malclient/anime.py", line 44, in <module>
    class Anime():
  File "/home/hugo/MAL-API-Client-Upgraded/malclient/anime.py", line 64, in Anime
    def search_anime(self, keyword: str, *, limit: int = 20, nsfw: Optional[bool] = None, anime_fields=None) -> PagedResult[Node]:
  File "/usr/lib/python3.8/typing.py", line 261, in inner
    return func(*args, **kwds)
  File "/usr/lib/python3.8/typing.py", line 897, in __class_getitem__
    _check_generic(cls, params)
  File "/home/hugo/.local/lib/python3.8/site-packages/typing_extensions.py", line 94, in _check_generic
    raise TypeError(f"{cls} is not a generic class")
TypeError: <class 'malclient.models.PagedResult'> is not a generic class

From there there are more errors depending on how you solve the PagedResult.

One more thing
Currently library might be hard to use due to one more issue
Recently working on some side project I found out that MAL has very poor documentation and some fields might take different values than the ones in documentation, so current version of library might have some conflicts.

Confirmed the fix by using python 3.9.5.
Found some other issues and created a PR for you.

Glad to hear that with newer version it actually works fine.

I'm migrating my app to use your library.
I'm glad to here that there are actually people using it (especially given that the API itself isn't top notch, but we can pray it will improve in future)

If you open the issues that you know that exists I may be able to help you fix
In a week, when I'm back at home I will review the code I have in local repo branch and push what is usable in a current state to have github branches synced also I will create some issues. Haven't really felt any urge to till now as there weren't any contributors other than myself

I will change the Readme installation paragraph and close the issue in few minutes.


Bug with dynamic GEOMETRY_RPROMPT

seems like I cannot reset GEOMETRY_RPROMPT just by setting it to a new array.

How can this be reproduced? What's the expected result?

If i do GEOMETRY_RPROMPT=() the right prompt does not disappear, for example

Good job!


feat: Spanner add tests for FGAC Postgres dialect

Adds integration tests for FGAC pg.

Hi @jskeet , @amanda-tarafa ,
Please review this PR and share your valuable feedback.
Thanks,

Do we have any related library change also ? If not then may be we should not write integration tests for it ?
Also is this functionality not covered in samples ?


[SuperTextField] [Desktop] Fix line height estimation on macOS (Resolves #764)

[SuperTextField] [Desktop] Fix line height estimation on macOS.  Resolves #764
In macOS, estimating the line height when the font height is different from 1.0 using computeLineMetrics returns a value that doesn't seem to include the descent. As a result, letters like p and g are cut on the hint text.
This PR changes the line height estimation to use the paragraph height as the estimated line height.

@jvelezos Could you please try this PR ?

@angelosilvestre can you file an issue with Flutter, along with a minimal reproduction, so that they can fix the compute line metrics behavior?

@jvelezos I'll merge this in as soon as you confirm that the PR fixes your issue

@jvelezos I'll merge this in as soon as you confirm that the PR fixes your issue

@matthew-carroll The PR fixes the issue in both cases in the app where we  were getting cut hints. Thanks @angelosilvestre. Issue is fixed. 👍


 Our samples
should use these helpers were possible instead of the embeded
LRO client.

I would have liked to refactor the List sample as well, but there is no easier way of doing this today. LROs are specific to product endpoints so they need to use the same endpoint as the client they are polling operations for. Because of this I have left that sample as is for now but it could be updated to use https://pkg.go.dev/cloud.google.com/go/longrunning/autogen directly. I think we may want to consider adding function to the LRO manual eventually that accepts an endpoint explicitly for these types of use cases where one wants to see all ongoing operations.


Updated Build and Continuous Integration Tooling

Summary

Fixes GitHub PR template.
Replaces fragile and difficult to use wp dist-archive dependency with new JavaScript-based build tool to easily build and bundle the plugin
Moves PHPCS, PHPStan, and ESLint checks away from Travis to GitHub Actions, allowing inline reporting of issues.
Automatically creates and uploads a ready-to-use ZIP file for each pull request
Automatically creates and uploads a ready-to-use ZIP file when publishing a new release

Screenshots
ZIP file uploaded to pull request:

Inline ESLint error reporting:

See #319.

Should css lints be part of the github workflow?


Key authentication with signature validation

Summary
This pull requests adds the optional function to verify a signature when using key-authentication.
When enabled each request needs an API key as well as a signature based on the api key, a key secret and the current timestamp. This provides an extra layer of security if an attacker sniffs the API key on the line.
The signature is created by generating a SHA256 hash of a concatenated string of api_key + key_secret + current_UTC_timestamp. Timestamp may be up to 5 minutes off
Full changelog

Added the "secret" property to the consumer/key_auth DAO and added migrations
Added following parameters to key_auth plugin:

signature_names: similar to key_names an array of possible header/body_field names to search for the signature
signature_in_body: similar to key_in_body if the signature shall be searched in body
validate_signature: boolean value if signature check is required (false by default which results in same behaviour as previous plugin version)

Checks on signature (validate_signature is set to true)

reject if empty
reject if signature does not meet the sha256 of api_key + key_secret + current_UTC_timestamp (timestamp +/- 5 minutes to current time)

Is this based on some standard?

Would the HMAC plugin not already satisfy what this PR tries to accomplish?

HMAC is close but different. It's about securing a auth-header and the integrity of the content where this patch is about making sure the apikey not being compromised / stolen. I have seen such checks at various gateway users in the past and know some gateways to it in this way.

@svenwal Such new features are to be opened against the next branch. Will you please rebase your PR on top of next and change the target branch? Many thanks.

@svenwal since this is a new feature, please git rebase this to next in your local branch, push it to the PR with git push --force and edit the PR settings so that the base branch is next. The PR currently has a conflict, some more might pop up when rebasing. Once the rebase and conflicts are done we will proceed with the review! Thanks!

Thank you - I hope to get some spare time before the end of the week. Already fixed some of the remarks on my system (like Cassandra migration) but other work is distracting me :)

@svenwal ping :) any updates on this one?

Expect some updated soon - just got way to much work the last weeks but from Wednesday on it should get better again :)

@svenwal There's a key-auth test still failing in the suite, can you check?

Yes, I have spent close to a full day to find and adopt the many already existing tests but did not find this one until now (it comes from the previous wish to not replicate code in the plugin so I created a function). Will check later

@svenwal Ping? :)

@svenwal This PR has stayed open with no activity for a couple of months by now — we often see it in our regular review of the PR queue, so we think we're going to close it if there's no further activity happening here, but feel free to reopen it if you'd like to resume working on this. How does that sound?

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


refactor(powerline): update for oh-my-posh V3

Updated the docs to be correct for oh-my-posh V3 on Windows and introduce it for Ubuntu WSL as V3 now also runs cross platform (same prompt regardless of where you want to work).

Thanks @cinnamon-msft 🙏🏻


Updated user photo in navbar after user login.

Fixes #346
Here is the images after change

Updated user photo with hi,{user} message in the navbar after login

@vasudevsinghal @Abhishek-kumar09 Sir, kindly check my PR and share me your valuable feedback about it.


Failing e2e tests - scorecard-latest-release on ossf-tests/scorecard-action

Matrix: null
Repo: https://github.com/ossf-tests/scorecard-action/tree/main
Run: https://github.com/ossf-tests/scorecard-action/actions/runs/5204815561
Workflow name: scorecard-latest-release
Workflow file: https://github.com/ossf-tests/scorecard-action/tree/main/.github/workflows/scorecards-latest-release.yml
Trigger: push
Branch: main

Looks to be rate limit related.


Thumbs gallery not connecting to main swiper slider

I am currently using a basic Nuxt Swiper example and would like to add a thumbs gallery to the slider. Although the main slider and thumbs gallery are both functioning correctly, they are not currently connected. Can you give me some guidance on how to connect the two components?
The code is here: https://stackblitz.com/edit/github-etseqm?file=app.vue

The elements have to live within the Swiper/> element for it to work correctly. Here is a working example based on your example above:
https://stackblitz.com/edit/github-etseqm-mhtkok?file=app.vue

The elements have to live within the Swiper/> element for it to work correctly. Here is a working example based on your example above:
https://stackblitz.com/edit/github-etseqm-mhtkok?file=app.vue

I updated my code, it was not saved for some reason. Your example not based on my code

resolved


Validate instance creation for Virtualbox using driver flags

Problem
Test the flags for VirtualBox
Solution
Validate instance creation using various flags for VirtualBox
There are several flags available for each driver.  Test each flag to ensure it does the intended behavior.
For example,
docker-machine create -d virtualbox --virtualbox-memory "1024" test-vbox
This should create a machine in virtualbox with 1024 MB of memory.

@crosbymichael just to be clear, you'd like to see additional integration tests for the virtualbox driver -- ideally in test/integration/driver-virtualbox.bats ?
If so, I have some of these tests written that I can contribute:

correct default memory size
correct default disk size
create should fail with too small disk flag
create should fail with too small memory flag
create should fail with malformed boot2docker url

Are there other tests that you are looking for ?

@slashk sorry i wasn't clear.  this is to test the creation of the machine for specific flags.  however, integrations +1 :D

Test Environment
Mac OS Yosemite and VirtualBox 4.3.20
$ docker-machine -v
docker-machine version 0.2.0 (5575c6d)

Documentation and Flags
The flags available for configuring the VirtualBox driver are:
   --virtualbox-boot2docker-url 	The URL of the boot2docker image. Defaults to the latest available version [$VIRTUALBOX_BOOT2DOCKER_URL]
   --virtualbox-disk-size "20000"	Size of disk for host in MB
   --virtualbox-memory "1024"		Size of memory for host in MB

@ehazlett Are we missing environment variables for $VIRTUALBOX_DISK_SIZE and $VIRTUALBOX_MEMORY?
1. Can create a VirtualBox host with default boot2docker URL, 10000MB disk size and 512MB memory
I'm finding it just hangs here:
$ docker-machine create -d virtualbox --virtualbox-disk-size "10000" --virtualbox-memory "512" virtualbox-test-default
INFO[0000] Creating SSH key...
INFO[0001] Creating VirtualBox VM...
INFO[0004] Starting VirtualBox VM...

@tombee @ehazlett   pull request #873 adds integration tests that exercises @tombee scenario above

@slashk thanks!
@tombee yes i think those would be good to have (env vars).  would you mind submitting a PR?  thanks!

@ehazlett I'd be glad to, thanks for that.
I'll resume the validation once there's a fix for the issue @slashk and I have ran into :smiley:

@tombee thanks!

OK.. tried again after rebooting, seems I just had some spurious VirtualBox issues
Test Environment
Mac OS Yosemite and VirtualBox 4.3.20
$ docker-machine -v
docker-machine version 0.2.0 (5575c6d)

Documentation and Flags
The flags available for configuring the VirtualBox driver are:
   --virtualbox-boot2docker-url 	The URL of the boot2docker image. Defaults to the latest available version [$VIRTUALBOX_BOOT2DOCKER_URL]
   --virtualbox-disk-size "20000"	Size of disk for host in MB
   --virtualbox-memory "1024"		Size of memory for host in MB

@ehazlett Are we missing environment variables for $VIRTUALBOX_DISK_SIZE and $VIRTUALBOX_MEMORY?
[:large_blue_circle: PASS] 1. Can create a VirtualBox host with default boot2docker URL, 10000MB disk size and 512MB memory
$ docker-machine create -d virtualbox --virtualbox-disk-size "10000" --virtualbox-memory "512" virtualbox-test-default
INFO[0000] Creating SSH key...
INFO[0001] Creating VirtualBox VM...
INFO[0004] Starting VirtualBox VM...
INFO[0005] Waiting for VM to start...
INFO[0037] "virtualbox-test-default" has been created and is now the active machine.
 Can create VirtualBox machine with custom boot2docker image, with disk size 20,000MB and 1024MB memory
$ docker-machine create -d virtualbox --virtualbox-disk-size "20000" --virtualbox-memory "1024" --virtualbox-boot2docker-url https://github.com/boot2docker/boot2docker/releases/download/v1.4.1/boot2docker.iso virtualbox-test
INFO[0000] Downloading boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v1.4.1/boot2docker.iso...
INFO[0029] Creating SSH key...
INFO[0030] Creating VirtualBox VM...
INFO[0036] Starting VirtualBox VM...
INFO[0036] Waiting for VM to start...
INFO[0070] "virtualbox-test" has been created and is now the active machine.
 Looks like need to check boot2docker url as well. Everything looks good in my commit? If this approach is good, I think I could use the same method to close all the other issues related with flag checking.

@soleo thanks!  commented in that PR

This looks good I think


Login error

From last updating of ogame, when try to perform the login I have the following response:
self.ogame_session = soup.find('meta', {'name': 'ogame-session'}) \ AttributeError: 'NoneType' object has no attribute 'get'
the problem seems to be related on user agent not valid on the post request

Ever get around this buddy?

I made a little fix : https://github.com/alaingilbert/pyogame/commit/135633876c61b5af74cf33b2317e709d8874d785
Let me know if you still have any issues... It works for me now on the latests servers (Nusakan)

I was just about to do a pull req. I'm expanding your framework now. you still play? I'm going to come back on the next server, going to make a bot for it from this. I have made one previously with c++ but its so much easer to use python :)
Any idea if you can extract data from the galaxy view? i remember that was a major issue with curl and c++ due to JS processing.
I totally forgot about the new servers, ill have to check those out, just testing it on my vmode quantum account atm
On a side note here is another bug fix.. more to get rid of those annoying errors.

Wow this is awesome.
I would be curious to see the c++ code for the bot ^^
I don't play much anymore. That's why I am unaware when something break.
Feel free to make any pull request :)
And, there is no change that break Nusakan...
I meant, I tried some basic code on the "Nusakan" universe and everything seems to work properly.

Ah awesome!
Well another reason Im here is Im on Linux and that was written on windows with VS and i have no idea how many library. ill see if i can find it for you on one of my old drives.
Would you be interested in working on this again with me a little? i have some nice ideas - and it seems there is going to be a new server soon, x5 fleet and ecom. Acs too ;)

That could be interesting.
We can create a shared "private repo" on bitbucket if you want,
to define some logic/tasks/goals...

sounds like a plan to me. My name is the same over there, or do you need a email?


enable luigi backdrop and add info

Description
Changes proposed in this pull request:

add luigi overlay when dialog is open
add an information box when disabling confirmations

/test pre-busola-web


Human readable filenames?

Hi,
The readme suggests that human readable filenames can be generated from Video2brain files. Should the same be true for Lynda files? They are converting fine for me (using mdomnita's build to fix the 4 file limitation) but the filenames are unchanged.
Maybe I'm missing a step.

you should use this command
/DB     Search for Database or specify the location on your system
LyndaDecryptor /D "E:\PATH_TO_COURSES\ldc_dl_courses\COURSE_NUM" /DB "C:\Users\USERNAME\AppData\Local\lynda.com\Lynda.com Desktop App\db.sqlite" /OUT "E:\OUTPUT_PATH"
To be honest, I got error message after I run this, but you still can try it.
I write a python file to fetch data from db.sqlite to get title and rename the file.

Thanks cczhong11, for some reason I didn't get that to work the first time round, but it does exactly what it should!


Chrome: after video buffer is emptied, audio keeps playing

Platform: Windows, Android, (maybe others)
Browser: Chrome (51.0.2704.103 on Windows)
To reproduce, go to https://shaka-player-demo.appspot.com/demo/ on desktop Chrome and choose Sintel 4k. Let it buffer some of the video, then switch Chrome's network throttling on to GRPS setting and wait for the buffer to empty.
Expected: video and audio stop at the same time when the buffer is emptied
Actual: video stops, but audio keeps going for a second or two
The issue is not as severe on desktop browsers (though not ideal), but on Android Galaxy A5 and S7 Edge, for example, the audio just keeps on going without ever stopping.
I investigated the issue a bit on S7 and it seems that a buffering event is sent only after a few seconds has passed from the video freezing. However, even after the buffering event has fired, the audio keeps playing.
As a workaround, I tried calling video.pause() from the buffering event handler and this finally stops the audio. But it's not ideal, as the buffering event comes late.
Is there any way to stop the playback at the exact moment either the video or audio buffer is emptied?

The behavior you're describing is in the browser, not in Shaka.  You could file a bug against Chrome and add a link to that bug here, if you like, but there's nothing Shaka can do to control this detail of the browser's media pipeline.
As I understand it, Chrome's media pipeline on Android has historically been implemented differently from the pipeline on desktops, so this may explain why audio keeps going on those platforms.  That, at least, sounds like a bug to me.
Not stopping audio and video at exactly the same time may be working as intended for Chrome, but I am only speculating.  Someone from Chrome's media team should be able to tell you more definitively what the intent is.

Having spent a few moments going through the codebase, it looks like the delay between buffer running out and buffering event being fired is caused by the delays given to shaka.media.StreamingEngine.prototype.scheduleUpdate_
Doesn't look like anything is actively trying to stop video or audio from playing if either one runs out of buffered content. But probably browser itself stops the
Hmm-m... One ugly hack I could implement on my end would be to just have a very short interval running in the background polling the buffering status and pause the video when it detects there isn't anything buffered. Too bad there doesn't seem to be an exposed api on shaka player that would give info about the buffer status. The buffered information given by the video element has proved to not be very trustworthy always... at least not on all platforms, can't remember if it was Android or iOS having problems, or both.

https://bugs.chromium.org/p/chromium/issues/detail?id=593271 this might be the Chrome issue.

Exactly.  The browser has its own logic for when the pipeline stalls and playback is held up waiting for data.  Our 'buffering' event is fired when we first notice that we have too little data, which isn't tied to when the browser stalls.  Trying to detect browser pipeline stalls was difficult to do consistently across browsers.
video.buffered as far as I know is the intersection of the buffered ranges of each SourceBuffer.  But I've seen browser pipelines stall when currentTime is less than buffered.end(0), and I've seen stalls when currentTime is actually greater than buffered.end(0).  So buffered is (counter-intuitively) not the best way to detect pipeline stalls.

True, it's not perfect... But might be enough to get around the bigger problem of audio not stopping at all on Android.
Could Shaka's internal state give better estimate when buffer has run out? Doesn't Shaka know which segments it has downloaded and which time ranges those segments map to?

As long as tracks are not changing, Shaka (in StreamingEngine) tracks the number of the segment it most recently downloaded.  It does not know every segment it has ever downloaded.
StreamingEngine also has access to the buffered ranges of each SourceBuffer (through MediaSourceEngine), so it can know how much audio is buffered separate from how much video is buffered.

Just dropping this here in case someone else stumbles upon this and tries to hack around the problem. Copying this to the demo page's console seems to, at least on desktop, solve the issue. Have to wait until Monday to check the Android situation when I'm back at office with an actual device to test with.
Of course, this probably won't work if you seek the video.. Our use case is simpler as we just play video from start to finish without allowing user to seek.
var video = document.querySelector("video");
var pausedByBuffering = false;

setInterval(function() {
  if (video.buffered.length > 0) {
    var buffered = video.buffered.end(video.buffered.length - 1) - video.currentTime;
    var remainingTime = video.duration - video.currentTime;

    if (!video.paused && buffered < 0.5) {
      console.log("video buffer ran out");
      pausedByBuffering = true;
      video.pause();
    } else if (pausedByBuffering && buffered >= Math.min(remainingTime, 5)) {
      console.log("video has buffered enough to continue...", Math.min(remainingTime, 5));
      pausedByBuffering = false;
      video.play();
    }
  }
}, 17); // ~60fps

Thanks so much for that snippet @mnylen - Have been struggling to find a solution to this exact same issue.

The Chrome bug report attached to this issue states that the situation has been improved significantly in Chrome 51.  Although that issue is still open, I believe it's fair to close this one now.  Please let us know if there's anything else we can do here to assist, and please feel free to follow up with Chrome if you feel there is additional work needed there.


Finally use GO 1.18

Since we're here we also remove unmaintained golint in favor of golangci-lint

/cc @honza @dtantsur @iurygregory

/approve

/lgtm


fix recipes for 2D difference plots

[ ] generate spatial difference plots for every hour
[ ] allow option to loop over vertical levels
[ ] reuse existing operators this

Duplicate of #455.


Update Registers trait to match radio-sx1231

@ryankurte let me know what you think!

i added a commit to swap to words here and have implemented it in radio-at86rf23x, what do you think?

i added a commit to swap to words here and have implemented it in radio-at86rf23x, what do you think?

I have been thinking more about this, and I think I agree with you, except that I would use associated types instead. The motivation is that it allows us to implement TryFrom/TryInto for Specifier (behind a feature flag), which makes this work automagically for all modular bitfield types. Also it makes the Registers trait easier to implement, since you can assume that a given register has a unique size (with generics you can implement both Register<u8> and Register<u16> for the same type).
Associated consts is the "correct" way to implement this, but it currently sadly comes with too many limitations for it to be convenient. In particular, not supporting that type constraints can depend on associated consts is a deal breaker.

I have been thinking more about this, and I think I agree with you, except that I would use associated types instead.

oh yeah, limiting this to one impl makes sense to me. would this allow a driver to have read_register::<R: Register<u8>>() as well as read_register::<R: Register<u16>>() for your combined IRQ register case?
Also I intended TryFrom because register->value conversion can fail if returned data isn't as expected and Into because value->register is defined by the type system and cannot fail.

it allows us to implement TryFrom/TryInto for Specifier (behind a feature flag)

i'm not so convinced by this, given there's already a feature in modular_bitfield to automagically generate TryFrom and Into and baring in mind the orphan trait rules i don't think this can be made to work in a simple / unconflicting way.
if Specifier is part of modular_bitfield we would have to implement Register: Specifier in radio to avoid collisions, and if you guard things like this behind a feature then have two radios with different expectations it can cause problems.
(imagine one radio has used the #[repr(u8)] feature and one has not, you'll get trait conflicts/errors if you enable/disable this feature)
based on that i'd prefer to TryFrom and Into as the requirements from the radio side so it's a simpler API / set of constraints (and we're not prescribing how people define registers).

ahh, there's a reason i didn't do this originally... Register needs to be generic to specify the TryFrom and Into bounds...
pub trait Register<W=u8>: Copy + TryFrom<W> + Into<W> {
    const ADDRESS: u8;
}

and there's no point in doing this to the Registers trait because, you might want to read/write both u8 and u16 registers.
you can hack around it with an intermediate trait:
// Register trait for radio implementations
pub trait Register: Copy {
    const ADDRESS: u8;
    type Word;
}

pub trait R2<W>: Register<Word=W> + TryFrom<W> + Into<W> {}

impl <W, T: Register<Word=W> + TryFrom<W> + Into<W>> R2<W> for T {}

pub trait Registers<W=u8> {
    type Error: Debug;

    /// Read a register value
    fn read_register<R: R2<W>>(&mut self) -> Result<R, Self::Error>;
    ...

which we could choose to seal

impl <W, T: Register<Word=W> + TryFrom<W> + Into<W>> private::Sealed for T {}

mod private {
    pub trait Sealed {}
}

i'm not sure if this has any other complicating limitiations, but it's implemented here and i've tried it out against radio-at86rf23x

You can actually get the best of both worlds by keeping the generic constraints while still using associated types:
pub trait Register: Copy + TryFrom<Self::Word, Error=<Self as Register>::Error> + Into<Self::Word> {
    type Word;
    type Error;
    const ADDRESS: u8;
}

pub trait Registers<Word>  {
    type Error: Debug;
    fn read_register<R: Register<Word=Word>>(&mut self) -> Result<R, Self::Error>;
    fn write_register<R: Register<Word=Word>>(&mut self, value: R) -> Result<(), Self::Error>;
    fn update_register<R: Register<Word=Word>, F: Fn(R) -> R>(&mut self, f: F) -> Result<R, Self::Error>;
}

I pushed a new commit which implements this.

You can actually get the best of both worlds by keeping the generic constraints while still using associated types:

oh wow, TIL! lgtm, let's do it

unless you have any reason not to i'll tag a minor release so we can publish the new drivers?

SG!
Ryan @.***> schrieb am Mi. 10. Nov. 2021 um 21:52:

unless you have any reason not to i'll tag a minor release so we can
publish the new drivers?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/rust-iot/radio-hal/pull/19#issuecomment-965736626,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAGR5A7DQUSZRJLON6ZH5WTULLLRVANCNFSM5HOCQKLA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


Which metrics stands for parallel requests from Envoy to cluster

I want to monitor how many parallel requests are generated by Envoy to a cluster per second.
I've read the official doc about metrics of cluster but I can't find any relative metrics about parallel requests.
I know there is a upstream_rq_active, but I don't think this is what I need. I need to monitor the number of parallel requests per second, I don't think parallel requests and active requests are the same thing.
Does Envoy support such a kind of metrics?

All the upstream cluster stats are documented here.
upstream_rq_active represents the number of active requests at the moment stats are collected/emitted. We don't have a mechanism to track the maximum value over a period, which is think what you want.


Add json column

fixes https://github.com/digital-asset/daml/issues/15879

@chunlokling-da would be nice to add an index to inside/for the json data and have a query that performs better in the spring boot app. and add some doc about this

@chunlokling-da please check the CI build.

oh the CI failure is due to com.daml:codegen-json-java_2.13:jar:2.5.0 is not yet publish anywhere yet. I am hopping to have it when the weekly snapshot release is done this Wednesday

It's likely needed to depend on a snapshot @chunlokling-da @fayi-da ?

Yes. The required PR in daml is merged: https://github.com/digital-asset/daml/pull/15909
So we can put the released snapshot version this Wed or Thur


bump version of gctoolkit-testdata dependency to 1.0.2

Update version

@dsgrieve I'll let you merge if you're happy with it

@CRY0NE3 Is this different than PR #18 ?

Update version

G = 59923FBC

No diffs from main.

Again, i was searching for the word Monero, and i end up here only to be denied.
Yes i am receiving all these codes, but how will i ever understand all these things without any suppprt? i dont how you all do it..but i find stupid you are all able to trust these CORRUPT NETWORKS that i am surrounded with..expect a single person can fix the GLOBAL PANDEMIC that CHINA AND ITS ALLIES scattered, and I by myself rely on codes to FIX it...without KNOWING who i am CONNECTING TO?

Suspect this is a bot, user has been reported to GH

@karianna you should be able to delete the comment, no?

Yes, but GH Abuse team wanted it left there to investigate.


Filter for tags not implemented on ec2 DescribeAddresses

EC2 API allows to filter on tags for DescribeAddresses. For Moto this is not implemented yet. PR is in preparation.
How to reproduce
    client = boto3.client('ec2')
    alloc_tags = client.allocate_address(Domain='vpc')
    client.create_tags(Resources=[alloc_tags['AllocationId']], Tags=[{'Key': 'ManagedBy', 'Value': 'MyCode'}])
    addresses = client.describe_addresses(Filters=[
        {'Name': 'domain', 'Values': ['vpc']},
        {'Name': 'tag:ManagedBy', 'Values': ['MyCode']}
    ])
    len(addresses).should.equal(1)

What you expected to happen
Test succeeds
What actually happens
moto.ec2.exceptions.FilterNotImplementedError: The filter 'tag:ManagedBy' for DescribeAddresses has not been implemented in Moto yet.
Versions
Name: moto
Version: 1.3.15.dev0
Name: boto
Version: 2.49.0
Name: boto3
Version: 1.14.59
Name: botocore
Version: 1.17.59

This is now part of moto >= 1.3.16.dev34


Redux like state management crate?

I've come from a web dev background, while I understand Rust isn't quite there for heavy web dev yet(still seems to be trouble in providing an http server that can upgrade connections to websockets on the same port for example), I really did enjoy how Redux worked.
Rust seems to prefer composition and this is something Redux is all about with it's reducers. Middleware support also made it quite powerful and is great to use with React(bit too big of an ask to see a Rust port). IIRC Redux was touted on release as being quite a small library(around 100 lines of JS), yet was great to work with modern JS(ES6+).
Perhaps it worked so well because of JSON being native to JS(where other languages are not as seamless/enjoyable to use JSON), and that it's a dynamic scripting language(which I guess conflicts with Rust being strongly typed and compiled). In Rust I suppose this would be some sort of combination of nested structs or data structure to support the state tree.
I remembered seeing some implementation attempts back in 2016 but they ran into some roadblocks. It seems someone made some progress here with rust-redux, so perhaps it's in a better state now and just needs good middleware(the browser debug tools were pretty good, not sure if they could be used with Rust to do time travel of state).
I found this most useful for state management of UI part of software. As state would change via reducers, binded data would update in React UI without additional work by the developer that other UI frameworks did to connect/bind state to the UI, often causing complications, bugs, debugging woes. Going through an introduction of how Redux works probably explains this better than I can :)

I going to declare a final comment period on this issue.
Remember that the purpose of this repo is to collect use cases. The details figured here are relevant to that conversation, though I feel that with the information that is here, I can only make a basic entry. This is probably due to my lack of expertise. Can anyone add anything else before we close this? What use cases can be taken away from this? I'm thinking only of UIs, some that's where this state management technique has been used recently.

I only have the use case of experience using Redux for frontend UI with React. Another big plus for it was the third party support/community and how well it integrated into React. You also had the tooling for debugging(browser plugins) that allowed you to stop the app, view the state, move back/forward through the state like a timeline or undo/redo, or directly alter the state(where a change can chain other reducers to update state and UI elsewhere).
There are some UI toolkits in Rust that might be able to work with a Rust port. Declarative/composable UIs mix really well with it. I can't say if the experience/preference of it will be the same using it in Rust as it was JS due to language differences.
For WASM I guess it could be nice if it was able to at least use the debug tooling Redux has(or a fork of those plugins). I haven't got much thought for it out of frontend/UI use cases, the benefit is mostly that where and how state was managed was clear, it was structured to the pattern(both in usage and file hierachy) and when something would change the data change/event would flow updating anything else that depended on it and all other UI elements(or non UI logic) that bound to it would just update, you make the one change and don't have to manually tell anything else to update/change to the new value/calculation. That is most useful if you have UI representing the same data in several different ways.
There might be other alternatives to that approach, I just remember it being nicer than mvc and other patterns I was used to in the past.

I've tried to capture what I've taken from this discussion with this PR: https://github.com/ErichDonGubler/not-yet-awesome-rust/pull/35
Feedback, anyone? Now's your chance!

Closing, per final comment period. Like with sibling issue https://github.com/ErichDonGubler/not-yet-awesome-rust/issues/6, feel free to comment here or open another issue if you feel that you still want to voice something.


jj-abrams: debug message shown on production

When building my Ember app, i can still see debug messages in the console when authentication is needed:
The authenticator "authenticator:main" rejected to restore the session - invalidating…

Is this meant to be or should this debug message not be visible when built with production enviroment?

This is just for debugging and will not be visible in production.

The issue is that it is visible for me in production

It's logged with Ember.Logger.debug so either sth. is wrong with your build or there's a bug in Ember.Logger.debug,

Will investigate it further


Valid for whmcs 6 and php 7?

Hello,
As the title says does this module/hook works with php 7 and the new whmcs version? Same for you other modules?

I have not tested them with PHP7 yet.


Add the title and contact information to the resume

I closed the Pull Request because I accidentally opened this Pull Request from the patch/content/primary branch to the main branch, not to the features/body branch


Code blocks overlay top nav when scrolling back.

Origin page

Fixed in #550, hasn't been pushed yet.


Resolve record-leaking bug in the custom domain broker

Mike said:

There is an unknown bug in the custom domain service broker. While troubleshooting #1508 I found several stale records with deployed ALBs but no associated deployed services. There's likely a bug here, but I'm not sure what it is without spending an extensive amount of time on this.
Because the custom domain service broker deploys AWS resources which cost money, we need to ensure that stale resources are cleaned up.
It also needs extensive overhauling to be updated.

obsoleted by new broker


Lair of Tarn Razorlor (miniquest) - add highlight and note to avoid the receding walls

The receding walls will push you to the level below and cause a big headache while trying to get to Tarn's Lair. Add a highlight to the tiles that need to be sprinted past, and add a descriptor to the side-bar step.
Old step: "Follow the path to the east."
New step recommendation: "Follow the path to the east. Search the wall traps in the first hallway. Sprint past the receding walls on the narrow ledge one at a time just after they recede.

Same update should be applied to the Terror Dog task in the Morytania Medium Diary:

+1 please do this, I had an annoying time getting knocked off the ledge

This should be resolved with https://github.com/Zoinkwiz/quest-helper/commit/b689ec35e4190fbaea10abe78adff59e3659c0ae.


fix: macos installation steps

These steps worked for me on master. The command that was here didn't work for me.

Yes, the generic backend on master is currently broken, so the macos instructions weren't technically working.
I'm fine with merging this, but this should have a note that it will use the interpreter so it will be slow/unplayable.


EPSS Support

Display exploitable CVE information EPSS values in Defect Dojo. EPSS in a column so CVEs can be sorted by.
Solutions:
Preferred: Cross reference CVE with EPSS database https://www.first.org/epss/data_stats.html so that any CVE imported gets updated with EPSS.
Minimum: Parse this information from reports ingested for example Dependency Track now provides epss values in the FFE
https://github.com/DependencyTrack/dependency-track/issues/1178

@quirinziessler is DependencyTrack providing the info to DefectDojo with the current build?

@manuel-sommer yes DependencyTrack exports the EPSS score in the FPF format. I opened a PR with the latest export to the samples repo.
https://github.com/DefectDojo/sample-scan-files/pull/83
I am also supporting this idea. Imo the best way would be to add the EPSS similar to the CWE and CVE to the findings model. In a first step fetched from the scanner output and in the future automatically for all scanner that are providing a CVE upon enabling via settings. Somehow the second part should be also on the roadmap when implementing EPSS because the score is updated daily.
@Maffooch @mtesauro does this also make sense to you? Should we wait with this for the new major release or would you support a PR for this already now?

I guess you can make a PR @quirinziessler.
Maybe we can make a field unifies EPSS and exploitability: https://github.com/DefectDojo/django-DefectDojo/issues/8423

Could we close this issue @mtesauro ?


how to find the local patch of shell?

Sentinl and Kibana version 6.2.4

Issue description

send-alert.sh
#!/bin/bash
curl http://alert-service:8888/send-alert -XPOST -d @$1
"cmd": {
"name": "send alert",
"script": "/path/send-alert.sh",
"argument": "file"
},

Reproducing the issue step-by-step
send the shell alert. don't where to use the path.

Expected results vs. actual results

action to execute the send-alert.sh

I don't understand, what type of action is it? Can you show the full watcher? As far as I know, Sentinl doesn't have a possibility to exec bash scripts.

I don't understand, what type of action is it? Can you show the full watcher? As far as I know, Sentinl doesn't have a possibility to exec bash scripts.

this file --->> send-alert.sh
#!/bin/bash
curl http://alert-service:8888/send-alert -XPOST -d @$1
then action run the send-alert.sh

@aabababb elaborate so we can understand your issue properly. Do you want to run the script when an alert triggers?


When kwargs are used, unrecognized arguments are not notified

Without kwargs, unrecognized arguments leads to an error notifying the user that the command used is wrong.  But with kwargs...
$ cat test_plac.py
#!/usr/bin/env python
def func(**kw: ('kw',)):
    print(kw)
import plac
plac.call(func)
$ ./test_plac.py foo
{}

Fixed in master, https://github.com/micheles/plac/commit/b040557f56af7d7cf2867ae04c59ce0a184e20d8


Sync

Request

What feature or change would you like to see made?
...
Why should we prioritize this feature?
...

What sync

Sorry for confusion.
We currently have our viewer which customize from OHIF version 0.50.3. But it seems like there are so many issues which doctors don’t Happy such as poor performance/speed and also the functions which do not comply to their requirements.
I’m not sure anyone can provide consultations to my programmer to fix the bug, improve performance and add more features to match doctors' requirements.
Looking forward on your reply and suggestions.

Please review the latest code in the master branch. I am confident that this issue has been resolved. If it persists, kindly reopen the issue with updated details.
Try viewer-dev.ohif.org instead of viewer.ohif.org
Our viewer.ohif.org is deployed from release branch while viewer-dev.ohif.org is our master  branch
Read more about branch explanations here https://docs.ohif.org/development/getting-started#developing


build: prepare of 3.12.0

updating the required templates and documents for the 3.12.0 release.

Triggered CI, before calling mergify queue add skip-ci label so that we don't need to test it again.


Should formatting with Prettier be a separate option from linting?

It doesn't seem to currently be possible to use Prettier with an ESLint config like Standard or AirBnb, but I think that's a pretty common use case. For that reason, I'm thinking we should possibly ask about formatting separate from linting, and then we can also use config-specific overrides where appropriate, like prettier/standard.

I think the line between linting and formatting is pretty blurry nowadays, with eslint --fix being able to fix a wide range of rules. Using Prettier with another ESLint config with stylistic rules also doesn't feel like super common to me.
The user can always manually install additional configs to use on top of the @vue/prettier config, or just completely use their own config. We don't necessarily have to bake everything in the out of the box configs.


Delete tags

Describe the bug
It's not possible delete a created tag
Expected behavior

Delete de tag configuration
Delete de tag asociated to mails
Before doing this warning to the user.

[ ] Button to delete de tag on list or when admin is editing the tag
[ ] Search tags asosiated mails and warning about the number of tagged mail it will be detagged
[ ] Delete de tagged mails
[ ] Delete de tag


How to add custom images instead of showing black screen ?

Is it possible to add custom image when the app goes background ?

@GokuVijay hi, which platform for this question?


Find thread by multiple users

Hi,
Is there a clean way to find the threads involving multiple users? Like, when Bob is logged in, find and the threads with Bob and Alice in it?
At the moment I could do something like Thread::forUser($id_bob)->whereIn('threads.id',  Thread::forUser($id_alice)->select('id')->get());  but that's very ugly  and pretty far from optimal. Is there a built-in function for that, or do I have to write my own SQL query from scratch?
Cheers

If anyone else is looking for that:
$ids = array_flatten(
				Participant::where('user_id', $current_id)
						   ->orWhere('user_id', $other_id)
						   ->groupBy('thread_id')
						   ->havingRaw('count(*) > 1')
						   ->select('thread_id')
						   ->get()
				);

will give you the thread ids.


Dost game ta shera!!!!

Assalamu Alaikum brotha!!!
This game is dope...MashaAllah
But could be dopier....
Best Regards
Certain Well WIsher....

Thank you so much! yes it deffo could have been but I really needed to get back on the neural network project so I just completed that with as less features as possible.


Creating a GitHub Actions workflow with the plugin.

I'm working on creating a workflow, but I don't know how to pass in the required signing parameter (which usually get passed as Gradle properties). Is there a way to do that with the plugin?

See this example: https://github.com/kit-data-manager/nexus-publish-example

Thanks, just a short question. What about the secret key ring file?

I set this up prior to that example, which is probably identical. If I recall correctly, you use the signingKey with useInMemoryPgpKeys instead of the key ring file. The signingKey and signingPassword are stored as secrets.

Thanks. Do you know how I can get the signing key (I've already generated a pair)?

@DavideD documented the steps which was nice of him.
gpg --armor --export-secret-keys $ID > ascii.key

Thank you so much! I'll check it out!

Weird - when I put my private key in (whether with or without newlines), I get an error (this is without newlines):
Cause: invalid armor

full log: https://gist.github.com/TheOnlyTails/69a172fa3638a46a3acaf6c75b5e60d1

Have you tried to test what was proposed here:
https://github.com/HandBrake/HandBrake/issues/1608

I finally had the idea to try printing the key when signing it, and turns out that if I pass it as a property, it gets cut off, like this:
lWWGBGByDfwBDADB5pWxgBT04U0bDIv/Pv0zDEYqKXt2Dubj3RcvCDAveel3eYFs

When the actual key is much, much longer.

Have you checked the original key at the position where it stops in the output? Is there any carriage return or line feed character?
You may try this suggestion at StackOverflow in order to get rid of line breaks. I hope this helps.

I regenerated the keys and tried again with that format, but for some reason, it still reads that one.
Even weirder - when I close the repo manually, it works fine.


NPE are handled differently between instructions.

Describe the bug
NPEs are handled differently between instructions, some fail silently while some immediately raise a programming error, is it possible a consistent Fail Fast, Fail Early behavior is kept across all instructions?
To Reproduce
Steps to reproduce the behavior:
The following program runs, but sprite cannot be moved with buttons.

The following program eagerly raise an NPE.

Expected behavior
A consistent Fail Fast, Fail Early behavior is kept across all instructions.
Screenshots
See above.
Desktop (please complete the following information):

OS: macOS 10.15.5
Browser [chrome]
Version [Version 83.0.4103.106 (Official Build) (64-bit)]

Additional context
None

First program is dynamically setting the dog variable in forever loop. Forever loop will run when there is yield or pause in the on-start. Some of the API's have pause and hence this behavior.
This is bug in your program. Please intialize dog variable in the onstart if you are using it in the on-start

First program is dynamically setting the dog variable in forever loop. Forever loop will run when there is yield or pause in the on-start. Some of the API's have pause and hence this behavior.
This is bug in your program. Please intialize dog variable in the onstart if you are using it in the on-start

Thanks for the reply.
What I'm suggesting is about the way such errors are handled by the platform that is different between instructions.
Both programs fail to init dog in the onstart block, no question, but the second program cannot run, results in a program error,

while the first program runs WITHOUT error, but does not work purposely

As I mentioned in forum, for educational purpose it's probably better to immediate raise an error when un-initialized variables(or nulls) are encountered. It would be very confusing for the kids to understand why those two usages of un-initialized variable err differently.

That is because camera follow  introduces pause which transfer control to forever and initializes the dog variable and when that event yields to on-start every loop dog is initialized and there is no error.
MakeCode is an event based mechanism and yielding is necessary.

That is because camera follow introduces pause which transfer control to forever and initializes the dog variable and when that event yields to on-start, dog is initialized and there is no error.
MakeCode is an event based mechanism and yielding is necessary.

Oops, I'm not quite understand, if the dog is intialized, then why the dog is not moved by the D-pad?
https://makecode.com/_2kWTLP2uoMTb

Can you please initialize the dog in the on-start. What is the point of initializing in the forever?
Camera follow is just following undefined and not dog.

Hm, I think the issue here is that the behavior between different blocks is 'random' from a users perspective - sprite follow fails if the first parameter is nullish, as it's a method and we're automatically dereferencing null.
The camera follow doesn't actually pause; what's happening is that we've historically had a preference towards blocks 'just working' and ignoring calls that would typically be null pointers - e.g. https://github.com/microsoft/pxt-common-packages/blob/master/libs/game/controller.ts#L357 just bails out of the movesprite if the sprite doesn't exist, instead of trying to dereference it and breaking / showing the error.
This request is suggesting that instead of 'hiding' broken code, we fail early when you try and take an action on something that is null and let it throw a NPE / proactively throw on the invalid input instead of making it a no-op, as the user did something wrong and probably don't realize it - e.g. just letting movesprite throw instead of masking it and potentially leaving in a subtle bug.

Can you please initialize the dog in the on-start. What is the point of initializing in the forever?
Camera follow is just following undefined and not dog.

Sorry that I didn't mention, we are teaching kids (age 9+) coding with arcade.makecode. The above programs are common mistakes of the students.
In fact they found it hard to tell the 2 programs apart, and started to think that 'un-initialized variables result in PROGRAM ERROR but if I'm lucky enough, sometimes they can run.'

Yes that is true. Variables are hard concept to grasp. Thumb of rule is teach declare before you use.
It is true that some of the api are forgiving in terms of variable not being defined. We could throw errors but that would impact some games where it is alright sometimes to be undefined.

I totally understand the difficulties in legacy apis, technical debts, reminds me the nightmares in the api migrations being an professional coder.  But now as a tutor, I speak for my students lol, and I think arcade.makecode is still in its very early stage, considering in a 5/10-years time, having a learning-friendly api/behavior serves educational purpose better.
Cheers.

Thanks for the feedback. We will try to keep consistency across API in the future.


Add C++ driver support

Adds support for the C++ driver for FINN https://github.com/eki-project/finn-cpp-driver
The C++ driver itself is added as a submodule to FINN.
Current v1.0 driver release note: https://github.com/eki-project/finn-cpp-driver/releases/tag/v1.0

Bumped driver version to v1.1: https://github.com/eki-project/finn-cpp-driver/releases/tag/v1.1


mise.run should install musl variant whenever this is available

Right now it looks like it will pick the musl variant if the system uses it, but it doesn't check whether the installed libc is recent enough. This leads to situations where you can install mise but it won't run because libc is too old.
I think the best solution to this is just to always use the musl version by default.

musl variant of what? I don't know of any logic that prefers one to the other

Wow, what a terribly bug report. Who wrote this? Oh, I did :cry:
I think I was saying that the script https://mise.run/ should prefer the musl variant on Linux systems. Otherwise, it can end up installing a mise binary that requires a newer glibc than is available on a given system. Preferring the musl variant eliminates this issue.

Oh no you put that in the title but I suppose I missed that when I replied


Rancher load balancer does not auto-migrate when host goes down

Rancher Version: 1.1.2
Docker Version: 1.10.3
OS and where are the hosts located? (cloud, bare metal, etc): Ubuntu 14.04.5 hosted in Amazon EC2
Setup Details: (single node rancher vs. HA rancher, internal DB vs. external DB): HA Rancher, external DB, 3 host machines.
Environment Type: (Cattle/Kubernetes/Swarm/Mesos): Cattle
Steps to Reproduce:

Create stack with 1 rancher load balancer and N service containers
Shut down host that is running the rancher load balancer

Results:
Host shows as "Reconnecting" and rancher load balancer is still marked as healthy so it is not migrated to a healthy host.
Expected:
Rancher load balancer would be migrated to a healthy host.

Are you sure the load balancer did not get migrated? Typically, it should get re-deployed on another host, but the one on the "reconnecting" host will still show up as that was the last known state on the host.
So from the host view, there might be 2 load balancers, but in the services, there will be 1 active and woking LB.

Yes, I verified with another test that the load balancer is not being migrated. Are there some logs that would help shed light on what might be happening?

Any idea's on this? We've had to resort to striping load balancers across all hosts in order to mitigate this issue.

@deniseschannon, any ideas on this? Seems like it might be falling through the cracks.

@renaudholcombe Could you share your docker-compose.yml and rancher-compose.yml for the LB definition that you have? How many hosts do you have? How many LBs? Did you make them through the UI?

Sure, we have 3 hosts and when replicating the issue we use a single load balancer; all containers/load balancers are created via docker/rancher compose. Docker-compose is below:
`node-service:
ports:

"33305"
image: "$node-servicetag"
mem_limit:<PHONE_NUMBER>
environment:

API_URL=${API_URL}
external_links:
routing/consul-agent:consul-agent
lb:
ports:

"33306:33305"
labels:
io.rancher.loadbalancer.target.node-platformweb-server: /=33306
image: rancher/load-balancer-service
links:
node-service:node-service`

Rancher compose is below:
.catalog:   name: "node-service-stack"   version: "$stack_version"   description: "Node service stack"   uuid: $uuid   questions:     - variable: API_URL       description: "Consul agent port"       label: "Consul agent port"       type: string       required: true       default: "http://consul-agent:8001" node-service:   scale: 3 lb:   scale: 1

@deniseschannon, any ideas or next steps?

Reviving the thread; @deniseschannon, what are the next steps for troubleshooting this issue? It's still occurring for us.

@renaudholcombe Your load balancer doesn't have a health check on it in the rancher-compose.yml, which is why it's not migrating. I had initially thought that you had created the load balancer through the UI, which automatically has a health check created with it.
You'll need the health check in order for services to be migrated to a different host when a host goes to reconnecting.
 .catalog:
  name: "node-service-stack"
  version: "$stack_version"
  description: "Node service stack"
  uuid: $uuid
  questions:
    - variable: API_URL
      description: "Consul agent port"
      label: "Consul agent port"
      type: string
      required: true
      default: "http://consul-agent:8001"
node-service:
  scale: 3
lb:
  scale: 1
  health_check:
      response_timeout: 2000
      healthy_threshold: 2
      port: 42
      unhealthy_threshold: 3
      interval: 2000


Calendar on-tap

Create a paper-dialog that pops up when a calendar event is clicked that contains the event title and details. Prevent default execution of click handler since the site uses the gcal version of fullcalendar.

Updated site to include paper-dialog with event info. Time information of events does rely on moment.js for formatting currently.


Process output not broadcast to all clients

If multiple websocket clients connect to the websocketd at the same time, the output of the process is sent interleaved to each websocket client.
Rather it would be more useful to have the output broadcast to every client, as the whole purpose of this project seems to be to make one process's stdio accessible through websocket.
Edit:
Ah, I've understood the code a bit more. So it seems that for each websocket connection, a process is spawned. My feature request would then become this:
Enable the websocketd to spawn only one process and connect each websocket to it's stdio.

hey people why not socketdBro ts just a proof of cpncept for now( only raspbian setup for my raspbery project) but you can provide similar or even better implementations using AMQ(fanout) +websocketd

i hope I ll find some time in the near future to do a proper release

Closing this issue as I there's nothing actionable.


Updated the case of 'URL' under 'Create Subscription'

The Subscription object requires a callback url in order to be created, but the documentation currently lists the url key as lowercase, but the Subscription object requires the case to be all-caps (URL). This solution of changing the documentation is perhaps only a bandaid to the real solution (i.e. allow for the key to be lowercase), but in the meantime, at least the readme will reflect the proper case.

Thanks @bqmackay! I confirmed that this is the correct way to do it as well


Create SECURITY.md

As per https://docs.github.com/en/code-security/getting-started/adding-a-security-policy-to-your-repository, adds instructions for reporting security issues.  Thanks again to @jmckenna for the inspiration.
The versions listed are suggestions (@cehbrecht feel free to update this PR as needed).

Coverage remained the same at 0.0% when pulling d014c9c90c2ff9052ec70ca74894152ca2691651 on security.md into 879336dca8556ada883205180677a646b5c32d21 on main.

I would provide security patches only to the current 4.5.x version and the previous 4.4.x version.
Please complain if you want patches also for the 4.2.x version :)


fix(deps): :arrow_up: update dependency vega-embed to v6.24.0

This PR contains the following updates:

Package
Change
Age
Adoption
Passing
Confidence

vega-embed
6.23.0 -> 6.24.0

Release Notes

vega/vega-embed (vega-embed)
v6.24.0
Compare Source
Bug Fixes

allow all themes from vega themes in types (#1288) (cab79d2)

Features

pass baseurl through to default tooltip handler (#1286) (e3e703d)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

⚠ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

any of the package files in this branch needs updating, or
the branch becomes conflicted, or
you click the rebase/retry checkbox if found above, or
you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:
File name: package-lock.json
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving<EMAIL_ADDRESS>npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/@angular/core
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/@angular/animations
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /tmp/renovate/cache/others/npm/_logs/2023-12-22T19_38_54_066Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2023-12-22T19_38_54_066Z-debug-0.log


Borked runit support

Cookbook version
5.1.1
Chef-client version
chef-solo 12.6.0
Platform Details
Ubuntu 14.04
Scenario:
Migrating from miketheman/nginx  cookbook without switching from runit to upstart (will do later)
Steps to Reproduce:
init_style to runit
Expected Result:
Converge success
Actual Result:
           ================================================================================
           Error executing action `enable` on resource 'service[nginx]'
           ================================================================================

           Chef::Exceptions::UnsupportedAction
           -----------------------------------
           #<Chef::Provider::Service::Simple:0x0000000665e810> does not support :enable

           Cookbook Trace:
           ---------------
           /tmp/kitchen/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in `run_action'
           /tmp/kitchen/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block (2 levels) in converge'
           /tmp/kitchen/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `each'
           /tmp/kitchen/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block in converge'
           /tmp/kitchen/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:in `converge'

           Resource Declaration:
           ---------------------
           # In /tmp/kitchen/cookbooks/chef_nginx/recipes/source.rb

           114:   service 'nginx' do
           115:     supports       status: true, restart: true, reload: true
           116:     reload_command "#{node['runit']['sv_bin']} hup #{node['runit']['service_dir']}/nginx"
           117:     action         [:start, :enable]
           118:   end
           119: when 'upstart'

           Compiled Resource:
           ------------------
           # Declared in /tmp/kitchen/cookbooks/chef_nginx/recipes/source.rb:114:in `from_file'

           service("nginx") do
             provider Chef::Provider::Service::Simple
             action [:start, :enable]
             supports {:status=>true, :restart=>true, :reload=>true}
             retries 0
             retry_delay 2
             default_guard_interpreter :default
             service_name "nginx"
             running true
             pattern "nginx"
             start_command "/usr/bin/sv start /etc/service/nginx"
             stop_command "/usr/bin/sv stop /etc/service/nginx"
             status_command "/usr/bin/sv status /etc/service/nginx"
             restart_command "/usr/bin/sv restart /etc/service/nginx"
             reload_command "/usr/bin/sv hup /etc/service/nginx"
             declared_type :service
             cookbook_name :chef_nginx
             recipe_name "source"
           end

What version of the runit cookbook are you using? :enable is an action in recent versions - that's also a reasonably old version of Chef (over a year) so testing both on latest would be ideal.

My Berksfile.lock state runit (3.0.5), but AFAIK looking the stacktrace, the missing :enable action is in <Chef::Provider::Service::Simple>, and if I take a look at the current chef master:
https://github.com/chef/chef/blob/master/lib/chef/provider/service.rb
https://github.com/chef/chef/blob/master/lib/chef/provider/service/simple.rb
there isn't any :enable method for such provider.
Then, looking at https://github.com/chef-cookbooks/chef_nginx/commit/e9d518a3c6494e39d49f63f538c1ba83456fe9c0 I see a refactoring in recipes/source.rb (probably without test coverage) that introduces this bug.

Version 6.0 of this cookbook removed support for Runit so there's no need for this change anymore. I'd highly recommend moving away from Runit and using a modern init system such as Upstart or Systemd instead.

@tas50 we have a bunch of nodes running nginx via runit, do you have some suggestions for a migration path to upstart?
Thanks.

We don't at the moment, but I should get some cleanup code in there. We've done that in other cookbooks that used runit.


chore: remove kitchen sink example

Issue #, if available: #118
Description of changes:

Checklist

[x] Meet tenets criteria
[ ] Update tests
[ ] Update docs
[ ] PR title follows conventional commit semantics

Breaking change checklist

RFC issue #:

[ ] Migration process documented
[ ] Implement warnings (if it can live side by side)

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

Codecov Report

Merging #180 into develop will decrease coverage by 0.13%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop     #180      +/-   ##
===========================================
- Coverage   100.00%   99.86%   -0.14%
===========================================
  Files           52       52
  Lines         2154     2154
  Branches        97       97
===========================================
- Hits          2154     2151       -3
- Misses           0        3       +3

Impacted Files
Coverage Δ

aws_lambda_powertools/tracing/extensions.py
25.00% <0.00%> (-75.00%)
:arrow_down:

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 8ff6bc9...b10af63. Read the comment docs.

updated cookiecutter example with dummy example, and issues to enhance the example so it becomes a functional example over a kitchen sink: https://github.com/aws-samples/cookiecutter-aws-sam-python


FPGA CRI hook: make hook output to be visible in the logs

Currently output of the hook is not visible anywhere, which makes it hard to investigate what's going on when hook doesn't work as expected.
It would be great to have the output visible in the CRI-O systemd logs: journalctl -u crio.
Hopefully it's just a matter of configuring systemd to put the logs into its binary log.

There is not much to do about this. If hook returns non-zero exit status its stdout and stderr output goes to the kubelet  systemd journal (and can be visible with journalctl -u kubelet) and to the CRI-O log. A lot more info about processing hooks is going to CRI-O log if crio is run with --log-level debug.
Example:
"Container creation error: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \"process_linux.go:385: running prestart hook 0 caused \\\"error running hook: exit status 1, stdout: >>> main stdout\\\\n, stderr: >>> main stderr\\\\nE0815 16:20:20.128182   11635 main.go:286] failed to program AFU f7df405cbd7acf7222f144b0b93acd18 to socket 0, region ce48969398f05f33946d560708be108a: error: exit status 1, output: Invalid cmdline options\\\\n\\\"\""


增加链接重试的机制

XPOA共识时,出现xfront连接数过多的问题,增加重试相关参数,避免状态异常重复创建链接

Codecov Report

Merging #447 (2cad6f4) into master (11347bd) will decrease coverage by 0.18%.
The diff coverage is 0.00%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@            Coverage Diff             @@
##           master     #447      +/-   ##
==========================================
- Coverage   43.93%   43.76%   -0.18%
==========================================
  Files         149      149
  Lines       13355    13375      +20
==========================================
- Hits         5867     5853      -14
- Misses       6307     6339      +32
- Partials     1181     1183       +2

Impacted Files
Coverage Δ

bcs/network/p2pv1/conn.go
45.76% <0.00%> (-15.47%)
:arrow_down:

... and 3 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

这个pr本意是为了防止xuperchain频繁创建连接,在XPOA共识环境出现创建的1万多个连接的情况.但是这个PR造成了出块不稳定,先关闭了.


Merge ttshivers/synclounge into main repo

Simplified room creation and joining process
Better web player (same as what Plex web uses)

Direct play and direct stream support
Native subtitle support
Skip next / previous controls to easily navigate episodes in a show
Better high bitrate support with no more "appendBuffer" errors

Skip intro / auto skip intro
Auto Host (Anyone can start playing new content rather than just the host)
Sound / desktop notifications for chat
Major rewrite / cleanup of sync logic

Not ready yet, need to change the links and metadata to point back here


feat: Add .gitignore file to ignore directories and files generated automatically

This Pull Request adds a .gitignore file. This will automatically exclude intermediate files created during various build processes, such as compilation, documentation generation, testing, and test coverage measurement, from being managed by git.

@yyyu-google Could you please review this pull request? Thank you in advance!

@yyyu-google By creating a .gitignore file, you can automatically exclude files and directories that don't need to be managed by Git, such as the build directory or the docs directory. This makes development easier. Anyway, without a .gitignore file, it can be quite a hassle.

@yyyu-google @happy-qiao I pushed this branch after merging the latest main branch. Could you review this pull requets?


AutoPr-NetApp-leonardbf-REST Spec PrNumber 5370

@leonardbf is opening a manual PR for these changes


Location EU API update

Hey Jubepue,
thank you very much for your great work. I would be happy to get the plugin working in the Europe, Germany location. I've already read out the http requests. What do you need from me to get the plugin working in the EU? Many greetings

Thanks for your help.
I need a screenshot of the data captured by the charles application. Please visit: https://github.com/jubepue/homebridge-petkit-pet-feeder/wiki/Capture-using-Charles
At point 4 you must go to options and enable or disable the light or the lock of the feeder.
The necessary results are those that show the update web page.
example: http://api.petkt.com/latest/d4/updateSettings?
Regards
Jubepue

Hi,
there is a new release that solves your request https://github.com/jubepue/homebridge-petkit-pet-feeder/releases/tag/v2.3.0


why Bioasq use more ram !!??

Please when I run bioasq, the JVM need more than 4g of ram ( if i limit to 3g, I have got OutOfMemory heapsize exception ).
I have a difficulty to find why and where the code need to load more than 4g of ram.
I don't know if is it error or else.
Please someone can help me ?

I found the problem. dependencies model is too big.


properly convert insertcount from string

support bigger insertcount than<PHONE_NUMBER>

duplicate of https://github.com/brianfrankcooper/YCSB/pull/1513 ?

actually I guess https://github.com/brianfrankcooper/YCSB/pull/1513 is duplicate of this, I verified the patch works
I understand there might be overflow problems once we reach 9,223,372,036,854,775,807 but we should worry about that once we get there ;-)


ERC721 Facet

SolidState solidity

After we make this facet, there is no need for DiamondFoundry to be ERC721A, it can contain only factory/registry functionality


ER Diagram (Data model) for Outreach backend

Lets have an ER diagram (data model) created for outreach backend which should be able to handle all of the important use cases such as

managing supply categories (Add, Update, Delete, Move)
managing an outreach organization
managing inventory for an org
managing a volunteer, requester, lead for
managing volunteer inventory
managing encampments
managing requests from encampments
managing supply drops

We have finalized the first version of the ER diagram (irrespective of the database technology in the backend). Final diagram can be found here :  https://docs.google.com/drawings/d/1UyY1rlbhJTCfYcE4-jGjqhhdt7Bp2-69p6FgyF37qfY/edit


Information System using Weed-fs

can weed-fs use as mysql with queries and upload images or files in a specified directory?..i want to create a simple information system using php-resty + weed-fs.. is it possible Mr.Chrisluf?.. but i don't know how can i move the volumeId in a specified folder, and call the imageId by VolumeId to the url with sub directories.. i can't see any website developer that they use weed-fs in their image upload system.. so that i want to know, if this weed-fs can serve as mysql database.. Thank you..

Not sure about your requirements. Seems you can use the filer option?
"weed server -filer=true"
And access the filer via http directly?

i'm using php, ngx_openresty, and your weedfs, sir.. i didn't tried before the filer via http.. but, is it already supported in php?
Date: Wed, 29 Apr 2015 22:57:51 -0700
From<EMAIL_ADDRESS>To<EMAIL_ADDRESS>CC<EMAIL_ADDRESS>Subject: Re: [seaweedfs] Information System using Weed-fs (#132)
Not sure about your requirements. Seems you can use the filer option?
"weed server -filer=true"
And access the filer via http directly?
—
Reply to this email directly or view it on GitHub.


Update /analysis endpoint

[ ] Retrieve prediction from database if provided URL already exists
[ ] Add a /analysis/force to override database values and create another one

I don't like a lot how fixtures persists within all tests. This should be reviewed in a future.


self.promises[contract] = nil in fetchTokenOrContract(for:onlyIfThereIsABalance:) might be wrong

Could this be wrong?
https://github.com/alphawallet/alpha-wallet-ios/blob/74d92639fdf85d3d38c3b4be94033d301c3ec4eb/AlphaWallet/Core/TokensAutodetector/TokenFetcher.swift#L68

@hboon  not sure, does it cause some issues? Logically it should be ok. Make promise, cache it, once it get resolved release it

Oh, I see, the promises properties is a way to track inflight fetches and not a cache. No problem then. I created #5003


Make @SystemProperty a @Repeatable annotation

Since JUnit Jupiter requires Java 8, why don't you just simply configuration by making @SystemProperty a @Repeatable annotation?

Done, v2.0.0 has been released.

Thanks for pointing that out.

Done, v2.0.0 has been released.

Wow... that was fast!
But perhaps a bit too fast: see #3. 😉

That's ok :)
I'll have a look at #3 and if a fix is required I'll apply it and leave 2.1.0-SNAPSHOT open for a week or two.
BTW, thanks for raising these issues, much appreciated.


fewer_rows_than sql error

Describe the bug
There seems to be a SQL error with fewer_rows_than
Steps to reproduce
Use fewer_rows_than on an Oracle database
Expected results
Test Pass or Fail
Actual results
Error 2
Screenshots and log output

System information
The contents of your packages.yml file:
packages:

package: dbt-labs/dbt_utils
version: 0.9.5

Which database are you using dbt with?
Oracle
The output of dbt --version:
dbt-oracle = "^1.2.1"

Additional context
SOLUTION: I suggest you remove * from the final CTE, it is not used anyway. Removing "*," fixes the problem for me
Are you interested in contributing the fix?
This works :)
{% test fewer_rows_than(model, compare_model) %}
{{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model)) }}
{% endtest %}
{% macro default__test_fewer_rows_than(model, compare_model) %}
{#-- Needs to be set at parse time, before we return '' below --#}
{{ config(fail_calc = 'coalesce(row_count_delta, 0)') }}
{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}
with a as (
select count(*) as count_a from {{ model }}

),
b as (
select count(*) as count_b from {{ compare_model }}

),
final as (
select
    case
        -- fail the test if we have more rows than the reference model and return the row count delta
        when count_a > count_b then (count_a - count_b)
        -- fail the test if they are the same number
        when count_a = count_b then 1
        -- pass the test if the delta is positive (i.e. return the number 0)
        else 0
    end as row_count_delta
from a
cross join b

)
select * from final
{% endmacro %}

Hi @nc-rsjo, does Oracle not support this pattern:
select *, id * 2 as double_id
from some_table

? That seems to be the case from this article: http://www.brianlim.ca/2014/02/oracle-select-and-other-fields.html
I don't want to ditch the select * because it is helpful in debugging to have the absolute values as well as the delta, and does work for our officially-supported warehouses.
dbt utils doesn't explicitly support Oracle natively, but I'm happy for you to make changes which add compatibility for other warehouses without breaking support for the ones we do support.
In this case, it looks like this would be supported:
...
final as (

select
    a.count_a,
    b.count_b,
    case
        -- fail the test if we have more rows than the reference model and return the row count delta
        when count_a > count_b then (count_a - count_b)
        -- fail the test if they are the same number
        when count_a = count_b then 1
        -- pass the test if the delta is positive (i.e. return the number 0)
        else 0
    end as row_count_delta
from a
cross join b
)

select * from final

if you try running that and it succeeds, I'd welcome a PR 👍

Hi,
Yes, I can confirm that Oracle does not support the following:
select *, id * 2 as double_id
from some_table
But that following works with Oracle:
final as (
select
a.count_a,

b.count_b,

case

    -- fail the test if we have more rows than the reference model and return the row count delta

    when count_a > count_b then (count_a - count_b)

    -- fail the test if they are the same number

    when count_a = count_b then 1

    -- pass the test if the delta is positive (i.e. return the number 0)

    else 0

end as row_count_delta

from a
cross join b
)
select * from final
It would be nice if it could be corrected, but I fully understand if you prefer not to as, as you mention, Oracle is not explicitly supported natively.
All the best,
Rasmus Stenstrøm Johansen
From: Joel Labes @.>
Sent: 7. december 2022 03:36
To: dbt-labs/dbt-utils @.>
Cc: Rasmus Stenstrøm Johansen @.>; Mention @.>
Subject: Re: [dbt-labs/dbt-utils] fewer_rows_than sql error (Issue #730)
Hi @nc-rsjohttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnc-rsjo&data=05|01|rsjo%40netcompany.com|a90f36c396ae4c4450f208dad7fbd170|8f9b88a73f3e4be3aae42006d4c42306|1|0|638059773800047890|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=gti9AKWfqfFZIlYyPffcDCdF4H8m9YMXtJXN0eB6VL0%3D&reserved=0, does Oracle not support this pattern:
select *, id * 2 as double_id
from some_table
? That seems to be the case from this article: http://www.brianlim.ca/2014/02/oracle-select-and-other-fields.htmlhttps://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.brianlim.ca%2F2014%2F02%2Foracle-select-and-other-fields.html&data=05|01|rsjo%40netcompany.com|a90f36c396ae4c4450f208dad7fbd170|8f9b88a73f3e4be3aae42006d4c42306|1|0|638059773800047890|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=J0ydczs63GWoalHReIK9sP93GhA5J7aLktU9J4M0r%2BQ%3D&reserved=0
I don't want to ditch the select * because it is helpful in debugging to have the absolute values as well as the delta, and does work for our officially-supported warehouses.
dbt utils doesn't explicitly support Oracle natively, but I'm happy for you to make changes which add compatibility for other warehouses without breaking support for the ones we do support.
In this case, it looks like this would be supported:
...
final as (
select
a.count_a,

b.count_b,

case

    -- fail the test if we have more rows than the reference model and return the row count delta

    when count_a > count_b then (count_a - count_b)

    -- fail the test if they are the same number

    when count_a = count_b then 1

    -- pass the test if the delta is positive (i.e. return the number 0)

    else 0

end as row_count_delta

from a
cross join b
)
select * from final
if you try running that and it succeeds, I'd welcome a PR 👍
—
Reply to this email directly, view it on GitHubhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdbt-labs%2Fdbt-utils%2Fissues%2F730%23issuecomment-1340293389&data=05|01|rsjo%40netcompany.com|a90f36c396ae4c4450f208dad7fbd170|8f9b88a73f3e4be3aae42006d4c42306|1|0|638059773800047890|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=RPmJ0H6CZGuhWi5BiO0ICRyU0EMicfWWMJaaM%2FqJhoo%3D&reserved=0, or unsubscribehttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FA3PB3J4LHP6EXMA777NSZ6TWL7Z2BANCNFSM6AAAAAASKONCC4&data=05|01|rsjo%40netcompany.com|a90f36c396ae4c4450f208dad7fbd170|8f9b88a73f3e4be3aae42006d4c42306|1|0|638059773800047890|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=Al%2FtBx7P%2FzpUTqg7D6sUwlXmxzJRHsPwY9Vbnn%2F18g8%3D&reserved=0.
You are receiving this because you were mentioned.Message ID: @.***>

Good to know! In that case if you open a PR which makes the change, I'll happily merge it 🎉

I just upgraded to the latest version 1.0.0, and the addition of the "group by" to fewer_rows_than.sql induced some new PL/Sql errors. I've made a bunch of changes to my local clone of the repo, and I'm afraid I must admit that it might become too big of a compromise to make it compatible with Oracle.
I much appreciate your effort, and dbt-utils is definitely still very helpful  :)

OK! I'll leave this open in case anyone else wants to take a stab at it.