[network] Consolidate repeated code in ConnMgr tests

There was a ton of differing and repeated code for setup and other things
in the conn mgr.  This attempts to rid the code of some of the old
paradigms prior to the Peer object.
Just some work I did trying to understand why the tests were failing for a different PR (and then found out that my changes were definitely a problem).  Additionally, these tests actually failed more on my changes, which could be some side effects of me removing the eligible peer part.  However, all of these tests run successfully, and should have less randomness in them.

/land


Added docs for dataloader

Added docs for dataloader

Realized I missed a lot, so converting this to a draft.


request for LDIF file related to the example

Hi, Can you please attach LDIF as well? I am not able to create exact directory structure described in above example. I am using Apache Directory Studio for LDAP server. It will be a great help if you can post the LDIF, I can import it in my server and will try running this python script. Thanks in advance for your help.

There are no examples so I'm unsure what you're asking for.  When I tested this, I tested with AD and OpenDirectory.

users_groups.txt
Hi, I am requesting LDIF corresponding to example mentioned in Code section. In "The Implementation" section, it explains the directory structure including 'Release Managers', 'Developers' and 'Administrators'.
I am running python script against attached LDIF but getting below output in svn_auth.txt which I do not think is the correct one. So I was requesting LDIF of your example.
[groups]
### Start generated content: LDAP Groups to Subversion Authz Groups Bridge (2017/08/24 07:39:19) ###
cn_sssd_qns =
cn_sssd_pb =
Admin = @cn_sssd_pb, @cn_sssd_qns

################################################################################
###########   LDAP Groups to Subversion Authz Groups Bridge (Legend)  ##########
################################################################################
### cn_sssd_qns = uid=sssd_qns,cn=Admin,ou=groups,dc=sprint,dc=com
### cn_sssd_pb = uid=sssd_pb,cn=Admin,ou=groups,dc=sprint,dc=com
### Admin = cn=Admin,ou=groups,dc=sprint,dc=com
################################################################################

### End generated content: LDAP Groups to Subversion Authz Groups Bridge ###

Hi @whitlockjc , Could you please guide me in fixing python script for attached users_groups.txt (in earlier comment)?
I am expecting below contents in generated file
[groups]
Admin = @cn_sssd_pb, @cn_sssd_qns
but getting below one
[groups]
cn_sssd_qns =
cn_sssd_pb =
Admin = @cn_sssd_pb, @cn_sssd_qns
I also tried changing LDAP scope from SUBTREE to ONELEVEL/BASE but none of these options got rid of 'cn_sssd_qns =' and 'cn_sssd_pb=' entries
It will be great help if you can suggest.


Allow to fetch entity and all related ones

Consider the following example (where a release has multiple release_links):
let result = releases::Entity::find()
                .find_with_related(release_links::Entity)
                .order_by_desc(releases::Column::ReleasedAt)
                .all(conn)
                .await?;

This returns a Vec<(Model, Vec<Model>)>. Changing .all to .one yields a Option<(Model, Option<Model>)>.
For a One-to-Many relation this is really weird, what is expected is Option<(Model, Vec<Model>)>.

Hey @Sytten, basically, calling one returns the first pair of related model i.e. Option<(Model, Option<Model>)>. And, calling all returns all of the pairs, Vec<(Model, Vec<Model>)>.
For a one-to-many relation you can expect the behaviour stated above happened.
But for a one-to-one relation you can expect both one and all will return zero or one pair of related model.

I guess then there should be a first which would return a Option<(Model, Vec<Model>)>? Basically the same query as all but with a LIMIT 1 on the parent for performance reasons.

That will complicate the query builder as there is no easy way to limit on one of the join tables. It can be achieved with a subquery like:
select releases.id, other_col
from releases
join release_links on ....
where releases.id in (
    select releases.id
    from releases
    where ...
    limit 1
)

and if the conditions involve both the tables the join should happen also in the subquery.
I guess you can do:
let result = releases::Entity::find()
                .filter(
                              Condition::any().add(
                                  releases::Column::Id.in_subquery(
                                      Query::select()
                                          .column(releases::Column::Id)
                                          .from(releases::Entity) // if required you can add other conditions here in the subquery
                                          .limit(1)
                                          .to_owned()
                                  )
                              )
                  )
                .find_with_related(release_links::Entity)
                .order_by_desc(releases::Column::ReleasedAt)
                .all(conn)
                .await?;

The result will be of type Vec<(Model, Vec<Model>)> and the len at most 1

This is a very interesting sugguestion. First of all, if you only need one and all it's related models, then find_related on the model itself is the recommended way.
Anyway, thanks @isgj for pointing out this is a non-trivial problem. We have to know which "one" first before we know how to limit the query, so the solution is either 1) two queries or 2) sub-query

Perhaps removing one from SelectTwo is the most reasonable resolution for now?

I would suggest to leave it as-is and advice user to user with cautions.

one: for one-to-one relation and it might return non deterministic result for one-to-many relation
all: for both one-to-one and one-to-many relations

Hey @tyt2y3, do you mean removing one from SelectTwoMany?
From my understanding:

SelectTwo: is for selecting models in a one-to-one relationship
SelectTwoMany: is for selecting models in a one-to-many relationship


Locale selection: LocaleResolver for custom locale resolution + potential composer actions

Validated w/ @carlosscastro, code is ready but doesn't have a PR yet.

PR is ready to send and validated with SDK architects but we want time to bake this in early R15 with the telephony components. No real need to rush it.


about shapefile to buildings

if i open shapefile, which encode should i choose?  or how to do it?

Hi, thanks for your interest in CityEngine SDK.
We do not directly support reading/writing Esri Shapefiles in the SDK. What exactly is your goal? I'm sure there is alternative workflow ;-)

Taking the liberty of closing this - please reach out if you need further assistance.


Example on how to draw using custom mesh and shader

I was looking into "lower level" rendering and I saw no example on how to do that. Yet, I think it's something relevant to show, so I set up a simple example on how to do that. I hope it's welcome.
I'm not confident about the code and a review is definitely nice to have, especially because there are a few things that are not great.
Specifically, I think it would be nice to see how to render with a completely custom set of attributes (position and color, in this case), but I couldn't manage to get it working without normals and uv.
It makes sense if bevy Meshes need these two attributes, but I'm not sure about it.

I think this would be an awesome example to have. I managed to get it working without uv and normals and with color in just a few small changes:
Instead of adding those attributes to the mesh I just add color:
star.set_attribute("color", vec![[0.0, 1.0, 0.0, 1.0]; 11]);

Then in the vertex shader I remove the lines that load uv and normals and instead just load color. Instead of ouputing uv, I output a vertex_color:
layout(location = 0) in vec3 Vertex_Position;
 layout(location = 1) in vec4 color;

layout(location = 1) out vec4 vertex_color;

Then in the fragment shader I take in the vertex color rather than the uv:
 layout(location = 1) in vec4 vertex_color;

 layout(location = 0) out vec4 o_Target;

 void main() {
     o_Target = vertex_color;
 }

That's not a super interesting example since it's just a solid color, but you could spice it up a bit.

Ah, that's great! I tried without specifying normals and UV, but failed. Thinking of it, I probably missed of updating the shaders as well. I'll update in a few, thanks!

I was wondering if it might be helpful to include in this example information about uniforms as well. I don't have experience with those, but I can work on it in the next few days.

The new Example also needs to be added to the README.md in the examples folder.

I was wondering if it might be helpful to include in this example information about uniforms as well. I don't have experience with those, but I can work on it in the next few days.

Uniforms are already discussed (slightly) in another example: https://github.com/bevyengine/bevy/blob/main/examples/shader/shader_custom_material.rs#L45
If there's more to say, it might be better to put it there.

I just updated the example to work on Bevy 0.5. I also removed the window descriptor. I do like the square proportions and the title, but I like to keep examples as small / minimal as possible.

bors r+


undefined: syscall.MustLoadDLL

Trying to use this on MacOsX gives me an error?  are there any fixes for this just yet?
go build
github.com/a-palchikov/sqlago
../../gopath/src/github.com/a-palchikov/sqlago/dbcapi.go:222: undefined: syscall.MustLoadDLL
../../gopath/src/github.com/a-palchikov/sqlago/dbcapi.go:346: too many arguments in call to syscall.Syscall

@ivank2139 Hey, sorry for noticing this issue late.
This is a windows-based library and no attempts were made to make it portable.
What version of Sybase are you trying to use it with?

The some problem for MacOsX,Hope fast fix this problem,Thank you for us.

syscall only can be used on Windows, dont compile it on Macos.


Add strategy that includes unclaimed tokens and pooled LP tokens

Changes proposed in this pull request:

Add a strategy that includes unclaimed tokens and pooled LP tokens.
This will be used for Indexcoop's voting scheme.

Looks like this can be done using the contract-call strategy. Closing the PR.


"Explore" visible when disabled

Description
I set service.explore's REQUIRE_SIGNIN_VIEW but I still see the Explore link atop the login page. Clicking it doesn't go anywhere. Seems like a bug?
My config has:
[service.explore]
REQUIRE_SIGNIN_VIEW = true

Gitea Version
1.21.1
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots

Git Version
No response
Operating System
No response
How are you running Gitea?
Self hosted in docker
Database
SQLite

REQUIRE_SIGNIN_VIEW doesn't disable Explore, it only makes it redirect to the login page when clicked if you are not logged in.

Ah, thanks. I thought it would hide it from navbar since I wasn't signed in.


added Warnflag in exported symbols

In epanet2.h added Warnflag in exported symbols with __declspec(dllexport)  (otherwise Warnflag cannot be exported in DLL).
In this way main.c can be compiled and linked to epanet2.exe that loads epanet2.DLL (just like linux version does with libepanet2.so).
Added MingW32/Makefile for compilation with gcc under windows/mingw

@mauriziocingi what is Warnflag used for and how? Is it for cases when the solver returns a warning?

When compiling for Windows with cl.exe I'm getting the following error:
epanet.c  ..\include\epanet2.h(290) : error C2370: 'Warnflag' : redefinition; different storage class d:\projects\epanet\open source\code\owa\epanet\src\vars.h(61) : see declaration of 'Warnflag'

Maybe a different behavior from gcc.exe and cl.exe.
With gcc I have the same error if variable changes type like:
char __declspec(dllexport) Warnflag;
...
float Warnflag;

>gcc test.c -c
test.c:14:7: error: conflicting types for 'Warnflag'
 float Warnflag;
       ^
test.c:10:28: note: previous declaration of 'Warnflag' was here
 char __declspec(dllexport) Warnflag;
                            ^

but
char __declspec(dllexport) Warnflag;
...
char Warnflag;

seems ok.
We can adopt a different solution:

remove Warnflag declaration from epanet.h
modify line 183 in epanet.c

from
return(errcode);

to
return(MAX(errcode, Warnflag));

in this way ENepanet returns:

0 for no error
<=100 for warning

100 for error

(like many other functions in toolkit)
Error checking in main.c can be changed to:
    if (errcode > 100) {
      writeConsole(FMT11);
    }
    else if (errcode > 0) {
      writeConsole(FMT10);
    }
    else {
      writeConsole(FMT09);
    }

(no need to use Warnflag)

@mauriziocingi good idea, thanks. I have just tried the fix on epanet.c line 183 and it works fine for me. I think this is a better way to go since you get the code from the function without having to check the warning flag.


Update .gitattributes

Similar to https://github.com/thephpleague/uri-components/pull/53

@reedy I have merge your PR but I am not sure I will release it for the 2.x version. The reason being that this version is now on security fix only. And your PR does not address any security fix.

Yeah that's understandable. If a release happens it can be included. If not, it's not the end of the world!
Thanks :)

true hence why I still did merge it... we never know 😉


no static on re git

PR Summary
Github already builds pages and does format checking for us so there's no reason to duplicate this work on re-git. Currently WIP until I test the CI on re-git.

PR Checklist

[x] Adds a test for any bugs fixed. Adds tests for new features.
[x] Format your changes by using the make format command after configuring with cmake.
[x] Document any new features, update documentation for changes made.
[x] Make sure the copyright notice on any files you modified is up to date.
[x] After creating a pull request, note it in the CHANGELOG.md file
[x] If preparing for a new release, update the version in cmake.

This appears to work and is faster by a fair margin than the version with static analysis.


slog_bunyan outputs host instead of hostname

Bunyan outputs a field named hostname instead of host. See doc. Because of this bunyan cli does not format the output correctly.

https://github.com/slog-rs/bunyan/blob/master/lib.rs#L34
If you can provide a PR, that would be great. Otherwise, I'll get to it at some point.

Created a PR: https://github.com/slog-rs/bunyan/pull/1


Added new CombatFlag ini setting COMBAT_ATTACK_NOAGGREIVED

In the old behavior (55i/55r/56b/56c) we were not guilty when we hit a murderer. Now when we attack a criminal or murderer we are guilty towards that person. An ini setting option has been added for this behavior. Although this is a normal behavior in OSI, it can be perceived as a problem since not every server designs games like OSI.

Interesting add on!

Interesting add on!

It wasn't interesting for 20 years, is it interesting now? 😂

I personnaly dont play with noto so for me it's useless but its a good feature and goos example of .ini utility.

These things seem small but are important to make the emulator usable and appealing to everyone. SphereServer is an emulator that has been around for a very long time and over that time, SphereServer users have some habits. We don't give up these habits easily. As a result, it is SphereServer that brings these habits to the community.


Use sprintf to generate port numbers while committing

Casting integers to strings is definitely not correct, so let the standard library handle the conversion via sprintf.
Fixes #2066

/approve
LGTM

/lgtm

FWIW, working on fixing in Buildah.


Google News Scrapper

Aim

Google News Scrapper

Desciption

A python Automation script that helps to scrape the google news articles. The key feature of this script is that user can able to scrape the as many number of articles by giving the number of articles count. This script will generate the excel file of all the scraped articles with links with their respective titles.

This issue is under Swoc plss assign me

Sure Go ahead @Ayush7614

#333 this is pull for this issue plss review it @avinashkranjan sir


python3Packages.plexapi: 4.7.2 -> 4.8.0

Motivation for this change
Update to latest upstream release 4.8.0
CHange log: https://github.com/pkkid/python-plexapi/releases/tag/4.8.0
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 146904 run on x86_64-linux 1

3 packages built:

home-assistant
python38Packages.plexapi
python39Packages.plexapi


Adding FPv2  for 2019 Subaru outback

Updating all the fields of FPv2 for a 2019 Outback.
All updated values are not duplicated in any of the previous fwVersion.

Thanks, those fw versions are already present so openpilot should already identify your car correctly


Design work cards

Who it's for
Collections researchers
Problem to be solved
Refining our work cards based on type

Multi-manifest
Video
Audio
Text/book
Image
Document/PDF

Value

Makes it easy to understand what is relevant about the result
Makes it easy to understand what kind of thing it is
Gives visual cue as to its material nature

Ideas

By adding secondary information about the item, for example GENRE terms or SUBJECTS, the user gets a better sense of the item's usefulness to their search (QUESTION: What's the impact on CTR?)
What's a representative thumbnail for each workType, given it's digitised or non-digitised nature? How do we represent non-digi things in work cards?

Prompts

Do we need to set up any event tracking?
Has this been documented in Cardigan?
How are we measuring success?

A few search results cards that demonstrate areas of improvement:

Rationalise use of bold text

Line length

Order of metadata, and why the date bumps out to the right

Spacing between text and thumbnail

Placement of Available Online label - should it be in context of the thumbnail?

A few search results cards that demonstrate areas of improvement:

Rationalise use of bold text

Line length

Order of metadata, and why the date bumps out to the right

Spacing between text and thumbnail

Placement of Available Online label - should it be in context of the thumbnail?


AzCopy returns 403 Failed to authenticate

Hi, I'm brand new to AzCopy, so hopefully this is just a simple usage error. This sounds very much like #77, and it's possible that I'm perhaps using the incorrect tenant ID and that indeed, that tenant may not have access to the given storage blob. Note, I am an internal MS user, please contact [me directly]
Version and Platform
AzCopy 10.4.1 on Windows.
What command did you run?
After a correponding azcopy login --tenant-id <mytenantid>, I ran azcopy list "https://myblobstorage.blob.core.windows.net/image". Request ID: bb805ecb-901e-008a-70b6-1d178e000000, Time:2020-04-28T23:42:19.5392305Z.
What problem was encountered?
INFO: Authenticating to destination using Azure AD

failed to traverse container: cannot list blobs. Failed with error -> github.com/Azure/azure-storage-blob-go/azblob.newStorageError, /home/vsts/go/pkg/mod/github.com/!azure/azure-storage-blob-go@v0.7.0/azblob/zc_storage_error.go:42
===== RESPONSE ERROR (ServiceCode=AuthenticationFailed) =====
Description=Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.

Have you found a mitigation/solution?
No.

@ackrumb I can't email you right now. Can you email me please?  My full email address is in my profile page.

Resolved.  Just needed "Storage Blob Data Contributor" role. Plain "Contributor" is not enough.

I could not make it work using azcopy login instruction (I spent hours trying to figure out how it can works), put using this:
https://learn.microsoft.com/fr-fr/azure/storage/common/storage-use-azcopy-authorize-azure-active-directory?toc=%2Fazure%2Fstorage%2Fblobs%2Ftoc.json&bc=%2Fazure%2Fstorage%2Fblobs%2Fbreadcrumb%2Ftoc.json
Setting up the variables with:
export AZCOPY_AUTO_LOGIN_TYPE=SPN
export AZCOPY_SPA_APPLICATION_ID=<application-id>
export AZCOPY_SPA_CLIENT_SECRET=<client-secret>
export AZCOPY_TENANT_ID=<tenant-id>

Then azcopy works directly (no need to azcopy login)
(do not forget to give the role "Storage Blob Data Contributor" as specified above, create the principal with something like:
az ad sp create-for-rbac --role "Storage Blob Data Contributor" --scopes /subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroupName> --name <ServicePrincipalName>

)


Fix [libsodium] relocation R_X86_64_PC32 against symbol `randombytes_sysrandom_implementation' can not be used when making a shared object; recompile with -fPIC

Fixes: https://github.com/microsoft/vcpkg/issues/38982

[x] Changes comply with the maintainer guide.
[x] SHA512s are updated for each updated download.
[x] The "supports" clause reflects platforms that may be fixed by this new version.
[x] Any fixed CI baseline entries are removed from that file.
[x] Any patches that are no longer applied are deleted from the port's directory.
[x] The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
[x] Only one version is added to each modified port's versions file.

You must double-check that the proposed change fixes the issue.
This particular problem has been discussed before in https://github.com/microsoft/vcpkg/pull/36800#issuecomment-2045939119 ff.

The build of the vcpkg port already uses -fPIC.
Non-relocatable symbols can be from assembler code which is not under the control of the -fPIC compiler option. The linker can't detect this and produces a misleading error message.
A mitigation might be to use -Bsymbolic when linking the static lib into a shared lib.
It might be more appropriate to actually use a dynamic libsodium for linking another dynamic lib.

libsodium also adds -fPIE - does this negatively impact -fPIC?

Gotcha?
Force-removal of -fPIE changed some output lines from R_X86_64_PC32 to R_X86_64_REX_GOTP. This is what I did:
diff --git a/ports/libsodium/portfile.cmake b/ports/libsodium/portfile.cmake
index 41fab984d9..fa516247a0 100644
--- a/ports/libsodium/portfile.cmake
+++ b/ports/libsodium/portfile.cmake
@@ -44,6 +44,7 @@ if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
         endif()
     endblock()
 else()
+    vcpkg_replace_string("${SOURCE_PATH}/configure.ac" "-fPIE" "")
     vcpkg_configure_make(
         AUTOCONFIG
         SOURCE_PATH "${SOURCE_PATH}"

@TobiasFunk Please test this locally.

Or just add option --disable-pie.

You must double-check that the proposed change fixes the issue.
This particular problem has been discussed before in #36800 (comment) ff.

The build of the vcpkg port already uses -fPIC.
Non-relocatable symbols can be from assembler code which is not under the control of the -fPIC compiler option. The linker can't detect this and produces a misleading error message.
A mitigation might be to use -Bsymbolic when linking the static lib into a shared lib.
It might be more appropriate to actually use a dynamic libsodium for linking another dynamic lib.

You must double-check that the proposed change fixes the issue.
-> --with-pic=yes as well as --disable-pie fixes the issue i already validated that yesterday, i do only the PR to share my "patch" i use in my project make it public available, as i saw already in the past others had this issue with libsodium
https://stackoverflow.com/questions/77981884/issue-in-sodium-installation-in-r
https://github.com/jedisct1/libsodium/issues/292
the issue clearly starts with the PR to switch from cmake to make and i expect more vcpkg users would break their existing projects used the package before the PR so i think add a autoconf option the correct way to fix this, as the autoconf change produces the issue and was at least for me not in my toolchain before and i have not found a way to configure the tool upfront
The build of the vcpkg port already uses -fPIC.  / * Non-relocatable symbols can be from assembler code which is not under the control of the -fPIC compiler option. The linker can't detect this and produces a misleading error message.
-> true i also recognized that, ut some code (i also think it is the assembler code) seems not to compile with it
-Bsymbolic does not fix the problem and could also have negative side effects
It might be more appropriate to actually use a dynamic libsodium for linking another dynamic lib.
->   unfortunately for our usecase we have to use the libsodium as static library this is a hard requirement and the intention of static library is to be able to provide code for shared libraries, other static libraries and executables, depending on the users use case

Well, I can confirm it fixes the issue I reported in the previous PR.


Prevent throwing RLMException "Object has been deleted or invalidated". Return nil instead.

Goals
The problem I am facing happens when a deleted object is accessed by the UI (fetched form the DB and referenced before being deleted).
Realm throws an exception (RLMException - "Object has been deleted or invalidated").
Checking the object if isInvalidated or using unmanaged (detached) objects - Object(value: ferchedObject) is an option, but makes the code super ugly with tons of checks all over the place and very hard to manage.
When using unmanaged objects all references (links) to other objects have to be checked if isInvalidated otherwise the exception is thrown again.
So instead of throwing an exception I would like realm to just return nil as if the object or property was released.
Expected Results
I would like realm to just return nil as if the object or property was released.
Actual Results
Realm throws an exception (RLMException - "Object has been deleted or invalidated").
Steps to Reproduce
That's very simple to reproduce:

just create an object
keep a reference to it
delete the object
try to access the deleted object

Version of Realm and Tooling
Realm version: 2.4.2
Xcode version: 8.2.1
iOS/OSX version: iOS 10.2
Dependency manager + version: Cocoapods 1.2.0

Thanks for filing this, @rokgregoric. Someone will take a look at your PR soon. :)

There's a significant difference between returning nil when accessing a valid object's property and accessing a deleted object. This type of ambiguous behavior, such as messaging nil in the Objective-C runtime, has historically shown to be a source of bugs.
That's why Realm distinguishes between both cases. For example:
class MyModel: Object {
    dynamic var property: String? = ""
}
let realm = try Realm()
realm.beginWrite()
let object = MyModel()
object.property = nil
_ = object.property // nil means one thing here

realm.cancelWrite()

We define any access to a deleted object as a usage error (by throwing that exception). Thankfully, Realm objects can only be invalidated at very specific points in time, so you shouldn't have to write as defensively as you would to avoid "faults" present in other frameworks. For example, when a Realm is refreshed, or when a deletion has happened earlier in that same thread.
If you'd like to avoid checking for RLMObject.isInvalidated directly, you could leverage object notifications and handle the deletion of an object reactively.

I agree returning nil is not the best option here .. but throwing an exception is even worse .. cause returning nil might crash you app in production .. but throwing an exception crashes it 100% if not caught. I am not suggesting to remove throwing exceptions all together .. but maybe have an option to disable exceptions when building in release mode .. to prevent unwanted crashes.
Imagine a scenario .. you have an app with 20 controllers and each has some realm objects referenced. On a background thread you delete some objects. Every controller needs some special handling to ensure that the objects (and their child objects) in use are not invalidated.
What's the best way to handle that?
If we are talking about Swift .. optionals and the compiler help you handle properties returning nil just fine.

Realm only throws runtime exceptions for programmer misuse of the framework. Exceptions shouldn't be used as error-handling, we expose NSError pointers and Swift throwing functions/initializers for that.
If a Realm user forgets to handle a case in which the object being manipulated has been invalidated, preventing the continuation of the app (e.g. crashing) is preferable to corrupting data due to misleading information being reported for property values. This is especially true for synchronized Realms, where changes are propagated to other clients and may cause irreversible damage.

If we are talking about Swift .. optionals and the compiler help you handle properties returning nil just fine.

Actually that's not quite the case. For a non-optional property, you can't return nil under any circumstance. Doing so will crash the app, but without a helpful error message explaining why the value couldn't be fulfilled, which we gain by using exceptions.
Also, returning nil from an optional property should not conflate the meaning of "this valid object has a nil value for the queried property" with "this is an invalid object that may or may not have had a value for the queried property".

Imagine a scenario .. you have an app with 20 controllers and each has some realm objects referenced. On a background thread you delete some objects. Every controller needs some special handling to ensure that the objects (and their child objects) in use are not invalidated.
What's the best way to handle that?

It's important to be clear that when you delete objects on a background thread, your main thread will only see those objects as deleted after it has advanced to the new version of the Realm file (typically on a future runloop iteration). If you register for notifications on the objects your view controllers are working with, the notification handler will be called as part of the process of updating to a newer version within the Realm, giving you ample opportunity to see that the object has been removed and invalidate any references you may have to it.

It would be super-useful though if the error message could be improved, so that you know which object has been deleted or invalidated. Like "Object of type 'DnsServer' has been deleted or invalidated". Or even better "Object of type 'DnsServer' (id '2148729183') has been deleted or invalidated".


Connection: not parsing some swagger return results

https://api.math.tools/yaml/math.tools.numbers.openapi.yaml
Math.numberscardinal({number: 1791941}).contents
There's something present in the swagger, although it looks like just an example, not a full definition. Maybe we need to infer from the example?
      responses:
        "200":
          description: 200 Success response
          content:
            application/json:
              examples:
                response:
                  value: |-
                    {
                      "success": {
                        "total": 1
                      },
                      "copyright": {
                        "copyright": "2019-21 https://math.tools"
                      },
                      "contents": {
                        "number": 2342,
                        "language": "en_US",
                        "result": "two thousand three hundred forty-two",
                        "cardinal": "two thousand three hundred forty-two"
                      }
                    }

This pattern seems to be common on apigurus. Here's another:
https://api.apis.guru/v2/specs/fungenerators.com/uuid/1.5/openapi.json

What we find in the swagger file in only an example for the output but the schema is missing (= null).
From the spec for "Media Type Object" (what we have under application/json), we can have a schema (not required) and examples (+ encoding). We only use the schema and the examples are too poor to infer a type (a date or enum are strings, float, double, integer (..) are all numbers)


Question regarding verify function

Hi,
I use RetinaFace for face detections. So,, I have the face coordinates in a particular frame. Now, I want to use Verify() function to see if it matches the other stored face. I have the face coordinates from both the frames - meaning to say that I don't want the verify function to detect the face again but I only want the function to verify if both the faces are matching or not. How can I achieve it? I am trying to do this to increase the speed of the verify function call. Can you please suggest.
Thanks!

does not deepface stream function do this?


🐛[BUG] TypeScript: ThemeProvider type alias is returning the wrong type

🐛 bug description
ThemeProvider is currently expecting a return type of React.ReactNode when it should be using JSX.Element. I was creating an HOC for ThemeProvider so that I could keep customToken object in it's own file. ThemeProvider has it's return type as ReactNode which allows for undefined which causes typescript to yell at you. I was able to get rid of the error by overriding the type alias to instead return JSX.Element, which doesn't allow for returning undefined.
📷 Steps to reproduce
import { ReactNode } from 'react'
import { ThemeProvider, ThemeProviderProps } from 'antd-style'

interface NewToken {}

const customTokenValues = {}

declare module 'antd-style' {
  export interface CustomToken extends NewToken {}
}

type MyThemeProviderType = ({
  children
}: {
  children: ReactNode
}) => ReactNode

export const MyThemeProvider: MyThemeProviderType = ({ children }) => (
  <ThemeProvider customToken={customTokenValues}> {/* typescript throws an error here */}
  {/*
  'ThemeProvider' cannot be used as a JSX component.
   Its return type 'ReactNode' is not a valid JSX element.
   Type 'undefined' is not assignable to type 'Element | null'.
  */}
    {children}
  </ThemeProvider>
)

I was able to fix it by overriding ThemeProvider's typeAlias and changing the return type from ReactNode to JSX.Element
import { ReactNode } from 'react'
import { ThemeProvider, ThemeProviderProps } from 'antd-style'

interface NewToken {}

const customTokenValues = {}

declare module 'antd-style' {
  export interface CustomToken extends NewToken {}
}

type MyThemeProviderType = ({
  children
}: {
  children: ReactNode
}) => ReactNode

const ThemeProviderComponent = ThemeProvider as (<T = any, S = any>(props: ThemeProviderProps<T, S>) => JSX.Element)

export const MyThemeProvider: MyThemeProviderType = ({ children }) => (
  <ThemeProviderComponent customToken={customTokenValues}>
    {children}
  </ThemeProviderComponent>
)

🏞 Expected results
No errors when trying to use an HOC on ThemeProvider
💻 Reproduce code
All is listed above
© Version information

antd-style version: 3.6.2
Browser environment: No Browser, just TypeScript
Development environment: Mac OS

ReactNode is the standard type in React 18. What's your ts and react version?

refs: https://github.com/ant-design/antd-style/issues/98

ReactNode is the standard type in React 18. What's your ts and react version?

I see. Sorry for the duplicate ticket. I'm using React 17 still. Typescript is at 5.4.5. I think it would be a good idea to add a warning to the documentation about this issue along with a workaround for users that are on older versions of React.

@overthemike  yeah, PR welcome~


Instructions for dynamic libraries

feature link handles Linux and Windows properly, still need to document that dynlibs should be in the search path for binaries to run properly
users may decide to opt out and link themselves, that should be documented too


Documentation File For Static Method In Interfaces

Description 📜
Provided a clear, concise description of how static methods in interface really work.
Fixes #2701

Type of change 📝

[ ] Au#dio (Should be in mp3 format Includes speech clarity, Concise ,Low distortion)
[ ] Vi#deo (Animations, screen-recordings, presentations and regular explanatory films are all possibilties etc)
[x] Doc#umentation (Content Creation in the form of codes or tutorials)
[ ] Other (If you choose other, Please mention changes below)

Domain of Contribution 📊

[ ] Android Dev #(Flutter)
[ ] Android Dev #(Java)
[ ] Android Dev #(Kotlin)
[ ] Backend Dev #(Java)
[ ] Backend Dev #(.NET)
[ ] Backend Dev #(PHP)
[ ] Backend Dev #(Python)
[ ] C/#CPP
[ ] Competitive #Programming
[ ] Cyber #Security
[ ] DS#A
[ ] Data#base
[ ] Datascience with #Python
[ ] Datascience with #R
[ ] Frontend Dev #HTML/CSS/JS
[ ] Frontend Dev #React/Angular/Vue
[ ] Go#lang
[ ] Interview #Prep
[x] Java
[ ] Java#Script
[ ] ME#RN
[ ] Machine #Learning
[ ] Open #Source
[ ] Python_#Domain
[ ] Ru#st
[ ] Statis#tics
[ ] UI/#UX

Checklist ✅

[x] I follow Contributing Guidelines & Code of conduct of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I'm GWOC'21 contributor

Screenshots / Gif (Optional) 📸

@pragmatic-philosopher09,
Documentataion is fine, please help with below points -

Add the output of code snippets which you have added in documentation.
Also dont forget to indent the code properly, it will help readers to understand code quickly.
Thanks

Okay, I'll put the output screenshots as requested. As for the code indentation, I've directly copied and pasted it from the editor from which I wrote it on and as far as I can perceive, I've properly indented the code, haven't I? Thanks for the feedback!

@sumitaccess007 I've incorporated the changes requested, u could review it once again.

@sumitaccess007 pls check


[DBInstance] Set source instance engine on read replica

This commit adds an additional source db instance fetch upon a read replica create. At the moment, storage-related attributes are being set upon a create for non-SQLServer engines only. Due to the safeguard in place, the handler treats all unset engine types as SQLServer and hence sets no storage-related attributes on read replicas.
The idea is to set the replica engine type from the source instance so the handler doesn't have to make a guess whether it is a SQLServer engine.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Superseded by https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-rds/pull/438


error

Dear awni,
when I exec "python train.py examples/timit/seq2seq_config.json", it told me that "Segmentation fault (core dumped)",can you help me ? @awni

Hi, I'd like to help you, but it's a bit challenging without any other information. If you can provide a stack trace / more details about your environment then that would be a good starting point. Or any idea of where the program crashed would be helpful.
If your not familiar with it, I recommend pdb as a good debugging tool for python.


[FEATURE & BUG] OpenAI ViT-L-14-336 weights & QuickGELU

Hello,
Would it be possible to add vit_large_patch14_clip_336.openai weights in vision_transformer.py ? There are only finetuned ViT-L-14@336 available.
I also noticed than when using timm.create_model('vit_base_patch16_clip_224.openai', pretrained=True), I don't get the same features than using open_clip.load_openai_model('ViT-B-16'). To fix this, I have to replace all GELU activations in the timm model by QuickGELU activations (x * torch.sigmoid(1.702 * x)).
One way to fix this would be to use the QuickGeLU activation in vit_base_patch16_clip_224 function (and probably other similar CLIP models) though the act_layer kwarg.
Thanks,
Simon

Here is the code I use to load OpenAI weights with the current state of timm :
import torch
import huggingface_hub
import timm

model = timm.create_model('vit_large_patch14_clip_336', num_classes=768)
url = "https://openaipublic.azureedge.net/clip/models/3035c92b350959924f9f00213499208652fc7ea050643e8b385c2dac08641f02/ViT-L-14-336px.pt"
state_dict = torch.hub.load_state_dict_from_url(url).state_dict()
state_dict = timm.models.vision_transformer._convert_openai_clip(state_dict, model_timm)
model.load_state_dict(state_dict)

@SimJeg I didn't do this because it would require a different model definition.
I was hoping PyTorch would add a sigmoid GELU approx but they never did, QuickGELU is slow compared to the native activation and uses more GPU memory. Making it the default for these models would burden all downstream use (fine-tunes) etc with the same crappy activation. The fine-tuning process should pretty much remove the difference (based on some checks a long time ago)....
You can do
class QuickGELU(torch.nn.Module):
   def forward(self, x: torch.Tensor):
       return x * torch.sigmoid(1.702 * x)

mm = timm.create_model('vit_base_patch16_clip_224.openai', pretrained=True, act_layer=QuickGELU)

Hmmm
Will add 336 openai and eva model soon in either case.

@SimJeg the open 336 and eva clips are merged FYI

@rwightman feel free to close the issue. Maybe worth to add a warning about the QuickGELU activation ?

@rwightman Do vit_large_patch14_clip_336.openai_ft_in12k_in1k, vit_base_patch16_clip_224.openai_ft_in12k_in1k, vit_base_patch16_clip_224.laion2b_ft_in12k_in1k require QuickGELU? Is there a reference I can check to see the correct activation?

@NightMachinery no they do not, only the original .openai weights should use QuickGELU


[WIP] Behave multiarch

Here are some reminders before you submit the pull request

[ ] Add tests for the change
[ ] Document changes
[ ] Communicate in the mailing list if needed
[ ] Pass make installcheck
[ ] Review a PR in return to support the community

We need some other solution to test this problem


Different types of punctuation gives different results in the PowerToys Run calculator

Microsoft PowerToys version
0.68.1
Installation method
WinGet
Running as admin
No
Area(s) with issue?
PowerToys Run
Steps to reproduce
Switching between . and , for punctuation in the calculator plugin gives quite different results

✔ Expected Behavior
2200*1.01 = 2222
2200*1,01 = 2222
❌ Actual Behavior
2200*1.01 = 2420
2200*1,01 = 2222
Other Software
No response

That's because in some locales the . is a decimal, and in some the , is. For each case, the other character is a thousands-separator. Unfortunately, there is no way around this - at least not until the whole world accepts one single standard. But that would also be nice for electrid grid voltage and frequency, power plugs, railroad track distance and train power supply, etc. You get the point 😆
There's (a) setting(s) for dealing with this in the PowerToys Plugin settings.
I guess you are used to Windows Calculator app, which accepts both as decimal, because it doesn't deal with thousands-separator (as input)


Handle DBeaver's pg_namespace query casting to REGCLASS

Fixes: https://github.com/jwills/buenavista/issues/29
DBeaver sends the following sql to get info regarding tables:
"SELECT n.oid, n.*, d.description
FROM pg_catalog.pg_namespace AS n
LEFT OUTER JOIN pg_catalog.pg_description AS d
ON d.objoid = n.oid AND d.objsubid = 0 AND d.classoid = CAST('pg_namespace' AS REGCLASS) ORDER BY nspname"

DuckDB does not have a REGCLASS data type though, so it fails. This PR modifies the incoming sql to make it work on duckdb, by removing the cast to REGCLASS.

While this change makes the query work, it returns 3 mains because of duckdb's internal organization.

@ediril yeah going back and forth on the 3 mains thing-- that is technically how DuckDB works, right? So that's probably okay to do?


README recommends mikeal's request

you should check out mikeal's request module

What's the issue? :thinking:

request had been deprecated for years?

Message ID: @.***>

Oh yes I see, haha. I'll update the README asap!


How to add s3 access and secret key to helm charts without customize the image.

Hi Team,
We were  trying  to add s3 access and secret key in helm charts, but it's not working.
If we customize the image then its working fine, but we have many customers so we need to add these creds to helm charts.
If we customize the image then the same will not use with another customer.
As of now we tried to add s3 access and secret keys in below ways.

To add with environment variables.
To add with secrets
To add with life cycle.

If anyone done this can you please suggest us how to do it.
NOTE: Here we are using opensearch-2.9.0 version
Thanks,
Anil

You need to add the s3.client.default.access_key and s3.client.default.secret_key in the keystore as described here. Add the values to a secret, and list the secret in the chart values here, which will load the values into the keystore when the container starts.

Hi @smlx ,
We want to add these s3.client.default.access_key and s3.client.default.secret_key at the time of container will start, but we couldn't do that.
We tried to add these keys in initcontainer, but its not taking and also we have created the secret keys and added to in helm charts that time it was not working.
Is there any way to add it please let us know with step by step procedure.
Thanks
Anil

[Untriage]
Adding @tranngocsongtruc @SkollRyu @premkirank can you please take a look?


Make the number of currently running routines public

It's always good to be able to monitor the number of currently running routines, to detect any leak or as a way to monitor capacity of an instance.
This adds a server.CountRoutines so this data becomes public and can be used by any client.

Hey! Thanks for the contribution -- this looks like it could be useful to people.
Could you add a quick test that the counter works as expected? Maybe something that checks that the counter is 0 to start, that while running it's equal to the number of requests and 0 when the server shuts down.

Also, sorry that it took me so long to respond to this.

You're right. Done.

Merged. Thanks!

Thank you! :tulip:


Test Bug 58

Summary
Short summary of what is going on or to provide context.
Steps To Reproduce:

This is step 1.
This is step 2. All steps should start with '1.'

Expected result
Describe what should have happened.
Actual result
Describe what actually happened instead.
Additional information
Feel free to attach a screenshot.
Salesforce Extension Version in VS Code: 60.13.0
Salesforce CLI Version: @salesforce/cli/2.41.8 darwin-arm64 node-v18.18.2
OS and version:
VS Code version: 1.82.0
Most recent version of the extensions where this was working:

Thank you for filing this issue.  We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-source-version-target/pull/153 is merged into live branch.
Auto archive content to https://github.com/opstest2/docs-archive-test-source-version-target.git

Docs Build status updates of commit 4f43cc1:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

versioningArchiveSourceFolder/TOC.yml
:white_check_mark:Succeeded
View (sql-server-2014 || azuresqldb-current || azuresqldb-mi-current || azure-sqldw-latest || >= aps-pdw-2016 || >= sql-server-2016 || >= sql-server-linux-2017 || sql-server-previousversions || sqlallproducts-allversions)

versioningArchiveSourceFolder/docfx.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Cross field validation for input group

Is it possible to implement a cross field validation, like FROM date and TO date, or minimum and maximum amount range, where amount entered in min and amount entered in max should be greater than min.
I have attached few screenshots of where I need to add custom validations.

@chintan11192 Sorry, you'd have to manually implement such a validation.
BTW: Lately Angular introduced min and max validators. You can use these out of the box.


Missing protoc-gen-go-grpc

Summary
Always works fine with other language but go demand  protoc-gen-go-grpc to generate proper files
docker run --rm -u ${UID} -v${PWD}:${PWD} -w${PWD} jaegertracing/protobuf:latest --go_out=grpc/go/grpc --proto_path=${PWD} --go-grpc_out=. --go-grpc_opt=paths=source_relative helloworld.proto
protoc-gen-go-grpc: program not found or is not executable
--go-grpc_out: protoc-gen-go-grpc: Plugin failed with status code 1.

Steps to Reproduce

download https://raw.githubusercontent.com/grpc/grpc-go/master/examples/helloworld/helloworld/helloworld.proto
launch command docker run --rm -u ${UID} -v${PWD}:${PWD} -w${PWD} jaegertracing/protobuf:latest --go_out=grpc/go/grpc --proto_path=${PWD} --go-grpc_out=. --go-grpc_opt=paths=source_relative helloworld.proto

What do you see now?
protoc-gen-go-grpc: program not found or is not executable
--go-grpc_out: protoc-gen-go-grpc: Plugin failed with status code 1.

What do you want to see instead?
command end without error
Environment
Linux
...
How do you propose to implement this?
not shure
Can you do this yourself and submit a Pull Request?
not without propositions

I think because it is primarily designed to work with gogoproto, not the default go-grpc plugin.
See https://github.com/jaegertracing/jaeger/blob/master/Makefile#L500


[suggest] Add a setting in config, you can choose whether to display the effect icon

Because some mod new effects do not always display the icon correctly, for the sake of unity or for the sake of concise display, I think it is also a good choice not to display the icon

There already is a setting to disable the effect tooltips
I'm not sure if I want to start doing such granular configs
Are there any known problematic effect icons?

I don't understand what you are trying to tell me there
If the config is enabled existing effect tooltips should be removed (and replaced with the custom ones from this mod)
If it is disabled no effect tooltips will be added / no existing ones will be removed

As mentioned above, there is a config to disable the custom tooltip logic for effects


Misleading doc in the environment-values section

In the section,
https://github.com/roboll/helmfile#environment-values
values.yaml.gotmpl should have the content of
domain: {{ .Values | get "domain" "dev.example.com" }}
but it was given as,
domain: {{ .Values | get "my.domain" "dev.example.com" }}
Eventhough it is minor document issue, it is slightly confusing to understand from where my.domain comes.

@worldofprasanna Thanks! Would you mind submitting a PR for fixing this?

@mumoshu I am happy to do this :-)


Support Browsertrix QA webhooks

WACZ should be (optionally?) processed after QA approval using the new Browsertrix QA action webhooks, not right after a crawl is completed as is done currently.

Result of qaAnalysisFinished:
{
  "orgId": "<org id>",
  "itemId": "manual-20240815184407-66652278-30b",
  "resources": [
    {
      "name": "cb8515f9-7622-4879-b79e-d1f084a11ea2/qa/20240815184633123-66652278-30b-0.wacz",
      "path": "<download link>",
      "hash": "876e73aa2cf1c56e508144fd126d5a9a5f24e98e8640c21656827e2bdead90e0",
      "size": 194044,
      "crawlId": "manual-20240815184407-66652278-30b",
      "numReplicas": 0,
      "expireAt": "2024-08-17T06:46:37"
    }
  ],
  "state": "complete",
  "event": "qaAnalysisFinished",
  "qaRunId": "qa-20240815184553-66652278-30b"
}

Result of crawlReviewed:
{
  "orgId": "<org id>",
  "itemId": "manual-20240815184407-66652278-30b",
  "event": "crawlReviewed",
  "reviewStatus": 4,
  "reviewStatusLabel": "Good",
  "description": "New desc here"
}

Probably we want to only target crawlReviewed, and only ingest crawls above a certain rating. The rating and description should go into AA. Note description contains the description of the archive even if it is unchanged during the review process.
Rating / review status levels:
1 - Bad
2 - Poor
3 - Fair
4 - Good
5 - Excellent

I propose we ingest any crawls rated Fair or above.

The other question is how much we want to support NOT using QA and just auto-ingesting any crawls. How often will we see this use case? This could just be a switch in the config file, but that would make it hard to work with if multiple projects are going on at once, and they each want different things.

This all sounds good to me. Thanks for building this!
Do we want to support no-review auto-ingest, that's probably better question for @walkerlj0 @basilesimon @YurkoWasHere we'll take that up on Slack.

[ ] If the crawl is reviewed after already being ingested, only the crawl rating and possibly updated description should be added, instead of re-ingesting the whole file


Frontend container migration

Adding necessary scripts for migrating our frontend component to container.

/retest

I think this is good now, worked fine when I tried deploying it. @croissanne could you take a look at this please?


Extensions Helpers

Move NodeExtenstions into the Mjml.Net.Extensions name space. Furthermore, include any other Extensions we've got laying around.

Please do not use the "Helpers" namespace for that. because this has a special meaning in this context.

@SebastianStehle, yes, I see the Helpers namespace is used for specific case. We just need to move the NodeExtensions.cs from Mjml.Net.Components to Mjml.Net.Extensions. That way it's functionality falls inline with the namespace.


Change Feed를 정밀하게 사용하기에는 설명이 너무 부족하다.

@wayne-kim commented on Fri Aug 10 2018
모든 피드를 받는 건 쉽게 합니다. 하지만 특정 파티션에 대해서 피드만 받으려고하니까. 방법을 찾을 수 없습니다.

문서 세부 정보
⚠ 이 섹션을 편집하지 마세요. docs.microsoft.com ➟ GitHub 문제 연결에 필요합니다.

ID: fdcc897a-d6df-3305-e9cb-01889a3c5d4f
Version Independent ID: 739a9fc7-3782-a860-ac6d-4194fd1ce2e8
Content: Azure Cosmos DB에서 변경 피드 지원 사용
Content Source: articles/cosmos-db/change-feed.md
Service: cosmos-db
GitHub Login: @rafats
Microsoft Alias: rafats

Hi team,
The user says that they can't find a way to receive feeds for certain partitions, not all of them and that they couldn't find a way to do so.
Thanks!

Reference: The en-us version of the document: https://docs.microsoft.com/en-us/azure/cosmos-db/change-feed
Too much explanation for the precise use of the Change Feed
Getting all the feeds is easy. But it only tries to feed on a particular partition. Could not find a way.

@LisandroSu Are you using only a single partition key or do you know all your partitions keys? In the Using the SDK section, step 3 explains how to retrieve the partition key ranges.
3. Get the partition key ranges:
FeedResponse pkRangesResponse = await client.ReadPartitionKeyRangeFeedAsync(
collectionUri,
new FeedOptions
{RequestContinuation = pkRangesResponseContinuation });
partitionKeyRanges.AddRange(pkRangesResponse);
pkRangesResponseContinuation = pkRangesResponse.ResponseContinuation;
The full GitHub repo is here for the Change Feed Client: ChangeFeed.
With the GitHub repo, you should be up and running without all the complications. Can you please let me know what additional questions you have. Thanks, MIke

@LisandroSu We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


Infinite loop push Docker image

Description
When I pushed Docker, it was obvious that the upload was already in progress, but there were infinite retries. I tested that uploading Docker to the center was normal
这是日志
2024/10/15 16:23:22 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/ for <IP_ADDRESS>:0, 401 Unauthorized in 0.3ms @ container/container.go:129(container.ReqContainerAccess)
Received disconnect from <IP_ADDRESS> port 44068:11: Bye Bye [preauth]
Disconnected from invalid user caimingwei <IP_ADDRESS> port 44068 [preauth]
2024/10/15 16:23:23 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/token?account=youmetme&scope=repository%3Ayoumetme%2Fjre%3Apush%2Cpull&service=container_registry for <IP_ADDRESS>:0, 200 OK in 365.1ms @ container/container.go:152(container.Authenticate)
2024/10/15 16:23:23 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:6889c2fe38979b65070da5912c39951541fa5d00ff1e4316f1246ac0780d5a7b for <IP_ADDRESS>:0, 404 Not Found in 8.5ms @ container/container.go:521(container.GetBlob)
2024/10/15 16:23:23 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:154f02a6f4ff3179213e583eb4776bed04544b929d7c4611e9dd330242b31c70 for <IP_ADDRESS>:0, 200 OK in 51.0ms @ container/container.go:521(container.GetBlob)
2024/10/15 16:23:23 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:8235ecec634f7387ba5f6733f26f8eb8566345fe7648b40a5307f5e2c8dc88ef for <IP_ADDRESS>:0, 200 OK in 34.0ms @ container/container.go:521(container.GetBlob)
2024/10/15 16:23:23 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:43c4264eed91be63b206e17d93e75256a6097070ce643c5e8f0379998b44f170 for <IP_ADDRESS>:0, 200 OK in 85.1ms @ container/container.go:521(container.GetBlob)
2024/10/15 16:23:23 ...eb/routing/logger.go:102:func1() [I] router: completed POST /v2/youmetme/jre/blobs/uploads/ for <IP_ADDRESS>:0, 202 Accepted in 9.7ms @ container/container.go:234(container.InitiateUploadBlob)
2024/10/15 16:23:23 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for <IP_ADDRESS>:0, 200 OK in 101.6ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
User root from <IP_ADDRESS> not allowed because not listed in AllowUsers

Gitea Version
1.22.3
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots

Git Version
No response
Operating System
No response
How are you running Gitea?
docker
Database
SQLite

What does to the center mean?

What does to the center mean?

Sorry, it should be normal to upload to the docker central warehouse. What I want to prove is that it is not a local problem

What's the demo site url you can reproduce?

What's the demo site url you can reproduce?

How can I demonstrate uploading Docker images on demo.gitea.com
$ docker login demo.gitea.com
Username: youmetme
Password:
Error response from daemon: Get "https://demo.gitea.com/v2/": unauthorized: authGroup.Verify

IIRC, the password should be a token.

What's the demo site url you can reproduce?

How can I demonstrate uploading Docker images on demo.gitea.com

$ docker login demo.gitea.com

Username: youmetme

Password:

Error response from daemon: Get "https://demo.gitea.com/v2/": unauthorized: authGroup.Verify

Are you running as root user?

What's the demo site url you can reproduce?

How can I demonstrate uploading Docker images on demo.gitea.com

$ docker login demo.gitea.com

Username: youmetme

Password:

Error response from daemon: Get "https://demo.gitea.com/v2/": unauthorized: authGroup.Verify

Are you running as root user?

The user has joined the docker group and does not need to consider this detail

录屏 2024-11-25 22-07-00.webm
This will never end

What's the demo site url you can reproduce?

How can I demonstrate uploading Docker images on demo.gitea.com
$ docker login demo.gitea.com
Username: youmetme
Password:
Error response from daemon: Get "https://demo.gitea.com/v2/": unauthorized: authGroup.Verify

It was successful on demo.gitea.com
But this problem still exists with me. All other software package functions are normal, only Docker

The main issue is that Gitea's logs did not provide any critical prompts

录屏 2024-11-25 22-07-00.webm This will never end

Are you using cloudflare tunnel?

What do you mean？I not

录屏 2024-11-25 22-07-00.webm This will never end

Are you using cloudflare tunnel?

What do you mean？I not

录屏 2024-11-25 22-07-00.webm This will never end

Are you using cloudflare tunnel?

Pretend I didn't ask

@yp05327 @hiifong
This is more logs obtained from updating to 1.22.4
2024/11/29 02:11:17 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:43c4264eed91be63b206e17d93e75256a6097070ce643c5e8f0379998b44f170 for <IP_ADDRESS>:0, 404 Not Found in 2.5ms @ container/container.go:521(container.GetBlob)
2024/11/29 02:11:17 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:8235ecec634f7387ba5f6733f26f8eb8566345fe7648b40a5307f5e2c8dc88ef for <IP_ADDRESS>:0, 404 Not Found in 2.8ms @ container/container.go:521(container.GetBlob)
2024/11/29 02:11:17 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:154f02a6f4ff3179213e583eb4776bed04544b929d7c4611e9dd330242b31c70 for <IP_ADDRESS>:0, 404 Not Found in 2.8ms @ container/container.go:521(container.GetBlob)
2024/11/29 02:11:17 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:6889c2fe38979b65070da5912c39951541fa5d00ff1e4316f1246ac0780d5a7b for <IP_ADDRESS>:0, 404 Not Found in 4.0ms @ container/container.go:521(container.GetBlob)
2024/11/29 02:11:17 ...eb/routing/logger.go:102:func1() [I] router: completed POST /v2/youmetme/jre/blobs/uploads/ for <IP_ADDRESS>:0, 202 Accepted in 7.8ms @ container/container.go:234(container.InitiateUploadBlob)
2024/11/29 02:11:17 ...eb/routing/logger.go:102:func1() [I] router: completed POST /v2/youmetme/jre/blobs/uploads/ for <IP_ADDRESS>:0, 202 Accepted in 8.1ms @ container/container.go:234(container.InitiateUploadBlob)
2024/11/29 02:11:17 ...eb/routing/logger.go:102:func1() [I] router: completed POST /v2/youmetme/jre/blobs/uploads/ for <IP_ADDRESS>:0, 202 Accepted in 8.5ms @ container/container.go:234(container.InitiateUploadBlob)
2024/11/29 02:11:17 ...eb/routing/logger.go:102:func1() [I] router: completed POST /v2/youmetme/jre/blobs/uploads/ for <IP_ADDRESS>:0, 202 Accepted in 14.3ms @ container/container.go:234(container.InitiateUploadBlob)
2024/11/29 02:11:17 ...eb/routing/logger.go:102:func1() [I] router: completed PATCH /v2/youmetme/jre/blobs/uploads/jw77blr0enfekze8rccqysqyf for <IP_ADDRESS>:0, 202 Accepted in 7.8ms @ container/container.go:344(container.UploadBlob)
2024/11/29 02:11:17 ...eb/routing/logger.go:102:func1() [I] router: completed PUT /v2/youmetme/jre/blobs/uploads/jw77blr0enfekze8rccqysqyf?digest=sha256%3A8235ecec634f7387ba5f6733f26f8eb8566345fe7648b40a5307f5e2c8dc88ef for <IP_ADDRESS>:0, 201 Created in 45.2ms @ container/container.go:389(container.EndUploadBlob)
2024/11/29 02:11:18 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:8235ecec634f7387ba5f6733f26f8eb8566345fe7648b40a5307f5e2c8dc88ef for <IP_ADDRESS>:0, 200 OK in 6.5ms @ container/container.go:521(container.GetBlob)
2024/11/29 02:11:22 ...eb/routing/logger.go:68:func1() [W] router: slow      PATCH /v2/youmetme/jre/blobs/uploads/kutzafxqv5xwkksriogheo88w for <IP_ADDRESS>:0, elapsed 3342.2ms @ container/container.go:344(container.UploadBlob)
2024/11/29 02:11:22 ...eb/routing/logger.go:68:func1() [W] router: slow      PATCH /v2/youmetme/jre/blobs/uploads/xtb5f72i6rlycdi3bd6qntqlz for <IP_ADDRESS>:0, elapsed 3816.3ms @ container/container.go:344(container.UploadBlob)
2024/11/29 02:11:25 ...eb/routing/logger.go:102:func1() [I] router: completed PATCH /v2/youmetme/jre/blobs/uploads/xtb5f72i6rlycdi3bd6qntqlz for <IP_ADDRESS>:0, 202 Accepted in 6488.7ms @ container/container.go:344(container.UploadBlob)
2024/11/29 02:11:25 ...eb/routing/logger.go:102:func1() [I] router: completed PUT /v2/youmetme/jre/blobs/uploads/xtb5f72i6rlycdi3bd6qntqlz?digest=sha256%3A154f02a6f4ff3179213e583eb4776bed04544b929d7c4611e9dd330242b31c70 for <IP_ADDRESS>:0, 201 Created in 44.7ms @ container/container.go:389(container.EndUploadBlob)
2024/11/29 02:11:26 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:154f02a6f4ff3179213e583eb4776bed04544b929d7c4611e9dd330242b31c70 for <IP_ADDRESS>:0, 200 OK in 17.4ms @ container/container.go:521(container.GetBlob)
2024/11/29 02:11:28 ...eb/routing/logger.go:102:func1() [I] router: completed PATCH /v2/youmetme/jre/blobs/uploads/kutzafxqv5xwkksriogheo88w for <IP_ADDRESS>:0, 202 Accepted in 9144.8ms @ container/container.go:344(container.UploadBlob)
2024/11/29 02:11:28 ...eb/routing/logger.go:102:func1() [I] router: completed PUT /v2/youmetme/jre/blobs/uploads/kutzafxqv5xwkksriogheo88w?digest=sha256%3A43c4264eed91be63b206e17d93e75256a6097070ce643c5e8f0379998b44f170 for <IP_ADDRESS>:0, 201 Created in 42.5ms @ container/container.go:389(container.EndUploadBlob)
2024/11/29 02:11:28 ...eb/routing/logger.go:102:func1() [I] router: completed GET /v2/youmetme/jre/blobs/sha256:43c4264eed91be63b206e17d93e75256a6097070ce643c5e8f0379998b44f170 for <IP_ADDRESS>:0, 200 OK in 28.9ms @ container/container.go:521(container.GetBlob)
2024/11/29 02:11:31 ...eb/routing/logger.go:102:func1() [I] router: completed POST /v2/youmetme/jre/blobs/uploads/ for <IP_ADDRESS>:0, 202 Accepted in 9.0ms @ container/container.go:234(container.InitiateUploadBlob)
2024/11/29 02:11:49 ...eb/routing/logger.go:102:func1() [I] router: completed POST /v2/youmetme/jre/blobs/uploads/ for <IP_ADDRESS>:0, 202 Accepted in 6.9ms @ container/container.go:234(container.InitiateUploadBlob)

After update my gitea from 1.22.1 to 1.22.4, I got the same issue......

Upgrade to the nightly version, still get the same issue.

So some changes in 1.22.2 went wrong.

Found https://github.com/go-gitea/gitea/pull/31967. Maybe related.

That is so strange, not all images can not be pushed.
In my case, I have two container packages in the same organization, using the same token, and one of them can be pushed, but the other one not.

I can only see the init request in Gitea side:

POST /v2/xxx/xxx/blobs/uploads/ for xxxxx:0, 202 Accepted

But I CAN NOT see

PATCH /v2/xxx/xxx/blobs/uploads/{id}

and

PUT /v2/xxx/xxx/blobs/uploads/{id}?digest=sha256:{hash}

But docker client will still push the digest and I can see the network trafic. Where does it push data to?
Is this related to my Gitea's network setting?

I'm using Cloudflare and it limits the max body size to 100M, so some layers uploaded failed.

@WangZhongDian If you use Nginx as a reverse proxy for gitea, please set client_max_body_size to a sufficiently large value (eg. 2048m) and try again.

I have a similar issue, some images can be pushed and some cannot. Version 1.22.6. The behavior is similar with reverse proxy (Traefik) and without it.

I'm experiencing the same issue even when pushing the same image to the same repository but from 2 different locations where one has a much better network than the other.
I noticed that, if the PATCH call takes 60s, I get a 500 error
Failing:
[W] router: slow      PATCH /v2/agilxp/mc-lifesteal/blobs/uploads/gdggqnfvukbnn5s85otex8kzn for xxx.xxx.xxx.xxx...
[I] router: completed PATCH /v2/agilxp/mc-lifesteal/blobs/uploads/gdggqnfvukbnn5s85otex8kzn for xxx.xxx.xxx.xxx:0, 500 Internal Server Error in 60000.2ms @ container/container.go:344(container.UploadBlob)

Success:
[I] router: completed PATCH /v2/agilxp/mc-lifesteal/blobs/uploads/breo1onjactaynbdpgxuhsk1r for yyy.yyy.yyy.yyy:0, 202 Accepted in 16.1ms @ container/container.go:344(container.UploadBlob)

I do not get the slow warning when it succeeds and cannot find any other relevant line in the log (no other W nor E and all 200 response)
I am on 1.22.6.


rename master -> main and develop -> dev

Hmm 🤔  do we really need a "dev" branch?

main/m***** -> melpa(-unstable)
tags -> melpa-stable

Melpa is not especially meant to host unstable work, it is just the only means of distribution. Lots of people have said "Melpa Stable" should be removed, I won't get into the reasons, but once you realize that, then you see that the latest HEAD on "main" always has to be release-grade.
A dev branch lets you share experimental work with others, but if you tend to do all your work locally, a series of unstable commits that culminate in a stable commit before pushing to main, then you don't need a dev branch.

Pull requests get accepted one by one, and generally leave main in a decent state. But there's value in collecting multiple smaller changes into a coordinated, version-numbered release.
If Melpa wants to ignore that work, and pull from main, they'll have to live with the churn. In my opinion, anyway.

It's not their responsibility, I think.  You are already tagging releases, right?  It's one extra step to push to a stable branch before tagging (and actually, you can omit the tagging step unless you use the tag for other purposes).

The dev branch is indeed not necessary if feature/45, hotfix/1, rc/111, ???, and PR are used as the work style. I would prefer this work style, but to be honest, it requires at least two developers. PR reviews should always be done by another developer, in my opinion. Anyway, what do you guys think about this approach? It also clarifies which tasks are currently being worked on. However, the use of each branch prefix needs to be documented.

(org-journal :fetcher github :repo "bastibe/org-journal"
:branch "stable")

I'm fine with the name stable for the main branch as well, as it makes the purpose of the branch clear.

Most PRs come from forks anyway, and therefore live on an external branch. If there are multiple concurrent developers, I like to prefix branch names with user names, i.e. bastibe/hotfix53, and casch-at/feature15. In our repo, this is mostly not the case, so simply hotfix53 or feature15 seems sufficient.
A dedicated stable branch sounds like a good idea. Essentially, we'd push every tagged version to the stable branch, and otherwise continue to work on main as before.

Bastian Bechtold @.***> writes:

Most PRs come from forks anyway, and therefore live on an external branch. If there are multiple concurrent developers, I like to prefix
branch names with user names, i.e. bastibe/hotfix53, and casch-at/feature15. In our repo, this is mostly not the case, so simply hotfix53
or feature15 seems sufficient.
A dedicated stable branch sounds like a good idea. Essentially, we'd push every tagged version to the stable branch, and otherwise
continue to work on main as before.

I like your naming convention bastibe/hotfix53, casch-at/feature15 or
hotfix53 for very small teams 👍.


bounding box

Howdy,
I recently followed the example on the doc and finetuned the pre-trained yolov4-tiny model.
The resulting custom trained model seems to correctly predict the class.
However, the bounding boxes predicted by the model are all minuscule boxes resembling dots.
Interestingly, the bounding boxes sit roughly at the center of any detected object and are off proportion.
I have checked my training data and the corresponding yolo txt annotations with labelImg and cv2 again and all seem to check out. I literally copied and pasted the tutorial. The only thing I messed around with is the custom dataset I prepped and they look alright upon inspection.
Is there a chance this is a bug?
I'm using the latest version 3.2.0 BTW.

Would you share your model?
I should be able to reproduce it to solve the problem.

Sure, attached is the model I trained to recognize industrial equipment and a target picture for you to run tests on.
Please let me know if you need anything else.
Thanks in advance!
trained_model_debug.tar.gz

What is your predicted image? is it the same below?

I am surprised you got better and larger bounding boxes. For me, somehow, I get way smaller boxes around the center point.
My expectations were that the bounding boxes would cover the entirety of the equipment, not just parts of it.
Is this an issue concerning training? I noticed that the total loss would plateau at 40 or something along that line.
Any pointers would be appreciated.
Thanks in advance!

What is your predicted image? is it the same below?

I didn't change anything and just ran it.
When I train with darknet, I train 3 at the same time. (PC and 2 Colab Instances)
Just watch it until the end of the training, or kill the least trained one while watching the loss change, and start a new training.
It is difficult to explain because there are various training methods and tuning methods.
Ref:

https://github.com/AlexeyAB/darknet#when-should-i-stop-training
https://github.com/AlexeyAB/darknet#how-to-improve-object-detection

Did you upscale the detection by the size of the image? Taking the raw bounding box will just give you a point at the centre, with the width and height as fractional. From there you need to work out the co-ords of the corners. The 'detect' function does this for you, but 'predict' does not from what I've seen.

import cv2
from pathlib import Path
import numpy as np

from yolov4.tf import YOLOv4

yolo = YOLOv4()

root = Path("C://Users/dev/Downloads")

yolo.config.parse_names(root.joinpath("classes.names"))
yolo.config.parse_cfg(root.joinpath("yolov4-tiny.cfg"))

yolo.make_model()
yolo.load_weights(root.joinpath("yolov4-tiny-24000-step.weights"), weights_type="yolo")
yolo.summary(summary_type="yolo")

yolo.inference(str(root.joinpath("BOU_0010.jpg")))

Instead of yolo.inference.
cv2.namedWindow("result", cv2.WINDOW_AUTOSIZE)

frame = cv2.imread(str(root.joinpath("BOU_0010.jpg")))
frame_rgb = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)

bboxes = yolo.predict(frame_rgb, prob_thresh=0.25)

image = yolo.draw_bboxes(frame, bboxes)
cv2.imshow("result", image)

while cv2.waitKey(10) & 0xFF != ord("q"):
    pass
cv2.destroyWindow("result")

I tried your code and I get roughly the same bounding box as yours.
I am attempting to train multiple models with different configs for now.
I think the bounding box problem occurs when the target object appears relatively small in context.

import cv2
from pathlib import Path
import numpy as np

from yolov4.tf import YOLOv4

yolo = YOLOv4()

root = Path("C://Users/dev/Downloads")

yolo.config.parse_names(root.joinpath("classes.names"))
yolo.config.parse_cfg(root.joinpath("yolov4-tiny.cfg"))

yolo.make_model()
yolo.load_weights(root.joinpath("yolov4-tiny-24000-step.weights"), weights_type="yolo")
yolo.summary(summary_type="yolo")

yolo.inference(str(root.joinpath("BOU_0010.jpg")))

Instead of yolo.inference.
cv2.namedWindow("result", cv2.WINDOW_AUTOSIZE)

frame = cv2.imread(str(root.joinpath("BOU_0010.jpg")))
frame_rgb = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)

bboxes = yolo.predict(frame_rgb, prob_thresh=0.25)

image = yolo.draw_bboxes(frame, bboxes)
cv2.imshow("result", image)

while cv2.waitKey(10) & 0xFF != ord("q"):
    pass
cv2.destroyWindow("result")

using darknet to do the training helped out tremendously with mAP and accurate bounding box prediction, along with modifying the network architecture for detecting smaller objects in context. thanks for the advice guys!


update celery context

The current implementation of the celery client prevents the ability to pass context on a per process basis.  We have found that being able to tag and filter based on the arguments or key word arguments is immensely helpful in tracking down where failures are in the system.

@ryan-s It's hard to see from the logs (a problem with xdist maybe), but this is still failing three tests:
_______________________________________________________________________ CeleryTestCase.test_context_args ________________________________________________________________________
Traceback (most recent call last):
  File "/Users/ashwoods/Documents/Code/sentry/raven-python/tests/contrib/test_celery.py", line 53, in test_context_args
    assert self.client.context
AssertionError: assert <Context: {}>
 +  where <Context: {}> = <raven.utils.testutils.InMemoryClient object at 0x10eac3e48>.context
 +    where <raven.utils.testutils.InMemoryClient object at 0x10eac3e48> = <tests.contrib.test_celery.CeleryTestCase testMethod=test_context_args>.client
______________________________________________________________________ CeleryTestCase.test_context_kwargs _______________________________________________________________________
Traceback (most recent call last):
  File "/Users/ashwoods/Documents/Code/sentry/raven-python/tests/contrib/test_celery.py", line 60, in test_context_kwargs
    assert self.client.context
AssertionError: assert <Context: {}>
 +  where <Context: {}> = <raven.utils.testutils.InMemoryClient object at 0x10e68d048>.context
 +    where <raven.utils.testutils.InMemoryClient object at 0x10e68d048> = <tests.contrib.test_celery.CeleryTestCase testMethod=test_context_kwargs>.client
__________________________________________________________________________ CeleryTestCase.test_simple ___________________________________________________________________________
Traceback (most recent call last):
  File "/Users/ashwoods/Documents/Code/sentry/raven-python/tests/contrib/test_celery.py", line 36, in test_simple
    assert event['culprit'] == 'dummy_task'
KeyError: 'culprit'

@ashwoods Ill be circling back to this next week.  Getting the client to update the context in the logging with the mocks has been problematic.  It's also becoming clear that Im conflating the logger and the celery handlers concepts, so I'm going to look to see if there is a more elegant way to handle this.

@ryan-s thx, let me know if there is anything I can do to help.


theming and handling values out of constraints

you can open this pull request, and I'll merge it, but please write some text on readme for those gifs
Thank you.

I remember closing this PR because there was an issue with the animation I added for out of range numbers, I have no time right now to resolve this but I will do it ASAP. (Next week I think)

I had trouble with my git branch, I recreated my repo and did a new pull request


PULL_REQUEST_TEMPLATE.md has a Question mark to much

In https://github.com/PowerShell/SharePointDsc/blob/dev/.github/PULL_REQUEST_TEMPLATE.md Line 15 should be the question mark after [Style Guidelines] removed. So that it is:
- [ ] New/changed code adheres to [Style Guidelines](https://github.com/PowerShell/DscResources/blob/master/StyleGuidelines.md)?

I am on it!

@BrianFarnhill Fixed in PR438, issue can be closed


State "pause" broken with Kodi 18.2

I don't know if this project is still alive but anyway - the kodi.state "play" and "stop" are correctly read from Kodi but once the player goes to "pause" it stays there and does not change back to "play". Which is confusing my light control. Very annoying. Bug in the adapter or Kodi?
I use adapter 1.0.0 and Kodi 18.2.

This project seems to be dead, I assume. Sad.

This bug is easy to fix. The reason of non working pause mode and resume is, that the api send the command/method OnResume and this command is not considered by the iobroker Adapter.
You can add between line 361 and 362 the following Code:
    connection.notification('Player.OnResume', function(res) {
        adapter.setState('state', {val: 'play', ack: true});
    });

Hi Tim,
works perfectly. Thanks so much!
regards,
Dieter

please pull request if it really works.

it works but only in Leia..

This bug is easy to fix. The reason of non working pause mode and resume is, that the api send the command/method OnResume and this command is not considered by the iobroker Adapter.
You can add between line 361 and 362 the following Code:
    connection.notification('Player.OnResume', function(res) {
        adapter.setState('state', {val: 'play', ack: true});
    });

Hi, in which file should I copy this?
/opt/iobroker/iobroker-data/files/kodi?

Issue still presits in v2.0

Issue still presits in v2.0

debug logs please

`
2020-04-13 13:01:16.779 - info: host.Servazamba iobroker Adapter "kodi" updated
2020-04-13 13:01:16.885 - info: host.Servazamba instance system.adapter.kodi.0 terminated with code 156 (156)
2020-04-13 13:01:17.791 - info: host.Servazamba iobroker exit 0
2020-04-13 13:01:18.901 - info: host.Servazamba instance system.adapter.kodi.0 started with pid 7731
2020-04-13 13:01:20.456 - info: kodi.0 (7731) starting.  Indicator alternates between green and yellow.

`
2020-04-13 13:01:16.779 - info: host.Servazamba iobroker Adapter "kodi" updated
2020-04-13 13:01:16.885 - info: host.Servazamba instance system.adapter.kodi.0 terminated with code 156 (156)
2020-04-13 13:01:17.791 - info: host.Servazamba iobroker exit 0
2020-04-13 13:01:18.901 - info: host.Servazamba instance system.adapter.kodi.0 started with pid 7731
2020-04-13 13:01:20.456 - info: kodi.0 (7731) starting. Version 2.0.0 in /opt/iobroker/node_modules/iobroker.kodi, node: v12.16.2
2020-04-13 13:01:26.226 - info: kodi.0 (7731) KODI connected
2020-04-13 13:01:26.650 - info: kodi.0 (7731) KODI connected
`
It does not connect properly. Indicator alternates between green and yellow.

Firstly this is not a debug log? and secondly you use the old version most likely Update to https://github.com/instalator/ioBroker.kodi/commit/23fa5edbcacbec6bbcf2b4778e73cf3f2d963939

Okay, how to generate the log you need and how to install the version you mentioned in iobroker?

Okay, how to generate the log you need and how to install the version you mentioned in iobroker?

Switch adapter debug mode
Update from github.

I exchanged kodi.js and now both, the connection issue and the issue with not switching the media state are gone.
Shank you very much sir!


exec: do not write to exit paths of container

as doing so will confuse clients who use the exit path as a signal that the container itself has exited
Signed-off-by: Peter Hunt<EMAIL_ADDRESS>

Codecov Report

Merging #298 (86aff0a) into main (2e1932d) will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##            main    #298   +/-   ##
=====================================
  Coverage   6.89%   6.89%
=====================================
  Files          2       2
  Lines         29      29
  Branches      17      17
=====================================
  Hits           2       2
  Misses        27      27


3D Tiles Styling - treat colors as vec4

Based on discussion here: https://github.com/AnalyticalGraphicsInc/3d-tiles/pull/166#issuecomment-271746293.

Code looks good.  Don't forget to update the Sandcastle examples when you make the property renames.

Updated. I couldn't find any uses in the examples.


Incosistent provider score

Sometimes the provider score is not what it should be, I think because the providers are not being registered correctly. (I am using kusama.w3f.community as the source of truth, if this is not the case please point me towards a more accurate source for scoring).
For example, I have two validators under the 1KV programme and they both share location and provider and they are both in the 1.9.0 version (latest at the time of writing).

https://kusama.w3f.community/candidate/E1iq5eqQqTz8dM1P1bqDEd5TtS2DK2cHLapcsMqh6CnRJkV. Here the provider score is  98.94736842105263 which I believe to be correct. More importantly, in this case the provider information is also shown.
https://kusama.w3f.community/candidate/GvG8TntkK5Lsg7DCA86MKYNGyYnxktNk4cS1x115eiQfRpT. In this case the provider score is 25 points (remember both validators use the same provider). In this case the provider information is missing.

In summary one of my validators is getting less points than it should due to missing provider information. I have reported this in the past via email but I decided to open an issue to better keep track of progress.
Thanks!

Also see https://github.com/w3f/1k-validators-be/issues/2807.

Hey lobis,
just double checked and I noticed that:

the two validators have a similar provider score
the two validators have a different provider

Hey lobis, just double checked and I noticed that:

the two validators have a similar provider score
the two validators have a different provider

Yes, since I wasn't getting the correct provider score I deployed the validator in the aws cloud for a few hours, then redeployed to the original location. The provider score updated to the aws location but never updated back to what it should've been in the first place (the same one as my other validator). Atleast now I am getting the points I should be getting so I can't complain about that.
However this second validator (the one with the provider issue) seems to still be having problems with the scoring backend, since it's been a long time since it gets any nomination and it's now averaging around 800 points. It was recently nominated but lost the nomination after 2 eras, all while maintaining a very high score. For instance my other validator has lower score and is consistently nominated for more time, so i would love to know what is going on (I guess this last part would be more relevant in https://github.com/w3f/1k-validators-be/issues/2807).

Hey lobis, just double checked and I noticed that:

the two validators have a similar provider score
the two validators have a different provider

It appears it's broken again, I don't have a provider anymore.

After trying different things out, my conclusion is that the issue only arises when multiple validators share the same ip. In my case I was self-hosting both validators in my home network. I assume this it not intended so it's a bug.
@ironoa I'll close the issue if you say this is intended behaviour. I'll look into migrating one of my validators into the cloud so I can get proper scoring.

you are right @lobis thanks for investigating, this PR addresses the multiple validators share the same ip bug. It will be soon deployed (currently under testing on staging)

Thanks! Everything seems fine from my end.


Draft Data models of No-code policies

Users should specify three components to author a policy: CustomAction, Procedure, and Execution.

CustomAction: ActionType (the GovernableAction it builds upon), a filter code block, and a community name.
Procedure: an abstract class. There are two procedures available now: VotingProcedure and PermissionProcedure.

VotingProcedure: Because the initiate_vote and post_message function interfaces differ across integrations, we added subclasses in each integration, such as SlackVotingProcedure.
PermissionProcedure: for each CustomAction that has a community name, create a new Permission object

Execution: ForeignKey to the Governable Action

Can you clean up the PR and remove all the files where you've made changes to the file permissions? That'll make it easier to see what you did, thanks!


Tool Only Creating Portion of Child Work Items

Tool was working as desired yesterday.
I have templates defined for out of the box Azure DevOps Boards Product Backlog Item and Bug. Some templates are out of the box Task work items and some are custom Review work items. When I click the 1-Click Child Links from the context menu in the Taskboard and Backlog views, I only get a portion of the defined templates, not all (usually 3 of 10).
If I click the context menu on the open card view of the Product Backlog Item or Bug, then all of the templates are created. But it is very, very, very slow compared to previous experience.
I have tried both Chrome and Edge. I have tried editing each template to see if an update to the template fixes the issue. I have tried in a sprint where no one else is actively working.

Same problem here, but I just started using the addon. Seems for me that something (azure devops updates?) slows down the processing of the addon. In the source code I can find a timeout which refreshs the page after 1000ms (which works obviously). But it seems that it just cuts the processing at this point. (Tried it with firefox which is quite fast and brings more items than Edge which is quite slow on my system and creation of tasks is not random but one after each other in alphabetical order)
I am not an expert and I am not able to debug it in the code, maybe there is somebody out there who can?
Sadly it seems like developing of this addon is not happening anymore since 2020.

Same problem. We are using v0.12.1. When I create tasks using 1-Click Child Links from the context menu, I only get a portion of defined tasks. I think we don't have this issue before. It seems this issue started in recently version again.

Hey, do you still experience problems with using 1-Click Child Links? Only three out of five get created. How can we fix it?