Return empty array if binding isn't there

https://github.com/medplum/medplum/issues/1965
https://user-images.githubusercontent.com/6913745/236077514-14afc355-1ee2-41d6-9e80-ff96bc372301.mov

Coverage: 94.256% (-0.009%) from 94.265% when pulling 22e5120f509590eedaba0f608306f6783d8c7b2a on james-empty-system into 8ba175ddd03e7a9d6aae2d9a277347b5d9efbd5d on main.


Fix some symbol/string comparison issues

When running some legacy code with RSpec, I noticed that sometimes the option provided is called "fetch" instead of :fetch. This PR fixes the issue.

@skycocker I'm really sorry that I'm just getting back to you about this. Just now seeing it.
I think this is a solid change, could you provide a test for the case you're covering?


Add DotNetSlnRemove alias for dotnet sln remove command

dotnet sln remove - Removes a project or multiple projects from the solution file.
Docs: https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-sln#remove
alternative PR for #3817
Please review
Thank you in advance

@Marusyk your changes have been merged, thanks for your contribution 👍


Logs sensitive info to console by default

Gogs version (or commit ref): 0.9.48
Git version: 2.1.4
Operating system: Linux
Database (use [x]):

[x] PostgreSQL
[ ] MySQL
[ ] SQLite

Can you reproduce the bug at https://try.gogs.io:

[ ] Yes (provide example URL)
[ ] No
[x] Not relevant

Log gist:

Description
gogs logs debug information to the console by default. I saw no way to disable this. systemd captures stdout by default.
The debugging info includes the session id and csrf token.
2016/08/02 19:13:21 [D] Session ID: XXXXXXXXXXXXXXXX
2016/08/02 19:13:21 [D] CSRF Token: XXXXXXXXXXXXXXXXVSViUBzH21M6MTQ3MDE2NDY1MTA3NzUyNTcwOQ==
2016/08/02 19:13:21 [D] Bare repository: /example/example
2016/08/02 19:13:21 [D] Template: repo/bare

You can change log level to Info: https://github.com/gogits/gogs/blob/master/conf/app.ini#L260

It is nice that you can, I obviously can't as it is already set:
[log]
MODE      = file
LEVEL     = Info
ROOT_PATH = /srv/git/gogs/log

In modules/settings/setting.go I see:
    log.NewLogger(0, "console", `{"level": 0}`)

How is this hardcoded debug log changed by the config?

[log]
MODE      = console,file


last_request_username is equal to null in sensor.overseerr_pending_requests

Describe the bug
last_request_username is equal to null in sensor.overseerr_pending_requests
What version of Overseerr are you running?
Overseerr version : develop-b5fd1d520cd2a7be6e6356a25129e93af1caf542
ha-overseerr : 0.1.20
To Reproduce
Steps to reproduce the behavior:

Go to Overseer
Do a request
Check on HA for sensor.overseerr_pending_requests
Name is null (same with all sensor.overseerr_*)

Expected behavior
Name should be displayed, I guess this occurs since https://github.com/sct/overseerr/issues/264 because my users have no friendly names

Screenshot

Should be fixed in 0.1.22

Should be fixed in 0.1.22

It's ok now, thanks!

It's ok now, thanks!


Pinned pillow version

pillow-5.3.0 is not ok ?

We're seeing some issues with matplotlib gif rendering. For now this is just a test if this is really the cause.

Doesn't appear to be the issue.

The issue is probably an change in matplotlib 2.2.3 in that case.

@jbednar @jlstevens I haven't been able to track down precisely what the cause of the gif export error was, pinning matplotlib and pillow to older versions individually did not work but now I'm pinning both of them it is working again. As such I'm going to merge this PR soon, but I'll quickly describe what I've done.
This PR is intended as a stepping stone towards slowly moving to @ceball fabulous new architecture. I've moved all the dependencies out of the .travis.yml into the environment.yml which has long been unused. The environment.yml is much more readable and makes it clear just how much we're pinning right now. We should try to slowly lift the pinned versions while keeping the tests passing. Once we can have our testing setup work on the latest releases the transition to the new architecture should be much easier and cleaner.
One thing to note here is that the environment.yml does not define a python version, which means that at least on travis the only way we are getting both py2 and py3 tests is that we are installing Miniconda and Miniconda3, which then determines the python version of the environment while the exact TRAVIS_PYTHON_VERSION env var is not respected. This should be safe in the near term but it is only a temporary solution until we switch over to the new setup.

Just a quick comment to say I am happy with the changes Philipp made in this PR: we want to minimize travis.yml as much as possible!


[Tidy] Remove docstrings from build methods to harmonize overall

Description
Our API docs looked confusing because two model (Action and Layout) had docstrings for the build method. I converted them to comments, so no info is lost, but now our docs look more streamlined again.
Screenshot
(left before - missed Action, right after)

Notice

[x] I acknowledge and agree that, by checking this box and clicking "Submit Pull Request":

I submit this contribution under the Apache 2.0 license and represent that I am entitled to do so on behalf of myself, my employer, or relevant third parties, as applicable.
I certify that (a) this contribution is my original creation and / or (b) to the extent it is not my original creation, I am authorized to submit this contribution on behalf of the original creator(s) or their licensees.
I certify that the use of this contribution as authorized by the Apache 2.0 license does not violate the intellectual property rights of anyone else.
I have not referenced individuals, products or companies in any commits, directly or indirectly.
I have not added data or restricted code in any commits, directly or indirectly.

Agree we should change this because it currently looks weird, but I think there's probably a better fix than this: leave the docstrings how they are and just edit the settings in models.md to exclude the build method:
::: vizro.models.types
    options:
      filters: ["!^_"]  # Don't show dunder methods as well as single underscore ones
      merge_init_into_class: false

Presumably just adding build to the list of filters or similar would work here.

Tbh then I think all build functions should have a docstring, because they are on equal footing.
I think this change is the more consistent and easier one... And I don't think build functions that are never publically used should necessarily need to be documented

Tbh then I think all build functions should have a docstring, because they are on equal footing.

I don't think so - some build functions are more complicated, and hence worthy of documentation, than others. Most build functions are pretty much self-explanatory, but if it's useful to have some extra comments then we shouldn't be prevented from doing so - that documentation is just for our purposes rather than general users. And I think it makes more sense to put that documentation in a docstring because that is the place a developer expects to find it, rather than in an inline comment.

I think this change is the more consistent and easier one... And I don't think build functions that are never publically used should necessarily need to be documented

Agree they don't necessarily need documenting in general, which is why most of them don't have a docstring. But I don't think this should stop us from adding a docstring in the cases where it is useful.

I don't think so - some build functions are more complicated, and hence worthy of documentation, than others. Most build functions are pretty much self-explanatory, but if it's useful to have some extra comments then we shouldn't be prevented from doing so - that documentation is just for our purposes rather than general users. And I think it makes more sense to put that documentation in a docstring because that is the place a developer expects to find it, rather than in an inline comment.

Agree, but I think our current docstring choice was at best random. Some of the most complicated build methods have comments, while the two above mentioned are actually fairly simply. So I was more aiming to have a constistant documentation level.

Agree they don't necessarily need documenting in general, which is why most of them don't have a docstring. But I don't think this should stop us from adding a docstring in the cases where it is useful.

Agreed, and that's maybe the main reason why a filter is good. Still think the current docstring choice is inconsistent, but can change back if you think those two in particular we should keep


Move to C++11 and outdated protoc plugins

So issue #8754 (which I've closed since that reporter is now ok) brings up the issue that people with protoc plugins installed before #8602 but more recent gRPC headers are in a pickle - namely that the current headers no longer recognize GRPC_OVERRIDE and GRPC_FINAL generated by the old plugins. The solution is to fully reinstall gRPC, which will automatically reset the plugins. Is there any desire to allow users to keep their outdated protoc plugins? If so, we should add those macros back to our headers but keep in mind that they are deprecated so that we never generate any new code that uses them. In my view, we should not do this as it leaves scope for error, and the better option is to just tell users to reinstall the plugins if they update gRPC. We should either fix this for 1.1 or decide that the current behavior is WAI and leave it alone. I vote for the latter, but let's see what the electoral college decides.

The power of semver compels you! The power of semver compels you!
... etc.

But this is hairy, isn't it? By semver we're compelled to keep it until 2.0, but the workaround is trivial and this only affects people that have a mismatched set of plugins and headers, which I didn't even think was possible under normal circumstances (those are installed together, AFAIK)

I'm calling this a real issue since there may be people out there with pre-generated PB files that we need to support.


Updated version of Microsoft.Internal.TestPlatform.Extensions package

Updated version of Microsoft.Internal.TestPlatform.Extensions package to get latest tracecollector.dll

@harshjain2,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot


crash

It crashed when I opened a removable drive.
Surface Go
Windows 10 18362.86

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x70
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17
at Files.Filesystem.ItemViewModel1.<AddFolder>d__34.MoveNext() + 0xf8 --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x70    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38    at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17    at System.Runtime.CompilerServices.TaskAwaiter.GetResult() + 0xb    at Files.Filesystem.ItemViewModel1.d__32.MoveNext() + 0xe33
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b__7_0(Object) + 0x1e
at System.Action`1.Invoke(T) + 0x28
at System.Threading.WinRTSynchronizationContext.Invoker.InvokeCore() + 0x33

Was there any other error information included with this?

@Reset12138
Was there any other error information included with this?
What drive were you attempting to access?
Is this the latest version of Files?
Were you able to open the drive after re-opening the app?

That's all the "Technical Information".
WD My Passport Ultra 2TB
Yes I'm using the latest version of Files.
I can open the drive later and that kind of crash only happened once.

Just now I opened the Files then it crashed immediately, before I can see UI of the app.

Summary:
Unspecified error (Exception from HRESULT: 0x80004005)
Technical Information:
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x70
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17
at Files.YourHome.d__23.MoveNext() + 0xdf2
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b__7_0(Object) + 0x1e
at System.Action`1.Invoke(T) + 0x28
at System.Threading.WinRTSynchronizationContext.Invoker.InvokeCore() + 0x33

I would try re-installing the app because it looks like the app has become corrupted. If you can still reproduce the issue after doing the reinstall, then I'll look into it.

I just re-install the app.
I tried to open the removable drive and this occured.

I removed the drive from computer and reopened the app. It crashed anyway.

@Reset12138 Did this drive work before the recent v0.5.0 updates?

@Reset12138 Okay, I made some changes in the newly-released snapshot 2. Please let me know whether they affect this bug.

I'll close this now, but please reopen if you can reproduce on the latest snapshots.


Update middleman-core gemspec deps (allow activesupport 7 and ruby 3.1 usage)

Support ruby 3.1 - fixed Yaml safe_load. Ruby 3.1.0 installs Psych 4.0.3 as standard library and Use Psych.safe_load by default

I checked - everything works with ruby 3.1.0 with middleman app, but test is failing.
Will dig later what is the issue. If you have any idea, @tdreyno about issue - write it here. Thanks

Ok, looks like issue with gem "contracts". Just update from 0.16.0 to 0.16.1 break tests.
Based on docs - need to use "0.16" for Ruby 2.x and "0.17" for Ruby 3. Problem, that RUBY_VERSION in gemspec will not help to set dynamic gem version - https://github.com/rubocop/rubocop/issues/7137

Thanks @le0pard. Given that this is the master branch and is for unreleased version 5 code, it might make sense to fully move to Ruby 3 at the same time. Let me take a few days and think about it.

Thanks @tdreyno
Here small results:
Changes 1
I commented some contract https://github.com/middleman/middleman/pull/2517/files#diff-5e5dbdbbafcce0e9c2e505d9ba421849c027b65571b8417657df64fa20880a61R55
Looks like it did not like LazyCollectorStep, which can return anything
can't convert Middleman::CoreExtensions::Collections::LazyCollectorStep to String (Middleman::CoreExtensions::Collections::LazyCollectorStep#to_str gives Middleman::CoreExtensions::Collections::LazyCollectorStep) (TypeError)
 /tmp/aruba/collections-app/config.rb:1:in `evaluate_configuration!'
./lib/middleman-core/application.rb:328:in `instance_eval'
./lib/middleman-core/application.rb:328:in `evaluate_configuration!'
./lib/middleman-core/application.rb:285:in `initialize'

I did try to fix this by adding needed methods for types:
def to_int
  Integer(value)
end

def to_ary
  Array(value)
end

def to_hash
  Hash(value)
end

def to_str
  String(value)
end

but no luck:
undefined method `*' for nil:NilClass (NoMethodError)
      ./lib/middleman-core/core_extensions/collections/lazy_step.rb:39:in `value'
      ./lib/middleman-core/core_extensions/collections/lazy_step.rb:25:in `value'
      ./lib/middleman-core/core_extensions/collections/lazy_step.rb:51:in `to_hash'
      ./lib/middleman-core/core_extensions/collections/lazy_step.rb:39:in `gsub'
      ./lib/middleman-core/core_extensions/collections/lazy_step.rb:39:in `value'
      ./lib/middleman-core/core_extensions/collections/lazy_step.rb:25:in `value'
      ./lib/middleman-core/core_extensions/collections/lazy_step.rb:55:in `to_str'
      ./lib/middleman-core/core_extensions/collections.rb:62:in `sitemap_collector'

Maybe I am not fully understand logic behind collections, will be good, if you look.
Changes 2
Changed contracts for render - https://github.com/middleman/middleman/pull/2517/files#diff-808501652dff780e70a2af6fe1e1fb6f1c8f929c4734ddc77dc8166e54188ea9R207
Maybe in some cases it called with nils instead hashes, I did not spend big amount of time to check where this happening.
Changes 3
Temporary disable 3.1 on CI - it did not want to compile mini_racer. I hope mini_racer will fix this.
Changes 4
Now all gems require ruby >= 3.

Looks good. Seems like the last remaining issue is fixing the lazy contracts... which might not be worthwhile since those are very meta.

Ok, I did some checks, and looks like contracts was not correct in some cases: render get args {}, which is hash, but contracts said it is nil and fail.
I better slowly start moving in separate PRs to RBS on Sorbet (last one have experimental compiler), which can be useful for middleman speed (of cource, this need to be checked)
So it is now up to you @tdreyno

Switching from Contracts to Sorbet would be great for 5.x


Feature/graphing calculator

Fixes #.
Description of the changes:

How changes were validated:

Update from Microsoft master.


SqlClient on 7.0.3-jammy image will not connect to SQL 2019

Describe the bug
.Net 7 app running using aspnet:7.0.3-jammy docker image won't connect to a SQL 2019 server with TLS 1.2 enabled.
This is probably due to OpenSSL 3.0.  If I open a connection to the container and run
 openssl s_client -connect FQDN_OF_SQL_SERVER:1433
I get this result:
CONNECTED(00000003)
808B815EA07F0000:error:0A000126:SSL routines:ssl3_read_n:unexpected eof while reading:../ssl/record/rec_layer_s3.c:308:

Exception message:
Microsoft.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 35 - An internal exception was caught)
 ---> System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception.
 ---> Interop+OpenSsl+SslException: SSL Handshake failed with OpenSSL error - SSL_ERROR_SSL.
 ---> Interop+Crypto+OpenSslCryptographicException: error:0A0C0103:SSL routines::internal error
   --- End of inner exception stack trace ---
   at Interop.OpenSsl.DoSslHandshake(SafeSslHandle context, ReadOnlySpan`1 input, Byte[]& sendBuf, Int32& sendCount)
   at System.Net.Security.SslStreamPal.HandshakeInternal(SafeDeleteSslContext& context, ReadOnlySpan`1 inputBuffer, Byte[]& outputBuffer, SslAuthenticationOptions sslAuthenticationOptions, SelectClientCertificate clientCertificateSelectionCallback)
   --- End of inner exception stack trace ---
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](Boolean receiveFirst, Byte[] reAuthenticationData, CancellationToken cancellationToken)
   at System.Net.Security.SslStream.AuthenticateAsClient(SslClientAuthenticationOptions sslClientAuthenticationOptions)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle.EnableSsl(UInt32 options)
   at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at Microsoft.Data.SqlClient.TdsParser.EnableSsl(UInt32 info, SqlConnectionEncryptOption encrypt, Boolean integratedSecurity, String serverCertificateFilename)
   at Microsoft.Data.SqlClient.TdsParser.ConsumePreLoginHandshake(SqlConnectionEncryptOption encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean& marsCapable, Boolean& fedAuthRequired, Boolean tlsFirst, String serverCert)
   at Microsoft.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnectionString connectionOptions, Boolean withFailover)
   at Microsoft.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
   at Microsoft.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout)
   at Microsoft.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
   at Microsoft.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken, DbConnectionPool pool)
   at Microsoft.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
   at Microsoft.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
   at Microsoft.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
   at Microsoft.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
   at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at Microsoft.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
   at Microsoft.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at Microsoft.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at Microsoft.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry, SqlConnectionOverrides overrides)
   at Microsoft.Data.SqlClient.SqlConnection.Open(SqlConnectionOverrides overrides)
   at Microsoft.Data.SqlClient.SqlConnection.Open()

Expected behavior
Connections to SQL Server should connect.
Further technical details
Microsoft.Data.SqlClient version: 5.1.0
.NET target: .net 7
SQL Server version: SQL 2019
Operating system: Docker container 7.0.3-jammy
Additional context
Add any other context about the problem here.

@GeoffCraigVRU we will look into this and will get back to you soon.

@GeoffCraigVRU can you provide the error messages in server log as well?

@JRahnama sorry, I was out of the office.  What type of error messages are you looking for from the server?  Event logs or something else?

@JRahnama we are getting the following error in the Application log on the SQL Server.
The login packet used to open the connection is structurally invalid; the connection has been closed. Please contact the vendor of the client library.


Canceling bookmark search doesn't reset data

I have GitHawk and IGListKit bookmarked
Type "git"
Hit "Cancel"
Only shows GitHawk

Force kill app and restart fixes it
cc @rizwankce

Dupe of #728. Fix is on #729


Initial Commit

Initial Commit.

This patch got reviewed and license scanned on ONF gerrit already.
+1


Adding Local Claims fails against Windows Internet Explorer

Environment
Windows Server 2016
JDK 1.8
Browser - Internet Explorer
Suggested Labels
Type/Bug
Priority/ High
Affected/ IS 5.9.0 M8 Snapshot
Steps to Reproduce

Navigate to Claims > Add > Add Local Claim
Give the necessary details
Click on Add button with Internet Explorer Browser

Claim will not get add and when inspect the operation with the browser it shows the below error.
Object doesn't support property or method 'includes'
Line no 786
add-local-claim.jsp
Related code for the above issue is as follows
if (!attributeArr.includes(combinedValue)) {
                                         attributeArr.push(combinedValue);
                                    }

Could not reproduce it with IS5.9.0-alpha and alpha3 packs.


Fungible Asset Locking Transactions

Addressed via PR https://github.com/hyperledger-labs/weaver-dlt-interoperability/pull/49


I want to use CPU for processing, how can I do it please

I want him to be a standalone feature in my software
It is unrealistic to have CUDA installed on every user computer
So I want to use CPU to fix the picture, please how can I do it, if you know please answer me, thanks

I have found it, just add device=cpu after the running parameters, thank you


[Feature Request]: Make the AI to generate the answer contacting with a specific person

Feature Description
As the question, I seem to not be able to find out how to do make the AI to generate the answer that provide a way to contact with a person in case the AI can not answer the question.
Reason
I think this make the chatbot better, because there are specific questions that the AI can not answer, only a user can answer
Value of Feature
This can make the chatbot more comfortable with the user

You'll want to use a data agent for this I think:
https://gpt-index.readthedocs.io/en/latest/core_modules/agent_modules/agents/modules.html


[Feature Request]Scroll in each card

Almost my notes has same formatted header, so I set CSS like below:
#core-search-assistant_card-view .preview-container {
    overflow: auto !important;
}

It is very useful to see the all contents in each card.
I hope you will add some option switch to scroll or not in each card.

@hisaito
Thank you for your request.
Is manual preview not enough for you?

It is better for me to scroll in each card.
But this is just my request.


Swap Linux Libertine assets for Libertinus Serif

This is built on the libertinus-serif branch where @laurmaedje swapped out Linux Libertine for Libertinus Serif, but updates the asset files using the v7.050 relase just put out upstream.
Note neither the original nor this update inludes Libertinus Serif Display or other variants, only the various weight options for the main Serif family.

There is going to be a v7.051 release of Libertinus shortly. No regressions have been reported in v7.050 but one of the new contributions to Hebrew support had some rough edges in Italic (not Bold Italic, just Italic) that have gotten straightened out.

Updated to v7.051 and resolved merge conflict with master (the newly added Computer Modern Math Bold asset happened to be adjacent to these lines).

Thanks for making the releases happen!


MM-30362: Cypress/E2E: LDAP-SAML Sync

Summary
Cypress Tests for LDAP/SAML Sync. These tests require setup explained at top of each *_spec.js file.
Expects dockers for OpenLDAP and KeyCloak to be running.
Single Ticket was broken into three separate spec files due to run time.
Note: You need to download the related pr from the server, or update the setting in Keycloak manually.
Tests reset SAML and LDAP test data. Not relying on existing test-data.
Ticket Link
https://mattermost.atlassian.net/browse/MM-30362
Related Pull Requests
https://github.com/mattermost/mattermost-server/pull/16616

/update-branch

Thanks Scott for updating! All tests failed on me and kept on getting the ff errors:

app.user.missing_account.const server API error on<EMAIL_ADDRESS>Unsupported NameIDFormat on SAML login / redirect to http://localhost:8484/auth/realms/mattermost/protocol/saml?RelayState=...

I have some observations but I might be missing something.
I wonder if you have some time to connect/chat via Zoom for me (and Furqan) to see how it works for you.

Thanks Scott for updating! All tests failed on me and kept on getting the ff errors:

app.user.missing_account.const server API error on<EMAIL_ADDRESS>Unsupported NameIDFormat on SAML login / redirect to http://localhost:8484/auth/realms/mattermost/protocol/saml?RelayState=...

I have some observations but I might be missing something.
I wonder if you have some time to connect/chat via Zoom for me (and Furqan) to see how it works for you.

/update-branch

/update-branch


dist-files redirected to blog (was: CDN misconfigured breaking npm < 2.13.2 and < 3.1.3)

http://nodejs.org/dist is redirecting to the Node blog, breaking native module installation on fresh instances with npm versions prior to 2.13.2 and 3.1.3, both of which bundle node-gyp version 2.0.2 which switches to https://nodejs.org/dist as the base URL.
Note the Location: header below:
$ curl -D - -OL http://nodejs.org/dist/v0.10.32/node-v0.10.32.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0HTTP/1.1 301 Moved Permanently
Date: Thu, 10 Sep 2015 05:47:07 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
Set-Cookie: __cfduid=df56fbaba4359107e377b536a4d7f50a81441864026; expires=Fri, 09-Sep-16 05:47:06 GMT; path=/; domain=.nodejs.org; HttpOnly
Location: https://nodejs.org/en/blog/
Server: cloudflare-nginx
CF-RAY: 2238d6170bf50b14-SYD
...

More detail in this gist.

This also breaks hits/links from Google searches, which still use HTTP in most cases.

Related:

https://github.com/nodejs/nodejs.org/issues/173
https://github.com/nodejs/nodejs.org/issues/175

same bug with nvm.
I solved it changing in nvm.sh
from http://nodejs.org/dist to https://nodejs.org/dist
then I updated the env
export NVM_NODEJS_ORG_MIRROR="https://nodejs.org/dist"

please return to previous CDN configuration
all of my builds are failing because of this.
please help

+1, my builds are failing

cc @rvagg / @orangemocha

Some of our dependencies is using node-gyp which downloads node.js. All builds are failing with such an error:
node-gyp rebuild

gyp http GET http://nodejs.org/dist/v0.10.21/node-v0.10.21.tar.gz
gyp http 200 http://nodejs.org/dist/v0.10.21/node-v0.10.21.tar.gz
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: incorrect header check
gyp ERR! stack     at Zlib._binding.onerror (zlib.js:295:17)
gyp ERR! System Linux 3.13.0-55-generic
gyp ERR! command "node" "/tmp/node-npm-BWnW/node_modules/node-gyp/bin/node-gyp.js" "rebuild"

+1 We can't deploy to production! How do we fix this...?

+1
actually the response code is wrong. its a 301 to homepage.

Yes, we know and we're already working on a fix.

should be fixed now, cached redirects may still get in the way however

Hi.
http links are broken, but https works fine though.
I managed to get around the issue, using the npm_config_disturl environment variable (lowercase)
export npm_config_disturl=https://nodejs.org/dis fixed building with node-gyp
Apparently you can also set this value in ~/.npmrc but I haven't tested it.
Hope it helps.

This is fixed for me now. The redirect is gone. My browser cached the redirect, as you said, but it works now from the command line when we do npm install. Thanks so much for the quick fix :-)

DIST files are fixed. confirmed but:
http links to repo now are broken:
http://registry.npmjs.org/node-uuid/-/node-uuid-1.4.1.tgz
vs
https://registry.npmjs.org/node-uuid/-/node-uuid-1.4.1.tgz

@tereska this is an npm thing if there's a problem, but I can't see one, they both work for me

ok now they are working for me also. thanks

@godric7 Unfortunately, there doesn't seem to be a corresponding config value in npm@2 (tried npm config edit)

thanks for the fix!

I think there is still some issue with this.  When i try to download this url:
http://nodejs.org/dist/v0.12.7/node-v0.12.7-linux-x86.tar.gz it redirects me to blog
and when i try to download http://nodejs.org/dist/v0.12.7/node-v0.12.7-linux-x64.tar.gz, it is super slow any alternatives.

Can't reproduce the redirect. Maybe it's still cached on your side? /cc @nodejs/build

you may have a cached version of the redirect still? re slowness, we're using CloudFlare now so it should be a lot faster than it ever was, what country are you in? Also, try https instead of http for the download, not that it should make a huge difference, however.


[ERROR] Failed to execute goal on project

OS: Ubuntu 18.04.3 LTS
Java: openjdk 11.0.6 2020-01-14
How to Produced:

git clone https://github.com/ldbc/ldbc_snb_driver.git
cd ldbc_snb_driver
mvn clean package -DskipTests

Stack Trace
[ERROR] Failed to execute goal on project jeeves:
Could not resolve dependencies for project com.ldbc.driver:jeeves:jar:0.3.3:
Failed to collect dependencies at org.apache.commons:commons-collections4:jar:4.0:
Failed to read artifact descriptor for org.apache.commons:commons-collections4:jar:4.0:
Could not transfer artifact org.apache.commons:commons-collections4:pom:4.0 from/to central (http://repo1.maven.org/maven2/):
Failed to transfer file: http://repo1.maven.org/maven2/org/apache/commons/commons-collections4/4.0/commons-collections4-4.0.pom.
Return code is: 501 , ReasonPhrase:HTTPS Required. -> [Help 1]

I did a clean build with Maven 3.6.0 on Ubuntu 18.04. Seems to be running fine now. Is it working for you as well?

Issue is resolved in my end.
You can close this issue.


Allow deauthorization of user account

This should generate an email that gives you a token we verify

Backend support completed:
To create a request: /deauth?email=
To process*             : /deauth?token=

this step will automatically be handled. no front end support is needed, just a page that we can redirect to after processing the deauthorization request.


Fix warnings related to USB latency setting

This was introduced in #165. Adding some people here: @catch-twenty-two, @jkflying, @LorenzMeier


[MB-5114] Clean up Send to Syncada Logger

Description
There was stray logger line being printed to the console when running the send-to-syncada-via-sftp utility. That has been removed.
The line looked something like this logger:  &{0xc0003a1f20 true  0xc000349de0 true 1 0}
Setup

Reset your dev database: make db_dev_e2e_populate
Build both CLI utilities: make bin/generate-payment-request-edi && make bin/send-to-syncada-via-sftp
Run your server locally: make server_run
Create a new JSON file into which you can put your payload: touch new_payment_request.json
Paste the following payload into your newly created JSON file:

{
  "body": {
    "isFinal": false,
    "moveTaskOrderID": "9c7b255c-2981-4bf8-839f-61c7458e2b4d",
    "serviceItems": [
      {
        "id": "fd6741a5-a92c-44d5-8303-1d7f5e60afbf"
      }
    ]
  }
}

Use the Prime API Client to create the payment request and return the payment request number:

prime-api-client --insecure create-payment-request --filename  new_payment_request.json| jq '.paymentRequestNumber'

Use the generate-payment-request-edi CLI utility to generate the EDI858 and send the output to a text file. Remember to pass the payment request number obtained above:

bin/generate-payment-request-edi --payment-request-number [pass payment request number] > sample_edi.txt

Open the newly created sample_edi.txt and ensure the contents look similar to the EDI858 below:

ISA*00*0084182369*00*_   _*ZZ*GOVDPIBS*12*8004171844*20201014*1943*U*00401*100001272*0*T*|
GS*SI*MYMOVE*8004171844*20201014*1943*100001251*X*004010
ST*858*0001
BX*00*J*PP*7111-9295*TRUS**4
N9*CN*7111-9295-1**
N9*CT*TRUSS_TEST**
N9*1W*Leo, Spacemen**
N9*ML*E_1**
N9*3L*ARMY**
G62*10*20201014*0*
G62*76*20201013*0*
G62*86*20200316*0*
N1*ST**10*CNNQ
N3*Fort Gordon*
N4*Augusta*GA*30813*United States**
N1*SF*Xm7G3reuV8*10*LKNQ
N3*987 Other Avenue*P.O. Box 1234
N4*Des Moines*IA*50309*US**
FA1*DF
FA2*TA*F8E1
HL*1**|
N9*PO*4f9aef1b-62a9-44c5-9379-1976501a0daf**
L5*1*DLH*TBD*D**
L0*1*373.000*DM*1349.000*B******L
L3*1349.000*B*1221717
SE*24*0001
GE*1*100001251
IEA*1*100001272

Use the send-to-syncada-via-sftp CLI utility to send the EDI858 to US Bank. Remember to pass the path of the text file where the EDI858 generated above is stored (in this case you would pass sample_edi.txt) and the name you'd like the file to have on the Syncada server:

bin/send-to-syncada-via-sftp --local-file-path [pass file path] --destination-file-name sample_edi.txt

You should see a message like the following in the command line:

2020-10-16T16:53:39.964Z        DEBUG   send-to-syncada-via-sftp/main.go:25     checking config
708 bytes copied

Code Review Verification Steps

[ ] If the change is risky, it has been tested in experimental before merging.
[ ] Code follows the guidelines for Logging
[ ] The requirements listed in
Querying the Database Safely
have been satisfied.
Any new migrations/schema changes:

[ ] Follow our guidelines for zero-downtime deploys (see Zero-Downtime Deploys)
[ ] Have been communicated to #g-database
[ ] Secure migrations have been tested following the instructions in our docs

[ ] There are no aXe warnings for UI.
[ ] This works in Supported Browsers and their phone views (Chrome, Firefox, IE, Edge).
[ ] Tested in the Experimental environment (for changes to containers, app startup, or connection to data stores)
[ ] User facing changes have been reviewed by design.
[ ] Request review from a member of a different team.
[ ] Have the Jira acceptance criteria been met for this change?

References

Jira story for this change
this article explains more about the approach used.

Screenshots
If this PR makes visible UI changes, an image of the finished UI can help reviewers and casual
observers understand the context of the changes. A before image is optional and
can be included at the submitter's discretion.
Consider using an animated image to show an entire workflow instead of using multiple images. You may want to use GIPHY CAPTURE for this! 📸
Please frame screenshots to show enough useful context but also highlight the affected regions.

Messages

:book:
:link: MB-5114

  Generated by :no_entry_sign: dangerJS against 08697579dbef2dc76fd4d52927a47da1a9af046d

Messages

:book:
:link: MB-5114

  Generated by :no_entry_sign: dangerJS against 08697579dbef2dc76fd4d52927a47da1a9af046d

Looks good! There were a 2 missing steps in the set up for testing this
* before generating the EDI, you have to approve the payment service items in the office UI

* for the last step `bin/send-to-syncada-via-sftp --local-file-path [pass file path] --destination-file-name sample_edi.txt` destination-file-name should be syncada-file-name

Ahh thanks for pointing this out, I meant to update the steps after copying them from one of my old PRs.

Looks good! There were a 2 missing steps in the set up for testing this
* before generating the EDI, you have to approve the payment service items in the office UI

* for the last step `bin/send-to-syncada-via-sftp --local-file-path [pass file path] --destination-file-name sample_edi.txt` destination-file-name should be syncada-file-name

Ahh thanks for pointing this out, I meant to update the steps after copying them from one of my old PRs.


ExpressionTextCache is case insensitive: TextboxFor(x=>x.name) and TextboxFor(x=>x.Name) produce the same html

I think that there is a bug with ExpressionTextCache used to manage expressions into Html.EditorFor...IF i visti a page with Html.EditorFor(x=>x.name) AND after a page with Html.EditorFor(x=>x.Name) (in 2 different model). ..the result will be the same: <input id="name" name="name" ...all in lowercase (like the first lamda expression resolved).
I repro the problem via a test website with 2 model:
 public class Product     {         public string Name { get; set; }     }
public class ProductLower     {         public string name { get; set; }     }
A controller with 2 actions:
public IActionResult Product()         {             var model = new Product();             return View(model);         }
public IActionResult ProductLower()         {             var model = new ProductLower();             return View(model);         }
and 2 views:
== [Product] ==
@{
    ViewData["Title"] = "Home Page";
}
@model Example_Models.Models.Product

PRODUCT

@Html.EditorFor(x => x.Name)

== [ProductLower] ==
@{
    ViewData["Title"] = "Home Page";
}
@model Example_Models.Models.ProductLower

LOWER

@Html.EditorFor(x => x.name)

If you visit ProductLower page and AFTER the Product page, the output of the @Html.EditorFor will be the same: <input id='name' name='name'...
I also take the tests for the ExpressionTextCache and put the 'wrong-case' to proof this:
//https://github.com/aspnet/Mvc/blob/2cabd589ac6a2fcd88b3c23aa50541536d2c8b71/test/Microsoft.AspNetCore.Mvc.ViewFeatures.Test/Internal/ExpressionHelperTest.cs
edit the NonEquivalentExpressions adding
(Expression<Func<TestLowerModel, string>>) (model => model.name),
(Expression<Func<TestModel, string>>) (model => model.Name)

full code:
//https://github.com/aspnet/Mvc/blob/2cabd589ac6a2fcd88b3c23aa50541536d2c8b71/test/Microsoft.AspNetCore.Mvc.ViewFeatures.Test/Internal/ExpressionHelperTest.cs
    public class ExpressionTextCacheTests
    {
        private readonly ExpressionTextCache _expressionTextCache = new ExpressionTextCache();

        public static TheoryData<Expression, Expression> NonEquivalentExpressions
        {
            get
            {
                var value = "test";
                var key = "TestModel";
                var Model = "Test";
                var myModel = new TestModel();

                return new TheoryData<Expression, Expression>
                {

                   //ADDED CASE
                    {
                        (Expression<Func<TestLowerModel, string>>) (model => model.name),
                        (Expression<Func<TestModel, string>>) (model => model.Name)
                    },

                    {
                        (Expression<Func<TestModel, Category>>) (model => model.SelectedCategory),
                        (Expression<Func<TestModel, CategoryName>>) (model => model.SelectedCategory.CategoryName)
                    },
                    {
                        (Expression<Func<TestModel, string>>) (model => model.Model),
                        (Expression<Func<TestModel, string>>) (model => model.Name)
                    },
                    {
                        (Expression<Func<TestModel, CategoryName>>) (model => model.SelectedCategory.CategoryName),
                        (Expression<Func<TestModel, string>>) (model => value)
                    },
                    {
                        (Expression<Func<TestModel, string>>) (testModel => testModel.SelectedCategory.CategoryName
                            .MainCategory),
                        (Expression<Func<TestModel, string>>) (testModel => value)
                    },
                    {
                        (Expression<Func<IList<TestModel>, Category>>) (model => model[2].SelectedCategory),
                        (Expression<Func<TestModel, string>>)
                        (model => model.SelectedCategory.CategoryName.MainCategory)
                    },
                    {
                        (Expression<Func<TestModel, int>>) (testModel => testModel.SelectedCategory.CategoryId),
                        (Expression<Func<TestModel, Category>>) (model => model.SelectedCategory)
                    },
                    {
                        (Expression<Func<IDictionary<string, TestModel>, string>>) (model => model[key].SelectedCategory
                            .CategoryName.MainCategory),
                        (Expression<Func<TestModel, Category>>) (model => model.SelectedCategory)
                    },
                    {
                        (Expression<Func<TestModel, string>>) (m => Model),
                        (Expression<Func<TestModel, string>>) (m => m.Model)
                    },
                    {
                        (Expression<Func<TestModel, TestModel>>) (m => m),
                        (Expression<Func<TestModel, string>>) (m => m.Model)
                    },
                    {
                        (Expression<Func<TestModel, string>>) (m => myModel.Name),
                        (Expression<Func<TestModel, string>>) (m => m.Name)
                    },
                    {
                        (Expression<Func<TestModel, string>>) (m => key),
                        (Expression<Func<TestModel, string>>) (m => value)
                    }
                };
            }
        }

        [Theory]
        [MemberData(nameof(NonEquivalentExpressions))]
        public void GetExpressionText_CheckNonEquivalentExpressions(LambdaExpression expression1,
            LambdaExpression expression2)
        {
            // Act - 1
            var text1 = ExpressionHelper.GetExpressionText(expression1, _expressionTextCache);

            // Act - 2
            var text2 = ExpressionHelper.GetExpressionText(expression2, _expressionTextCache);

            // Assert
            Assert.NotEqual(text1, text2, StringComparer.Ordinal);
            Assert.NotSame(text1, text2);
        }

        private class TestLowerModel
        {
            public string name { get; set; }
        }

        private class TestModel
        {
            public string Name { get; set; }
            public string Model { get; set; }
            public Category SelectedCategory { get; set; }

            public IList<Category> PreferredCategories { get; set; }
        }

        private class Category
        {
            public int CategoryId { get; set; }
            public CategoryName CategoryName { get; set; }
        }

        private class CategoryName
        {
            public string MainCategory { get; set; }
            public string SubCategory { get; set; }
        }
    }

I found a workaround:
public class FixedHtmlHelper<TModel> : HtmlHelper<TModel>
   {
       public FixedHtmlHelper(IHtmlGenerator htmlGenerator, ICompositeViewEngine viewEngine,
           IModelMetadataProvider metadataProvider, IViewBufferScope bufferScope, HtmlEncoder htmlEncoder,
           UrlEncoder urlEncoder, ExpressionTextCache expressionTextCache) : base(htmlGenerator, viewEngine,
           metadataProvider, bufferScope, htmlEncoder, urlEncoder,

//NEW INSTANCE EACH TIME
new FixedExpressionTextCache())
       {
       }
   }

In startup.cs:
 public void ConfigureServices(IServiceCollection services)
        {
            services.AddMvc();
            services.AddTransient(typeof(IHtmlHelper<>), typeof(FixedHtmlHelper<>));

Hmm this does seem to be incorrect. I agree that the casing should be ignored when generating these accessors/caches.
@rynowak / @dougbu - thoughts on this? Just a bug? (Or unintended consequence.)

@Eilon this looks like a minor bug; at best an incorrect assumption of CLS-compliance in MVC applications. Questionable code at line 73 of ExpressionTextCache.
Keys are treated case-insensitively throughout model binding; property names that differ only in case will have problems in almost every end-to-end scenario. Since that aspect of model binding is intentional, I'm not sure whether fixing this bug would matter much.

I don't think this has anything to do with CLS compliance because this is a case where two different types have a property that varies by case. CLS compliance only comes into play when the same types has two properties that vary by case.

Sorry, I missed that.
Thinking aloud: The cache is intended to detect expressions with a similar-enough "shape" that they map to the same text. Could for example confirm the containing types match if the last expression node we check is for a property. But, that seems odd and would diminish the usefulness of the cache e.g. lots of model types have Id properties.
When the property names differ in case, the resulting text is going to be different -- nothing lowercases the generated names. Ordinal string comparisons are also more efficient.
Bottom line, the bug is more important than I thought and there's no real downside to changing that line in ExpressionTextCache.

Hi,
any news about this issue?
To me it is a huge bug because it can be a show-stopper: we have a json-schema web editor that uses all the properties in lowercase and other edit pages for other models with pascalcase... 'Name' is a common property.
All the client side code (aka javascript/typescript) is case sensitive (example: the jquery id selector #Name != #name): when the application restart, the first edit page works, the other ones don't.
Thank you for your time.

@IGionny this issue has not yet been triaged. The team is currently focused on stabilizing our builds.
@Eilon fix would be a one-liner plus a few new cases in existing data sets.

Yeah let's just get this fixed.

293ac81fe


Find and fix whatever is causing gRPC 13 INTERNAL errors

Randomly, we're getting 13 INTERNAL errors reported from gRPC.  These are internal errors in gRPC (https://grpc.github.io/grpc/core/md_doc_statuscodes.html) and can be caused by any number of things.
I've seen these errors appear randomly in a variety of edit operations, and every time with notifyChangedViewports in the Apache Daffodil Extension for VS Code's Data Editor, though not in local tests.

I am able to reproduce the issue in the local tests as well.  It takes time because you'll need to run the test suite many times until something finally breaks.  From src/rpc/client/ts, here is how I'm able to capture a failure:
while [ 1 ]; do date; yarn test || break; done

Client logs will appear in test.log and server logs will appear in omega-edit-grpc-server-*/bin/server.log.

I'm not sure what or why the callable is null given that the callables are clearly not null the vast majority of the time.

Some sort of callback is being garbage collected in the JVM but the native code still has a reference. I'll see what I can find.

If garbage collection is involved, that would answer why it happens randomly.

https://github.com/ctc-oss/omega-edit/blob/554072cc0688599ae3ea974a009d47c63d170081/src/rpc/server/scala/api/src/main/scala/com/ctc/omega_edit/SessionImpl.scala#LL134-L150C4
The callback passed to the FFI is never referenced again on the JVM-side, so under memory pressure it will get collected. https://github.com/jnr/jnr-ffi/blob/master/docs/TypeMappings.md#callbackfunction-types suggests we need to register that callback and release it when we know we're done.
Same for the SessionCallback: https://github.com/ctc-oss/omega-edit/blob/554072cc0688599ae3ea974a009d47c63d170081/src/rpc/server/scala/api/src/main/scala/com/ctc/omega_edit/api/OmegaEdit.scala#LL32C2-L46C4

Yep.  Looks like it regressed in https://github.com/ctc-oss/omega-edit/commit/833ad3517fc8b01f5d793f0c4abd1e2224b03380
The actors were keeping the handle to the callback for this reason.

Looks like the session callback survived my butchering.  I think I'm now retaining the viewport callback via Props in PR #562.  I'm testing it now.

So been running the tests on a continuous loop for about 30 minutes and there are no unforced errors in the logs.  Thanks @arosien and @jw3 for the quick assist!  I'm totally sure it's the only thing I've butchered in the Scala middleware, but would really appreciate a read through if you can spare the time.


when we create new apps we can create environments in the fabric8-environments before the namespaces get created

which means the workspaces Team UI shows links that don't go anywhere which is confusing.
Generally we tend to create environments eagerly - then lazily create the actual underlying Namespace/Project as part of the CD Pipeline.
If a namespace is defined in the fabric8-environments ConfigMap, but it doesn't yet exist we should render that differently in the Team row on the workspaces page; to show that the namespace hasn't yet been created (maybe even have a  Create button to create it (*).
BTW when creating namespaces; on OpenShift we need to use the ProjectRequests REST API (like Project) as this also adds the necessary RoleBindings so that you can use DeploymentConfigs. Creating a kubernetes Namespace tends to break DeploymentConfig

just fixed - haven't added a Create button yet mind you; we can add that later if we want..


Remove doc reference to duration in scrollToEnd

Looks like duration prop isn't available anymore for ScrollView.scrollToEnd.
https://github.com/facebook/react-native/blob/1465c8f3874cdee8c325ab4a4916fda0b3e43bdb/Libraries/Components/ScrollView/ScrollViewCommands.js#L28-L31
According to this comment it was deleted at some point.
https://github.com/facebook/react-native/issues/25589#issuecomment-510488031

Hi @le-michael, this is a nice catch, thank you for all the references! 👍
It looks like that the duration property was removed since 0.60, so we need to backport this change to all of the versioned docs.
Would you also like to take care of those changes?
Fortunately, other components which also uses scrollToEnd method like VirtualizedList or FlatList have the correct definition of the function arguments and params. 😄

Hey @Simek,
I probably won't have time to make those changes! You should probably make a bug for someone else to pick it up 🙂


feature: 技能列表返回预料信息

 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.wheelwang seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Bug: Gamedata.json is not generated in PyInstaller onefile binary

The onefile binary version of the game does not currently support game saving

onefile feature dropped


Tests: Cover more Trick Assignments tests

List of new tests added

[x] ipow
[x] iand
[x] ifloordiv
[x] ilshift
[x] irshift
[x] imatmul
[x] ior
[x] itruediv
[x] ixor
[x] matmul

There is already a matmul test in TrickAssignments35.py.
The Travis build was failing for the one that you added to TrickAssignments32.py because that means it's used for Python 3.2 (OK, we don't do that any more) or higher, and that is then a syntax error for Python 3.3 and 3.4, which didn't yet have that @ (matmul) operator.
But otherwise, good job completing the missing ones. I am also glad to see them pass. :-)

Yeah you are right. @ support started from 3.5. I'm going to remove matmul


Add HTTP options

Pull Request Test Coverage Report for Build 568241229

38 of 49 (77.55%)  changed or added relevant lines in 5 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.9%) to 83.122%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/utils/schema.ts
6
7
85.71%

src/utils/http-client/get-modules/http.ts
23
33
69.7%

Totals

Change from base Build 567454170:
-0.9%

Covered Lines:
385

Relevant Lines:
452

💛  - Coveralls


Improve type annotations for element attributes

name: Improve type annotations for html/htmx attributes
about: Propose changes to the codebase
title: '[PR] '
labels: ''
assignees: ''

Proposed Changes
There is a whole lot of attributes associated with DOM elements that are currently typed to Any. This leads to the situations like this

Developers need to jump to HTMX doc to figure out what the valid values for those attributes are. It would be great to get better type annotations like this

I've added a sample annotation for htmx attribute hx_swap to demonstrate the idea + approach. Furthermore, proper annotations can be introduced on the ft_hx level doing something like this:
def annotate_args(annotations = {}):
  def _f(f):
    sig = inspect.signature(f)
    sigd = dict(sig.parameters)
    sig_update = {
       n: inspect.Parameter(
           n,
           inspect.Parameter.KEYWORD_ONLY,
           default=None,
           annotation=t
          ) for n, t in annotations.items()
    }
    sigd.update(sig_update)
    f.__signature__ = sig.replace(parameters=sigd.values())
    return f
  return _f

@annotate_args(annotations=hx_attrs_annotations)
@use_kwargs(hx_attrs, keep=True)
def ft_hx(tag: str, *c, target_id=None, hx_vals=None, **kwargs):
    ...

Or alternatively propagating this to @use_kwargs to add support for annotations:
def mk_param(n, d=None, annotation=inspect.Parameter.empty):
    return inspect.Parameter(n, inspect.Parameter.KEYWORD_ONLY,  default=d, annotation=annotation)

def use_kwargs(names, keep=False, annotations={}):
    "Decorator: replace `**kwargs` in signature with `names` params"
    def _f(f):
        sig = inspect.signature(f)
        sigd = dict(sig.parameters)
        k = sigd.pop('kwargs')
        s2 = {n:mk_param(n, annotation=annotations.get(n, inspect.Parameter.empty)) for n in names if n not in sigd}
        sigd.update(s2)
        if keep: sigd['kwargs'] = k
        f.__signature__ = sig.replace(parameters=sigd.values())
        return f
    return _f

Types of changes
What types of changes does your code introduce? Put an x in all the boxes that apply:

[x] New feature (non-breaking change which adds functionality)

Additional Information
This is really an initial proposal. Obviously more work is required for this to be useful

Sure I'm opening to considering this interesting idea. This PR needs a little bit of cleanup. There's an extra cell that you've accidentally left in with output from a ? command, also, your list of literal options are all on separate lines. We really like to avoid using vertical space wherever possible, so please put these together.
Could you add the other HTMX annotations into this PR as well please? I want to see how many there are and how big they are, so I can check whether I'm happy to put them directly in the notebook.

@jph00 this should be ready for review after https://github.com/AnswerDotAI/fasthtml/pull/457

now that i think about it, does hx_attrs_annotations sound too mouthful? should this be hx_attrs_types?

This PR looks pretty good actually - I'll merge it, but let's see what the feedback is. I wonder if people will find the choice popups confusing, since other strings are OK as well (as you correctly identified with the | str). But yes let's use hx_attrs_types -- send a followup PR for that please.


Doesn't work on Wayland natively

As the title says. If you just execute it you'll see this error:
ERROR djv::Graphics::GraphicsContext: Cannot create OpenGL context, found version 2.0
To run it on Wayland you need to setup variable QT_QPA_PLATFORM=xcb djv_view to run it through XWayland but it still doesn't work, you can only see 1st frame.

Thanks for the bug report; I will install Wayland and see if I can troubleshoot this.

Adding to 2.0.7 to retest.

It looks like the new 2.x versions of DJV are now able to run on Wayland, I just verified with Ubuntu 20.04. However I assume this is using X11 compatibility so I'm not sure what the performance will be like.
It looks like GLFW (the library DJV uses for windowing) has experimental support for Wayland as of version 3.3:
https://www.glfw.org/docs/3.3/news.html
When the support is more stable this issue can be assigned to a milestone.


Add distributed.print and distributed.warn to API docs

I was looking for these in the docs, but then realized that they are only documented over in the distributed docs. This PR adds them to the main docs too.

thx


Need update to README.md

Update README.md to align with dynamic $basearch use. Update almalinux/ks2rootfs be align with these changes

$basearch change is complete.


Hacktoberfest- Update requirements.txt

android=1.0.0

This appears to a Hacktoberfest PR that violates the rules low quality and Spam PRs and has been marked as such


Symlinks for manpages brake when staging

@9e7a6411708702dd4ad4657636ab346382234437 adds a new way of symlinking, this breaks building when the install is not in the final destination. FreeBSD ports build/install into $WRKDIR. This change symlinks to the absolute path in $WRKDIR rather than relative symlinks in the man3 dir.

Dupe of #15424. Will be fixed by #15437.


Stealth Mode

Issue: #3
The app now runs as background process
Terminal is not visible
log.txt captures keystrokes accurately (even differentiating between small and capital letters)

Hey @rndastech
Thanks for opening this PR 🚀. Mentor will review your pull request soon and till then, keep contributing and stay calm.
Thanks for contributing in OpenCode'24 ✨✨!

Remove exe file from pull request.

I have removed the exe file. Kindly review once

Hey @rndastech
Your PR has been merged 🥳🥳 and you have earned 20 points.
Thanks for contributing in OpenCode'24 ✨✨


1.18.2 Backport Request

Possible backport? Its fine if you don't want to or don't have the time.

I was already considering backporting / supporting other loaders as a possibility, I'll look into how feasible this is for sure!

v1.4.0-beta+fabric-1.18.2 is now out!


Leaving server_id as null doesn't work

The add-on settings can't currently be saved with the server_id set to null, which as I understand is the way for it to auto-select a server when it runs. The example configuration in the readme has null there, so it seems like this might be a UI or validation bug?

I think this issue is fixed in this latest release.
Even though I defined the server_id variables has optional, the home-assistant forces that if we define its default value as null, the user must define it before running the addon and doesn't matter if the variable is optional or not. That was the bug....


Feature/batch consumer

Description
Support for batch-consumers in Azure Spring Cloud Event Hub binders in  #23880

/azp run java - spring - tests

/azp run java - spring - tests

/azp run java - spring - tests

/azp run java - spring - tests

/azp run java - spring - tests

/azp run java - spring - tests


I'm found issue restore consumer errron if have key-auths

found message: 'An unexpected error occurred' when restore consumer have key-auths and not any found key on those consumer

update found error on kong
kong/db/dao/init.lua:194: bad argument #1 to 'floor' (number expected, got userdata)

same error
konga 0.14.9
kong 3.1.1


Entity deletion via a deferred queue

Fixes #3
Needs to be discussed and evaluated before merging, since there are use-cases that would make it leak data. For example, if any component is not locked for writing for a long time, it's deletion queue will grow unbound even though the affected entities may not even have this component.
On the other hand, this change is not visible in the API and can be reversed at any point later on.

Closing in favor of #8


Setting up user agent in profile

I couldn't figure out how to set up some random user agents while using a tor webdriver since it is not possible to set it up in its constructor.

Hi @giuliodz , please see the instructions and possible caveats of randomizing user agent here: https://github.com/webfp/tor-browser-selenium/issues/127#issuecomment-632910257


Add example to add custom plush functions

This adds a brief example on how to use custom plush functions with gobuffalo.

Thanks!


Docs link on docs page

Discuss whether or not we should remove the docs link at the top of new Rancher docs site as it is redundant.

Fixed with #30.


Add the locations content type as a feature

Summary
This expands upon #7 and adds the ecms_location feature to package up the location content type configuration. The base profile is configured to install this module by default.
Metadata

Question
Answer

Did you use a meaningful pull request title?
yes

Did you apply meaningful labels to the pull request?
yes

Did you perform a self review first?
yes

Documentation reflects changes?
no

CHANGELOG reflects changes?
yes

Unit/Functional tests reflect changes?
yes

Did you perform browser testing?
yes

Risk level
Low

Relevant links
RIG-35

/approved


Add nominees : eduActiv8 , ClimateMachine

@nathanbaleeta Thanks for your review, I have updated the files :)

Thank you so much for your time, review. I'll update the files


Fix some CLI errors related to Makefile

When compiling a Cairo program, the compiled program name was constructed appending the name of the program passed as an input PROGRAM in the CLI, with the .json extension.
So if the the passed program had the .cairo extension, the resulting compiled program had the two extensions .cairo.json, and that raised an error in the prover, a feature recently implemented.
This PR adds a variable to the Makefile that extracts the extension to the Cairo program and adds the JSON one to it.

Codecov Report

Merging #586 (5dfbad2) into main (314fafc) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #586   +/-   ##
=======================================
  Coverage   95.50%   95.50%
=======================================
  Files         110      110
  Lines       19002    19002
=======================================
  Hits        18147    18147
  Misses        855      855

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


bugfix: look at udp_payload for dhcp flags field, not overall packet

buf is the entire packet (with Ethernet/Ipv4/Udp headers), so while the existing code was a valid access, it's not what we're looking for.

Wow, nice catch !
This is an embarrassing bug, I think it deserves a release actually.


[0257] New vehicle data HandsOffSteering

Fixes #1224
This PR is [ready] for review.
Risk
This PR makes [minor] API changes.
Testing Plan
Covered by existing and added unit tests
Unit Tests
New unit tests covering introduced structures were added
Summary
Applied 0257 New vehicle data HandsOffSteering changes
Changelog
Enhancements
- Implement code changes related to HandsOffSteering

CLA

[x] I have signed the CLA

@mrapitis , @atiwari9 please review the changes

@kostyaBoss I reviewed your PR.  I suggest you make the below changes.
Source code changes:
SubscribeVehicleData.java:

public void setHandsOffSteering should take in a Boolean instead of a boolean

UnsubscribeVehicleData.java:

public void setHandsOffSteering should take in a Boolean instead of a boolean

OnVehicleData.java:

public void setHandsOffSteering should take in a Boolean instead of a boolean

Unit Test changes:
OnVehicleDataTests.java:

Unit tests need to be added in

VehicleDataHelper.java:

new Hands Off Steering Vehicle Data needs to be added in

GetVehicleDataResponseTests.java:

Unit tests need to be added in

@santhanamk updated according to provided suggestions, please review

@kostyaBoss I reviewed your changes.  They look good.  I have a few more suggestions:
Unit tests changes:
GetVehicleDataResponseTests.java:

towards the bottom of testRpcValues(), assertNull(Test.NULL, msg.getHandsOffSteering()); is needed

@santhanamk Thanks for your feedback, I've updated PR, please check it

@kostyaBoss I checked the code and it looks good. Thanks.

@joeygrover , @theresalech Hi! Please review changes in this PR

@kostyaBoss, can you please confirm that Ford has reviewed and approved this PR? I do not see any completed reviews yet. Thanks!

@theresalech The @santhanamk has approved this PR

@theresalech this PR is ready for Livio review.

@kostyaBoss Thanks for implementing the proposed changes. I noticed that the formatting in multiple files has been modified to fix some already-existing formatting issues. We plan to do the formatting fixes for the whole repo in a separate PR when we implement this proposal. Could you please revert the formatting changes and keep actual code changes only? that will keep the Git history cleaner and make it easier to trace any potential issues in the future.

@bilal-alsharifi Hi! I've made rollback of formatting changes, plese review PR

@bilal-alsharifi I don't know the reason, but check was cancelled for this branch. If you have access, please, restart it

@kostyaBoss Thanks for making the changes. I restarted the checks and they pass now. But I still see formatting changes in most of the files. For example GetVehicleData. Can we remove all the formatting changes from all modified files in this PR?

@bilal-alsharifi Hi! I've made corresponding changes, please, check the PR. Let me know, if there anything else I should change

@kostyaBoss Thanks for updating the PR. I am looking at the PR and I still see formatting changes. One example is the GetVehicleData class. Please look at the changed files in the PR and see how the whole file seems to be changed (formatting changes, reordering methods...). The PR is supposed to only add the changes in the proposal and not modify what is already existing.

@bilal-alsharifi Hi! Those changes are produced by the generator, and this was one of the tasks - to apply changes provided by the proposal using the generator, but it seems that this produced a lot of whitespace changes. If you check this PR using options "Hide whitespace changes" you will see the clean diff where there were only documentation changes and handsOffSteering added on the bottom of the files

Hi @kostyaboss, as you note, the requirement was to provide the changes for this proposal with the generator. Therefore the white space changes are out of scope. Please revert them.

Hi @joeljfischer, @bilal-alsharifi,
In order to help @kostyaBoss I've tried to resolve formatting issues you mention and noticed the following problem. Some files in the current develop branch have different line endings in the one file, eg. GetVehicleData.java has LF line endings in License Comment, setOEMCustomVehicleData and getOEMCustomVehicleData methods and CRLF line endings in other lines of source. It is hard to manage and keep each line endings as is because even if IDE and Git have disabled all auto converting features, both mine and Kostya IDEs (Idea based) support one type of line ends for the whole file. I believe the last changes that we have here are the maximum we could provide without extra effort to fight with each line of code separately. Could you confirm it is suitable for you?
@santhanamk @mrapitis

Thanks, @vladmu @kostyaBoss for making the changes. You are right about the different line endings for the headers. This issue happened in the past because we used a script to add copyrights headings to some files. We plan to fix the line endings issue in another separate PR. It is fine if the headers are marked as changes in this PR as long as other formatting changes are removed.
I will review this PR and let you know about other potential changes.


[ Bug ] Missing entry in aerial treesitter kind_map: impl_item

Describe the bug
A clear and concise description of what the bug is.
System information

OS: Linux
Neovim version: 0.7.0-dev+876j
AerialInfo:
Aerial Info

Filetype: rust
Configured backends:
lsp (supported) (attached)
treesitter (supported)
markdown (not supported)
Show symbols: all symbols

Aerial config:

vim.g.aerial = {
  -- Enum: persist, close, auto, global
  --   persist - aerial window will stay open until closed
  --   close   - aerial window will close when original file is no longer visible
  --   auto    - aerial window will stay open as long as there is a visible
  --             buffer to attach to
  --   global  - same as 'persist', and will always show symbols for the current buffer
  close_behavior = "global",

  -- Set to false to remove the default keybindings for the aerial buffer
  default_bindings = true,

  -- Enum: prefer_right, prefer_left, right, left
  -- Determines the default direction to open the aerial window. The 'prefer'
  -- options will open the window in the other direction *if* there is a
  -- different buffer in the way of the preferred direction
  default_direction = "left",

  -- Set to true to only open aerial at the far right/left of the editor
  -- Default behavior opens aerial relative to current window
  placement_editor_edge = true,

  -- Fetch document symbols when LSP diagnostics change.
  -- If you set this to false, you will need to manually fetch symbols
  diagnostics_trigger_update = true,

  -- Enum: split_width, full_width, last, none
  -- Determines line highlighting mode when multiple buffers are visible
  highlight_mode = "split_width",

  -- When jumping to a symbol, highlight the line for this many ms
  -- Set to 0 or false to disable
  highlight_on_jump = 300,

  -- Fold code when folding the tree. Only works when manage_folds is enabled
  link_tree_to_folds = true,

  -- Fold the tree when folding code. Only works when manage_folds is enabled
  link_folds_to_tree = false,

  -- Use symbol tree for folding. Set to true or false to enable/disable
  -- 'auto' will manage folds if your previous foldmethod was 'manual'
  manage_folds = "auto",

  -- The maximum width of the aerial window
  max_width = 30,

  -- The minimum width of the aerial window.
  -- To disable dynamic resizing, set this to be equal to max_width
  min_width = 10,

  -- Set default symbol icons to use Nerd Font icons (see https://www.nerdfonts.com/)
  nerd_font = "auto",

  -- Whether to open aerial automatically when entering a buffer.
  -- Can also be specified per-filetype as a map (see below)
  open_automatic = true,

  -- If open_automatic is true, only open aerial if the source buffer is at
  -- least this long
  -- open_automatic_min_lines = 50,

  -- If open_automatic is true, only open aerial if there are at least this many symbols
  open_automatic_min_symbols = 1,

  -- Run this command after jumping to a symbol (false will disable)
  post_jump_cmd = "normal! zz",

  -- Set to false to not update the symbols when there are LSP errors
  update_when_errors = true,

  -- A list of all symbols to display. Set to false to display all symbols.
  filter_kind = false,
}

To Reproduce
Steps to reproduce the behavior:

Open Rust file
Wait for LSP rust-analyzer to attach
Sometimes the error will appear, however, not always.When renaming an item using LSP the error will always appear and prevent rename.

Screenshots

Additional context
The error message:
The cause for the error is that the language_kind_map for Rust is incomplete
File: ./lua/aerial/backends/treesitter/language_kind_map.lua,
is missing impl_item in the kind map.

There are...many things that I find confusing in this bug report.

impl_item is already in language_kind_map.lua
Furthermore, it was added in the same commit where the treesitter query was modified to query impl_item (e4c2e7e9c88d5e6d7d1f12f6d9e17f183bd0dd18), so I have no idea how any version could ever see that error
That message is printed with nvim_err_writeln, not error(), so it shouldn't produce a stack
That stacktrace leads to a vim.cmd that's setting up autocommands and has nothing to do with treesitter
LSP rename goes through entirely separate channels and should never even touch aerial code, so there should be no way for aerial to interfere with it.

That all means that I unfortunately don't even have a good guess what could be happening and can only give you general debugging advice.

Try it on Neovim 0.6.1 (I did try to repro it on nightly, but couldn't)
Try updating aerial
Does LSP rename work if you disable/remove aerial? What about if you disable either the LSP or the treesitter backend for aerial? (backends = {'treesitter'} or backends = {'lsp'})
Does LSP rename work if you disable/remove rust-tools.nvim? (it's the only other plugin in your stack trace)
Try logging more information at the error location. What is the actual contents of kind_map at that location?

Hopefully one of these will help turn up some more information we can use to get to the root cause.

The issue has been resolved.
Renaming works when disabled.
The reason was two conflicting installations of Aerial.
There was a leftover symbolic link in rtpath that was conflicting and was used instead of the github installation.
The leftover link came from previous forks when I was opening my last pull request.
It was entirely my fault as I thought I was using the most recent version after having paq show that Aerial was installed and updated.


[ansible/artifactory] Service not updated during upgrade

A change in the 10.14.0 release added a when condition in shared/install_service.yaml. This now causes the upgrade to not have the proper Java options passed to Artifactory.  There is a very in-depth jfrog Help Center Article regarding the need to run the installService.sh script every time during upgrade. I think the last change should probably be reverted.

I put in this PR to fix.


Strange addEventListener and removeEventListener warnings

Any idea why I am getting a lot(40 warnings) of this kind ?

client\components\Company\Invoice\List.jsx is that file

OS: Windows Pro 10 64x

At least, any idea to turn off that warnings?

haha solved. it seems that addEventListener accepts only a stricted callback from here


knowing face looking to left or right side

Hello, i have try with FACEFILTERAPI, and some modification :
function main(){
    var CVD;
    var mouth = 0;
    var x = 0;
    var y = 0;
    var facedetect = 0;

    JEEFACEFILTERAPI.init({
        canvasId: 'jeeFaceFilterCanvas',
        NNCpath: '../../../dist/', //root of NNC.json file
        callbackReady: function(errCode, spec){
            if (errCode){
                console.log('AN ERROR HAPPENS. SORRY BRO :( . ERR =', errCode);
                return;
            }

            console.log('INFO : JEEFACEFILTERAPI IS READY');
            CVD = JEEFACEFILTERAPI.Canvas2DDisplay(spec);
            CVD.ctx.strokeStyle='transparent';
        }, //end callbackReady()

        //called at each render iteration (drawing loop)
        callbackTrack: function(detectState){

            var mouthOpening=detectState.expressions[0];

            // console.log(mouthOpening);
            // console.log("Mouth score + ", mouthOpening);

            if(mouthOpening >= 0.80)
            {
                // console.log("Mouth Opened");
                mouth = mouth + 1;
                // console.log("Mouth score ",mouth);
            }
            else
            {
                // console.log("Mouth Closed");
            }

            if (detectState.detected>0.6){

                facedetect = 1
                // console.log("Facedetect ", facedetect);
                //draw a border around the face
                var faceCoo=CVD.getCoordinates(detectState);

                if(faceCoo.x >= 70)
                {
                    x = 1;
                    $("#facestatus").text("move face to right");
                }
                else {
                    x=0;
                    // mouth=0;
                }
                if(faceCoo.x <= 30)
                {
                    x = 1;
                    $("#facestatus").text("move face to left");
                }
                else {
                    x=0;
                    // mouth=0;
                }

                if(faceCoo.y >= 70)
                {
                    y = 1;
                    $("#facestatus").text("move face to down");
                }
                else {
                    y=0;
                    // mouth=0;
                }
                if(faceCoo.y <= 30)
                {
                    y = 1;
                    $("#facestatus").text("move face to up");
                }
                else {
                    y=0;
                    // mouth=0;
                }

                if(faceCoo.x >= 20 && faceCoo.x <= 70 && faceCoo.y >= 20 && faceCoo.y <= 70)
                {
                    if(mouth<1)
                    {
                        $("#facestatus").text("OK, please open mouth");
                    }

                }

                if(faceCoo.x >= 20 && faceCoo.x <= 70)
                {
                    x = 1;
                    // console.log("x ", x);
                }
                if(faceCoo.y >= 20 && faceCoo.y <= 70)
                {
                    y = 1;
                    // console.log("x ", y);
                }

                CVD.ctx.clearRect(0,0,CVD.canvas.width, CVD.canvas.height);
                CVD.ctx.strokeRect(faceCoo.x, faceCoo.y, faceCoo.w, faceCoo.h);
                CVD.update_canvasTexture();
            }
            else {
                facedetect=0;
            }

            CVD.draw();

            if(mouth > 10 && facedetect == 1 && x > 0 && y > 0)
            {
                $("#facestatus").text("OKE");
                $("#facestatus").css("color", "green");
                $("#modalstartpage").modal('hide');

                Swal.fire({
                    title: 'Step 1 Successfull !',
                    type: 'success',
                    allowOutsideClick: false,
                    confirmButtonText: 'next step 2'
                });
                JEEFACEFILTERAPI.toggle_pause(true, true);
            }
        } //end callbackTrack()

    }); //end JEEFACEFILTERAPI.init call
} //end main()

i want to check the face is looking to left side or right side by the number like mouth opening, i have try with HeadControl to get moving face looking to left or right side use x and y camera moving, but i can't combine JEEFACEFILTERAPI and HeadControls :
AN ERROR HAPPENS. SORRY BRO :( . ERR = ALREADY_INITIALIZED
ERROR : THREE.HeadControls NOT READY. errCode = ALREADY_INITIALIZED

. Any idea ?

Hi
The error message is very clear: you cannot initialize multiple times facefilter. This is easy to avoid and there are closed issue about this.
HeadControls and the THREE.js helpers are given in clear javascript, not obfuscated. You need to combine them.  I give clear documentation, clear tutorials, demos and commented helpers.

Hi
The error message is very clear: you cannot initialize multiple times facefilter. This is easy to avoid and there are closed issue about this.
HeadControls and the THREE.js helpers are given in clear javascript, not obfuscated. You need to combine them.  I give clear documentation, clear tutorials, demos and commented helpers.
The detectState arguments are here: https://github.com/jeeliz/jeelizFaceFilter#the-detection-state
The angle around the Y axis: detectState.ry

ok, because i'm not familiar with javascript. I'm need some clue, thank you 👍

No worries. This lib is not easy to handle then. It is still better to start by learning JavaScript langage, then 3D with THREE.js, then doing some tutos that we provide to handle the lib, and maybe learn some vanilla WebGL. Then things will look not difficult at all :).


Movement commands J and K can move to wrong column if current cell is longer than destination cell

Description
When the current cell contains more characters than the cell in the same column of the preceding row, pressing K can move to the wrong cell in the preceding row.  Specifically, if the cursor is on character N of the current cell, then pressing K moves the cursor to the position N - 1 characters to the right of the start of the corresponding cell in the preceding row, ignoring cell delimiters.  If the corresponding cell in the preceding row contains fewer than N characters, this lands in the wrong cell.
Instead, the cursor should move to the last character in the corresponding cell in the preceding row.  If no other movement is performed, the cursor should also remember that its virtual position in the cell is N, so that pressing J immediately after K returns to the original position N in the original cell.
When the current cell contains more characters than the cell in the same column of the next row, pressing J can move to the wrong cell in the next row.  Specifically, if the cursor is on character N of the current cell, then pressing J moves the cursor to the position N - 1 characters to the right of the start of the corresponding cell in the next row, ignoring cell delimiters.  If the corresponding cell in the next row contains fewer than N characters, this lands in the wrong cell.
Instead, the cursor should move to the last character in the corresponding cell in the next row.  If no other movement is performed, the cursor should also remember that its virtual position in the cell is N, so that pressing K immediately after J returns to the original position N in the original cell.
Example 1
a,b,c,d
efgh,ijkl
m,n,o,p

Actual behaviour: Place the cursor on h. Press K.  The cursor moves to the comma after b.  Press J.  The cursor moves to j.
Expected behaviour: Place the cursor on h.  Press K.  The cursor moves to a.  Press J. The cursor returns to h.
Actual behaviour: Place the cursor on h. Press J. The cursor moves to the comma after n. Press K. The cursor moves to j.
Expected behaviour: Place the cursor on h. Press J. The cursor moves to m. Press K. The cursor returns to h.
Example 2
The virtual position should be remembered even if the cursor travels up or down multiple rows.  Pressing J N times followed by K N times should return to the original location; and pressing K N times followed by J N times should return to the original location.
Other explicit movements like h or l should cause the virtual position to be forgotten.
abcd,efgh
ij,kl
mn,op
qr,st

Expected behaviour: Place the cursor on h. Press JJJKKK. The cursor should return to h.
Expected behaviour: Place the cursor on h. Press JhK. The cursor should arrive at e.

Well, this has always been a best effort approach and worked actually only well, if the starting and destination cells had the same width. This is not the case for your example, so I fixed it to only adjust the position within the cell after moving upwards/downwards if starting and destination cells have the same width. Else it will move to the beginning of the cell.
Regarding your example 2, I don't agree with it. The wanted, virtual position is only remembered for a single movement and will be stored individually for each movement. But that means, you cannot expect it to be the same after chaining several movements together. Or saying it differently, "Why expecting the position of JJJKKK to be the same and not that of a say a movement, that happened several steps before that?" So that is expected.

Thanks, this is much better.  I understand your opinion on Example 2, that's fine!


Add default values in Padding, Margin, Offset, BorderRadius dataclass

Similar to https://github.com/flet-dev/flet/pull/883

I don't remember exactly where, but we were discussing this problem before. Enforcing zeros instead of None as default values for margins, paddings, offsets, etc. will break default built-in values of individual controls.


Replace deprecated assertRegExp() with assertMatchesRegularExpression()

Q
A

Bug fix?
yes

New feature?
no

BC breaks?
no

Deprecations?
yes

Related tickets
follow-up to https://github.com/php-http/psr7-integration-tests/pull/45

Documentation
TBD

License
MIT

What's in this PR?
In https://github.com/php-http/psr7-integration-tests/pull/45 compatibility with phpunit 9.3 was declared
But 9.3 throws warnings now on usage of assertRegExp() replaced with assertMatchesRegularExpression() in phpinit 9.1
Ref https://phpunit.readthedocs.io/en/9.1/assertions.html#assertmatchesregularexpression
Why?
Testing https://github.com/laminas/laminas-diactoros/pull/46 travis reports this warnings because it using php 8 (nightly) so composer resolves phpunit to 9.3
Also package tests reports the same https://travis-ci.org/github/php-http/psr7-integration-tests/jobs/738863983#L393
Checklist

[ ] Updated CHANGELOG.md to describe BC breaks / deprecations | new feature | bugfix
[ ] Documentation pull request created (if not simply a bugfix)

To Do

[ ] If the PR is not complete but you want to discuss the approach, list what remains to be done here

thanks for looking into this. unfortunately, phpunit 9 does not run on PHP 7.2, so the builds for 7.2 now fail because the new method is not available. i think the solution is to add a method to the MessageTrait that does a method_exists check and falls back to the old assertion if it does not exist.

Good idea, thank you! Will update soon.

Fixed both places and added to todo to remove later

@dbu thank you a lot! looks I need another coffee :facepalm:


the server could not find the requested resource

Deployment on EKS 1.16 using helm charts on stable repo.
I0519 11:42:13.966036       1 rescheduler.go:261] No nodes to process.
E0519 11:42:14.291919       1 reflector.go:205] github.com/pusher/k8s-spot-rescheduler/vendor/k8s.io/client-go/informers/factory.go:87: Failed to list *v1beta1.ReplicaSet: the server could not find the requested resource
E0519 11:42:14.292692       1 reflector.go:205] github.com/pusher/k8s-spot-rescheduler/vendor/k8s.io/client-go/informers/factory.go:87: Failed to list *v1beta1.StatefulSet: the server could not find the requested resource

probably caused by https://kubernetes.io/blog/2019/07/18/api-deprecations-in-1-16/

so the client version should be bumped

Having the same issues after 1.16 upgrade.

After upgrade to 1.16 having the same error.

Any plan to fix this? k8s-spot-rescheduler can't be used in 1.16 or later version

Another vote to change this. Same issue on Kube 1.18.8


Create a test plan

Since the behavior of inputstreamhelper differs from architecture and context, it would be good to have a list of items we would like to test for each architecture/platform. Then we can ask users/contributors to test on their platform by following those steps.

My current testing includes this:

build zip from branch or locally checked out pull request
install and test in different Virtual machines

Oracle VM VirtualBox Manager 6.0
A. Windows 10 x64 VM

test with python 2 and python 3 Kodi versions:

KodiSetup-20190508-13148516-feature_python3-x64.exe
kodi-18.3-Leia-x64.exe

B. PrimeOS Android x86 VM

test with Kodi from Google Play Store

VMWare Workstation 15 Player
A. LibreELEC VM

test with ready-to-use .ova images from http://ftp.belnet.be/mirror/libreelec.tv/

LibreELEC 8.2.5 (Kodi 17.6): LibreELEC-Generic.x86_64-8.2.5.ova
LibreELEC 9.0.2 (Kodi 18.2): LibreELEC-Generic.x86_64-9.0.2.ova
LibreELEC 9.1.002 (Kodi 18.3): LibreELEC-Generic.x86_64-9.1.002.ova

Test 1:
This test starts from a clean Kodi install and tests if inputstreamhelper succesfully installs inputstream.adaptive and Widevine DRM without rebooting or crashing
Steps:

clean install Kodi
open Kodi
enable debug logging, enable install by zip, disable auto updating add-ons
install latest master inputstreamhelper zip
install VRT NU add-on, enable debug logging, enable DRM and try to play livestream
open log file and report if the test fails
cleanup VM (remove Kodi completely after test)

It would be nice if we could test the ARM/Chrome OS workflow on a standard X86 system. Any tips to make this work are welcome.

Option 2 of this suggests to run it virtualised in qemu: https://www.tomaz.me/2013/12/02/running-travis-ci-tests-on-arm.html

I moved this to the Wiki at: https://github.com/emilsvennesson/script.module.inputstreamhelper/wiki/Test-plan
This will become a work-in-progress.
I do think we need to look into automated ARM testing in Travis as well. This will not be a complete end-to-end testing in Kodi itself, but it may detect issues prematurally. For ARM testing we don't actually need ARM, we can call the exact functions for doing ARM testing and get almost complete coverage.
(Coverage reporting is another area to investigate)

Feel free to open specific issues (or PRs!) for concrete tasks/steps in the testing process. And we can discuss them on its own merits.


Drop support for Python 2

This MR removes Python 2 compatibility. It may be subject to change, because the changes were mostly made automatically:

use https://github.com/asottile/pyupgrade to remove old code
replace six modules with the built-in Python modules
remove six from setup.py and tox.ini

All tests are passing, so I guess one could release it right away.
Closes #295.

This got applied to the Debian package now. Any  chance to land this?


Upgrade io.projectreactor:reactor-bom 2022.0.4 -> 2022.0.5

This PR contains the following updates:

Package
Type
Update
Change

io.projectreactor:reactor-bom (source)
import
patch
2022.0.4 -> 2022.0.5

Release Notes

reactor/reactor
v2022.0.5
Compare Source
2022.0.05 release train is made of:

reactor-core 3.5.4
reactor-addons 3.5.1
reactor-netty 1.1.5
reactor-kafka 1.3.17
reactor-kotlin-extensions 1.2.2

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

Suggested commit message:
Upgrade Project Reactor 2022.0.4 -> 2022.0.5

See:
- https://github.com/reactor/reactor/releases/tag/2022.0.5
- https://github.com/reactor/reactor/compare/2022.0.4...2022.0.5


HDDS-9847. Replace usage of org.apache.hadoop.http.HttpServer2

What changes were proposed in this pull request?
HDDS-2950 forked HttpServer2 from Hadoop. There are a few leftover places where Hadoop's version of HttpServer2 is used. We should replace these with the one from Ozone:
Files modified for the import replacement:

hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/conf/HddsConfServlet.java
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/server/http/HttpServer2.java
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/TestOzoneConfigurationFields.java
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/admin/nssummary/NSSummaryAdmin.java
hadoop-hdds/framework/src/test/java/org/apache/hadoop/hdds/conf/TestHddsConfServlet.java

What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-9847
How was this patch tested?
Tested in CI build

Thanks @raju-balpande for the patch.


Adding initial, prototype implementation for a value type BufferPool

Adding initial, prototype implementation for a value type BufferPool.
/cc @KrzysztofCwalina

Also,

closed by mistake. sorry.

Changed the Buffer Pool to be generic to any value type so that it can work with Byte[] or Char[], meaning it should help with ASP.NET. Also addressing feedback

Any more feedback @bartonjs, @KrzysztofCwalina, @VSadov?

@sokket   Honestly, I am not sure I like the lock. Locks have a habit of not bothering you until there is a contention in a real-world scenario causing dramatic perf drops because of convoying.
I'd prefer a lockless approach as something that scales more predictably. Perhaps similar strategy to https://github.com/dotnet/roslyn/blob/master/src/Compilers/Core/SharedCollections/ObjectPool`1.cs
However, lock might be ok for initial implementation.

@VSadov it should be super lightweight since it isn't a full lock, just a SpinWait. Since the code inside the spin is super tiny, it seemed like the simplest approach for the initial implementation until we get the full requirements of how we want this new data structure to look and act.

I think it's good for the initial commit, i.e. good to go with me.

Cool, thanks! Merging


Discord Invite link not working

As it is the discord invite link for the modding discord not working. Couldn't join.

This link? https://discord.gg/illegalmodding
Works fine for me?