Using BlazePose in browser

Hi, I'd like to build a physical training web application using BlazePose since it says its supported on Mediapipe's main page. I also read the official API is still under construction.. Is there any way to start building the web app using BlazePose currently?
I'm learning more about pose estimation at the moment. Would ml5 posenet be a good option to use for the web app while waiting for the Mediapipe web API to be ready?

@visionari-labs We will be releasing in sept-oct a MP javascript solution API for Upper body BlazePose. I would advise to wait for it

That's correct.  I'm actually the author.  Soon!

Thanks for the update @mgyong and @mhays-google!
Out of curiosity, is there an ETA on full body BlazePose javascript API? Super stoked to try it out!

@mgyong @mhays-google Was the API released for BlazePose? I could find some introduction materials on the MediaPipe website but wasn't able to find any detailed API as to interfacing with the model. The examples used on the website interfaces with the minified file<EMAIL_ADDRESS>Without a documentation or source code it's quite difficult to use it. To give you some context, I'm trying to use the pose detection solution inside a Web Worker and am encountering errors. Do you suggest I wait for the documentation?

@mgyong @mhays-google Was the API released for BlazePose? I could find some introduction materials on the MediaPipe website but wasn't able to find any detailed API as to interfacing with the model. The examples used on the website interfaces with the minified file<EMAIL_ADDRESS>Without a documentation or source code it's quite difficult to use it. To give you some context, I'm trying to use the pose detection solution inside a Web Worker and am encountering errors. Do you suggest I wait for the documentation?


Package being ignored with pipenv 8.3

Describe your environment

OS Type Ubuntu Xenial
Python version: $ python -V python 3.6.1
Pipenv version: $ pipenv --version pipenv, version 8.3.1

Expected result
Assuming we have a pipfile containing alembic = '*'
The alembic package should be :

installed by the command pipenv install
listed by the command pipenv lock -r

Actual result
pipenv install does not install alembic.
pipenv lock -r --verbose returns nothing.
Steps to replicate
pipenv --three
pipenv install alembic
pipenv lock -r

Theses steps are ok with pipenv 8.2.6 on my dev box.

@Djiit do you have a folder called 'alembic' off of your project root?

Yep!

Same issue here, could workaround it by renaming alembic folder (and changing alembic.ini accordingly). Maybe an issue with alembic executable colliding in some way with alembic directory?

@smurail yes, it is an issue with that, which is why I asked.  It is fixed in #958 which will be out in our next release


Updating go-rancher to latest cattle

includes packet integration.

Will approve once cattle PR is merged.
https://github.com/rancherio/cattle/pull/382
@ibuildthecloud and possibly @alena1108 are now using go-rancher as well, so we should get a second thumbs up before merging.


Add script to update each Repo

This is my first stab at a script to update individual repos. I have not fully tested it since I'm trying to set up a safe way to do so on my local machine, but I thought I'd put it out there in case I've gone way off base.

:up::date:

:up::date:


Environment variables are not resolved

When running Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache in my post-install-cmd Composer script I'll get:
[Symfony\Component\Config\Definition\Exception\InvalidTypeException]
Invalid type for path "my_bundle.parameter". Expected int, but got string.

This is because my_bundle.parameter is configured as "%env(my_env_variable)%", which contains integer, but since it is not yet resolved it contains its hash string placeholder name env_my_env_variable_ba5c3119381141c7fed016d647584503 instead.
Is support for environment variables planned or is this not meant to work?

Never mind. I had some other issues which caused placeholders not being resolved.


implement take kernel for null arrays

Which issue does this PR close?
Closes #938 .
Rationale for this change
What changes are included in this PR?
Are there any user-facing changes?

Codecov Report

Merging #939 (1214341) into master (1945f6f) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #939   +/-   ##
=======================================
  Coverage   82.34%   82.35%
=======================================
  Files         168      168
  Lines       48520    48541   +21
=======================================
+ Hits        39955    39976   +21
  Misses       8565     8565

Impacted Files
Coverage Δ

arrow/src/compute/kernels/take.rs
95.22% <100.00%> (+0.14%)
:arrow_up:

parquet/src/encodings/encoding.rs
93.52% <0.00%> (-0.20%)
:arrow_down:

arrow/src/error.rs
15.55% <0.00%> (+2.22%)
:arrow_up:

Continue to review full report at Codecov.

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

Thanks again @bjchambers


delete button clickable if not visible

The delete button is clickable and deletes digits, although I set it to invisible
with setShowDeleteButton(false).
Thanks

Thanks for reporting. It has been fixed and will be updated soon.


Add spider for Contagem/MG

Header and footer of all documents states that it is about both powers
Example of extra edition url: http://www.contagem.mg.gov.br/arquivos/doc/4324complementar2doc-e-20180416055545.pdf

Thanks @giovanisleite !


add parser for kernel_read_file_id enum

kernel_read_file_id in an enum that tells what is being read into the kernel. if merged - it'll be used by security_kernel_read_file event in tracee-ebpf.
this enum was changed between kernel versions.

ok, since we are moving out the parser func, and decided to create a PR for the kernel version helpers - i'm closing this PR, and will open a new one for the kernel version helpers.
thank you


Improve fish integration

The main purpose of this PR, is making the search syntax for file and cd, work as expected with fish key bindings (more details in commit message). A few other changes/improvements are also applied, each in its own commit for easier review.
The only thing that won't work (not specific to this script), is the (inverse-)prefix-exact-match for a query with a dir prefix (when using the --walker-root option). For example, $HOME/^music, won't display the items that start with music in home dir. From what I understand, this is a limitation of fzf:
https://github.com/junegunn/fzf/blob/03d6ba749647947935c237852860101f21c4782b/src/algo/algo.go#L912-L932
trimmedLen does not take account for the prepending path, and if I'm not mistaken, there is currently no way for the function to know about it either.

Tests should work now. (The previous last commit disabled the function when stdin was not a tty)

Thanks. It's a bit hard for me to see what problems this pull request is trying to solve, apart from a few style changes. Can you give some concrete examples, i.e. the use cases that don't work without the patch, but work with it? We could also consider adding some test cases if this deals with fish-specific problems.
https://github.com/junegunn/fzf/blob/add1aec685ffe9033bb1fdcaf0df0eae95c9cacd/test/test_go.rb#L3873

Sure. Pressing Ctrl-T or Alt-C when current command line token contains:

'wild

> 'wild- (line 1): Unexpected end of string, quotes are not balanced
set commandline 'wild
                ^
in function '__fzf_parse_commandline'
        called on line 1 of file -
in command substitution
        called on line 33 of file -
in function 'fzf-file-widget'

'wild'
(the quotes are gone)

.mp3$

> .mp3$- (line 1): Expected a variable name after this $.
set commandline .mp3$
                    ^
in function '__fzf_parse_commandline'
        called on line 1 of file -
in command substitution
        called on line 33 of file -
in function 'fzf-file-widget'
- (line 1): Expected a variable name after this $.
fzf -m --query "mp3$"

!fire

> !fire[: Missing argument at index 8
. = . -a ! != .
                ^
- (line 166):
      if [ "$dir" = "." -a (string sub -l 1 -- $commandline) != '.' ]
         ^
in function '__fzf_parse_commandline'
        called on line 1 of file -
in command substitution
        called on line 33 of file -
in function 'fzf-file-widget'

!^music

> !^music[: Missing argument at index 8
. = . -a ! != .
                ^
- (line 166):
      if [ "$dir" = "." -a (string sub -l 1 -- $commandline) != '.' ]
         ^
in function '__fzf_parse_commandline'
        called on line 1 of file -
in command substitution
        called on line 33 of file -
in function 'fzf-file-widget'

!.mp3$

> !.mp3$- (line 1): Expected a variable name after this $.
set commandline !.mp3$
                     ^
in function '__fzf_parse_commandline'
        called on line 1 of file -
in command substitution
        called on line 33 of file -
in function 'fzf-file-widget'
[: Missing argument at index 8
. = . -a ! != .
                ^
- (line 166):
      if [ "$dir" = "." -a (string sub -l 1 -- $commandline) != '.' ]
         ^
in function '__fzf_parse_commandline'
        called on line 1 of file -
in command substitution
        called on line 33 of file -
in function 'fzf-file-widget'
- (line 1): Expected a variable name after this $.
fzf -m --query ".mp3$"
                    ^

'wild"card' or wild\"card

> 'wild"card'- (line 1): Unexpected end of string, quotes are not balanced
fzf -m --query "wild"card"
                         ^
in function 'fzf-file-widget'

Thanks for the clarification! I'll review the code when I get some time.

LGTM. Merging, thanks!


Correct undefined footnote in Questionnaire Survey Standard

Last line under "desirable"

Is this issue still not fixed, @drpaulralph?

No, so I figured out the problem in the undefined part. So if you open Optimization Studies for example, some attributes have two footnotes in them which cause a problem for the createToolTip() function and it just reads it as "undefined". @Taher-Ghaleb

OK, I see it now. I will fix it.

@Taher-Ghaleb I updated the code on the server, the Optimization Study footnotes are still undefined, is it the same on your localhost?

They work fine on my side.

@arhamarshad1 On the server, I still see the old code for creating tooltips. It's not updated.

@Taher-Ghaleb I see, it works now. Thanks!


Game glitches when reached 9500.

Please fix it!

I'm new to using chrome dev so I didn't really understand what he mearnt in the read me. Could you please give me a run through in clear detail


Add query to get TTFB information for localized WordPress sites

This is relevant for the i18n performance efforts in WordPress core, where we want to measure TTFB improvement of localized WP sites over time.
This originally started with a breakdown by language, but for our efforts that's really not necessary, so a boolean is_localized flag is really enough.
-> side note: looking at passing rates per geographical region would be interesting though as another way to look at this data.
The way this flag is determined is very simple: everything not en/en-us is considered to be localized, i.e. indicating that translation loading is involved.
Query results:
Based on October data set.

client
is_localized
ttfb_passing_rate

desktop
FALSE
0.3069505956

mobile
FALSE
0.1899034159

desktop
TRUE
0.3295843006

mobile
TRUE
0.248387112

So interestingly, localized sites are already doing better today than non-localized ones.

@felixarntz Thanks a lot for your help! This was exactly what has been missing to make this query finally correct.


Update manifest.json

SsaoTweaks mod

Other than the single extra comma, looks good.
As an additional non-blocking note though, the assembly attributes aren't set properly (Properties/AssemblyInfo.cs). Currently not like they matter, but if NML ever does a breaking change in the future and switches to using those as we've had some discussion about, might be smart to set them for future compatibility (and also just good practice anyways I feel like).

looks good to me


multiprocess_file_storage needs fasteners, but it's not listed as a requirement

I'm looking at migrating gsutil to a current version of oauth2client, which has done away with locked_file, multistore_file, etc. (as mentioned at length in the discussion at https://github.com/google/oauth2client/pull/504).
When trying to import multistore_file's replacement, multiprocessing_file_storage, from oauth2client.contrib, I get the error message:
ImportError: No module named fasteners
I get this both with the repo version and pip-installed version of oauth2client 4.0.0.  It seems that fasteners wasn't added to the list of requirements as part of https://github.com/google/oauth2client/commit/66d47251fd08abf57fd1d80569901346b91cd422.

@houglum It's an optional requirement, though I don't think it's specified as an extra?

It's not listed setup.py under the install_requires section (and there's no extras_require section at all).  It's a pretty brittle workaround to just add fasteners as a dependency to any package using oauth2client; it would be just as easy (and better practice) for oauth2client to correctly list all necessary dependencies, whether it be a direct requirement or an extra.
If you do decide to include it under extras_require rather than install_require, it might also be worth adding a note to the file docstring for multiprocessing_file_storage.py indicating that oauth2client[<extras_label>] should be installed in order to use it.

Thank you for creating this issue, however, this project is deprecatedand we will only be addressing critical security issues. You can read moreabout this deprecation here.
If you need support or help using this library, we recommend that you ask yourquestion on StackOverflow.
If you still think this issue is relevant and should be addressed, pleasecomment and let us know!

For those following along that may need to use oauth2client with legacy code, you'll just need to mark fasteners as one of your explicit dependencies.  Gsutil does this here:
https://github.com/GoogleCloudPlatform/gsutil/blob/392c8240503a816341158c0883efe8e607edca40/setup.py#L41

Thanks Matt!
On Thu, May 24, 2018 at 12:51 PM Matt Houglum<EMAIL_ADDRESS>wrote:

For those following along that may need to use oauth2client with legacy
code, you'll just need to mark fasteners as one of your explicit
dependencies. Gsutil does this here:
https://github.com/GoogleCloudPlatform/gsutil/blob/392c8240503a816341158c0883efe8e607edca40/setup.py#L41
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/google/oauth2client/issues/696#issuecomment-391838052,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAPUc9Hdy9sAfcS42xqSuEw6JNjJdLQvks5t1w9VgaJpZM4LzYRs
.


[Feature] How to set test_parameters to pass TC-DA-1.7

Feature description
To convey your test_parameters configuration and the issue you're facing in English, you might write:

Issue Description
I am encountering the following error in my test logs:
asserts.assert_equal(len(self.matter_test_config.discriminators), 1, "Only one device can be tested with SDK DAC")
TypeError: object of type 'NoneType' has no len()

Test Parameters
Here is the configuration for test_parameters that I am using:
{
  "bool-arg": "allow_sdk_dac:True",
  "discriminators": [
    3840
  ]
}

Request
Could you help me understand why self.matter_test_config.discriminators might be None, and how I can ensure it is properly populated with the values from test_parameters?

Use Cases
none
Test Cases
[MatterTest] 08-01 11:02:41.482 INFO [Test] test_TC_DA_1_7
[MatterTest] 08-01 11:02:41.488 ERROR Exception occurred in test_TC_DA_1_7.
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/mobly/base_test.py", line 783, in exec_one_test
test_method()
File "/root/python_testing/scripts/sdk/matter_testing_support.py", line 1547, in async_runner
return asyncio.run(runner_with_timeout)
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/usr/lib/python3.10/asyncio/tasks.py", line 445, in wait_for
return fut.result()
File "/root/python_testing/scripts/sdk/TC_DA_1_7.py", line 117, in test_TC_DA_1_7
asserts.assert_equal(len(self.matter_test_config.discriminators), 1, "Only one device can be tested with SDK DAC")
TypeError: object of type 'NoneType' has no len()
[MatterTest] 08-01 11:02:41.498 INFO [Test] test_TC_DA_1_7 ERROR
[MatterTest] 08-01 11:02:41.507 INFO Summary for test class TC_DA_1_7: Error 1, Executed 1, Failed 0, Passed 0, Requested 1, Skipped 0
[MatterTest] 08-01 11:02:41.510 INFO Summary for test run MatterTest@08-01-2024_11-02-41-363:
Total time elapsed 0.09546623201458715s
Artifacts are saved in "/tmp/matter_testing/logs/MatterTest/08-01-2024_11-02-41-363"
Test summary saved in "/tmp/matter_testing/logs/MatterTest/08-01-2024_11-02-41-363/test_summary.yaml"
Test results: Error 1, Executed 1, Failed 0, Passed 0, Requested 1, Skipped 0
Additional Information
none

@ccruzagralopes pls help

@yf-fan-org Can you please send the full TH log and the full Project Config?

@ccruzagralopes ok
DA-1-7_2024_08_01_18_07_50.log
config :
{
"config": {
"test_parameters": {
"int-arg": "use_pase_only:0",
"manual_code": "34970112332"
},
"network": {
"wifi": {
"ssid": "testharness",
"password": "wifi-password"
},
"thread": {
"rcp_serial_path": "/dev/ttyACM0",
"rcp_baudrate": 115200,
"on_mesh_prefix": "fd11:22::/64",
"network_interface": "eth0",
"dataset": {
"channel": "15",
"panid": "0x1234",
"extpanid": "1111111122222222",
"networkkey": "00112233445566778899aabbccddeeff",
"networkname": "DEMO"
},
"otbr_docker_image": null
}
},
"dut_config": {
"discriminator": "3840",
"setup_code": "20202021",
"pairing_mode": "onnetwork",
"chip_timeout": null,
"chip_use_paa_certs": false,
"trace_log": true
}
},
"pics": {
"clusters": {
"Descriptor Cluster TestPlan": {
"name": "Descriptor Cluster TestPlan",
"items": {
"DESC.S": {
"number": "DESC.S",
"enabled": true
},
"DESC.S.A0000": {
"number": "DESC.S.A0000",
"enabled": true
},
"DESC.S.A0001": {
"number": "DESC.S.A0001",
"enabled": true
},
"DESC.S.A0002": {
"number": "DESC.S.A0002",
"enabled": true
},
"DESC.S.A0003": {
"number": "DESC.S.A0003",
"enabled": true
},
"DESC.S.A0004": {
"number": "DESC.S.A0004",
"enabled": false
},
"DESC.S.F00": {
"number": "DESC.S.F00",
"enabled": false
}
}
}
}
}
}

Thanks for the information!
It seems like the project config provided here is a bit different than what it was in the time of the test execution.
The discriminator doesn't need to be on test_parameters, it should be provided in dut_config: discriminator. In the TH logs, it seems like the project config had discriminators: [3840, 3841] at the time of the test execution, and this test case verifies that only one discriminator is provided.
INFO       | 2024-08-01 11:01:37.999634 | Sending command to SDK container: python3 /root/python_testing/scripts/sdk/test_harness_client.py commission --trace-to json:log --discriminator 3840 --passcode 20202021 --commissioning-method on-network --bool-arg allow_sdk_dac:True --discriminators [3840, 3841]

I believe that if you remove discriminators from test_parameters, the test case should not have that issue anymore.

Seems originator has lost interest. Please reopen if you are still facing the problem.


Created example which includes Calcite Components, Calcite App Compon…

…ents, and Webpack

@rslibed  looks good. There are a few more changes I plan on making to the application-base logic but I'll merge those into the application-base repo and then we can update this.

@rslibed  One enhancement that might be nice would be to extend this sample to use the calcite-app-components to have a simple layout (header, footer, and left or right panel) just as a 'getting started' demo app

Created a layout with calcite-modal, calcite-button, calcite-shell, calcite-shell-panel, calcite-block, and calcite-section.

Looks good @rslibed  go ahead and merge when ready.


Icon with text

Hi, is there any way we can add icon with text and make the text orientation vertical instead of horizontal. Actually I want to achieve this view. Is there anyway that your library can help me or you can suggest some other solution to achieve this view. Thanks

Hey, currently there is no way to do it, If you want to add this feature yourself, you can look into WheelView.kt and modify it a bit to add support for icons and text orientation. I'm happy to review PR.


Allow customizing the socket

Please ensure your pull request adheres to the following guidelines:

[x] make sure to link the related issues in this description
[ ] when merging / squashing, make sure the fixed issue references are visible in the commits, for easy compilation of release notes

Related Issues
Fixes #295

Thanks for posting this PR. Apart from  https://github.com/adobe/helix-fetch/issues/295#issuecomment-1202686886
I do have some comments after a cursory look at the diff:

signal is not handled
concurrency / race conditions are not handled (e.g. N parallel requests to same origin)
when providing a socket factory a new socket will be created for every request, independent of the origin and protocol

closing due to no activity


Remove duplicate canonical links

Context

While the original issue with duplicate canonical links has been fixed by Yoast SEO, it turns out there's room for improvement on our side as well to prevent duplicates at the AMP sanitization stage.
Summary

This PR updates the canonical link sanitizer to remove duplicates.
Relevant Technical Choices

Removes all but the first found canonical link
To-do

User-facing changes

N/A
Testing Instructions

[x] This is a non-user-facing change and requires no QA

This PR can be tested by following these steps:

Install and activate Yoast SEO 17.2
Ensure your site is not discouraging search engines from indexing
Publish a story
Verify there is no The tag 'link rel=canonical' appears more than once in the document. AMP validation error

Reviews
Does this PR have a security-related impact?

No
Does this PR change what data or activity we track or use?

No
Does this PR have a legal-related impact?

No
Checklist

[x] This PR addresses an existing issue and I have linked this PR to it in ZenHub
[x] I have tested this code to the best of my abilities
[x] I have verified accessibility to the best of my abilities (docs)
[x] I have verified i18n and l10n (translation, right-to-left layout) to the best of my abilities
[x] This code is covered by automated tests (unit, integration, and/or e2e) to verify it works as intended (docs)
[x] I have added documentation where necessary
[x] I have added a matching Type: XYZ label to the PR

Fixes #9010

IIUC, this will also fix the Yoast issue without the mini-plugin?

yes!


WIP: create db specific sub-modules for relational extension

currently only sql-generation code is being moved (connection stuff will be moved after refactor of authentication code). It creates separate modules for

snowflake
redshift
databricks
bigquery

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


F# Record Type

F#'s record type doesn't come through. E.g.,
{"$types":{"Wrapper.Functions+Error, Wrapper, Version=<IP_ADDRESS>, Culture=neutral, PublicKe
yToken=null":"1"},"$type":"1"}

I created the following record:
type Error = {Message: string}
let result = fastJSON.ToJson {Message = "my string"}

I tried just passing an exception object, the results were better but for some reason it didn't pass the Message property. I'm just using a string for now.
{"$types":{"System.FormatException, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089":"1"
},"$type":"1","HelpLink":null,"Source":"mscorlib","HResult":-2146233033}

I have no experience with f# but it could be because of how f# implements "functional anonymous types" on top of the CLR.

Try setting EnableAnonymousTypes = true and UseExtensions = false in JSONParameters


Features request: base64, reversestr, rot13, urlencode, mixed-encodings, any-charsets, mixed-charsets, decimal, octal, binary...

Hi,
I would like to request some very useful options to go along with current "wide, ascii, nocase and fullword" options:
Some of them are self-explanatory, anyway I'll provide a sample:

base64:
$ = "potato" base64 will match "cG90YXRv"

reversestr:
$ = "potato" reversestr will match "otatop"

rot13:
$ = "potato" rot13 will match "cbgngb"

urlencode:
$ = "potato" urlencode will match "%70%6f%74%61%74%6f"

mixed-encodings:
$ = "potato" encodings will match anything with things like "&#112\x6f%74\x61t%6fo" (different charset encodings etc...)

decimal:
$ = "potato" binary will match "112 111 116 97 116 111" or "#112#111#116#97#116#111" or "&#112&#111&#116&#97&#116&#111"

octal:
$ = "potato" binary will match "160 157 164 141 164 157" or "\160\157\164\141\164\157"

binary:
$ = "potato" binary will match "01110000 01101111 01110100 01100001 01110100 01101111"

other options that would be very useful:

match new-charsets (utf7, Japansese, Chinese, Russian, etc...)
match strings with mixed-charsets
gzcompressed (match gzcompressed bytes)
gzinflated (match gzinflated bytes)

thankyou for your time and great tool! :)

I've slowly been working on some of these (and others) but it got put on hold for something else recently. I still intend to finish it though.


testinfra conflicts with pytest-ansible

When both testinfra and pytest-ansible are installed, testinfra fails with the following output:
$ testinfra --connection=ansible --sudo --ansible-inventory=inventory test_proxy.py
Traceback (most recent call last):
  File "/home/ivan/cde/devops/devops-env/bin/testinfra", line 11, in <module>
    sys.exit(main())
  File "/home/ivan/cde/devops/devops-env/lib/python2.7/site-packages/testinfra/main.py", line 100, in main
    return pytest.main()
  File "/home/ivan/cde/devops/devops-env/lib/python2.7/site-packages/_pytest/config.py", line 38, in main
    config = _prepareconfig(args, plugins)
  File "/home/ivan/cde/devops/devops-env/lib/python2.7/site-packages/_pytest/config.py", line 117, in _prepareconfig
    pluginmanager=pluginmanager, args=args)
  File "/home/ivan/cde/devops/devops-env/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py", line 724, in __call__
    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  File "/home/ivan/cde/devops/devops-env/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/home/ivan/cde/devops/devops-env/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
    _MultiCall(methods, kwargs, hook.spec_opts).execute()
  File "/home/ivan/cde/devops/devops-env/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py", line 595, in execute
    return _wrapped_call(hook_impl.function(*args), self.execute)
  File "/home/ivan/cde/devops/devops-env/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py", line 249, in _wrapped_call
    wrap_controller.send(call_outcome)
  File "/home/ivan/cde/devops/devops-env/lib/python2.7/site-packages/_pytest/helpconfig.py", line 28, in pytest_cmdline_parse
    config = outcome.get_result()
  File "/home/ivan/cde/devops/devops-env/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py", line 279, in get_result
    _reraise(*ex)  # noqa
  File "/home/ivan/cde/devops/devops-env/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py", line 264, in __init__
    self.result = func()
  File "/home/ivan/cde/devops/devops-env/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py", line 596, in execute
    res = hook_impl.function(*args)
  File "/home/ivan/cde/devops/devops-env/lib/python2.7/site-packages/_pytest/config.py", line 852, in pytest_cmdline_parse
    self.parse(args)
  File "/home/ivan/cde/devops/devops-env/lib/python2.7/site-packages/_pytest/config.py", line 957, in parse
    self._preparse(args)
  File "/home/ivan/cde/devops/devops-env/lib/python2.7/site-packages/_pytest/config.py", line 922, in _preparse
    self.known_args_namespace = ns = self._parser.parse_known_args(args)
  File "/home/ivan/cde/devops/devops-env/lib/python2.7/site-packages/_pytest/config.py", line 490, in parse_known_args
    return self.parse_known_and_unknown_args(args)[0]
  File "/home/ivan/cde/devops/devops-env/lib/python2.7/site-packages/_pytest/config.py", line 496, in parse_known_and_unknown_args
    optparser = self._getparser()
  File "/home/ivan/cde/devops/devops-env/lib/python2.7/site-packages/_pytest/config.py", line 475, in _getparser
    arggroup.add_argument(*n, **a)
  File "/usr/lib64/python2.7/argparse.py", line 1308, in add_argument
    return self._add_action(action)
  File "/usr/lib64/python2.7/argparse.py", line 1509, in _add_action
    action = super(_ArgumentGroup, self)._add_action(action)
  File "/usr/lib64/python2.7/argparse.py", line 1322, in _add_action
    self._check_conflict(action)
  File "/usr/lib64/python2.7/argparse.py", line 1460, in _check_conflict
    conflict_handler(action, confl_optionals)
  File "/usr/lib64/python2.7/argparse.py", line 1467, in _handle_conflict_error
    raise ArgumentError(action, message % conflict_string)
argparse.ArgumentError: argument --ansible-inventory: conflicting option string(s): --ansible-inventory

Removing --ansible-inventory from the command line does not change the output. Uninstalling pytest-ansible and running testinfra fixes the issue, but leaves my tests which use it broken.
Contents of test_proxy.py:
# Proxy servers must have nginx installed, running and enabled on boot
def test_nginx(Package, Service):
    assert Package('nginx').is_installed
    assert Service('nginx').is_running
    assert Service('nginx').is_enabled

Environment:
Python 2.7.11
pip 7.1.2
ansible 1.9.4
configured module search path = None
virtualenv 13.1.2
testinfra 1.0.1
pytest-ansible 1.3.1
pytest 2.8.4

(testinfra command is an alias to py.test)
Both pytest-ansible and testinfra are pytest plugins that define the same --ansible-inventory option (pytest options scope is global). I'll look if there is a way to handle this in pytest.
BTW, I think you can easily rewrite your pytest-ansible tests with testinfra with the Ansible module: https://testinfra.readthedocs.org/en/latest/modules.html#ansible ;)

I'm using pytest-ansible to test custom modules and/or plugins, not the infrastructure itself (so it's not viable to just substitute it with testinfra). With testinfra I plan to rewrite all of my playbook's/role's unit tests (which are currently just special ansible playbooks) and expand infrastructure tests, if we can get it to work alongside pytest-ansible.
Let me know if I can help with anything.

As a workaround you can add -p no:pytest-ansible when running testinfra tests and -p no:testinfra when running pytest-ansible tests.

Is this still a valid issue? https://github.com/philpep/testinfra/issues/58#issuecomment-175734800 seems like a fine solution. That pytest-ansible package hasn't seen a release for quite some time ... wondering if this is relevant anymore.

pytest-ansible had 5 releases in 2023.

I'm having a similar issue for a different arg - any ideas what I need to do?
python3.11 -m venv venv
source venv/bin/activate
pip install pytest
pip install pytest-ansible
pip install pytest-testinra
pip install ansible

pip list

Package          Version
---------------- -------
ansible          8.4.0
ansible-core     2.15.4
cffi             1.16.0
coverage         7.3.2
cryptography     41.0.4
iniconfig        2.0.0
Jinja2           3.1.2
MarkupSafe       2.1.3
packaging        23.2
pip              23.2.1
pluggy           1.3.0
pycparser        2.21
pytest           7.4.2
pytest-ansible   4.1.0
pytest-testinfra 9.0.0
PyYAML           6.0.1
resolvelib       1.0.1
setuptools       68.1.2
snakeviz         2.2.0
tornado          6.3.3

pytest --collect-only
> argparse.ArgumentError: argument --connection: conflicting option string: --connection

 pytest --collect-only -p no:pytest-ansible
> works

pytest --collect-only -p no:testinfra -p no:pytest-testinfra
> argparse.ArgumentError: argument --connection: conflicting option string: --connection

I've hit this issue too, and thanks to all the people that contributed to this thread I was able to achieve a solution, sharing it in case it is useful to someone else.
My problem
Using pytest-molecule for testing ansible roles in a monorepo, where each role is tested using molecule + testinfra.
This is an example layout
.
├── collections
│   └── ansible_collections
│       └── auburus
│           └── test_collection
│               ├── playbook.yml
│               └── roles
│                   └── test_role
│                       ├── molecule
│                       │   └── default
│                       │       ├── converge.yml
│                       │       ├── molecule.yml
│                       │       └── tests
│                       │           └── test_role.py
│                       └── tasks
│                           └── main.yml
├── poetry.lock
└── pyproject.toml

In September pytest-molecule was archived, and the path forward is pytest-ansible, so the goal is to move to that one. But we couldn't move since pytest-ansible and pytest-testinfra got the conflict described in this issue.
Solution
Get each molecule test to ignore pytest ansible.
# molecule.yaml
...
verifier:
  name: testinfra
  options:
    # pytest-ansible conflicts with --connection
    p: "no:pytest-ansible"

    # avoid loading global pyproject.toml options, so we don't
    # load the setting that says "disable testinfra"
    c: "."

At the top level, ignore pytest-testinfra
# pyproject.toml
[tool.pytest.ini_options]
norecursedirs="molecule"

# testinfra and pytest-ansible conflict as pytest
# plugins. We disable testinfra when running "all" tests,
# and disable `pytest-ansible` when running each molecule test
addopts = "-p no:pytest11.testinfra"

Finally follow this guide so all molecule tests are loaded when running pytest.
# tests/test_molecule.py
"""Tests for molecule scenarios."""
from __future__ import absolute_import, division, print_function

from pytest_ansible.molecule import MoleculeScenario

def test_integration(molecule_scenario: MoleculeScenario) -> None:
    """Run molecule for each scenario.

    :param molecule_scenario: The molecule scenario object
    """
    proc = molecule_scenario.test()
    assert proc.returncode == 0

Results

pytest can run all molecule tests from top level ✅

$ pytest --co
============================= test session starts =============================
platform linux -- Python 3.11.5, pytest-7.4.3, pluggy-1.3.0
ansible: 2.16.0
rootdir: /tmp/example-pytest-ansible-testinfra-conflict
configfile: pyproject.toml
plugins: ansible-4.1.1
collected 1 item

<Module tests/test_molecule.py>
  <Function test_integration[test-default]>

=============================  1 test collected in 0.04s =============================

each role can be tested with molecule test ✅

$ molecule test
...
WARNING  Skipping, side effect playbook not configured.
INFO     Running default > verify
INFO     Executing Testinfra tests found in /tmp/example-pytest-ansible-testinfra-conflict/collections/ansible_collections/auburus/test/roles/test/molecule/default/tests/...
============================= test session starts ==============================
platform linux -- Python 3.11.5, pytest-7.4.3, pluggy-1.3.0
rootdir: /tmp/example-pytest-ansible-testinfra-conflict/collections/ansible_collections/auburus/test/roles/test/molecule
configfile: default
plugins: testinfra-10.0.0
collected 1 item

tests/test_role.py .                                                     [100%]

============================== 1 passed in 0.70s ===============================
INFO     Verifier completed successfully.
...

I ran into this over a year ago, but didn't have enough time to produce two documented PRs for the concurrent changes to both repos. I think pytest has a better way to deal with the conflict, which isn't at all easy to debug due to the way exception handling occurs when molecule calls pytest which dynamically loads plugins.
The TL;DR, both modules try to use the same command line options. My solution was to preface each option with a string specific to each module to deconflict.  You can see the changes here:
https://github.com/ansible/pytest-ansible/compare/main...davedittrich:pytest-ansible:develop
https://github.com/pytest-dev/pytest-testinfra/compare/main...davedittrich:pytest-testinfra:develop
If someone else has time to resolve this, that would be great. :)


Detect file renames/moves in diffs

Right now it just shows as deleted in old path, and added in new path.

Would be nice to have this implemented.
Gitea did this: https://github.com/go-gitea/gitea/issues/72

Thanks your info!

Please try it on develop branch or https://try.gogs.io

Yeah, it works!
It might be better not to render images if they're unchanged though (simply renamed). If you rename a huge folder with images, they'll all render without a reason.

It might be better not to render images if they're unchanged though (simply renamed). If you rename a huge folder with images, they'll all render without a reason.

Good point, let me work on it.

OK, pushed to develop and updated https://try.gogs.io

I've deleted my test account, so can't test again.

Anyway, the main problem is resolved :smile:


fix: biggest painpoints

This PR contains:

corrections for CI dockerhub push
BeeJS  and dockerode version update
tailoring tests for the new environment
docs update
2.0.1 blockchain release

funding geth wallet

Release v3.0.1 addresses this.


[P4 Sequencing v2] Create sequencing utils and add data structures that represent an entry that is referred to by another entry.

PR Description :
[P4 Sequencing v2] Create sequencing utils and add data structures that represent an entry that is referred to by another entry.
Build Results :
Executed 1 out of 32 tests: 32 tests pass.
INFO: Build completed successfully, 7 total actions
bibhuprasad@eaba4ee0062c:/sonic/src/sonic-p4rt/sonic-pins$ bazel build $BAZEL_BUILD_OPTS p4_pdpi/...
INFO: Analyzed 78 targets (0 packages loaded, 0 targets configured).
INFO: Found 78 targets...
INFO: Elapsed time: 0.527s, Critical Path: 0.01s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
bibhuprasad@eaba4ee0062c:/sonic/src/sonic-p4rt/sonic-pins$ bazel build $BAZEL_BUILD_OPTS p4rt_app/...
INFO: Analyzed 106 targets (1 packages loaded, 113 targets configured).
INFO: Found 106 targets...
INFO: Elapsed time: 0.863s, Critical Path: 0.02s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
bibhuprasad@eaba4ee0062c:/sonic/src/sonic-p4rt/sonic-pins$
UT Results :
bibhuprasad@eaba4ee0062c:/sonic/src/sonic-p4rt/sonic-pins$ bazel test $BAZEL_BUILD_OPTS p4_pdpi/...
INFO: Analyzed 78 targets (1 packages loaded, 75 targets configured).
INFO: Found 46 targets and 32 test targets...
INFO: Elapsed time: 3.463s, Critical Path: 2.70s
INFO: 7 processes: 4 internal, 3 linux-sandbox.
INFO: Build completed successfully, 7 total actions
//p4_pdpi:ir_tools_test                                         (cached) PASSED in 0.4s
//p4_pdpi/netaddr:ipv4_address_and_network_address_test         (cached) PASSED in 0.2s
//p4_pdpi/netaddr:ipv6_address_test                             (cached) PASSED in 0.2s
//p4_pdpi/netaddr:mac_address_test                              (cached) PASSED in 0.2s
//p4_pdpi/packetlib:packetlib_fuzzer_test                       (cached) PASSED in 15.5s
//p4_pdpi/packetlib:packetlib_test                              (cached) PASSED in 0.1s
//p4_pdpi/packetlib:packetlib_test_runner                       (cached) PASSED in 0.0s
//p4_pdpi/packetlib:packetlib_unit_test                         (cached) PASSED in 1.1s
//p4_pdpi/string_encodings:bit_string_test                      (cached) PASSED in 0.2s
//p4_pdpi/string_encodings:byte_string_test                     (cached) PASSED in 0.2s
//p4_pdpi/string_encodings:decimal_string_test                  (cached) PASSED in 0.1s
//p4_pdpi/string_encodings:decimal_string_test_runner           (cached) PASSED in 0.0s
//p4_pdpi/string_encodings:hex_string_test                      (cached) PASSED in 0.1s
//p4_pdpi/string_encodings:hex_string_test_runner               (cached) PASSED in 0.3s
//p4_pdpi/string_encodings:readable_byte_string_test            (cached) PASSED in 0.2s
//p4_pdpi/testing:helper_function_test                          (cached) PASSED in 0.3s
//p4_pdpi/testing:info_test                                     (cached) PASSED in 0.1s
//p4_pdpi/testing:info_test_runner                              (cached) PASSED in 0.1s
//p4_pdpi/testing:main_pd_test                                  (cached) PASSED in 0.0s
//p4_pdpi/testing:mock_p4_runtime_server_test                   (cached) PASSED in 0.4s
//p4_pdpi/testing:packet_io_test                                (cached) PASSED in 0.1s
//p4_pdpi/testing:packet_io_test_runner                         (cached) PASSED in 0.0s
//p4_pdpi/testing:rpc_test                                      (cached) PASSED in 0.1s
//p4_pdpi/testing:rpc_test_runner                               (cached) PASSED in 0.1s
//p4_pdpi/testing:sequencing_test                               (cached) PASSED in 0.1s
//p4_pdpi/testing:sequencing_test_runner                        (cached) PASSED in 0.1s
//p4_pdpi/testing:table_entry_gunit_test                        (cached) PASSED in 0.3s
//p4_pdpi/testing:table_entry_test                              (cached) PASSED in 0.2s
//p4_pdpi/testing:table_entry_test_runner                       (cached) PASSED in 0.1s
//p4_pdpi/utils:annotation_parser_test                          (cached) PASSED in 0.2s
//p4_pdpi/utils:ir_test                                         (cached) PASSED in 0.3s
//p4_pdpi:sequencing_util_test                                           PASSED in 0.0s
Executed 1 out of 32 tests: 32 tests pass.
INFO: Build completed successfully, 7 total actions
bibhuprasad@eaba4ee0062c:/sonic/src/sonic-p4rt/sonic-pins$ bazel test $BAZEL_BUILD_OPTS p4rt_app/...
INFO: Analyzed 106 targets (0 packages loaded, 0 targets configured).
INFO: Found 68 targets and 38 test targets...
INFO: Elapsed time: 0.392s, Critical Path: 0.01s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
//p4rt_app/event_monitoring:app_state_db_port_table_event_test  (cached) PASSED in 0.5s
//p4rt_app/event_monitoring:app_state_db_send_to_ingress_port_table_event_test (cached) PASSED in 0.5s
//p4rt_app/event_monitoring:config_db_node_cfg_table_event_test (cached) PASSED in 0.5s
//p4rt_app/event_monitoring:config_db_port_table_event_test     (cached) PASSED in 0.5s
//p4rt_app/event_monitoring:debug_data_dump_events_test         (cached) PASSED in 0.5s
//p4rt_app/event_monitoring:state_verification_events_test      (cached) PASSED in 0.5s
//p4rt_app/p4runtime:ir_translation_test                        (cached) PASSED in 0.4s
//p4rt_app/p4runtime:p4info_verification_schema_test            (cached) PASSED in 0.4s
//p4rt_app/p4runtime:p4info_verification_test                   (cached) PASSED in 0.4s
//p4rt_app/p4runtime:packetio_helpers_test                      (cached) PASSED in 0.5s
//p4rt_app/sonic:app_db_acl_def_table_manager_test              (cached) PASSED in 0.4s
//p4rt_app/sonic:app_db_manager_test                            (cached) PASSED in 0.4s
//p4rt_app/sonic:app_db_to_pdpi_ir_translator_test              (cached) PASSED in 0.4s
//p4rt_app/sonic:hashing_test                                   (cached) PASSED in 0.4s
//p4rt_app/sonic:packetio_impl_test                             (cached) PASSED in 0.3s
//p4rt_app/sonic:packetio_port_test                             (cached) PASSED in 0.3s
//p4rt_app/sonic:response_handler_test                          (cached) PASSED in 0.3s
//p4rt_app/sonic:state_verification_test                        (cached) PASSED in 0.2s
//p4rt_app/sonic:vrf_entry_translation_test                     (cached) PASSED in 0.4s
//p4rt_app/sonic/adapters:fake_sonic_db_table_test              (cached) PASSED in 0.1s
//p4rt_app/tests:acl_table_test                                 (cached) PASSED in 1.0s
//p4rt_app/tests:action_set_test                                (cached) PASSED in 0.7s
//p4rt_app/tests:api_access_test                                (cached) PASSED in 0.6s
//p4rt_app/tests:arbitration_test                               (cached) PASSED in 0.7s
//p4rt_app/tests:fixed_l3_tables_test                           (cached) PASSED in 2.2s
//p4rt_app/tests:forwarding_pipeline_config_test                (cached) PASSED in 3.3s
//p4rt_app/tests:grpc_behavior_test                             (cached) PASSED in 5.1s
//p4rt_app/tests:p4_constraints_test                            (cached) PASSED in 0.1s
//p4rt_app/tests:p4_constraints_test_runner                     (cached) PASSED in 0.1s
//p4rt_app/tests:p4_programs_test                               (cached) PASSED in 1.2s
//p4rt_app/tests:packetio_test                                  (cached) PASSED in 3.3s
//p4rt_app/tests:port_name_and_id_test                          (cached) PASSED in 0.9s
//p4rt_app/tests:response_path_test                             (cached) PASSED in 2.3s
//p4rt_app/tests:role_test                                      (cached) PASSED in 0.7s
//p4rt_app/tests:state_verification_test                        (cached) PASSED in 1.0s
//p4rt_app/tests/lib:app_db_entry_builder_test                  (cached) PASSED in 0.0s
//p4rt_app/utils:event_data_tracker_test                        (cached) PASSED in 0.0s
//p4rt_app/utils:table_utility_test                             (cached) PASSED in 0.4s
Executed 0 out of 38 tests: 38 tests pass.
INFO: Build completed successfully, 1 total action
bibhuprasad@eaba4ee0062c:/sonic/src/sonic-p4rt/sonic-pins$

Co-authored-by: Srikishen Pondicherry Shanmugam<EMAIL_ADDRESS>


Remove individual makefiles in separate tests

I would like to build the test binary by calling
eden test build
This calls make utility and places the binary in the same folder.
Then run the test by calling
eden test run
Please confirm @rvs

I do not agree with this idea. Firstly, from the very beginning, we considered EDEN as a separate application, which is only required to run the EVE testing runtime environment and binary test files. Without the need to install and configure any external development environment. If we talk about the need to make, go, etc. to run the tests, we completely change this concept.
Moreover, hiding the “make” machinery under the hood of some mysterious tool is not what the programmer usually expects.
And, of course, this makes it very difficult to move the tests to another place. For example, some time ago, the issue of transferring EVE integration tests directly to the EVE development tree was discussed. In this implementation, you can simply get any of our test directories, move it to any place, change something, rebuild the test binary file and send it to testers who simply use it with the eden test command.

I do not restrict having make for a sophisticated developer if he wants to. But I'd require some simplistic behavior and requirements like in Layer 2 https://wiki.lfedge.org/display/EVE/Tests for the sake of usability and maintainability of the community.

Are there really any problems with "make" in the community?

I think you're both right @sadov @mydatascience
Here's how I look at this: ultimately, it is very likely that the tests will be driven by the Makefile but it won't be Eden's Makefile -- it will EVE's Makefile.
When it comes to Eden -- I don't actually mind the Makefile infra, but it feels odd to use it there compared to having a top level Eden command.
At the same time -- this is one of those issue where I feel we're in a transition state and it maybe best to figure out where that transition leads us first. IOW, if we happen to move all the tests to EVE in the next few weeks -- that'll provide a very clear answer for top level eden test command vs. Makefile target.

Not to do. Did escripts


dotnet new command  not returning to terminal

when i run dotnet new console from vscode terminal , its stuck for a long time and returns after a delayed time . There is some bug in the dotnet new command when used  in vscode terminal

Please provide a screenshot or a gif illustrating the problem (attaching images won't work via email, you need to go to github.com). See this wiki page for more general info on how to report actionable terminal issues.
/label "needs more info" integrated-terminal


feat: validate pr title to be conventional

@iambumblehead in settings can you disallow creating a merge commit
following should not be allowed

@lwhiteley it is done


Add wr-onedrive documentation.

Jira: https://keboola.atlassian.net/browse/COM-246
I wrote this ex-onedrive documentation in a style similar to Google Sheets Extractor.


fusion module, accuracy about cifar100

what is your shuffle code in your fusion module?
what is your model architecture in cifar-100? I just changed front two downsample modules based on the ParNet for Imagenet in the paper. But the accuracy is lower. And How do you set the LR, MILESTONES  and NUM_EPOCH to meet high accuracy?

Hi,
Thanks for your interest in our work.

The shuffle code is simple mixing of the channels after concatenation (more info in #5).

As described in the paper, following are the changes in the model architecture:

"First, we replace the Downsampling blocks at depths 1 and 2 with RepVGGSSE blocks. To reduce the number of parameters in the last layer, we replace the last Downsampling block, which has a large width, with a narrower 1×1 convolution layer. Also, we reduce the number of parameters by removing one block from each stream and adding a block at depth 3."

"For CIFAR10 and CIFAR100, we increase the width of the network while keeping the resolution
at 32 and the number of streams at 3"

For training on CIFAR, as we described in the paper, we adopt the following training scheme:
"We adopt a standard data augmentation scheme (mirroring/shifting) that is widely used for these two datasets (He et al., 2016a; Zagoruyko& Komodakis, 2016; Huang et al., 2017). We train for 400 epochs with a batch size of 128. The initial learning rate is 0.1 and is decreased by a factor of 5 at 30%, 60%, and 80% of the epochs as in (Zagoruyko & Komodakis, 2016). Similar to prior works (Zagoruyko & Komodakis, 2016; Huang et al., 2016), we use a weight decay of 0.0003 and set dropout in the convolution layer at 0.2 and dropout in the final fully-connected layer at 0.2 for all our networks on both datasets. We train each network on 4 GPUs (a batch size of 32 per GPU) and report the final test set accuracy."
Please let us know if there is any specific question you have.
Thanks,
Ankit

@imankgoyal Would the code for CIFAR10/100 be released in the near future? Thanks!


Initial support for clang::CodeGen::ABIArgInfo::IndirectAliased

This patch makes it so that Swift can still build against llvm-project
ToT. clang::CodeGen::ABIArgInfo::IndirectAliased and Indirect seem to be
very similar, so for now I have the switch statements falling through to
the clang::CodeGen::ABIArgInfo::Indirect behavior. I was considering
making them unreachable instead.
I'd like to have this reviewed by someone that understands the code in swift/lib/IRGen/GenCall.cpp and clang::CodeGen::ABIArgInfo better than I do.
This is to address changes from llvm-project ToT in llvm/llvm-project@30eeb74

@swift-ci please smoke test and merge


Svelte v3

Svelte v3 has been released. A lot has changed. It would be nice to have a WebStorm plugin that supports it.

@steve-taylor
Check this out:
https://github.com/tomblachut/svelte-intellij


pkg-export-helm: Add dep on helm package

This would allow the exporter to be able to launch the helm dep up command from the Habitat studio environment, when user passes the --download-deps option.
The logical next step after https://github.com/kinvolk/core-plans/pull/1

Like https://github.com/kinvolk/core-plans/pull/1, this has been sent directly upstream too: https://github.com/habitat-sh/habitat/pull/4695 .


If-561: Fix renaming applet

Task linked: IF-561 Applets - context menu functions "rename" & "delete" dont work


⚠ Processors has degraded performance

In a028b1a, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 81 ms

Resolved: Processors performance has improved in 4850c2a.


"An error occurred" when I want to access a new repo

Description
Hello everyone,
The existing repos in my Gitea instance work well.
However, when I try to create a new repo, I can do it but when I try to access it I encounter the following error:
An error occurred
The Git data underlying this repository cannot be read. Contact the administrator of this instance or delete this repository.
When I go into my log file, I come across these lines when I refresh the page on this new repo:
2023/10/02 09:17:05 ...ers/web/repo/view.go:890:renderCode() [E] GitRepo.IsEmpty: check empty: exit status 129 - usage: git rev-list [OPTION] <commit-id>... [ -- paths... ]   limiting output:     --max-count=<n>     --max-age=<epoch>     --min-age=<epoch>     --sparse     --no-merges     --min-parents=<n>     --no-min-parents     --max-parents=<n>     --no-max-parents     --remove-empty     --all     --branches     --tags     --remotes     --stdin     --quiet   ordering output:     --topo-order     --date-order     --reverse   formatting output:     --parents     --children     --objects | --objects-edge     --unpacked     --header | --pretty     --abbrev=<n> | --no-abbrev     --abbrev-commit     --left-right     --count   special purpose:     --bisect     --bisect-vars     --bisect-all 2023/10/02 09:17:05 ...eb/routing/logger.go:102:func1() [I] router: completed GET /Cloud/Test for SECRET-IP:0, 200 OK in 31.1ms @ repo/view.go:711(repo.Home)
Have you ever seen a similar case? If so, can you help me?
Thank you for your help.
Gitea Version
1.20.4
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots

Git Version
2.11.0
Operating System
Debian 9
How are you running Gitea?
Installation from binary.
Database
MySQL/MariaDB

Related to #26517
You can update your "git" package to a newer version.

Thank you for your reply
I'm stuck at git 2.11.0 with Debian 9, if I install git via source I won't encounter compatibility problems?
Thanks for all

Or you could try to downgrade Gitea to 1.20.2 which doesn't contain that fix.
It's safe to directly downgrade to 1.20.x

Or you could try to build your own binary by with "Fix git 2.11 error when checking IsEmpty #27393", or wait for its backport to 1.20.5


Crash on Android if source is an invalid URL

If I pass as source an object like this { uri: 'INVALID_URL' } I get the following error on Android:
Error while updating property 'source' of a view managed by: FastImageView

null

Must not be null or empty

At the moment I am normalising the source using this (ugly) code to avoid the crash:
const normalisedSource = source && typeof source.uri === 'string' && !source.uri.split('https://')[1] ? null : source;

but I think it would be better if the library prevents it.

not all image start https,   http ??
const normalisedSource = source && typeof source.uri === 'string' && !source.uri.split('http')[1] ? null : source;

this is log.
2019-03-28 19:29:08.185 14848-14848/E/fastimage: http://img.abc.com/o_1d6v24em310p7pib14b94gsjbha.jpg
2019-03-28 19:29:08.185 14848-14848/ E/fastimage: false
2019-03-28 19:29:08.195 14848-14848/ E/fastimage: true
2019-03-28 19:29:08.196 14848-14848/E/unknown:ViewManager: Error while updating prop source
    java.lang.reflect.InvocationTargetException
        at java.lang.reflect.Method.invoke(Native Method)

@OrangeFlavoredColdCoffee Your answer works perfectly. Thank you very much! you saved me so much time ^^

Getting exact same problem
@OrangeFlavoredColdCoffee but what about if broken image from server

so I need adjust every source ? It's so Unfriendly！！！

const normalisedSource = source && typeof source.uri === 'string' && !source.uri.split('http')[1] ? null : source;

You saved my day!

not all image start https, http ??
const normalisedSource = source && typeof source.uri === 'string' && !source.uri.split('http')[1] ? null : source;
not all images start with https or http. what about local images

how i could use this function or variable ?

not all image start https, http ??
const normalisedSource = source && typeof source.uri === 'string' && !source.uri.split('http')[1] ? null : source;

not all images start with https or http. what about local images

i don't know where

You don’t have to use it necessarily, but it prevents malformed url to
crash on Android devices. If you want to use it, just wrap your fast image
with your own custom component wrapper and apply the function to fast image
data source prop
On Sat, 11 Apr 2020 at 16:15, alexdieudonne<EMAIL_ADDRESS>wrote:

not all image start https, http ??
const normalisedSource = source && typeof source.uri === 'string' &&
!source.uri.split('http')[1] ? null : source;
not all images start with https or http. what about local images
i don't know where
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/DylanVann/react-native-fast-image/issues/407#issuecomment-612443733,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABMMH5NHLBTK4X37HBYPB73RMCCSVANCNFSM4GX5PRSQ
.

render() {
return (
<FastImage source={{uri: this.getUriImage(_uri)}}/>
)
}
function getUriImage(uri) {
return uri !== null && uri !== undefined && uri.includes("/") && uri.includes(".") ? uri : ""
}

not all image start https, http ??

where do i have do make this change?

render() {
return (
<FastImage source={{uri: this.getUriImage(_uri)}}/>
)
}
function getUriImage(uri) {
return uri !== null && uri !== undefined && uri.includes("/") && uri.includes(".") ? uri : ""
}

Thanks you, my problem is solved using this

Handler local image
class ProgressiveImage extends React.Component {
getUriImage(uri) {
    return uri !== null && uri !== undefined && uri.includes("/") && uri.includes(".") ? uri : ""
}

render() {
    let source = this.props.source;
    return (
        <View style={styles.container}>
            {this.props.source && this.props.source.uri ? <FastImage {...this.props} source={{
                uri: this.getUriImage(this.props.source.uri),
                cache: FastImage.cacheControl.immutable,
            }} /> : <Image {...this.props} />}
        </View>
    )
}

}

I think the library itself should take of this issue, on ios it works perfectly.


Please change access rights for localisation

You can remove access for the following users:

@siebrand
@Nikerabbit

Please add access for:

@translatewiki

Sure! Invite sent.


change: resolve abstracts from container. This will allow us to resolve named aliases

should close #96

I think the psalm errors reported are a false positive: https://github.com/vimeo/psalm/issues/3894


Passwordless authentication intent-filter not wroking

Environment

Android device: One Plus 5t
Android OS version: 8.1.0
Google Play Services version: 15.0.1
Firebase/Play Services SDK version: core (15.0.2), auth (15.1.0)

Problem:
After User clicks on the link from email for email link based authentication, the user is not redirected to desired activity in the app. Instead of opening the activity with the intent filter (in auth sample PasswordlessActivity.java) it opens the launcher activity which has the data in its intent.
Its happening with the code sample in the auth app (no changes, just the url for ActionCodeSettings, intent filter and google-services.json file).
Stackoverflow post

https://stackoverflow.com/q/50175974/4428159

mark

@umarhussain15 are you still having this issue?  Can you show the code changes you

Yes the issue is still present, I just made changes to the auth sample for enabling the password less activity.

I added the app in my firebase project.
Enabled Email Link in firebase project settings.
Added google-services.json file.
updated host in the intent-filter of PasswordlessActivity
Updated the url used by ActionCodeSettings to match the url in the above intent-filter.
whitelisted the domain in authentication settings.

@umarhussain15 you have me a bit stumped to be honest!  Does the sample app work on your device or no?

it does work but as I mentioned earlier, the flow of PasswordLessActivity.java is broken.
After user clicks on the link in email it should open the PasswordlessActivity as this activity has intent-filter set according to Firebase docs. But instead the Activity for choosing authentication method is started.
You can replicate it in the app just by setting up the auth sample with firebase project as given in the instructions for the project.

@umarhussain15 there must be something a bit different in your setup as I can't replicate this with the sample app in this repo on my Pixel.  I even force-stopped the app before clicking on the link in my email and the deep link goes right to PasswordlessActivity rather than the picker screen.
Can you try this on a device other than the OnePlus?  Maybe an emulator?

@samtstern I tried it on emulator (Android emulator with API 26 and Google play store) but still the PasswordlessActivity is not opening.
I even changed the firebase project and setup the app with it but still it goes to picker activity.
Can you outline steps you did to have successful flow?

I'm running into this same issue on my own app. It seems like the intent filter doesn't recognize the dynamic link, so it just starts my launcher activity instead.
I'm sending the link with:
val actionCodeSettings = ActionCodeSettings.newBuilder()
          .setAndroidPackageName("<my-package-name>", false, null)
          .setHandleCodeInApp(true)
          .setUrl("https://auth.example.com/emailSignInLink")
          .build()

FirebaseAuth.getInstance().sendSignInLinkToEmail(email, actionCodeSettings)
          .addOnCompleteListener { task ->
              // ...
          }

I whitelisted auth.example.com in the console.
The activity with the intent filter is declared like this:
        <activity
            android:name=".signin.SignInActivity"
            android:screenOrientation="portrait"
<EMAIL_ADDRESS>            android:windowSoftInputMode="adjustResize">
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <data
                    android:scheme="https"
                    android:host="auth.example.com"
                    android:pathPrefix="/emailSignInLink" />
                <category android:name="android.intent.category.BROWSABLE" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

When I click the link in the email, the SignInActivity isn't started though... it just goes right to my default launch activity. When I log intent.getDataString() in onCreate() of my launcher activity, I'm seeing:
https://<my-app-name>.firebaseapp.com/__/auth/action?apiKey=<my-api-key>&mode=signIn&oobCode=<oob-code>&continueUrl=https://auth.example.com/emailSignInLink&lang=en
Tested on API 26 emulator & Pixel, and API 21 emulator.

A bit more information...
When I test the email link with adb, it links to the correct activity in my app, but when I click from gmail it just goes to my launch activity. This seems strange... doesn't clicking a link in gmail just start an ACTION_VIEW intent?
Here's what I'm typing into my terminal:
adb shell am start -W -a android.intent.action.VIEW -d <big long link from email>

I think my issue is that I don't have my SHA1 certificate fingerprints added to the firebase console, because of this issue here: https://stackoverflow.com/questions/50690030/cant-add-sha1-fingerprint-to-firebase-console
Sorry for hijacking this thread!

@mattlogan1 thanks for the extra info.  To be honest you have me stumped, are there any logs that let you see what the intent that Gmail is launching looks like?  Maybe you could intercept it in the app and log it?

Appreciate the response @samtstern!
I have an open support thread going with Jonathan from Firebase Support where I explain this in a bit more detail... I'll paste my last message to him here:
In the documentation here it says "The intent filter should catch deep links of your domain, since the Dynamic Link will redirect to your domain if your app is installed," followed by an example of an intent filter for the domain "yoursite.example.com" (to be replaced with my domain of course).
But when I send the email sign-in link from my Android app, the email link looks like this:
https://uwh8z.app.goo.gl/?link=https://sessions-app.firebaseapp.com/__/auth/action?apiKey%3DAIzaSyAHwlSERM9SPlihrBtK-tEV8fYhaXlzV-k%26mode%3DsignIn%26oobCode%3Dnz200HCMiTS299AAdI-YiJHMFpveYIZ3WF47vaq_4cYAAAFj0hk1nw%26continueUrl%3Dhttps://www.apexpark.co/sessions/finishSignIn%26lang%3Den&apn=co.apexpark.sessions&afl=https://sessions-app.firebaseapp.com/__/auth/action?apiKey%3DAIzaSyAHwlSERM9SPlihrBtK-tEV8fYhaXlzV-k%26mode%3DsignIn%26oobCode%3Dnz200HCMiTS299AAdI-YiJHMFpveYIZ3WF47vaq_4cYAAAFj0hk1nw%26continueUrl%3Dhttps://www.apexpark.co/sessions/finishSignIn%26lang%3Den
You can see that the link portion of the query string in this URL has the sessions-app.firebaseapp.com domain, and NOT my custom domain of www.apexpark.co (that's in continueUrl instead).
When I click this link, my activity with the intent filter for the www.apexpark.co domain isn't opened. Instead, my main activity (default/launcher activity) is opened with an intent containing a URL of the domain sessions-app.firebaseapp.com. This URL works as a dynamic link!
And if I change my intent filter to use the sessions-app.firebaseapp.com domain instead of the www.apexpark.co domain, everything works as expected (that activity is launched), but this seems to go against the documentation! So I'm not sure if I'm doing something wrong or if the documentation is wrong.
That's the end of that email. To answer your question about logs, there is some info from ActivityManager in logcat that kind of shows what's happening when I click the link.
I/ActivityManager: START u0 {act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE] dat=https://uwh8z.app.goo.gl/... flg=0x14000000 pkg=com.google.android.gms cmp=com.google.android.gms/.appinvite.AppInviteAcceptInvitationActivity (has extras)} from uid 10051
I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] dat=https://sessions-app.firebaseapp.com/... flg=0x14800000 pkg=co.apexpark.sessions cmp=co.apexpark.sessions/.LaunchActivity (has extras)} from uid 10017

It looks like there's this AppInviteAcceptInvitationActivity from Play Services that handles the uwh8z.app.goo.gl intent, parses that URL, then starts some activity in my app. It seems like ideally this should be starting my SignInActivity which has the www.apexpark.co intent filter, but instead it's just launching my default/launcher activity with the sessions-app.firebaseapp.com domain.
If instead I change my SignInActivity intent filter to intercept the sessions-app.firebaseapp.com, everything works like it should and the sessions-app.firebaseapp.com URL is a valid dynamic link.
Sorry this is a lot of information! Really appreciate the help, even if this isn't the most appropriate forum!

Hi,
I just have the same problems as you guyz. I remove the pathPrefix and set the url of my domain instead of the dynamic links and it seems to work.

@mattlogan1 were you able to resolve this with Firebase support?

@mattlogan1 ok I found your case and will push it along, sorry about the delay.

@loicsiret your solution is working.
Just one question which url are you using during creation of action settings?
I'm adding /emailSignInlink during link creation but removed this in my intent filter.
@samtstern is this the solution firebase will be providing?

@samtstern any update on the issue?
The solution suggested by @loicsiret works only if one activity has the intent filter for the email link auth.
If I provide two activities with the same filter it opens a activity chooser to select.
My app requires two flows one for login one for sign up i.e. I need two unique urls for passwordless login.

Any update on the issue?

@umarhussain15 apologies I never got back to this.  We are going to update the docs now.
TL;DR you do need to add an intent-filter for the firebaseapp URL.

See #676


Add required polyfills for IE10.

Two missing polyfills for recent code (I assume) which breaks IE10 compatibility.
In IE10, I still get an error Unable to get property 'direction' of undefined or null reference which I'll try to fix in another Pull Request!

I'm not sure if there are tests I can add for IE specifically? Is it possible to run tests with Karma in different browsers? It would be practical to automate regressions or simple usage in different browsers.

I've found the error in IE10. It seems that using this.props.whatever in the default values for the state doesn't work!
state = {
     direction: this.props.direction,
     focus: false,
     showAllSuggestions: this.props.showSuggestionsWhenValueIsSet,
     query: this.query(this.props.value)
   };

I'm not very familiar with babel and its generation yet, but it seems IE10 doesn't scope _this properly. Anyone know of a workaround or a way to fix it?

Any issues? Should I run the build and commit what's in /lib/ as well? Any pointers on the state issue?

Hi @cdroulers! No need to commit the build. In fact that may create more merge issues. I'll do it manually from dev branch. Is the block code you've commented still causing issues? If so, we should open an Issue. I'm merging these polyfills. Also, do you think we should better document whose are needed?

@javivelasco Yes, the code for state = { still breaks in IE10 (or 9) and lower. I'll investigate a bit more and open another issue with details. Thank you!


azurerm provider warning during terraform init and terraform apply

Description
While doing a deploy of completely default MissionLZ using terraform, following the terraform deployment how-to, I receive the following warning:
│ Warning: Reference to undefined provider
│
│   on main.tf line 313, in module "hub-network":
│  313:   providers  = { azurerm = azurerm.hub }
│
│ There is no explicit declaration for local provider name "azurerm" in module.hub-network, so Terraform is assuming you mean to pass a configuration for "hashicorp/azurerm".
│
│ If you also control the child module, add a required_providers entry named "azurerm" with the source address "hashicorp/azurerm".
│
│ (and 11 more similar warnings elsewhere)
Steps to Reproduce
Steps to reproduce the behavior:

Establish empty subscription
Run the git clone command from the basic how-to
Run the terraform init and terraform apply commands per the terraform how-to.

Expected behavior
Running a completely default test bed should not produce any warnings or errors.
Actual behavior
The given warning is generated.  Further text suggests it is assuming hashicorp/azurerm and how to explicitly declare this intention if it is the desired provider.
Screenshots

[Redactions are personally identifying information and/or the subscription ID itself]
Additional context
Operating System: Azure CLI - Powershell
Terraform Version: 1.3.2 (default provided with the Azure CLI - Powershell environment)
Cloud (public, Azure Government, etc.): public

We will not be updating the terraform code and will be deprecating the terraform code on June 30, 2024.


Frsky not detected on mRobotics x2.1

I am not able to get past the radio calibration on QGC. I keep getting a "Detected 0 radio channels. To operate PX4, you need at least 5 channels" on an mRobotics X2.1 ver 2 and FrSKY X4R-SB receiver. My receiver is bound to a Taranis X9D Plus, and I have the receiver connected to Telemetry 2 (UART 3/Serial 2) pins on mRo x2.1 via SBus (from receiver X4R-SB going to U3Rx pin on mRo).
I see these lines in px4io status
status 0x2741 OUTPUTS_ARMED SAFETY_SAFE RC_FAIL FMU_OK MIXER_OK ARM_SYNC INIT_OK
alarms 0x0020 RC_LOST
0 raw R/C inputs
R/C flags: 0x0000
mapped R/C inputs 0x0000
Running on Windows, Cygwin toolchain.
Full output -

Also, when I try to use PuTTY to get the system console, I get this -

Anyone else has the same issue with PuTTY.? Or am I doing something wrong.?
Thanks in advance.!

I had a wiring issue. My receiver and mRo work as expected.
But I still have the problem with PuTTY though.


LiteDb 4.1.2 - Index on 'long' field does not work. Possible?

Version:
LiteDb 4.1.2
Problem:
I have about 10K documents in LiteDb.
I am trying to perform db.GetCollection(CollectionName).Find(o => o.Revision => someValue).
I expect documents to be filtered and retrieved quickly by IndexField filter.
But it is slow, more than 1-5-10 minutes, so i suspect, index filter is working incorrectly.
And we tried using FindAll().ToList().Where(o => o.Revision => someValue), which should be slower, as it reads all data from DB and then filters in memory, but actually it works much faster even though filter leaves only about 30-50 entities, satisfying revision condition.
Question:
What I do wrong? Ideas?
Code details:
Data:
public class Order{
public Guid Id {get; set;}
public long Revision {get; set; }
}

Init Db:
var db = new LiteDatabase(connectionString);
                db.GetCollection<Order>(CollectionName).EnsureIndex(o => o.Id);
                db.GetCollection<Order>(CollectionName).EnsureIndex(o => o.Revision);

ConnectionString:
ConnectionString
            {
                Filename = Path.Combine(databaseDir, fileNum + ".litedb"),
                InitialSize = initialSizeMb * 1024 * 1024,
                LimitSize = int.MaxValue,
                Mode = FileMode.Exclusive,
                Journal = true,
                Timeout = TimeSpan.FromMinutes(1),
                CacheSize = 5000,
                Password = password,
            }

Slow query via LiteDb:
db.GetCollection<Order>(CollectionName)
.Find(o => o.Revision >= someValue)
.ToList()

Fast query, but not good:
db.GetCollection<Order>(CollectionName)
.FindAll()
.ToList()
.Where(o => o.Revision >= someValue)
.ToList()

Remarks:

I can get all indexes and i see there field Revision.
I tried using Query.GTE, but result the same.
And as I understand o => o.Revision > someValue the same thing.

Hi @AntonSemenovKazan,
How much result do you expect using this >=? Long values can be indexed with no problems.
Try see your index in shell:
db.Order.indexes
Can you write some code to test this?
(ps: You don't need create index in Id - it´s auto-created index on collection initialize)

I tested a little bit more and I agree that indexes for long work fine.
I tested them manually with small written by me app.
And i' ve found that i have production db with strange page.
In logs I see that LiteDb try to read page and stuck.
I think this issue I can close and I`am creating a new one with sample and strange db+page.
Thanks. =)


updating documentation to fix mode commands name

Please check if the PR fulfills these requirements

[x] The commit message follows our guidelines
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Documentation updates.

:tada: This PR is included in version 3.14.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


New Vevo 1080p Streams

So, I encountered this new Vevo video wwhich does not seem to be encrypted:
http://www.vevo.com/watch/madison-beer/unbreakable/USUV71400894
youtube-dl was able to detect the SMIL streams for this video somehow.  Maybe the uploader forgot to encrypt it?
Well, here is a video which youtube-dl is still unable to detect SMIL streams:
http://www.vevo.com/watch/lady-antebellum/bartender/USUV71400876

SMIL formats are not available for all videos.
we try to extract them when it's possible.
in the next version there will be more formats to choose from.


How to update the schema?

I've been working on a python backend application based on the architecture you taught me in this tutorial.
I've had difficulty whenever I needed to update the schema however:
When I update the schema (by re-deploying it in SAM or via my CI), the CloudFormation stack fails to update because the API stack is dependent on it. What seemed to work was deleting the API stack each time I deployed, but of course this is not sustainable.
I tried to address this by merging the schema and API into one stack, however the custom Lambda trigger that actually deployed the schema didn't seem to work here.
Do you have advice on how I would go about updating the schema?
Thank you

Hi Jacob,
The API stack requires two values that are exported by the Aurora VPC stack:

SecretRotationLambdaSecurityGroup
SubnetsPrivate

These values are currently being exported by the Aurora VPC stack and imported into the API stack.
What you could do to break the stack dependency is:

Remove input parameter AuroraVPCStackName from the API stack
Create two new input parameters on the API stack:

SecretRotationLambdaSecurityGroup
SubnetsPrivate

These way you'd break the export/import dependency and manually enter the values for those parameters if you need to update the API stack.
Let me know how it goes.

Hi @marcilio,
Thank you for sending this over. I actually managed to get it working by merging the two template.yaml files, which meant only one combined deployment was required when I ran the code on my CI.
Best wishes,
Jacob

Issue resolved.

how does someone update the schema. I usually just blow everything away and re-create.


AirportItlwm,fix DHCP issue

https://github.com/OpenIntelWireless/itlwm/commit/3e63230703f11d6daf13f5fa69d6e77a65b8cf3c
AirportItlwm: fix DHCP issue and key update issue. Seems that we have a problem in our entire thread model.

On my setup, this commit greatly improves the stability of the connexion, it's really night and day !

@myselfghost @ldan93 Commit for AirportItlwm included in latest release

On my setup, this commit greatly improves the stability of the connexion, it's really night and day !

Thank you very much for your contribution


Task/9459 extend UI tests

Description
Adds UI tests for universal QR code scanner, checking scans from other tabs.
Link to Jira
https://jira-ibs.wbs.net.sap/browse/EXPOSUREAPP-9459

❤


Fixes https://github.com/passwordless-lib/fido2-net-lib/issues/534

@dotnet-policy-service agree

@Fasjeit please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
@dotnet-policy-service agree [company="{your company}"]

Options:

(default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.

@dotnet-policy-service agree

(when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.

@dotnet-policy-service agree company="Microsoft"

Contributor License Agreement

@dotnet-policy-service agree

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 73.99%. Comparing base (26e5f75) to head (50859a6).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #551   +/-   ##
=======================================
  Coverage   73.99%   73.99%
=======================================
  Files          97       97
  Lines        2638     2638
  Branches      446      446
=======================================
  Hits         1952     1952
  Misses        585      585
  Partials      101      101

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Thank you @Fasjeit!


Badger 2040w C++ Library

Hello,
I noticed that there was no badger2040w C++ library under libraries/ despite all the required drivers existing in the code base.
I have taken it upon myself to port the badger2040 library code over to the badger2040w and ported all the respective examples too plus added a couple of additional ones:

Name
Description

examples/badger2040w/badger2040w_icon.cpp
Uses an iconsheet to create a tiling effect

examples/badger2040w/badger2040w_rtc.cpp
Retrieve internet time from NTP and cache the time on the pcf85063a external RTC

I have refactored the badger2040w library port to make use of the picographics library since the old method appears to be depreciated.

Sorry for the complete and total silence here- a Herculean effort like this deserves at least a "thanks, this is awesome and I promise to look over it ASAP!"
So- yes- thanks, this is awesome and I promise to look over it ASAP!
@thirdr perhaps this is something you'd like to tinker with?


Quote tweet / embedded tweet

Still uses the old-style comment RT @whatever method, not the new one using the appended permalink and quote metadata.

I concur: this feature is direly needed.


⚠ 366.ru has degraded performance

In acf4c0a, 366.ru (https://366.ru) experienced degraded performance:

HTTP code: 200
Response time: 1822 ms

Resolved: 366.ru performance has improved in c4c11ee.


Weather Customization

Would be cool if you can add weathers to moons and be able to edit the weather variables of the weather, example I want a foggy rend with min variable 3 and max variable 8, and it will choose a random number from 3 to 8, or make a playable flooded rend! and allow us to remove weathers like removing rainy from dine (because I personally hate it)
Hope you consider this suggestion.

The issue with this is that the weather randomization is done each time the ship loads into space, which is at a completely different time. The algorithm for selecting which weather for which moon is also a bit difficult, and not as simple as rolling a dice for each moon.

Oh dang it really felt like a dice, Its fine if it doesnt get added I still love the mod tho! thanks for the reply

Would be cool if you can add weathers to moons and be able to edit the weather variables of the weather, example I want a foggy rend with min variable 3 and max variable 8, and it will choose a random number from 3 to 8, or make a playable flooded rend! and allow us to remove weathers like removing rainy from dine (because I personally hate it)
Hope you consider this suggestion.

I'm not sure about variables, but you can remove Rainy from dine via Weather Registry mod. Mrov has worked on fog density so you might wanna bring that up over on their github or discord thread.

The issue with this is that the weather randomization is done each time the ship loads into space, which is at a completely different time. The algorithm for selecting which weather for which moon is also a bit difficult, and not as simple as rolling a dice for each moon.

On a related suggestion, would it be possible to tie spawnrates to specific weathers? I want to keep Siren Head mostly obscured, so allowing him, and other entities, to favor certain weathers would be a welcome change imo. If it's possible, I imagine that's alot.

That is a planned feature, but I would need to look into exactly how the weather works first.

While i see how more advanced weather customization would be harder to do for this mod
Would it be possible to customize the min entity count of Eclipsed weather on each maps ?
https://lethal.miraheze.org/wiki/Weather

I think that value was hardcoded in the last time I checked, so probably not.


A lite wallet docker compose configuration container for cardano-wallet

Create docker-compose-lite.yml with accompanying config.
To lunch it and let it run in terminal do:
 NETWORK=testnet docker compose -f docker-compose-lite.yml up
To lunch it as daemon do:
NETWORK=testnet docker compose -f docker-compose-lite.yml up -d

[ ] I have ...

Comments

Issue Number

Thanks, but I don't think we need a docker-compose for light mode. The idea of docker compose is to define and run multi-container applications. Here we only need cardano-wallet so there's no need for docker compose. Also cardano-wallet repo is not the best place for keeping node configs or blockfrost API key.

Could I ask if cardano-wallet in lite mode needs to by synchronized with the chain in order to reflect all chain state changes in the way the full node have to be?

Could I ask if cardano-wallet in lite mode needs to by synchronized with the chain in order to reflect all chain state changes in the way the full node have to be?

In light mode the source of the information is not the node directly by some service provider (currently Blockfrost, but maybe something different in the future) which can provide the same information such that wallet can discover the balance and all transactions related to its keys. So, yeah, the service provider needs to keep up with the network so it can serve up-to-date information.
Closing this PR as per https://github.com/input-output-hk/cardano-wallet/pull/3393#issuecomment-1187366707.


Question: getopt-like parsing and levenshtein distance in aids::Args

Are there any plans to add getopt-like  parsing to aids::Args ?
also would you mind levenshtein distance being move-up from vodus_video_params.cpp to aids?

I think I am not going to do that myself any time soon, or even at all. :-) I am just curious what is your opinion, @rexim

I personally don't like getopt


FileMutex is not reliable

Just implemented a cron script that should only run in one instance at a time.
Simple command:
class ReportController extends Controller
{
	public function actionIndex()
	{
		$mutex = new FileMutex();
		if (!$mutex->acquire('cron.reports')) {
			echo "lock exists, exiting\n";
			return 1;
		}

		sleep(10);

		$mutex->release('cron.reports');
		echo "done.\n";
	}
}

I can run many processes in parallel on my system without the lock preventing it.
Citing the flock docs: http://php.net/manual/en/function.flock.php

On some operating systems flock() is implemented at the process level. When using a multithreaded server API like ISAPI you may not be able to rely on flock() to protect files against other PHP scripts running in parallel threads of the same server instance!

It was already handled by @klimov-paul in 9e320da.


Endless spam in emulator syslog (eglCodecCommon: setVertexArrayObject: set vao)

TO REPRODUCE THE ISSUE, FOLLOW THESE STEPS:

Installed Android Studio
Created emulated device with Android Studio
Installed StreetComplete (this app is using tangram-es)

RESULT:
2020-10-21 21:37:43.819 7274-7337/de.westnordost.streetcomplete.debug D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 4 7
spamming syslog
See https://github.com/westnordost/StreetComplete/issues/2187 for full listing from a single milisecond
EXPECTED RESULT:
I have no insane syslog spam that makes debugging of an actual problem impossible.
ENVIRONMENT:

Tested Android 10 emulator running on Ubuntu 20.04 and on Windows 10.
0.13 - https://github.com/westnordost/StreetComplete/blob/master/app/build.gradle.kts#L170

OTHER:
I have not reproduced it on physical devices that I own.
I have no idea how to eliminate it and what kind of debugging would be useful, but I would be happy to perform it if directed.
https://hastebin.com/ixikosofuf.apache

Yikes, that definitely shouldn't happen. Seems like it's printing one of these for every VAO that's drawn, which is quite a lot.
I believe eglCodecCommon is Android platform code, so this might just be a bug in the emulator that's out of our control. However, I'll see if we can do anything to suppress these logs.

bug in the emulator

If that is the case - if anyone knows what is the workaround it also would be valuable.

@matkoniecz Which processor architecture does your emulated virtual device use? Usually it is the x86 architecture (for performance reasons). Actual devices usually use the arm64-v8 processor architecture. For each architecture, a different binary is used, maybe you can try if it is reproducible on an emulator using the arm64-v8 architecture.

Update: I'm able to reproduce this issue by running our Android demo app in an emulator on macOS. I used an x86 Pixel 2 API 29 (Android 10) image. The issue does not occur when using images with earlier Android versions, so this means that something changed with the Android emulator - not Tangram.
That said, it's still possible that we could find a workaround to include in Tangram, for developer convenience.

Both x86 Android 9 x86 Android 10 and exhibit this problem for me.
Android Studio offers Android 7.1.1 arm64-v8 image and no later ones. I am downloading it right now and test whatever deeper downgrade and/or arm64-v8 is sufficient as a workaround.


(DO NOT MERGE) add CUDA 12.2 conda and wheel jobs

Contributes to https://github.com/rapidsai/build-planning/issues/7.
Blocked by https://github.com/rapidsai/ci-imgs/pull/101.
Proposes adding CUDA 12.2.2 jobs for conda and wheel building and testing.
Why these specific matrix entries?
(updated Jan 10)
For building:

dropping CUDA 12.0 and replacing it with 12.2 because:

artifact names are of the form cuda{major}, so otherwise-identical builds with different minor versions of CUDA would overwrite each others' wheels (https://github.com/rapidsai/shared-workflows/pull/166#discussion_r1439749041)
CUDA Enhanced Compatibility (CEC) mean you should be able to build against CUDA 12.2 and run with CUDA 12.0 (https://github.com/rapidsai/shared-workflows/pull/166#discussion_r1439743881)

For testing

dropping a few 12.0 arm64 because our arm64 capacity is more limited than x86_64 (https://github.com/rapidsai/shared-workflows/pull/166#discussion_r1439751864)
preserving most 12.0 tests to ensure relying on CEC is giving us what we expect it to (https://github.com/rapidsai/shared-workflows/pull/166#discussion_r1439743881)
using (ubuntu20.04, ubuntu22.04) (leaving (ubuntu18.04, ubuntu20.04))) for 12.2 tests, as CUDA 12.2 doesn't support Ubuntu 18.04 (https://github.com/rapidsai/shared-workflows/pull/166#discussion_r1439758006)

Why not use continue-on-error?
That idea came from a desire to avoid needing to do this "stage a PR in every RAPIDS repo" approach to testing this.
The fact that artifacts like wheels have names that only contain the CUDA major version means that having builds against both CUDA 12.0 and CUDA 12.2 would require hacking in some changes to how artifacts are named and then ensuring that testing knows about those changes (https://github.com/rapidsai/shared-workflows/pull/166#discussion_r1439749041). That's made more complicated by the fact that many projects have repo-local scripts that do artifact uploading and downloading (https://github.com/rapidsai/shared-workflows/pull/166#discussion_r1442182995).
Given that, I'm proposing just doing this with the "stage a PR in every RAPIDS repo" approach. And given that, continue-on-error doesn't give us any benefit but WOULD introduce an elevated risk of missing CI failures.
Why not a branch from a fork?
So I can test workflows in other repos like rmm and cudf using the workflows from this branch.
Rollout plan?

[x] get images from https://github.com/rapidsai/ci-imgs/pull/101 built and published
[ ] test this branch on all RAPIDS repos one at a time, in the following order (based on the graph I see at https://github.com/rapidsai/workflows/actions/runs/7405716125), and asking for help from those projects' maintainers if things fail

[ ] rmm (https://github.com/rapidsai/rmm/pull/1419)
[ ] cudf (https://github.com/rapidsai/cudf/pull/14712)
[ ] dask-cuda (https://github.com/rapidsai/dask-cuda/pull/1302)
[] kvikio (repo)
[ ] ucx-py (repo)
[ ] cucim (repo)
[ ] rapids-cmake (repo)
[ ] ucxx (repo)
[ ] raft (repo)
[ ] cugraph (repo)
[ ] cugraph-ops (repo)
[ ] cumlprims-mg (repo)
[ ] cuml (repo)
[ ] wholegraph (repo)
[ ] cuspatial (repo)
[ ] cuxfilter (repo)

[ ] merge this branch into branch-24.02 (or branch-24.04 if we don't get there in time)
[ ] another round of PRs to all those projects and switch them back from this branch to branch-24.{nn} for these workflows
[ ] delete this branch

@ajschmidt8 FYI ... yesterday, @bdice decided to try to expand this to doing conda packages and wheels at the same time. For the following reasons:

reduces the total testing effort (e.g. no need to do another round of PRs to every RAPIDS repo to test conda separately from wheels)
because CUDA 12.2 packages are all now available on conda-forge (https://github.com/conda-forge/cuda-feedstock/issues/13)
to make it easier to roll back all of this as one atomic unit if it doesn't get done before code freeze for 24.02

I just pushed commits here proposing matrix changes for conda-*-build and conda-*-tests workflows. Once we agree on those changes, I'll open the remaining PRs to test in all RAPIDS repos so we can see what types of problems come up.

Looks good to me!

Everything looks good so far. Let me know if you run into any snags in the testing phase.
The discussions around wheel naming and how it prevents us from building both 12.0 and 12.2 wheels makes sense. Reworking rapids-package-name might be good for us in general in the long run, there's more implicit magic there than I really like and it makes naming hard to control. That said, it wouldn't really help with the *-cu12 wheel naming and I don't think we want to change that, so it may not ever be possible to enable what we were originally hoping for in this PR.


New Sample: browse datastore and delete particular folder

Requirements: Create folder manually into ESX datastore lets say with name "xyz". Delete newly created folder "xyz" using pyvmomi APIs

use the below snippet
content.fileManager.MakeDirectory("[datastore1]/foldername", dc_obj, createParentDirectories=True)

How to delete it?

@RobertClove you should be able to call the obj with the method .Destroy()

@RobertClove please refer to the API docs for FileManager
DeleteDatastoreFile_Task(deleteFile)
name	The name of the file or folder, either a URL or a datastore path referring to the file or folder to be deleted.
datacenter to a Datacenter, If name is a datastore path, the datacenter for that datastore path. Not needed when invoked directly on ESX. If not specified on a call to VirtualCenter, name must be a URL.

from pyVim.task import WaitForTask
WaitForTask(content.fileManager.DeleteFile("[datastore1]/foldername", dc_obj))


Generating a select box

Hi,
Given the Country table in the demo, what is the simplest way to generate a select box of id, name for a list of countries?  The method Country::lists('name', 'id')->toArray() isn't available.  I do see a listsTranslation() method, but that returns an array of arrays that isn't usable in Form::select, unless you iterate through it prior and build a proper array of the values.
Thank you for this package.  It is quite interesting and I'm having fun playing around with it.

:+1: would like to know this too
On Fri, 18 Dec 2015 at 5:44 p.m., Jay<EMAIL_ADDRESS>wrote:

Hi,
Given the Country table in the demo, what is the simplest way to generate
a select box of id, name for a list of countries? The method Country::lists('name',
'id')->toArray() isn't available I do see a listsTranslation() method,
but that returns an array of arrays that isn't usable in Form::select,
unless you iterate through it prior and build a proper array of the values
Thank you for this package It is quite interesting and I'm having fun
playing around with it
—
Reply to this email directly or view it on GitHub
https://github.com/dimsav/laravel-translatable/issues/198.

Stumbled upon this too these days. This is what I use as a workaround:
    $country_list = Country::listsTranslations('name', 'id')->get();

    foreach($country_list as $country)
    {
        $countries[$country->id] = $country->name;
    }

@WrongWay Thanks.  That's what I'm currently doing.  I agree with your last statement.  Perhaps a new method could be added.

Can't you use Country::get()->lists('name','id')->all()?

@slano  indeed you can, that works.  That is the kinda of shortcut I was looking for, thanks.

@swimlappy Perfect! I'm glad it helped.