Use runit-based image instead of (plain) Ubuntu image

Hi there,
since the official Ubuntu image has some issues with running inside Docker, I'd like to see your superb Dockerfiles be based on phusion/baseimage-docker instead. They explain why this has benefits on the project page: http://phusion.github.io/baseimage-docker/
Thank you for your consideration!

@fbender closing.. too much work, too little benefits (it at all)


mixed activity for jl_new_struct

Hey, I noticed that 0.11.6 seems to have broken the second derivative of metrics from Distances.jl.
The following works with 0.11.5, but not with 0.11.6, 0.11.7 and main
using Distances
using Enzyme
# metric = Euclidean()
metric = SqEuclidean()
metric(1.0, 1.0 + 0.1)

d2metric(x, y) = only(autodiff(
    Forward,
    yt -> only(autodiff_deferred(Forward, metric, DuplicatedNoNeed, Duplicated(x, 1.0), yt)),
    DuplicatedNoNeed,
    Duplicated(y, 1.0)))
d2metric(1.0, 1.0 + 0.1)

The error is
ERROR: Enzyme execution failed.
Enzyme: Not yet implemented, mixed activity for jl_new_struct constants=Bool[1, 0, 0]   %9 = call noalias nonnull {} addrspace(10)* ({} addrspace(10)* ({} addrspace(10)*, {} addrspace(10)**, i32)*, {} addrspace(10)*, ...) @julia.call({} addrspace(10)* ({} addrspace(10)*, {} addrspace(10)**, i32)* noundef nonnull @jl_f_tuple, {} addrspace(10)* noundef null, {} addrspace(10)* nonnull %1, {} addrspace(10)* nonnull %5, {} addrspace(10)* nonnull %7) #11

Stacktrace:
  [1] throwerr(cstr::Cstring)
    @ Enzyme.Compiler ~/.julia/packages/Enzyme/dByM2/src/compiler.jl:3014
  [2] macro expansion
    @ ~/.julia/packages/Enzyme/dByM2/src/compiler.jl:9661 [inlined]
  [3] enzyme_call
    @ ~/.julia/packages/Enzyme/dByM2/src/compiler.jl:9339 [inlined]
  [4] ForwardModeThunk
    @ ~/.julia/packages/Enzyme/dByM2/src/compiler.jl:9305 [inlined]
  [5] runtime_generic_fwd(activity::Type{Val{(false, false, false, false, true, true)}}, width::Val{1}, RT::Val{NamedTuple{(Symbol("1"), Symbol("2")), Tuple{Any, Any}}}, f::typeof(autodiff_deferred), df::Nothing, primal_1::ForwardMode{FFIABI}, shadow_1_1::Nothing, primal_2::SqEuclidean, shadow_2_1::Nothing, primal_3::Type{DuplicatedNoNeed}, shadow_3_1::Nothing, primal_4::Duplicated{Float64}, shadow_4_1::Duplicated{Float64}, primal_5::Float64, shadow_5_1::Float64)
    @ Enzyme.Compiler ~/.julia/packages/Enzyme/dByM2/src/compiler.jl:1310
  [6] macro expansion
    @ ~/.julia/packages/Enzyme/dByM2/src/compiler.jl:9661 [inlined]
  [7] enzyme_call
    @ ~/.julia/packages/Enzyme/dByM2/src/compiler.jl:9339 [inlined]
  [8] ForwardModeThunk
    @ ~/.julia/packages/Enzyme/dByM2/src/compiler.jl:9305 [inlined]
  [9] autodiff
    @ ~/.julia/packages/Enzyme/dByM2/src/Enzyme.jl:330 [inlined]
 [10] autodiff
    @ ~/.julia/packages/Enzyme/dByM2/src/Enzyme.jl:222 [inlined]

The same happens with forward over reverse
d2metric(x, y) = autodiff(
    Forward,
    (x, y) ->
        first(only(autodiff_deferred(Reverse, metric, Active, Active(x), Const(y)))),
    DuplicatedNoNeed,
    Const(x),
    DuplicatedNoNeed(y, 1.0),
)

Enzyme.API.runtimeActivity!(true) does not help (not sure if it should, but I tried it).
Not sure if this issues should rather be in Distances.jl?

Yeah what happened here isn't that v11.6+ broke it, but rather 11.6+ will error that we could get that answer wrong (which 11.5 and before could as well, just we didn't throw the error here like we should have).
In essence this is a type unstable, multiple activity input object construction, which we don't presently handle (even with the runtimeActivity flag) yet.
In the interim, if you make that part of the code type stable, this error should disappear.

I see, thank you. In this case I will see what can be done on the side of Distances.jl, I somewhat surprised that it isn't already type stable.

After a little experimentation, I noticed that making it const metric fixes the issue. The type instability is introduced by the metric, which is called via metric(x, y).  Only an issue when working in the REPL.
Closing this as there is no more need.


Need to few tabs in left panel of Contact and Company.

Company Page:-

General
License and Registration
Contacts(Count)
Projects(Count)
Account(Balance)

Contact Page:-

General
License and Registration
Companies(Count)
Projects(Count)
Account(Balance)

Projects Tab
On click of Projects tab, ECB should display all the projects of that particular Contact/Company in right side window on same page.
Accounts Tab
On click of Account tab, ECB should display all the projects of that particular Contact/Company in right side window on same page.

#777


[BEAM-11104] Fix output forwarding issue for ProcessContinuations

Fix return value forwarding issue arising from naked ProcessContinuation returns. Prevents coder panics from nil elements creeping into FullValues.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

Can one of the admins verify this patch?

Can one of the admins verify this patch?


You are calling withTheme(Component) with an undefined component. You may have forgotten to import it.

If I try and use  with react-admin
import { DateTimeInput } from 'react-admin-date-inputs';
with
<DateTimeInput label="Start" options={{ format: 'DD/MM/YYYY, HH:mm:ss', ampm: false, clearable: true }} />
Error: You are calling withTheme(Component) with an undefined component.
You may have forgotten to import it.
I have the following dependancies
"dependencies": {
    "@material-ui/core": "^4.5.1",
    "@material-ui/icons": "^4.5.1",
    "axios": "^0.18.0",
    "date-fns": "^2.5.1",
    "filepond": "^4.7.2",
    "jwt-decode": "^2.2.0",
    "prop-types": "^15.7.2",
    "ra-data-json-server": "^2.9.8",
    "ra-data-simple-rest": "^2.6.2",
    "react": "^16.10.2",
    "react-admin": "^2.9.8",
    "react-admin-date-inputs": "^1.1.2",
    "react-beautiful-dnd": "^11.0.3",
    "react-dom": "^16.10.2",
    "react-draggable-list": "^4.0.2",
    "react-filepond": "^7.0.1",
    "react-player": "^1.10.0",
    "react-scripts": "^3.2.0",
    "redux": "^4.0.1",
    "video-react": "^0.13.6"
  },

Have you managed to solve this? I have the same problem after upgrading to react-admin 3.0

Hello! I've got the same issue. Did anyone find a solution? I guess it's about material-ui versions incompatibility
"dependencies": {
    "@date-io/date-fns": "^1.3.13",
    "@material-ui/core": "^4.3.3",
    "@material-ui/pickers": "^3.2.8",
    "date-fns": "^2.10.0",
    "ra-i18n-polyglot": "^3.2.3",
    "ra-input-rich-text": "^2.3.0",
    "ra-language-french": "^3.2.0",
    "react": "^16.5.1",
    "react-admin": "^2.9.9",
    "react-admin-date-inputs": "^1.1.4",
    "react-admin-firebase": "^0.8.1",
    "react-dom": "^16.5.1",
    "react-scripts": "1.1.5",
    "redux-saga": "^0.16.0"
  }

Same problem

same problem occurs :(

same problem


US-2150: Developers need an easy way to change the colors of the wallet

A few things still need to be solved. And as a suggestion for testing purposes, create a .env variable to switch colors for testing purposes something like theme: "dark" | "light". And choosing this when exporting sharedColors and assign one of two objects. This wasy @jormelCoin can test the actual behaviour and make sure the styles update correctly all over the app.

Hey @TravellerOnTheRun, I set the var in the .env as you mentioned, but when I put the light option, I didn't see any difference. Please let me know if I put it correctly.

On the other side, I called my attention to the white border on some buttons. I'm conscious that it's a minor issue, but I don't know I see a little different. were these modified intentionally?

Hey @TravellerOnTheRun, I set the var in the .env as you mentioned, but when I put the light option, I didn't see any difference. Please let me know if I put it correctly.

This has not yet been implemented.

Hey @TravellerOnTheRun, I set the var in the .env as you mentioned, but when I put the light option, I didn't see any difference. Please let me know if I put it correctly.

This has not yet been implemented.

I assume that will be implemented in another ticket? if so, I think this ticket is working well.


NIFI-10989 Remove SHA-1 and MD5 from TestHashContent

Summary
NIFI-10989 Removes test methods for MD5 and SHA-1 from TestHashContent to avoid intermittent failures due to lack of Bouncy Castle Security Provider registration.
The SHA-1 method succeeds when Bouncy Castle is registered, but fails when not registered. The test methods should be removed because HashContent is deprecated in favor of CryptographicHashContent and is targeted for removal in subsequent major releases.
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking

[X] Apache NiFi Jira issue created

Pull Request Tracking

[X] Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-00000
[X] Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-00000

Pull Request Formatting

[X] Pull Request based on current revision of the main branch
[X] Pull Request refers to a feature branch with one commit containing changes

Verification
Please indicate the verification steps performed prior to pull request creation.
Build

[ ] Build completed using mvn clean install -P contrib-check

[ ] JDK 8
[ ] JDK 11
[ ] JDK 17

Licensing

[ ] New dependencies are compatible with the Apache License 2.0 according to the License Policy
[ ] New dependencies are documented in applicable LICENSE and NOTICE files

Documentation

[ ] Documentation formatting appears as expected in rendered files

+1 LGTM, it passes on JDK 11 HI so I'm good. Thanks for the fix! Merging to main


allow binding without policy

[#144121673]

Let us hold this PR until we agreed on https://www.pivotaltracker.com/n/projects/1566795/stories/144121673

@pradyutsarma  @paltanmoy  given the decision we made last week, can you please review this PR again.

@boyang9527 I'm on it.

@paltanmoy @pradyutsarma @boyang9527  do you have more comments on this pr?

LGTM

@qibobo travis build is failing.

@rohitsharma04  failed on the scalingengine's unit test.
• Failure [1.003 seconds]
Sync Run [It] synchronizes data between scheduler and scaling engine with the given time interval
/home/travis/build/cloudfoundry-incubator/app-autoscaler/src/autoscaler/scalingengine/schedule/sync_test.go:72
Timed out after 1.000s.
Expected
: 1
to equal
: 2

@rohitsharma04  submit a bug in tracker. https://www.pivotaltracker.com/story/show/149637247  Should we let this pr merged first?

@rohitsharma04  rerun and passed.

LGTM


fontbakery has difficult time parsing numbers in names

Observed behaviour
When I run check-googlefonts on the files in my Bodoni Moda font I get a lot of errors related to the name such as
Check name table: FULL_FONT_NAME entries.
or
Check name table: TYPOGRAPHIC_FAMILY_NAME entries.
in all cases it's expecting my font to be named "Bodoni Moda11" instead of the proper name "Bodoni Moda 11"
I assume this is because it comes up with the expected font name based off of the postscript Font Name or something of the sort that can't have spaces and then it's adding spaces when there's a lowercase letter next to an uppercase one? In any case (haha) it's throwing up issues and I'm not convinced it should be in this case.
Expected behaviour
I don't want errors here.
Resources and exact process needed to replicate
just run check-googlefonts on the fonts in the google branch of my Bodoni
https://github.com/indestructible-type/Bodoni/tree/google

I am also running into an issue while working on this font. note I am proposing to rename the font to "Rock 3D Font".
However, fontbakery gives these fail reports:

🔥 FAIL Entry [FONTFAMILYNAME(1):WINDOWS(3)] on the "name" table: Expected "Rock 3 D Font" but got "Rock 3D Font". [code: mismatch]

🔥 FAIL Entry [FULLFONTNAME(4):WINDOWS(3)] on the "name" table: Expected "Rock 3 D Font Regular" but got "Rock 3D Font Regular". [code: bad-entry]

Usually 3D is displayed as a single word, rather than 3 D, so the above errors are incorrect.


app.documents.getByName Appears Broken?

Describe the bug
app.documents.getByName does not appear to work, raises an error that "name getByName not found"
To Reproduce
app = ps.Application()
document = app.documents.getByName("my-document-name.psd")
print(document)
# Will raise an error

Expected behavior
Find and retrieve the document object by its name
Desktop (please complete the following information):

OS: Windows 10
Photoshop Version: Photoshop 2022
Python Version: python-3.8.x

Screenshot

@MrTeferi I will fix this soon.
There are many functions that may be inconsistent with the Photoshop javascript API after binding through COM, we need to patch them manually, I will create a new MR to fix this, thank you for your report.

@MrTeferi
I have deployed a new version, please try again,
cheers.

@loonghao Thanks Hal can confirm this definitely works for me now! Cheers buddy

the problem appears again
layer = doc.artLayers.getByName("background")
KeyError: ('exportDocument', 3)
windows10
photoshop 2020
python 3.6

the problem appears again layer = doc.artLayers.getByName("background")
KeyError: ('exportDocument', 3)
windows10 photoshop 2020 python 3.6

I'll look into this using latest version when I get the chance. In the meantime, please post full code snippet. BTW, if I'm not mistaken you can now also get layers using dict key notation like this:
layer = doc.artLayers['Layer Name']

Also keep in mind that accessing a layer via artLayers only works for layers, not layer groups. For layer groups you have to use layerSets like so:
layer = doc.layerSets['Layer Group Name']


[Enhancement] Make maximal varchar string length configurable in fe.conf and be.conf. (backport #38957)

Why I'm doing:
This is needed as some of our workloads involve very long string length.
What I'm doing:
Simply make these the string length limits configurable through fe.conf and be.conf
What type of PR is this:

[ ] BugFix
[ ] Feature
[x] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Does this PR entail a change in behavior?

[ ] Yes, this PR will result in a change in behavior.
[x] No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

[ ] Interface/UI changes: syntax, type conversion, expression evaluation, display information
[ ] Parameter changes: default values, similar parameters but with different default values
[ ] Policy changes: use new policy to replace old one, functionality automatically enabled
[ ] Feature removed
[x] Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

[x] This is a backport pr

backport #38957


Store metric score file as csv, not anndata

It doesn't make a tonne of sense to use an anndata to store values exclusively in uns (e.g. https://github.com/openproblems-bio/openproblems-v2/blob/main/src/tasks/denoising/api/anndata_score.yaml). This should probably be a csv?

I don't love it but I can see the benefits. I'll leave this open and tagged as wontfix


Code clean up

This can be the last thing we do, but I noticed some redundant variables and stuff like that that we could clean up

As a part of this, I suggest the following;
Once everything is written and all the docs are written, we create a docs branch. This branch will store all of the files with their doc comments intact.
Then we remove all the comments from the files in master, as that is the branch people will be downloading, and we should keep those files as small as possible

Scratch the above comment. When we're making a release, we can select a branch. So we can leave docstrings in master branch.
When we release the code again, we make a release branch, remove all docstrings from the files, and maybe minify the js, then use this branch to create the release :)

As part of clean up, maybe provide static typing in at least Python:
https://pawelmhm.github.io/python/static/typing/type/annotations/2016/01/23/typing-python3.html
We don't have the typing module in Python3.4 but we can still use the syntax. It's not strictly enforced but it will make the docs look nicer. Looking for an equivalent in JavaScript

No equivalent for the JS, so maybe we could just keep it the way it is


[WIP] Testing some flaky tests

Fixes #

Proposed Changes

There are some tests flaking in https://github.com/knative-sandbox/eventing-kafka-broker/pull/2603
Disable all reconciler tests except those to see what happens

Release Note

Docs

/retest

/retest

/retest

/test reconciler-tests-namespaced-broker

/test unit-tests
/joke

/close
Increasing the timeout fixed it


Move runtimeschema to the App Runtime Interfaces WG

It only contains code used for TPC/CC Uploader.
cc/ @Gerg

Relevant RFC: https://github.com/cloudfoundry/community/blob/main/toc/rfc/rfc-0007-repository-ownership.md#ownership-changes

Working Group A wants to claim ownership of a repository currently owned by Working Group B.
Both Working Group A and Working Group B MUST approve the change to the sets of repositories they own.
The TOC MUST also approve the transfer of the repository from Working Group B to Working Group A.


Documentation lacking

The issue was created by @allar7 from https://github.com/MicrosoftDocs/feedback/issues/496
Link to article:
https://docs.microsoft.com/en-us/powershell/module/azure/select-azuresubscription?view=azuresmps-4.0.0
Problem:
Article does not include commandlets such as Select-AzureRmSubscription which leads to not having douments for customers to look at for RM specific commands. Customer found the documentation lacking.

@Powerhelmsman Thanks for your feedback! We will investigate and update as appropriate.

@Powerhelmsman Please refer to Manage multiple Azure subscriptions and Get-AzureRmSubscription documentation links.  This link also has other RM commands available.

@Powerhelmsman @allar7 We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


Duplicate translator hint comments

Describe the bug
When a translation string with a placeholder (%s) is used multiple times, the accompanying comment for translators is included as many times in the resulting POT file.
This also concerns the gulp-wp-pot package of course.
To Reproduce
I made a Gist with a minimal example to reproduce.
NB: This Gist also includes a feature that might be nice to include in the main package using an option.

Great, then I think it can be implemented. Could you create a separate issue for this since this one is going to close when I merge the bug fix?


Add docker-compose version check

Updating my Goerli node, I found that things stopped working, and I got unexpected errors about unsupported configuration items in prysm-base.yml.
I did some investigation and it appears that the profiles option which was introduced in 0e2447abd5031975a2e20c43b919f2aba4c36ce5 means that at least docker-compose version 1.28.0 is needed and mine was too old - Ubuntu version from default apt is 1.25.0.
This PR adds a simple version check to determine_compose(), similar to the Ubuntu version test.

I like it. It'll fail on macOS though. Could you take a look at the sed replacement for grep -oP in ethd update, and do something similar here? With that change it'll be ready to merge.


Bug Play Video Android

Im using the Android 4.1.1.
And cant play the video demo of JieCaoVdeoPlayer, this is the LogCat results:

04-27 13:28:04.376 1971-1971/fm.jiecao.jiecaovideoplayer D/OpenGLRenderer: TextureCache::callback: name, removed size, mSize = 14, 129600, 1464256
04-27 13:28:04.512 1971-1971/fm.jiecao.jiecaovideoplayer I/JieCaoVideoPlayer: backPress
04-27 13:28:05.740 1971-1971/fm.jiecao.jiecaovideoplayer I/JieCaoVideoPlayer: onClick start [1399947100]
04-27 13:28:05.740 1971-1971/fm.jiecao.jiecaovideoplayer D/JieCaoVideoPlayer: prepareMediaPlayer [1399947100]
04-27 13:28:05.740 1971-1971/fm.jiecao.jiecaovideoplayer D/JieCaoVideoPlayer: addTextureView [1399947100]
04-27 13:28:05.744 1971-1971/fm.jiecao.jiecaovideoplayer I/USER_EVENT: ON_CLICK_START_ICON title is : Titulo del Video url is : http://2449.vod.myqcloud.com/2449_22ca37a6ea9011e5acaaf51d105342e3.f20.mp4 screen is : 2
04-27 13:28:05.744 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: onMeasure  [1399947548]
04-27 13:28:05.744 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: videoWidth = 0, videoHeight = 0
04-27 13:28:05.744 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: viewRotation = 0
04-27 13:28:05.748 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: onMeasure  [1399947548]
04-27 13:28:05.748 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: videoWidth = 0, videoHeight = 0
04-27 13:28:05.756 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: viewRotation = 0
04-27 13:28:05.760 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: onMeasure  [1399947548]
04-27 13:28:05.760 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: videoWidth = 0, videoHeight = 0
04-27 13:28:05.760 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: viewRotation = 0
04-27 13:28:05.760 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: onMeasure  [1399947548]
04-27 13:28:05.760 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: videoWidth = 0, videoHeight = 0
04-27 13:28:05.760 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: viewRotation = 0
04-27 13:28:05.772 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: onMeasure  [1399947548]
04-27 13:28:05.772 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: videoWidth = 0, videoHeight = 0
04-27 13:28:05.772 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: viewRotation = 0
04-27 13:28:05.772 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: onMeasure  [1399947548]
04-27 13:28:05.772 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: videoWidth = 0, videoHeight = 0
04-27 13:28:05.772 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: viewRotation = 0
04-27 13:28:05.780 1971-1971/fm.jiecao.jiecaovideoplayer I/JieCaoVideoPlayer: onSurfaceTextureAvailable [1400058652]
04-27 13:28:05.780 1971-2008/fm.jiecao.jiecaovideoplayer W/MediaPlayer: setScreenOnWhilePlaying(true) is ineffective without a SurfaceHolder
04-27 13:28:05.780 1971-2008/fm.jiecao.jiecaovideoplayer W/MediaPlayer: setScreenOnWhilePlaying(true) is ineffective for Surface
04-27 13:28:06.268 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: onMeasure  [1399947548]
04-27 13:28:06.268 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: videoWidth = 0, videoHeight = 0
04-27 13:28:06.268 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: viewRotation = 0
04-27 13:28:06.300 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: onMeasure  [1399947548]
04-27 13:28:06.304 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: videoWidth = 0, videoHeight = 0
04-27 13:28:06.304 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: viewRotation = 0
04-27 13:28:11.400 1971-1981/fm.jiecao.jiecaovideoplayer E/MediaPlayer: error (1, -2147483648)
04-27 13:28:11.400 1971-2008/fm.jiecao.jiecaovideoplayer E/MediaPlayer: Error (1,-2147483648)
04-27 13:28:11.456 1971-1971/fm.jiecao.jiecaovideoplayer I/JieCaoVideoPlayer: onVideoSizeChanged  [1399947100]
04-27 13:28:11.456 1971-1971/fm.jiecao.jiecaovideoplayer I/JieCaoVideoPlayer: onPrepared  [1399947100]
04-27 13:28:11.580 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: onMeasure  [1399947548]
04-27 13:28:11.580 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: videoWidth = 640, videoHeight = 480
04-27 13:28:11.580 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: viewRotation = 0
04-27 13:28:11.580 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: widthMeasureSpec  [MeasureSpec: EXACTLY 720]
04-27 13:28:11.580 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: heightMeasureSpec [MeasureSpec: EXACTLY 1184]
04-27 13:28:11.580 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: onMeasure  [1399947548]
04-27 13:28:11.580 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: videoWidth = 640, videoHeight = 480
04-27 13:28:11.580 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: viewRotation = 0
04-27 13:28:11.580 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: widthMeasureSpec  [MeasureSpec: EXACTLY 720]
04-27 13:28:11.580 1971-1971/fm.jiecao.jiecaovideoplayer I/JCResizeTextureView: heightMeasureSpec [MeasureSpec: EXACTLY 1184]
04-27 13:28:11.580 1971-1971/fm.jiecao.jiecaovideoplayer I/JieCaoVideoPlayer: onSurfaceTextureSizeChanged [1400058652]
04-27 13:28:11.588 1971-1971/fm.jiecao.jiecaovideoplayer E/JieCaoVideoPlayer: onError 1 - -2147483648 [1399947100]
04-27 13:28:11.632 1971-1971/fm.jiecao.jiecaovideoplayer W/System.err: java.lang.IllegalStateException
04-27 13:28:11.632 1971-1971/fm.jiecao.jiecaovideoplayer W/System.err:     at android.media.MediaPlayer.getDuration(Native Method)
04-27 13:28:11.632 1971-1971/fm.jiecao.jiecaovideoplayer W/System.err:     at fm.jiecao.jcvideoplayer_lib.JCVideoPlayer.getDuration(JCVideoPlayer.java:737)
04-27 13:28:11.632 1971-1971/fm.jiecao.jiecaovideoplayer W/System.err:     at fm.jiecao.jcvideoplayer_lib.JCVideoPlayer.setProgressAndText(JCVideoPlayer.java:747)
04-27 13:28:11.632 1971-1971/fm.jiecao.jiecaovideoplayer W/System.err:     at fm.jiecao.jcvideoplayer_lib.JCVideoPlayerStandard.setProgressAndText(JCVideoPlayerStandard.java:321)
04-27 13:28:11.632 1971-1971/fm.jiecao.jiecaovideoplayer W/System.err:     at fm.jiecao.jcvideoplayer_lib.JCVideoPlayer$ProgressTimerTask$1.run(JCVideoPlayer.java:709)
04-27 13:28:11.632 1971-1971/fm.jiecao.jiecaovideoplayer W/System.err:     at android.os.Handler.handleCallback(Handler.java:615)
04-27 13:28:11.632 1971-1971/fm.jiecao.jiecaovideoplayer W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:92)
04-27 13:28:11.632 1971-1971/fm.jiecao.jiecaovideoplayer W/System.err:     at android.os.Looper.loop(Looper.java:137)
04-27 13:28:11.632 1971-1971/fm.jiecao.jiecaovideoplayer W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:4745)
04-27 13:28:11.632 1971-1971/fm.jiecao.jiecaovideoplayer W/System.err:     at java.lang.reflect.Method.invokeNative(Native Method)
04-27 13:28:11.632 1971-1971/fm.jiecao.jiecaovideoplayer W/System.err:     at java.lang.reflect.Method.invoke(Method.java:511)
04-27 13:28:11.632 1971-1971/fm.jiecao.jiecaovideoplayer W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
04-27 13:28:11.632 1971-1971/fm.jiecao.jiecaovideoplayer W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
04-27 13:28:11.636 1971-1971/fm.jiecao.jiecaovideoplayer W/System.err:     at dalvik.system.NativeStart.main(Native Method)
04-27 13:28:11.636 1971-1971/fm.jiecao.jiecaovideoplayer W/System.err: java.lang.IllegalStateException
04-27 13:28:11.636 1971-1971/fm.jiecao.jiecaovideoplayer W/System.err:     at android.media.MediaPlayer.getDuration(Native Method)
04-27 13:28:11.636 1971-1971/fm.jiecao.jiecaovideoplayer W/System.err:     at fm.jiecao.jcvideoplayer_lib.JCVideoPlayer.getDuration(JCVideoPlayer.java:737)
04-27 13:28:11.636 1971-1971/fm.jiecao.jiecaovideoplayer W/System.err:     at fm.jiecao.jcvideoplayer_lib.JCVideoPlayerStandard.setProgressAndText(JCVideoPlayerStandard.java:323)
04-27 13:28:11.636 1971-1971/fm.jiecao.jiecaovideoplayer W/System.err:     at fm.jiecao.jcvideoplayer_lib.JCVideoPlayer$ProgressTimerTask$1.run(JCVideoPlayer.java:709)
04-27 13:28:11.636 1971-1971/fm.jiecao.jiecaovideoplayer W/System.err:     at android.os.Handler.handleCallback(Handler.java:615)
04-27 13:28:11.636 1971-1971/fm.jiecao.jiecaovideoplayer W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:92)
04-27 13:28:11.636 1971-1971/fm.jiecao.jiecaovideoplayer W/System.err:     at android.os.Looper.loop(Looper.java:137)
04-27 13:28:11.636 1971-1971/fm.jiecao.jiecaovideoplayer W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:4745)
04-27 13:28:11.636 1971-1971/fm.jiecao.jiecaovideoplayer W/System.err:     at java.lang.reflect.Method.invokeNative(Native Method)
04-27 13:28:11.636 1971-1971/fm.jiecao.jiecaovideoplayer W/System.err:     at java.lang.reflect.Method.invoke(Method.java:511)
04-27 13:28:11.636 1971-1971/fm.jiecao.jiecaovideoplayer W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
04-27 13:28:11.636 1971-1971/fm.jiecao.jiecaovideoplayer W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
04-27 13:28:11.636 1971-1971/fm.jiecao.jiecaovideoplayer W/System.err:     at dalvik.system.NativeStart.main(Native Method)

用新版，这个问题已经解决

I have the most recently version :(

I test the demo, in real phone, I don't have Emulator


added ResponseErrorFunc

Hi!
Could you elaborate a bit on what you see this being useful for? Is it generally useful, or is it something that could go in a separate RoundTripper that wraps the cache?

Another ping @admpub, see above.

Closing because this PR is old and no response from author. It seems likely this functionality can be achieved by an http.RoundTripper wrapper, and it's not neccessary to add this to httpcache package. Can be reopened if needed.


Define rational to handle exception

Overview
This patch series propose to define clearly how to handle Exception to ensure they are correctly reported by a standard WPS.
The first patch redefine the process status to match the definition given by WPS standard. The second patch depend on it.
The second patch actually define how Exception should be handled, and what each functions must do to ensure the proper output of the services. It's also implement the rational.
Best regards
Contribution Agreement
(as per https://github.com/geopython/pywps/blob/master/CONTRIBUTING.rst#contributions-and-licensing)

[x] I'd like to contribute [feature X|bugfix Y|docs|something else] to PyWPS. I confirm that my contributions to PyWPS will be compatible with the PyWPS license guidelines at the time of contribution.
[x] I have already previously agreed to the PyWPS Contributions and Licensing Guidelines

To pass unit test this patch series need #361
Best regards

I updated the branch to pass unit tests with #361

@gschwind I have made a quick check with your PR but I'm running into an exception (post request). I'm using your patched pywps with my Emu WPS:
https://github.com/bird-house/emu
When I run an excecute post process (birdy, owslib) with the hello  process I get the following exception:
2018-07-16 13:39:27,895] [ERROR] line=45 module=exceptions Exception: code: 500, locator: No applicable error code, please check error log, description:
Traceback (most recent call last):
  File "/Users/pingu/Documents/GitHub/birdhouse/pywps/pywps/app/Service.py", line 428, in call
    request_uuid
  File "/Users/pingu/Documents/GitHub/birdhouse/pywps/pywps/app/Service.py", line 83, in execute
    return self._parse_and_execute(process, wps_request, uuid)
  File "/Users/pingu/Documents/GitHub/birdhouse/pywps/pywps/app/Service.py", line 162, in _parse_and_execute
    wps_response = process.execute(wps_request, uuid)
  File "/Users/pingu/Documents/GitHub/birdhouse/pywps/pywps/app/Process.py", line 118, in execute
    wps_response = self._execute_process(self.async, wps_request, wps_response)
  File "/Users/pingu/Documents/GitHub/birdhouse/pywps/pywps/app/Process.py", line 157, in _execute_process
    self._run_async(wps_request, wps_response)
  File "/Users/pingu/Documents/GitHub/birdhouse/pywps/pywps/app/Process.py", line 179, in _run_async
    wps_response.update_status(self.status, u"PyWPS Request accepted", 0)
AttributeError: 'SayHello' object has no attribute 'status'

I suppose there are still methods that need to be converted for the status handling.

Thank you for the review I will have a closer look at it this evening (CET)

Coverage increased (+0.3%) to 73.443% when pulling c6b75705dcccb3f8befdbc212d9ce9b7390b6af4 on gschwind:define-rational-to-handle-exception into abdd4a3f01404e98d2d1705663537f9c2d1e5552 on geopython:master.

Coverage increased (+0.3%) to 73.443% when pulling c6b75705dcccb3f8befdbc212d9ce9b7390b6af4 on gschwind:define-rational-to-handle-exception into abdd4a3f01404e98d2d1705663537f9c2d1e5552 on geopython:master.

Should be fine now :)
Best regards

Hello,
Do not be sorry for that, this is the point of review. Thanks for your review.
The patch break the API of update_status, I choose to break the API instead of keeping the old one.
I can write a code that somehow map the old API to the new one, but does it wanted ?
If it is wanted I can update the code to keep the old API.
in your case the line of the old API
response.update_status('PyWPS Process started. Waiting...', 20)
should be replaced by:
from pywps.response.status import WPS_STATUS
response.update_status(WPS_STATUS.STARTED, 'PyWPS Process started. Waiting...', 20)

Best regard

does that mean the user defined process has to decide which status the process execution currently has? I think that should be handled by pywps internally .... the process code just gives progress information.

Yes it was the idea, in particular to set it to paused or failed. It was my understanding because the user can change the status with the old API, using the status argument.
But maybe I'm wrong :)

Changing it is trivial, so just tell me what is preferred

I would prefer if the process can optionally set job status. But by default pywps should handle the states internally. @jachym should have the final word :)

Sorry for long time take me to review this (FOSS4G syndrome), but I would like to say, that this patch is very well needed, thank you @gschwind you dived into this.
I agree with @cehbrecht that the process itself should not set WPS_STATUS state internally, this should be done from PyWPS automagically - but the process should set status message (and percent done).
Reasoning:

When the request arrives to the server, forst status is ProcessAccepted
Then the calculation starts, therefore the status is set to ProcessStarted
When the calculation is done, the process is set to ProcessSuccessfull (iirc)
If something fails, its set to ProcessFailed

In the future ProcessPaused and other are going to be set from the main thread (from PyWPS) - the process should not inteact with this status.
Only two statuses, which could be considered, is that the process could explicetly state ProcessSuccessfull or ProcessFailed - but this is ensured either with standard return response or by any kind of exception.
Do you agree?

Well, I agree. @jachym thanks for giving more insight on this. @gschwind do you like to make the changes?

Hello,
@jachym: I'm fine with your explanation, with few comment,
I agree to limit the control of user over the response status, I that case I would remove the status from the public API.
About the life time of the request I would describe it as follow:

When the request arrives to the server the status is Unknow until the request is validated, e.g. check for valid GetCapabilities, DescribeProcess or Execute request, if an error occur in that stage, the error is reported as XML WPSException.
Then once validated the status is ProcessAccepted, from this stage, the errors are reported by a XML WPSException if the request is a RAW, and by the status file with WPSException otherwise.
Just before the handler is called, the calculation starts, therefore the status is set to ProcessStarted. e.g. while the process is in queue in particular for async mode, it's status remains ProcessAccepted till it's actually started.
When the calculation is done, the process is set to ProcessSuccessfull (iirc)
If the handler raise an Exception, its set to ProcessFailed

In the current version, I expect that the process is successful if no exception is raised. I do not consider the return value of the handler, I want to avoid that the user instantiate it's own response by mistake.
@cehbrecht : Yes I will do this :), just wait for the week-end ;)
Best regards

Hello,
update according previous discussion :)
Best regards

Hello,
I use PyWPS to serve some of our WPS, having a better code base for pywps is helping for future improvement, like the support of WPS 2.0.0.
Basically it's the way of open souces/free software.
You are my hero to maintain this codes :)


Fields are not visible in admin with Grapelli unless Constance precedes everything else in INSTALLED_APPS

Describe the problem
My project uses Grappelli extension for django admin and unless Constance is mentioned before Grapelli, Constance fields would not show up(though Constance config is visible in admin). My settings.py that works after all:
INSTALLED_APPS = (
    'constance',
    'grappelli',
    'nested_admin',
    'django.contrib.sites',
    'django.contrib.auth',
    'django.contrib.admin',

Took me some time to figure out. Should this perhaps be documented?
Thanks!
System configuration

Django version: 1.8
Python version: 2.7

Please document it and make a pull request. I'll be happy to merge it. Thanks.


Makes wiki ToC sticky

Makes ToC follows viewport on wiki pages to ease navigation.
Top of page

Scrolled

It just occured to me that this might do exciting things if the ToC is, itself, as tall as the viewport. I don't know if that's a case we care to account for.

Yes, sticky big TOC can get annoying because one has to scroll to the page end to scroll the TOC. For that reason, I'm undecided whether this change is a good idea.

Yes, sticky big TOC can get annoying because one has to scroll to the page end to scroll the TOC. For that reason, I'm undecided whether this change is a good idea.

We could give the TOC a max height with a scrollbar?

We could give the TOC a max height with a scrollbar?

No, nested scrollbars are generally confusing UX.
One solution might be to sticky only if TOC height is less than viewport height but that'll probably require some JavaScript.

Even as is, I think this is more useful than not?
At present, you always have to scroll to the top of the page to get back to the ToC. With this change, at least you only need to do it with very long ToCs.
Querying the container height in JS seems like the full package, but I am less familiar with the JS usage in the front end...

No, I think a JS solution is probably not what we want in any case. Let's see what others think about this change. I personally am undecided, pro's and con's are about equal.

if you add _Sidebar.md which has a lot of list elements (a manually kept Index of pages for example), with this change the TOC box starts scrolling "into itself" as the Sidebar goes up, until the Sidebar reaches the top then the TOC box scrolls off screen. As soon as the Sidebar scrolls out of view, the TOC will reappear again below it. Add a _Sidebar.md with say 30 list items, a very long wiki article (pages long) and then test this change and you should see the behaviour.

Good catch! Perhaps in the presence of a custom sidebar, the ToC should not attempt to be sticky?

@tepozoa Would be a good issue for a separate PR I think - style the ToC differently on Mobile so it appears above, rather than next to, the wiki.

@lafriks that would be the ideal UX. But I was trying to avoid a js solution because I'm not sure how to implement it in this codebase.

Thank you for the contribution.
I can see that there are some unresolved review comments. Actually, I also have the same concern about "long TOC scrolling" problem (no idea at the moment, too).
Gitea's wiki system is far from ideal, there are too many design problems from beginning. For the TOC part, there are many issues discussing about how it should be displayed, etc, it's difficult to come to some agreements and it's difficult to improve and satisfy everone at the moment.
So, before there is a whole good/clear design for the wiki system, I guess users could fine tune the wiki UI by using customized CSS styles/JS scripts.
Could this PR be closed? Thank you again.


Link to documentation broken for HTML form fields

Describe the bug
Link to documentation in the HTML form field is broken
Steps to reproduce
https://github.com/camunda/camunda-modeler/assets/85225325/bbe99fbd-7c02-4325-8abf-7321863f0b3e
Expected behavior
Link to documentation should work
Environment

OS: [Windows 10]
Camunda Modeler Version: [5.20.0]
Execution Platform: [ Camunda 8]
Installed plug-ins: [...]

Additional context
No response

This is supposedly going to be addressed in a timely manner (with v8.4.0-alpha-1 release) (ref)

Unfortunately this is not published (yet). The documentation is available under the next umbrella, but not part of our latest train.

Fixed upstream via https://github.com/bpmn-io/form-js/pull/1039.


NTR: cellular response to very-low-density lipoprotein particle stimulus

Re: PMID:7592957, Figure 1.
Results: "...incubation of the cells in N2 medium containing b-VLDL resulted in a markedly different pattern in the outgrowth of neurites from these cells. Apolipoprotein E3-secreting cells incubated with b-VLDL developed long neurites (Fig. 1A), whereas in apoE4-secreting cells, neurite outgrowth was suppressed (Fig. 1B)."
I would like to request a new term  'cellular response to very-low-density lipoprotein particle stimulus'.
It would be a child of 'cellular response to lipoprotein particle stimulus', and a sibling of: 'cellular response to low-density lipoprotein particle stimulus' as well as 'cellular response to high-density lipoprotein particle stimulus'.

Added:
[Term]
+id: GO:0090731
+name: cellular response to very-low-density lipoprotein particle stimulus
+namespace: biological_process
+def: "Any process that results in a change in state or activity of a cell (in terms of movement, secretion, enzyme production, gene expression, etc.) as a result of a very-low-density lipoprotein particle stimulus." [GOC:bc, GOC:BHF]
+synonym: "cellular response to VLDL particle stimulus" EXACT []
+is_a: GO:0071402 ! cellular response to lipoprotein particle stimulus
+created_by: tanyaberardini
+creation_date: 2017-01-31T17:10:08Z

Thanks @tberardini
Would it be possible to change the attribution from [GOC:bc, GOC:BHF] to [GOC:bc, GOC:ARUK]?
I am currently working on a project funded by Alzheimer's Research UK (ARUK). I should have specified this in my original request. My apologies!
Barbara

Ok, changed.

Thank you!


Review and process reports

Review and “process” reports submitted by paleontologists, consultants, industry or members of the public. (Note: these are four different kinds of submitted reports.  Also note the distinction between submitted reports and generated reports.) For all types of submitted reports, “Processing” a report means the data custodian assigns it a status.  Status options are: [Received (the initial status); In progress; Additional information required; Information added to database; Unable to verify information; Insufficient information; Not a fossil].  The status may be changed.  E.g. Received -> In progress -> Information added to database.

@bferguso @LeannePyle @elisabethdeom External users not part of MVP. Data entry to be done by branch for now.
Should we breakout into separate submitting groups?
What and why is being submitted?


l10n | New function l10n.k to manage translation by key instead of English natural text translation

Hi,
Extract from:

#28

The l10n solution based on the use of the natural language (English) as a search key for localization poses the problem that each change in text used as a search key for localization immediately has an impact on all bundle language files: a typography correction in the text used as a search key requires to modify all the bundle files of the proposed localization languages.
The l10n solution should at least offer a way to define key values, truly neutral, as for package.nls.json files, not linked to a particular language, with bundle files containing the texts for the different languages, including a default bundle that can be English for its universal aspect.
To limit the impacts on existing extensions, this could be implemented by offering a new function other than l10n.t('text') to manage searches by key and not searches by text, for example a l10n.k('key') function:

the VS Code core must load at least one bundle file, either the one corresponding to current active language, bundle.l10n.<locale>.json, or the default bundle file (without explicit language), bundle.l10n.json,
searching for the text associated with the key using l10n.k('key') must be done regardless of the active language, including English.

As summary, the difference between the two functions would be:

l10n.t('text'): ignores the bundle.l10n.json file, and imposes the use of the English language in texts used in the extension, also imposes a definitive version of the texts used in the extension
l10n.k('key'): takes into account the bundle.l10n.json file, and does not impose the use of the English language in the texts used in the extension, which also allows deferring and delegating translation to different translators

See also:

Support for different default language #168127

Thanks.

Instead of a new function, I think something like this would be better:
l10n.t({ key: 'somekey' });

This would also allow for:
l10n.t({
  key: 'somekey',
  message: 'same message property that already exists'
});

which is an ask we have here https://github.com/microsoft/vscode/issues/193738

Marking this as a duplicate of https://github.com/microsoft/vscode/issues/193738


x/website: Installation issues in windows

What is the URL of the page with the issue?
I am trying to install Revel framework in my windows system but couldn't proceed. I am new to Go.
What is your user agent?

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36
Screenshot

https://ibb.co/cgs900p
What did you do?

I am trying to install Revel framework but it is not working  and showing some errors. I am following below URL: https://revel.github.io/tutorial/gettingstarted.html
I am using go version: go1.17.5 windows/amd64
What did you expect to see?
Proper and working installation but seems like I am missing something here. Please advice.
What did you see instead?
Screenshot: https://ibb.co/q9zyWN2
Errors: Please check the lines below
C:\Users\subrata.DESKTOP-EFH837L\gocode\paysignet>go get github.com/revel/revel
go get: module github.com/fsnotify/fsnotify: Get "https://proxy.golang.org/github.com/fsnotify/fsnotify/@v/list": read tcp [2405:201:8001:5821:1d0b:4845:ed9e:2569]:49197->[2404:6800:4009:831::2011]:443: wsarecv: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
go get: module github.com/go-stack/stack: Get "https://proxy.golang.org/github.com/go-stack/stack/@v/list": read tcp [2405:201:8001:5821:1d0b:4845:ed9e:2569]::4845:ed9e:2569]:49197->[2404:6800:4009:831::2011]:443: wsarecv: A connection attempt failed because the connected party did not properly resod of time, or espond after a period of time, or established connection failed because connected host has failed to respond.
go get: module github.com/mattn/go-colorable: Get "https://proxy.golang.org/github.com/mattn/go-colorable/@v/list": read tcp [2405:201:8001:5821:1d0b:4845:ed9821:1d0b:4845:ed9e:2569]:49197->[2404:6800:4009:831::2011]:443: wsarecv: A connection attempt failed because the connected party did not propr a period of timerly respond after a period of time, or established connection failed because connected host has failed to respond.
go get: module github.com/revel/config: Get "https://proxy.golang.org/github.com/revel/config/@v/list": read tcp [2405:201:8001:5821:1d0b:4845:ed9e:2569]:49195:ed9e:2569]:49197->[2404:6800:4009:831::2011]:443: wsarecv: A connection attempt failed because the connected party did not properly respondf time, or establ after a period of time, or established connection failed because connected host has failed to respond.
go get: module github.com/revel/pathtree: Get "https://proxy.golang.org/github.com/revel/pathtree/@latest": read tcp [2405:201:8001:5821:1d0b:4845:ed9e:2569]::4845:ed9e:2569]:57205->[2404:6800:4009:831::2011]:443: wsarecv: A connection attempt failed because the connected party did not properly resod of time, or espond after a period of time, or established connection failed because connected host has failed to respond.
go get: module golang.org/x/net/websocket: Get "https://proxy.golang.org/golang.org/x/net/websocket/@v/list": read tcp [2405:201:8001:5821:1d0b:4845:ed9e:25690b:4845:ed9e:2569]:57205->[2404:6800:4009:831::2011]:443: wsarecv: A connection attempt failed because the connected party did not properly rriod of time, or espond after a period of time, or established connection failed because connected host has failed to respond.
go get: module gopkg.in/natefinch/lumberjack.v2: Get "https://proxy.golang.org/gopkg.in/natefinch/lumberjack.v2/@v/list": read tcp [2405:201:8001:5821:1d0b:488001:5821:1d0b:4845:ed9e:2569]:57205->[2404:6800:4009:831::2011]:443: wsarecv: A connection attempt failed because the connected party did nod after a period t properly respond after a period of time, or established connection failed because connected host has failed to respond.
go get: module gopkg.in/stack.v0: Get "https://proxy.golang.org/gopkg.in/stack.v0/@v/list": read tcp [2405:201:8001:5821:1d0b:4845:ed9e:2569]:57205->[2404:680:57205->[2404:6800:4009:831::2011]:443: wsarecv: A connection attempt failed because the connected party did not properly respond after a perstablished conneciod of time, or established connection failed because connected host has failed to respond.
Please help

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
For questions please refer to https://github.com/golang/go/wiki/Questions


Faster energy calculation for exact states

Description
Use numpy to speedup calculations
Motivation and Context

Much faster energy estimates for exact states
How Has This Been Tested?

Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Closed since pulling to r0.3


ZFP for HIP instructions

I am trying to build ZFP for HIP and noticed that you have it as a feature however I am not able to find any documentation on what to enable and examples to use AMD GPUs for ZFP.
I built feature/hip-support and when passing the ctest, I did rocm-smi and it shows the GPU is not being used.
Could you help me with some instructions on this issue? Appreciate you!

You first need to build zfp with HIP support and then enable the HIP execution policy at run time.  reStructuredText documentation for both is available in docs/source/execution.rst and docs/source/installation.rst.  If you have Sphinx installed, you can 'build' the documentation as html, for instance, via
cd docs
make

which should result in docs/build/html/index.html.
Note that we are in the process of adding HIP support for variable-rate compression, but this feature still has some issues and those tests are currently failing.  The fixed-rate mode should work, however.

@pkoosha Please let me know if your questions are answered in the documentation.  If so, I'd like to go ahead and close this issue.

It has not been resolved.
I am running the following command I see the following error:
cmake .. -DCMAKE_INSTALL_PREFIX=$PWD/install-zfp -DZFP_WITH_HIP=ON -DHIP_PATH=/opt/rocm-4.2.0/lib/cmake -DAMDDeviceLibs_DIR=/opt/rocm-4.2.0/lib/cmake/AMDDeviceLibs/ -Damd_comgr_DIR=/opt/rocm-4.2.0/lib/cmake/amd_comgr/ -Dhsa-runtime64_DIR=/opt/rocm-4.2.0/lib/cmake/hsa-runtime64/ -DROCclr_DIR=/opt/rocm-4.2.0/lib/cmake/rocclr/ -Dhipcub_DIR=/opt/rocm-4.2.0/lib/cmake/hipcub/ -Drocprim_DIR=/opt/rocm-4.2.0/lib/cmake/rocprim/ -Dhip_DIR=/opt/rocm-4.2.0/lib/cmake/
CMake Error at src/CMakeLists.txt:37 (hip_add_library):
Unknown CMake command "hip_add_library".

This is how we're building zfp with hip on Linux:
cmake .. -DZFP_WITH_HIP=ON -DHIP_PATH=/opt/rocm-4.2.0/hip -DZFP_WITH_OPENMP=OFF -DCMAKE_CXX_STANDARD=11 -DCMAKE_C_STANDARD=11 -DCMAKE_C_COMPILER=hipcc -DCMAKE_CXX_COMPILER=hip

I confirm that my issue have been resolved. However, when using RoCM 4.2 I am getting conflicting types for int8 and uint8 from ZFP.h include file and hip_vector_types.h.
/home/project/zfp/zfp/build/install-dir/include/zfp/types.h:59:23: error: conflicting types for ‘int8’
typedef signed char int8
/opt/rocm-4.2.0/hip/include/hip/amd_detail/hip_vector_types.h:1534:32: note: previous declaration of ‘int8’ was here
typedef union { int data[8]; } int8;
I was wondering do you support a specific version of RoCM libraries for having ZFP features? Thanks

I cannot reproduce this error, even though I do see that clashing type definition in hip_vector_types.h.  What operating system are you on?  Are you including specific hip headers to trigger this, or does it occur when building zfp?
We plan on eventually replacing int8 with int8_t and similar.  We'll be more motivated to make this change sooner rather than later (at least on the hip branch) if there's an incompatibility with hip.
We've successfully built zfp this way on Linux with RoCM 4.0, 4.1, 4.2, and 4.3.  I should note that the build line above got cut off.  The last macro should of course read -DCMAKE_CXX_COMPILER=hipcc.

This is to confirm that I was able to build and use ZFP API for AMD inside my application after building everything with GCC 11. Thank you for your help

Glad to hear it.  Our HIP support is still in an experimental phase, with only fixed-rate mode working properly.  We'll be sure to debug and test this feature more thoroughly before it's officially released.


Collaboration for private registries

In addition to deploying and managing a private registry, Rancher can support a "Github" like experience on top of it for user collaboration.

Closing due to inactivity.


[BUG] Unexpected EOF error when i open the terminal

Hi! I downloaded francinette image and i worked fine up until today, when i tried opening the terminal and (without even running francinette) i got an error every second. it says "Loading the docker container... Unexpected EOF"
Are the some lines I have to add to my zshrc file to prevent this from happening?
Best wishes and thanks for creating such a useful tool!
Nina

Hey, hi there!! 👋👋
Thank you for your message and sorry for the issue you're encountering.
This error usually happens when the francinette.tar file located in ~/francinette-image is either corrupted or missing. This can be due to bugs during installation or if the disk is full.
I suggest the following steps to resolve the problem:

Check disk space:

Make sure your disk isn’t full, as insufficient space can prevent the proper installation of files.

Uninstall francinette-image:

Copy and paste this command in your terminal to properly uninstall francinette-image:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/WaRtr0/francinette-image/master/uninstall.sh)"

Ensure that the ~/francinette-image folder no longer exists after this operation.

 If the problem persists or something goes wrong during reinstallation, feel free to let me know and tell me at which step the issue occurs.
Thx 🙏
Max


[Doc] 1.1 版本 不支持 Java UDF 函数

Search before asking

[X] I had searched in the issues and found no similar issues.

Version
v1.1.2
What's Wrong?
官方文档中介绍了 Java UDF 函数，但是 1.1.2 版本不支持 Java UDF 函数
What You Expected?
修改官方文档，指定支持版本
How to Reproduce?
No response
Anything Else?
No response
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

https://github.com/apache/doris-website/pull/144

apache/doris-website#144 已删除，会在1.2版本支持
what time will the version of 1.2 be pushed?

apache/doris-website#144 已删除，会在1.2版本支持
what time will the version of 1.2 be pushed?

Within one month


add email verification view

This PR should be merged when https://github.com/Laravel-Backpack/CRUD/pull/5301 gets merged.

I think this is nice and pretty now. Ready to go!


tweak(compat/qb-target): explicitly get vec3

This change converts zones that were given a vector4 value to the proper expected vector3 value in lib, as a compatibility change. Previously qb-target didn't care for vec4 or vec3.

lib.zones has a convertToVector function that takes a set of coords which could be a table or vector3; I didn't account for vector4 because why are you sending a vector4?
local function convertToVector(coords)
    local _type = type(coords)

    if _type ~= 'vector3' then
        if _type == 'table' then
            return vec3(coords[1] or coords.x, coords[2] or coords.y, coords[3] or coords.z)
        end

        error(("expected type 'vector3' or 'table' (received %s)"):format(_type))
    end

    return coords
end

This change just assumes people are sending a vector, but both C# and JS runtimes exists and cannot send a vector; relying on either an array {x, y, z} or map {x=x, y=y, z=z}.


Parsing body with all: true broken in hono 4.3.3 and above

What version of Hono are you using?
4.3.5
What runtime/platform is your app running on?
Cloudflare Workers
What steps can reproduce the bug?
Parsing the request body with all set to true (c.req.parseBody({ all: true })) is broken in Hono version 4.3.3 and above (tested with 4.3.3, 4.3.4, 4.3.5).
Code that works in 4.3.2:
app.post('/upload', async (c) => {
  const body = await c.req.parseBody<{ file: File | File[] }>({ all: true })
  const files = Array.isArray(body['file']) ? body['file'] : [body['file']]

  if (files.length === 0) {
    c.status(400)
    return c.json({ error: 'No files' })
  }

  return c.json({ fileNames: files.map((file) => file.name) })
})

This can be tested with the following curl command:
curl -F<EMAIL_ADDRESS>-F<EMAIL_ADDRESS>http://localhost:8787/upload

What is the expected behavior?
Parsing all form values into the response, this works in Hono 4.3.2 and below.
What do you see instead?
Running in local development results in the error below:
> wrangler dev src/index.ts

 ⛅ wrangler 3.55.0
-------------------
⎔ Starting local server...
[wrangler:inf] Ready on http://localhost:8787
✘ [ERROR] TypeError: formKey is not iterable

      at handleParsingAllValues
  (file:///Users/paul/tmp/hono-test/node_modules/.pnpm/hono@4.3.5/node_modules/hono/dist/utils/body.js:35:27)
      at null.<anonymous>
  (file:///Users/paul/tmp/hono-test/node_modules/.pnpm/hono@4.3.5/node_modules/hono/dist/utils/body.js:25:7)
      at convertFormDataToBodyData
  (file:///Users/paul/tmp/hono-test/node_modules/.pnpm/hono@4.3.5/node_modules/hono/dist/utils/body.js:20:12)
      at parseFormData
  (file:///Users/paul/tmp/hono-test/node_modules/.pnpm/hono@4.3.5/node_modules/hono/dist/utils/body.js:14:12)
      at async HonoRequest.parseBody
  (file:///Users/paul/tmp/hono-test/node_modules/.pnpm/hono@4.3.5/node_modules/hono/dist/request.js:59:24)
      at async Array.<anonymous> (file:///Users/paul/tmp/hono-test/src/index.ts:6:16)
      at async jsonError
  (file:///Users/paul/tmp/hono-test/node_modules/.pnpm/wrangler@3.55.0_@cloudflare+workers-types@4.20240502.0/node_modules/wrangler/templates/middleware/middleware-miniflare3-json-error.ts:22:10)
      at async drainBody
  (file:///Users/paul/tmp/hono-test/node_modules/.pnpm/wrangler@3.55.0_@cloudflare+workers-types@4.20240502.0/node_modules/wrangler/templates/middleware/middleware-ensure-req-body-drained.ts:5:10)

[wrangler:inf] POST /upload 500 Internal Server Error (17ms)

Additional information
No response

Hi @pdlug
I've fixed it and released the new version v4.3.6, which includes the fix!


Send event if reconciler creates cluster too long

Description
Changes proposed in this pull request:

...
...
...

Related issue(s)

/retest


De-activable Markdown conversion in CodeBlock

While using markdown_to_notion() for the title property makes lot's of sense for most blocks, it might be an issue for CodeBlock.
I saw that property_map has a flag for markdown conversion but it's not accessible from the block initialisation.
https://github.com/jamalex/notion-py/blob/ef0c5e02bd4ae5ad8d34c6c56e4e842b15aeaa01/notion/maps.py#L47

I'm having issues with this while trying to upload yaml documents of the format
title: Test
tags:
  - Video Game Art
  - Blender
  - Modelling
  - Render
  - Cycles
  - Quackventures
permalink: test
id: 59f834a1fe4ed100192567da
updated: '2018-06-14T07:20:33.000Z'
date: 2016-02-08 03:59:20

cause issues. The yaml array gets parsed as Markdown and each line becomes separated by a new line and loses the array prefix  -

After further investigation, you can monkey-patch markdown=False with
from notion.block import CodeBlock
from notion.maps import property_map
CodeBlock.title = property_map('title', markdown=False)

but the problem is the CodeBlock actually supports Markdown in it (?!). So you'll get CodeBlock's from the backend looking like
[['titl'], ['e: Bobskater mmmmA Pytho', [['b']]], ['n obfuscation Library\ntags:\nmmmm'], ['Python\nmmmmpython3\nmmmmbobskater\nmmmmobfuscatio', [['s']]], ['n\nmmm'], ['mminify\nmmmmast\nmmmmabs', [['h', 'red']]], ["tract syntax tree\nmmmmregex\npermalink: bobskater-a-python-obfuscation-library\nid: 5adfe539190df80022801a50\nupdated: '2018-08-30T01:31:57.000Z'\ndate: 2018-05-04 21:11:00"]]

If you need a quick and dirty fix and don't need to support Markdown in your code blocks. Use the above fix and then make sure whenever you set title on a CodeBlock, you're actually passing in [["your code here"]] to satisfy Notion.so's format

Good catch! It actually looks as if this isn't something specific to CodeBlock, as the same thing happens with a basic block when multiple lines prefixed with - are set. It's just less common outside of a CodeBlock. It seems to be a problem with the way I'm doing "Markdown to Notion" conversion. Or rather, I think it may just be an inherently tricky/ambiguous case, where it doesn't have a good way to tell, when going from Markdown to Notion format, when to interpret literally and when to interpret as Markdown annotations.

the problem is the CodeBlock actually supports Markdown in it (?!)

Exactly. This would all be much easier if we could assume there's no styling within a code block. But as you've observed, in Notion you can select text within a code block and, for example, make it bold.
I'm thinking to add a parallel title_plaintext property that strips (and adds) the [[ ]], but doesn't do any markdown conversion. I'll do a quick pass on that now, but let me know if you have any other suggestions.

After playing with this a bit more, a couple of observations:

The same problem happens with other types of Markdown in CodeBlocks (e.g. __stuff_like_this__ for bolding). This doesn't cause issues in the same way for other block types because they automatically convert __X__ and *X* on the fly into formatting as you type. This auto-styling doesn't happen in CodeBlocks.
I can't actually think of a case where dashes can be used for bullets within Notion (other than as a keyboard shortcut for converting the entire block into a BulletedListBlock). So there's no reason we should be touching dashes in the conversion process.

So... if it weren't for 1), then fixing 2) by ignoring dashes would be enough. I'm thinking to ignore dashes, but also just turn off markdown conversion completely for CodeBlock as suggested. This means that modifying an existing CodeBlock that had formatting internally will clear the formatting, but this seems like an uncommon scenario.

I really like the idea of title_plaintext. It preserves the current API and gives the user the ability to choose which one to use. Kind of like .innerHTML and .textContent in a way...

Ok, cool, if that resonates, then I'll go with that, along with disabling dash-conversion in the standard markdown conversion.

Ok, done! Will be in the upcoming release: https://github.com/jamalex/notion-py/pull/84


Compose download path contains an unecessary "v"

File: compose/install.md
When downloading docker-compose with this command : curl -L "https://github.com/docker/compose/releases/download/v1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose the file only contains Not Found.
root@tamerlan:~# curl -s -GI "https://github.com/docker/compose/releases/download/v1.29.2/docker-compose-$(uname -s)-$(uname -m)"
HTTP/2 404
server: GitHub.com
date: Sat, 15 Jan 2022 14:50:33 GMT
content-type: text/plain; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Accept-Encoding, Accept, X-Requested-With
permissions-policy: interest-cohort=()
cache-control: no-cache
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
expect-ct: max-age=2592000, report-uri="https://api.github.com/_private/browser/errors"
content-security-policy: default-src 'none'; base-uri 'self'; connect-src 'self'; form-action 'self'; img-src 'self' data:; script-src 'self'; style-src 'unsafe-inline'
content-length: 9
x-github-request-id: BD3A:E9DA:E531BB:F766B6:61E2DF39

Here's the computed path https://github.com/docker/compose/releases/download/v1.29.2/docker-compose-Linux-x86_64

The error lies in the v at v1.29.2

Sorted https://github.com/docker/docker.github.io/pull/14151


No HDMI sound after sleep

I have Intel NUC10i7FNK. It has Realtek ALC256
After sleep no sound anymore on Digital Audio (HDMI).
OS: Catalina 10.15.5
HDMI sound from speakers connected to LG 4K monitor.
Ioreg logs provided forum

Your just lucky to have Audio HDMI lots people don't have HDMI with VoodooHDA
for your problem I have no idea because it can come from many things.

Hi,
Good to know that I'm luck and at list somehow my HDMI works.
I read a lot and know that there were such issues in the past and solution
was provided by CodecCommander.kext. Tried that but it didn't work.
Maybe after resume I need to reinitialize somehow VoodooHDA or create a
script which will run on resume to reinitialize VoodooHDA?
What do you think can be done?
Thanks,
Evgeny
On Thu, Jul 30, 2020 at 12:52 AM chris1111<EMAIL_ADDRESS>wrote:

Your just lucky to have Audio HDMI lots people don't have HDMI with
VoodooHDA
for your problem I have no idea because it can come from many things.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/chris1111/VoodooHDA-2.9.2-Clover-V15/issues/20#issuecomment-665948757,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AN7SR6U3MAYLGFU2UKVTO3LR6CKZNANCNFSM4PL6M3SA
.

I don't know?


Please allow or deny voice chat...

What ? Where :D

Can you tell me exactly what steps you took to get that message? Otherwise I can't help you

I just start app in os x, and open "http://maxogden.github.io/screencat/remote" with safari, then i enter security key for session.. and i get this..
i think the problem is from safari?

I just start app in os x, and open "http://maxogden.github.io/screencat/remote" with safari, then i enter security key for session.. and i get this..
i think the problem is from safari?

We need to make audioStream optional? https://github.com/fritx/screencat/commit/eabf3b0ae06afea5ebc46746561e22205f46c8da


Fix typo in redis options merge.

Sorry about that 😓

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Press gesture not detected on window8 tablet / Firefox (32)

Hi there !
There is a problem on windows 8 tablet with firefox 32.
This demo (http://codepen.io/jtangelder/pen/lgELw) works well for tap event but not for press event...
Any ideas ?
Thanks.

Closed in favor of #838


Handle unignored VERSION file

Unless I'm missing something, trying to use the method described in Adding autoversioning to a chef cookbook results in cookbooks being checked out of git having no version information available (for example, when using the cookbook-as-library model, or generally managing dependent cookbooks via berkshelf, served out of git).
One option might be to manage the VERSION file by updating and/or committing it prior to tagging if it's not ignored, similar to how some of the gem-related utilities handle it.

On a pretty similar tone to this, is there any reason that the tag for a version bump is created before the version file is updated?
If the version file was updated and then pushed up with the tag (if it's not excluded in the repo) then you can have a section in your metadata.rb for a chef cookbook saying to read the version from the VERSION file.
As it stands now the version in the version file is one below the tag created in github, which means that other work is needed to bump the version in the metadata.rb file as well.
Changing this in lib/thor-scmversion.rb:
begin
  say "Creating and pushing tags", :yellow
  current_version.tag
  say "Writing files: #{version_files.join(', ')}", :yellow
  write_version
  say "Tagged: #{current_version}", :green
rescue => e

To this:
begin
  say "Writing files: #{version_files.join(', ')}", :yellow
  write_version
  say "Creating and pushing tags", :yellow
  current_version.tag
  say "Tagged: #{current_version}", :green
rescue => e

should do the trick

Hmm I thought this job did a commit before the tag for some reason... I'll see what I can come up with.

I also didn't realise that the tag was based off of git tags instead of the version file.
I created PR https://github.com/RiotGamesMinions/thor-scmversion/pull/41 for this. It adds new functionality without touching anything existing

Haha, your .gemspec file uses thorscmversion but there's no VERSION file checked in XD


[Change Reviewed in private repo] Add new version 2024-10-01-preview for Microsoft.DBForMySQL

ARM (Control Plane) API Specification Update Pull Request

[!TIP]
Overwhelmed by all this guidance? See the Getting help section at the bottom of this PR description.

PR review workflow diagram
Please understand this diagram before proceeding. It explains how to get your PR approved & merged.

Purpose of this PR
What's the purpose of this PR? Check the specific option that applies. This is mandatory!

[ ] New resource provider.
[ ] New API version for an existing resource provider. (If API spec is not defined in TypeSpec, the PR should have been created in adherence to OpenAPI specs PR creation guidance).
[ ] Update existing version for a new feature. (This is applicable only when you are revising a private preview API version.)
[ ] Update existing version to fix OpenAPI spec quality issues in S360.
[ ] Convert existing OpenAPI spec to TypeSpec spec (do not combine this with implementing changes for a new API version).
[ ] Other, please clarify:

edit this with your clarification

Due diligence checklist
To merge this PR, you must go through the following checklist and confirm you understood
and followed the instructions by checking all the boxes:

[ ] I confirm this PR is modifying Azure Resource Manager (ARM) related specifications, and not data plane related specifications.
[ ] I have reviewed following Resource Provider guidelines, including
ARM resource provider contract and
REST guidelines (estimated time: 4 hours).
I understand this is required before I can proceed to the diagram Step 2, "ARM API changes review", for this PR.

Additional information

 Viewing API changes
For convenient view of the API changes made by this PR, refer to the URLs provided in the table
in the Generated ApiView comment added to this PR. You can use ApiView to show API versions diff.

Suppressing failures
If one or multiple validation error/warning suppression(s) is detected in your PR, please follow the
suppressions guide to get approval.

Getting help

First, please carefully read through this PR description, from top to bottom. Please fill out the Purpose of this PR and Due diligence checklist.
If you don't have permissions to remove or add labels to the PR, request write access per aka.ms/azsdk/access#request-access-to-rest-api-or-sdk-repositories
To understand what you must do next to merge this PR, see the Next Steps to Merge comment. It will appear within few minutes of submitting this PR and will continue to be up-to-date with current PR state.
For guidance on fixing this PR CI check failures, see the hyperlinks provided in given failure
and https://aka.ms/ci-fix.
For help with ARM review (PR workflow diagram Step 2), see https://aka.ms/azsdk/pr-arm-review.
If the PR CI checks appear to be stuck in queued state, please add a comment with contents /azp run.
This should result in a new comment denoting a PR validation pipeline has started and the checks should be updated after few minutes.
If the help provided by the previous points is not enough, post to https://aka.ms/azsdk/support/specreview-channel and link to this PR.

These changes have been reviewed in private repo:
https://github.com/Azure/azure-rest-api-specs-pr/pull/19542/files
https://github.com/Azure/azure-rest-api-specs-pr/pull/19540
https://github.com/Azure/azure-rest-api-specs-pr/pull/19540


Allow passing component as a prop in Button component

Is your feature request related to a problem? Please describe.
I am using flowbite-react in a next js application. I would want to use the Button component with next js Link component which is not possible as of now.
Describe the solution you'd like
Support an optional prop to pass the root component that should be used to render the button. So that I could do something like below:
import Link from 'next/link';

return (
  <Button
    component={Link}
    href="/my-link"
  >
    Go to Page
  </Button>
)

Describe alternatives you've considered
Have 2 alternatives as of now but none them are perfect.

Used Button component as it is right now by passing href which renders an anchor tag. This caused the whole page to reload.
Used Link component but added tailwind classes myself to the component.

Closing this in favour of https://github.com/themesberg/flowbite-react/issues/655


Option<&MyOpaqueType> doesn't compile

Describe the bug
I followed the docs in https://cjycode.com/flutter_rust_bridge/guides/types/arbitrary/rust-auto-opaque/overview
and created an optional argument:
#[frb(opaque)]
pub struct MyOpaqueType {
    message: String,
}

pub fn create_opaque(message: String) -> MyOpaqueType {
    MyOpaqueType { message }
}

pub async fn use_opaque(object: Option<&MyOpaqueType>) -> String {
    format!("Message: {}", object.unwrap().message)
}

However, the generated code doesn't compile in Rust:
error[E0308]: mismatched types
   --> src/frb_generated.rs:149:80
    |
149 | ...                   Result::<_, ()>::Ok(crate::api::simple::use_opaque(api_object).await)?;
    |                                           ------------------------------ ^^^^^^^^^^ expected `Option<&MyOpaqueType>`, found `Option<RustOpaqueBase<..., ...>>`
    |                                           |
    |                                           arguments to this function are incorrect
    |
    = note: expected enum `Option<&simple::MyOpaqueType>`
               found enum `Option<RustOpaqueBase<RustAutoOpaqueInner<simple::MyOpaqueType>, frb_generated::MoiArc<RustAutoOpaqueInner<simple::MyOpaqueType>>>>`

In a real world example where I came across this issue, I've found a workaround by writing a method for the struct that calls the actual function: https://github.com/Tienisto/rhttp/commit/efec498ae0342d2540b1c1959bb0b2f9a02f2785
Steps to reproduce

Create opaque type
Add function that optionally borrows the opaque type
See compile error

Logs
Not needed

Expected behavior
No response
Generated binding code
No response
OS
No response
Version of flutter_rust_bridge_codegen
2.3.0
Flutter info
No response
Version of clang++
No response
Additional context
I've created https://github.com/Tienisto/frb-optional-opaque-argument to reproduce the error but the example above should also work

Yes, looks like this combination of features is not supported yet (feel free to PR! alternatively I may implement this feature later). But the following are supported:

Option<MyOpaqueType>
Option<RustAutoOpaque<MyOpaqueType>>
Option<NonOpaqueType>


Add CLI to Stave

This PR fixes #187.
Description of changes

stave_cli.py: A command line tool adapted from manageproject.py. It allows user to start a Stave server, load user info and sample projects, import/export project from/to directory.
main.yml: Workflow is updated so that action can be triggered by push. For commits with tagged version, it automatically upload to PyPI.

Possible influences of this PR
Demonstration of results
An updated package is uploaded to TestPyPI which can be installed by running:

pip3 install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple stave==0.0.1.dev5

To test the package, try the following sequence of lines in terminal:

# Show help message
stave -h

# Load default user info and sample projects into database
stave load -a -s

# Start full mode Stave
stave -o start

# Export project-1-example
stave export ./test_export_output 5

# View project-1-example in viewer mode
stave -o start -p ./test_export_output

# Import project-1-example from directory
stave -o import ./test_export_output

There's a couple of issues trying to use this:

After a few trials, I stuck into a threading deadlock. After that, I cannot successfully start the server. I think we should take a look back at the threading implementation.
When we start the project, we first get into an empty project page, and then the details are loaded. That feels a bit weird.
I think we should store a .stave.conf file at user home, and store the database path at the config file. Now we can allow the user to provide a database path when the project starts. We can also add a set database path CLI to allow users to set that path. Currently, the database is in site-packages, which might not be the best place for it.

pip3 install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple stave==0.0.1.dev6

pip3 install stave==0.0.1.dev7


streamlit-webrtc peer to peer connection

I’m a graduating Computer Science student currently working on my thesis and I'm using your streamlit webrtc for my project. I do have some questions regarding the streamlit webrtc.
webrtc is a peer to peer connection right? It is usually used for web chatting apps like zoom (according the video I've watched). So when it comes to object detection projects where do I really connect or who is my peer if I'm sending and receiving my own video. I do know that I used a stun network provided free by google but still don't get who is the 'peer' I'm connected to
Forgive me for asking dumb questions its just that I'm new to streamlit and webrtc

Hi,

webrtc is a peer to peer connection right and is usually used for web chatting apps like zoom.

Yes, right.

So when it comes to object detection projects where do I really connect or who is my peer if im sending and receiving my own video.

In the case of streamlit-webrtc, the peers are the frontend app on the browser and the Streamlit app on the server.
Object detection runs in the Streamlit app process on the server as normal Streamlit apps.

I do know that i uses a stun network provided free by google but still dont get who is the peer im connected to

Your understanding of STUN server seems correct. It is only for preparation of the peer-to-peer connection and does not play any role after the connection is established.
During the video streaming using streamlit-webrtc, only the frontend app and the Python app are working.
I think you got confused because in the case of streamlit-webrtc, the peers are the frontend and the backend, though some WebRTC app samples on the web are "frontend-to-frontend" type where 2 clients connect directly each other and there is no video processing server.

(The below is an advanced info that is may be beyond the original question)
There are many samples of the frontend-to-frontend type video chat because it's the most basic and easy to understand how WebRTC works.
However, among the real-world apps, there are more variety of set-ups.
For example, in the case of multi-user video chat, there are often proxy servers called SFU or MCU to reduce the total number of the connections. Apps like Zoom may be so too. Google such keywords if interested.


[RFC] Add support for RFC 5819: LIST-STATUS extension

See https://tools.ietf.org/html/rfc5819
Hi there. I would love to add support for RFC 5819.  This patch is not yet well-documented, but I wanted to get some feedback early on, specifically on the following:

I implemented it as an extension, in the extensions folder. I think it makes sense there, but it could of course be done differently, potentially even merged with the regular LIST command, though I think that would make the API a little awkward.
I took some cues from the Names data structure. I hope the name ExtendedNames makes sense, as this version of LIST is usually referred to as "extended LIST".
Instead of creating a struct for each single response I opted for (Name, Option<Mailbox>), because I think that most accurately reflects what is happening. A case could be made of course for abstracting that away, so let me know what you think.
Implementing this made me realize that the Mailbox type as response to a STATUS command is actually a little confusing. It has non-Option<>-members that might not be returned by a STATUS command. However, I felt that for now just mirroring STATUS responses is the right thing to do. If you think this might be something worth changing while we are about to break the API anyways, let me know - I'm happy to take a stab.

And of course whatever else catches your eye :slightly_smiling_face:

This change is

Oh, and I can of course add tests once we agree on the rest :wink:

@jonhoo gentle ping :innocent: would be great to know if you have any opinions?

This looks entirely reasonable to me (subject to tests being added)! I'm a little surprised to see Option<Mailbox>, but I guess the server can just choose to not include any mailbox info in there?
I forget why Mailbox has some non-Option fields. I thought I made it accurately mirror what the spec said were required fields, but may have mis-parsed? I think we should leave it as-is for this PR though!

I'm a little surprised to see Option<Mailbox>, but I guess the server can just choose to not include any mailbox info in there?

The RFC is a bit weird. It says the server MUST include that information, but goes on to explicitly specify that in certain error situations the server may omit it. I've never seen that happen, but you never know...
I updated the documentation a bit and added some tests, including an integration test. I think the coverage should be quite good, but for some reason the coverage runner seems to have problems uploading the report? :thinking:
Note: I also added a commit that changes the annotation for the qresync integration test from #[ignore] to #[cfg(feature = "test-full-imap")]. I wrote that test, and it works fine against e.g. Cyrus. But I think that feature did not exist back then? Anyways, seemed like the right thing to do while I was touching that file.

Not sure why the CI step is being sad. I wonder if it just needs a re-run..

Sorry for the double update, just now saw that you fixed the coverage upload on main.

Hmm, it looks like now none of the CI steps ran :thinking:
Can you try rebasing onto main and force-pushing?

Released in alpha.10 :tada:


Incorrect co-ordinates format returned by minMaxLoc()

Expected behaviour
the co-ordinates should be returned in (x,y) format.
Write here how did you expect the library to function.
The official tutorial and various others use the same format which returns wrong co-ordinate.
Actual behaviour
Write here what went wrong.
Steps to reproduce

example code
operating system
architecture (e.g. x86)
opencv-python version : 4.1.2(Google Colab default version)

I have reproduced the behaviour here: https://colab.research.google.com/drive/1flZTSDaHdf0xkxI5vwJrnyhdO-b1McQX?usp=sharing.
Issue submission checklist

[x] This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)

[x] I have read the README of this repository and understand that this repository provides only an automated build toolchain for OpenCV Python packages (there is no actual OpenCV code here)

[ ] The issue is related to the build scripts in this repository, to the pre-built binaries or is a feature request (such as "please enable this additional dependency")

[ ] I'm using the latest version of opencv-python

@jadevaibhav Thanks for the report. It looks like the issue that you described related not to minMaxLoc, but the way matchTemplate works in OpenCV. matchTemplate returns heatmap and you can get several maximal values there. Most probably minMaxLoc found another optimal point. I checked matchTemplate tutorial in OpenCV and simple things with minMaxLoc and everything works properly:
>>> a = np.random.randint(255, size=(5, 5))
>>> a
array([[ 98, 142, 194, 219,  16],
       [100,  50, 124,  21,  25],
       [125, 223, 243, 168,  90],
       [241, 177,  47, 108, 163],
       [167, 235,  70, 239,  90]])
>>> cv.minMaxLoc(a)
(16.0, 243.0, (4, 0), (2, 2))

Thank you for your response.
For this particular array, the max is at (2,2) so it's the right result. For the min though, shouldn't it be (0,4)? I have also demonstrated the example for a sample image in the colab.
Please have a look.

minMaxLoc returns cv::Point in C++ code. cv::Point has x and y coordinates inside, but not row and col. According to this logic in my sample x = 4, y = 0. So it works as designed.

@jadevaibhav Do you have updates here?


WSL (Windows下的Linux子系统) 文件任务导致 触发 abort（） 系统ubuntu20.04LTS

libc.so.6!__GI_raise(int sig) (\build\glibc-eX1tMB\glibc-2.31\sysdeps\unix\sysv\linux\raise.c:50)
libc.so.6!__GI_abort() (\build\glibc-eX1tMB\glibc-2.31\stdlib\abort.c:79)
__CommManager::__CommManager(__CommManager * const this) (\home\lains\projects\workflow\src\manager\WFGlobal.cc:364)
__CommManager::get_instance() (\home\lains\projects\workflow\src\manager\WFGlobal.cc:327)
__CommManager::get_instance() (\home\lains\projects\workflow\src\manager\WFGlobal.cc:325)
WFGlobal::get_io_service() (\home\lains\projects\workflow\src\manager\WFGlobal.cc:658)
WFTaskFactory::create_pread_task(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, void*, unsigned long, long, std::function<void (WFFileTask)>)(const std::string & pathname, void * buf, size_t count, off_t offset, fio_callback_t callback) (\home\lains\projects\workflow\src\factory\FileTaskImpl.cc:363)
wfrest::HttpFile::send_file(const std::string & path, size_t start, size_t end, wfrest::HttpResp * resp) (\usr\include\c++\9\new:174)
wfrest::HttpResp::File(wfrest::HttpResp * const this, const std::string & path) (\home\lains\projects\wfrest\wfrest\HttpMsg.cc:371)
wfrest::HttpServer::<lambda(const wfrest::HttpReq, wfrest::HttpResp*)>::operator()(const wfrest::HttpReq , wfrest::HttpResp ) const(const wfrest::HttpServer::<lambda(const wfrest::HttpReq, wfrest::HttpResp)> * const __closure, const wfrest::HttpReq * req, wfrest::HttpResp * resp) (\home\lains\projects\wfrest\wfrest\HttpServer.cc:109)
std::function<void (wfrest::HttpReq const*, wfrest::HttpResp*)>::operator()(wfrest::HttpReq const*, wfrest::HttpResp*) const( __args#1,  __args#0, const std::function<void(const wfrest::HttpReq*, wfrest::HttpResp*)> * const this) (\usr\include\c++\9\bits\std_function.h:683)
wfrest::BluePrint::<lambda(const wfrest::HttpReq*, wfrest::HttpResp*, SeriesWork*)>::operator()(wfrest::HttpResp * resp, const wfrest::HttpReq * req, const wfrest::BluePrint::<lambda(const wfrest::HttpReq*, wfrest::HttpResp*, SeriesWork*)> * const __closure) (\home\lains\projects\wfrest\wfrest\BluePrint.cc:14)
std::_Function_handler<WFGoTask*(wfrest::HttpReq*, wfrest::HttpResp*, SeriesWork*), wfrest::BluePrint::GET(char const*, const Handler&)::<lambda(const wfrest::HttpReq*, wfrest::HttpResp*, SeriesWork*)> >::_M_invoke(const std::_Any_data &, wfrest::HttpReq &&, wfrest::HttpResp &&, SeriesWork &&)( __functor,  __args#0,  __args#1,  __args#2) (\usr\include\c++\9\bits\std_function.h:285)
std::function<WFGoTask (wfrest::HttpReq, wfrest::HttpResp, SeriesWork*)>::operator()(wfrest::HttpReq*, wfrest::HttpResp*, SeriesWork*) const( __args#2,  __args#1,  __args#0, const std::function<WFGoTask*(wfrest::HttpReq*, wfrest::HttpResp*, SeriesWork*)> * const this) (\usr\include\c++\9\bits\std_function.h:683)
wfrest::Router::call(const wfrest::Router * const this, const std::string & verb, const std::string & route, wfrest::HttpServerTask * server_task) (\home\lains\projects\wfrest\wfrest\Router.cc:80)
wfrest::HttpServer::process(wfrest::HttpServer * const this, wfrest::HttpTask * task) (\usr\include\c++\9\bits\char_traits.h:300)
std::__invoke_impl<void, void (wfrest::HttpServer::&)(WFNetworkTask<wfrest::HttpReq, wfrest::HttpResp>), wfrest::HttpServer*&, WFNetworkTask<wfrest::HttpReq, wfrest::HttpResp>>(void (wfrest::HttpServer::&)(wfrest::HttpServer * const, WFNetworkTask<wfrest::HttpReq, wfrest::HttpResp> ) __f, wfrest::HttpServer & __t) (\usr\include\c++\9\bits\invoke.h:73)
std::__invoke<void (wfrest::HttpServer::&)(WFNetworkTask<wfrest::HttpReq, wfrest::HttpResp>), wfrest::HttpServer*&, WFNetworkTask<wfrest::HttpReq, wfrest::HttpResp>>(void (wfrest::HttpServer::&)(wfrest::HttpServer * const, WFNetworkTask<wfrest::HttpReq, wfrest::HttpResp> ) __fn) (\usr\include\c++\9\bits\invoke.h:95)
std::_Bind<void (wfrest::HttpServer::(wfrest::HttpServer*, std::_Placeholder<1>))(WFNetworkTask<wfrest::HttpReq, wfrest::HttpResp>)>::__call<void, WFNetworkTask<wfrest::HttpReq, wfrest::HttpResp>&&, 0ul, 1ul>(std::tuple<WFNetworkTask<wfrest::HttpReq, wfrest::HttpResp>&&>&&, std::_Index_tuple<0ul, 1ul>)(std::_Bind<void (wfrest::HttpServer::(wfrest::HttpServer*, std::_Placeholder<1>))(WFNetworkTask<wfrest::HttpReq, wfrest::HttpResp>)> * const this, std::tuple<WFNetworkTask<wfrest::HttpReq, wfrest::HttpResp>&&> && __args) (\usr\include\c++\9\functional:400)
std::_Bind<void (wfrest::HttpServer::(wfrest::HttpServer, std::_Placeholder<1>))(WFNetworkTask<wfrest::HttpReq, wfrest::HttpResp>)>::operator()<WFNetworkTask<wfrest::HttpReq, wfrest::HttpResp>, void>(WFNetworkTask<wfrest::HttpReq, wfrest::HttpResp>&&)(std::_Bind<void (wfrest::HttpServer::(wfrest::HttpServer*, std::_Placeholder<1>))(WFNetworkTask<wfrest::HttpReq, wfrest::HttpResp>*)> * const this) (\usr\include\c++\9\functional:484)
具体在WFGlobal.cc
_CommManager()构造函数中 scheduler.init初始化失败

我记得这是WSL旧版本的一个问题，刚开始WSL确实不支持Linux AIO。但听说2.0版已经支持了。你那边是什么版本？

WSL1 看来是wsl的锅了


Documentation request: best way to setup a blackd client tool?

I tried to finally get setup with blackd running as a systemd user unit, and I'm not clear from the docs how I should be setting up the client side of this.
I'm able to setup a working unit with this config
$ cat ~/.config/systemd/user/blackd.service
[Unit]
Description=blackd autoformatting server
[Service]  # installed in a virtualenv
ExecStart=/home/sirosen/bin/blackd-env/bin/blackd --bind-port 9090
[Install]
WantedBy=default.target

and then test this with simple curl
$ curl -sf -XPOST localhost:9090 -d "$(cat setup.py)" > /dev/null; echo $?
0

So it works, hooray!
I wanted to start using this in pre-commit hooks and other places.
I almost asked "how do I setup black to call out to blackd?" but that obviously defeats the whole point of blackd. How are people doing this? Is there some standard client tool in use?
I think even a doc note that "you need to write your own blackd client" is fine, just to alleviate any confusion about this.

Indeed there's no blackd client in this repo yet, but there are some plans to write one.  Until then, maybe it's better to write a sentence about this in the docs as you point out. Happy to accept a PR about this :)


Cleanup and restructure code and add clang-format

This also fixes a lot of compiler errors I got when trying to compile with visual studio code and Arduino plugin.
For me these code changes also have the following effect on binary sizes:
Before:
Executable segment sizes:
ICACHE : 32768           - flash instruction cache
IROM   : 364784          - code in flash         (default or ICACHE_FLASH_ATTR)
IRAM   : 29373   / 32768 - code in IRAM          (IRAM_ATTR, ISRs...)
DATA   : 1580  )         - initialized variables (global, static) in RAM/HEAP
RODATA : 2736  ) / 81920 - constants             (global, static) in RAM/HEAP
BSS    : 31944 )         - zeroed variables      (global, static) in RAM/HEAP

After refactoring:
Executable segment sizes:
ICACHE : 32768           - flash instruction cache
IROM   : 364768          - code in flash         (default or ICACHE_FLASH_ATTR)
IRAM   : 29373   / 32768 - code in IRAM          (IRAM_ATTR, ISRs...)
DATA   : 1580  )         - initialized variables (global, static) in RAM/HEAP
RODATA : 2748  ) / 81920 - constants             (global, static) in RAM/HEAP
BSS    : 31928 )         - zeroed variables      (global, static) in RAM/HEAP

@Hypfer I added a few more changes. Changed the print of the historical values, changed the uint8_t arrays back to chat ones (otherwise MQTT data won't be sent) and also fixed a bug (which was present before), because the function parseState needed to return a boolean, which it didn't so I changed it to a void function. Now everything works really well 😄

Ohh also do you want to bump the sw_version? @Hypfer

@Hypfer Happy now? 😄