Error importing jaxoplanet with latest jax version

When I attempt to import the latest jaxoplanet with jax[cpu] version 0.4.28,  I get a long error message related to importing jpu (with version 0.0.2):
AttributeError                            Traceback (most recent call last)
Input In [1], in <cell line: 26>()
     21 jax.config.update(
     22     \"jax_enable_x64\", True
     23 )
     24 #jax.config.update('jax_disable_jit', True)
---> 26 from jaxoplanet import light_curves, orbits
     27 from jaxoplanet.light_curves import limb_dark_light_curve
     28 import arviz as az

File ~/opt/anaconda3/lib/python3.9/site-packages/jaxoplanet/__init__.py:3, in <module>
      1 __all__ = [\"core\", \"light_curves\", \"orbits\", \"units\"]
----> 3 from jaxoplanet import (
      4     core as core,
      5     light_curves as light_curves,
      6     orbits as orbits,
      7     units as units,
      8 )
      9 from jaxoplanet.jaxoplanet_version import __version__ as __version__

File ~/opt/anaconda3/lib/python3.9/site-packages/jaxoplanet/light_curves/__init__.py:3, in <module>
      1 __all__ = [\"transforms\", \"limb_dark_light_curve\"]
----> 3 from jaxoplanet.light_curves import transforms as transforms
      4 from jaxoplanet.light_curves.limb_dark import light_curve as limb_dark_light_curve

File ~/opt/anaconda3/lib/python3.9/site-packages/jaxoplanet/light_curves/transforms.py:8, in <module>
      6 import jax
      7 import jax.numpy as jnp
----> 8 import jpu.numpy as jnpu
      9 from jpu.core import is_quantity
     11 from jaxoplanet import units

File ~/opt/anaconda3/lib/python3.9/site-packages/jpu/__init__.py:10, in <module>
      1 __all__ = [
      2     \"monkey\",
      3     \"numpy\",
   (...)
      7     \"UnitRegistry\",
      8 ]
---> 10 from jpu import monkey, numpy
     11 from jpu.core import grad, value_and_grad
     12 from jpu.jpu_version import __version__

File ~/opt/anaconda3/lib/python3.9/site-packages/jpu/monkey.py:8, in <module>
      4 from functools import singledispatch
      6 import jax.numpy as jnp
----> 8 import jpu.numpy as jpunp
      9 from jpu.registry import UnitRegistry
     12 def patch():

File ~/opt/anaconda3/lib/python3.9/site-packages/jpu/numpy/__init__.py:1, in <module>
----> 1 from jpu import jax_numpy_func as jax_numpy_func

File ~/opt/anaconda3/lib/python3.9/site-packages/jpu/jax_numpy_func.py:472, in <module>
    467 for name in (\"prod\", \"nanprod\"):
    468     implement_prod_func(name)
    471 @implements(\"trapz\")
--> 472 def _trapz(a, x=None, dx=1.0, **kwargs):
    473     a = numpy_func._base_unit_if_needed(a)
    474     units = a.units

File ~/opt/anaconda3/lib/python3.9/site-packages/jpu/jax_numpy_func.py:37, in implements.<locals>.decorator(func)
     34     module = getattr(module, func_str_piece)
     36 # Extract the jax.numpy function that we can fall back to
---> 37 jax_func = getattr(jnp, func_str_split[0])
     38 for func_str_piece in func_str_split[1:]:
     39     jax_func = getattr(jax_func, func_str_piece)

File ~/opt/anaconda3/lib/python3.9/site-packages/jax/_src/deprecations.py:51, in deprecation_getattr.<locals>.getattr(name)
     49 message, fn = deprecations[name]
     50 if fn is None:  # Is the deprecation accelerated?
---> 51   raise AttributeError(message)
     52 warnings.warn(message, DeprecationWarning, stacklevel=2)
     53 return fn

AttributeError: jnp.trapz is deprecated; use jnp.trapezoid instead."

Hey @shashankdholakia! This issue should resolve itself if you use v0.0.3 of jpu since Dan fixed it with  #https://github.com/dfm/jpu/commit/7d53756d6fab1fa7991053f57dd72b02c4a5daaa
Could you try updating jpu and trying again?
Let me know if that works!

Yep! Upgrading jpu fixed this issue--closing this now, sorry.


[SPARK-10656][SQL] completely support special chars in DataFrame

the main problem is: we interpret column name with special handling of . for DataFrame. This enables us to write something like df("a.b") to get the field b of a. However, we don't need this feature in DataFrame.apply("*") or DataFrame.withColumnRenamed. In these 2 cases, the column name is the final name already, we don't need extra process to interpret it.
The solution is simple, use queryExecution.analyzed.output to get resolved column directly, instead of using DataFrame.resolve.
close https://github.com/apache/spark/pull/8811

Build triggered.

Build started.

cc @yhuai @rxin

Merged build triggered.

Merged build started.

Test build #45013 has started for PR 9462 at commit e8dfc8f.

Build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/45011/
Test FAILed.

Test build #45013 has finished for PR 9462 at commit e8dfc8f.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/45013/
Test PASSed.

Merged build finished. Test PASSed.

Isn't df("a.b") calling the apply method of a df?

Seems we need to update the description?

The cases I try to fix is DataFrame.apply("*")(not all DataFrame.apply) and DataFrame.withColumnRenamed.

LGTM. Merging to master and branch 1.6.


Abstract away from Lwt / Add support for Async

The core of irmin currently depend on Lwt. Could we lift that constraint ?

I'm not against abstract IO in principle, but I believe we have had issues with trying to unify Lwt and Async semantics before. @dinosaure knows the details there.
It would also be a big refactor at this point, so it would be nice to have some specific use-cases in mind before beginning such an undertaking.

The use case is simply to experiment with irmin inside an existing async codebase.

I think it might be better to wrap the Lwt scheduler inside Async for this experiment (see https://discuss.ocaml.org/t/best-practice-on-mixing-async-and-lwt/4473).  Do you want to give that a try for the experiment? (ping us on Slack to unblock if stuck)

Could be solved by #1325

The issue no longer relevant for me


Drop undocumented create_user_session_token

This method on client is exactly same with create_user_token
and the implementation delegates to create_user_token and it is undocumented.
To keep the code clean, dropped it.

It's an old name. I kept it in there so old code would continue to work. The fix is of course easy and I suppose obvious when it is removed. A deprecation warning might be overkill? What do you think?

I will merge this while dropping py2 and will bump a major.


Pages not updating in test, appear to be cached

For whatever reason, PhantomCSS doesn't seem to be picking up changes to my site. For example, I ran a test, then edited some CSS to make my nav links bold, then ran the test again. For whatever reason, the generated screenshot doesn't show any of my updates, even though manually loading the page does. Within my test file I've tried adding a URL param (e.g. localhost.com/?asdfhkjasdhf) as well as running this.reload() to force refresh the page, however no matter what I do, the screenshots don't reflect my updates.
Any idea on what might be causing this issue (caching? something else?), and how to prevent it?
Thanks!
Fantastic project!!!!

Very odd, I doubt it's a problem with PhantomCSS itself, all it does is delegate to PhantomJS's capture methods, and runs Resemble.js to compare the images.
I would try taking PhantomCSS and maybe CasperJS out of the equation, to try and find out what is happening.


Fastlane's error output

Hello :)
I've been stuck for a while on build failure using Fastlane. In fact, everything went great when I tried using it on my local computer, but when I launched a build on a distant server, the build directly failed each time.
It seems you override the ipa's error output tu write yours :
[11:05:33]: A build error occured. This can have many reasons, usually
[11:05:33]: it has something to do with code signing. The `ipa` action
[11:05:33]: uses `shenzhen` under the hood: https://github.com/nomad/shenzhen
[11:05:33]: For code signing related issues, check out this guide:
[11:05:33]: https://github.com/KrauseFx/fastlane/blob/master/docs/CodeSigning.md
[11:05:33]: The command that was used by fastlane:
[11:05:33]: krausefx-ipa build -s "smarty" -c "Release" -m "/Users/admin/.jenkins/jobs/SMARTY_iOS_Dev/workspace/InHouse_com.prismamedia.smarty.dev.mobileprovision" --verbose | xcpretty

But actually, this time it wasn't caused by a bad provisioning profile ! (Yes, it can happen some times :p)
So I tried to launch the command line on my server using ssh, and the error was simply as follow :
"Could not find the scheme "
And then I figured out that I had to share my schemes on the repository, and...tadam ! Everything worked well :)
So I think that at first sight, writing you error is not bad because it's true that the build phase usually fails because of the provisioning profile, but when it's not because of that...it's just not possible to find why it failed without launching the same command manually. Maybe it would be nice to not override the error, but just concatenate your ? :)
Thank you, and as always : Your tool chain is awesome :)

Thanks for reporting this @Khronoss. You will be very happy to hear, that is exactly what I've been working on the last few days/weeks with gym. gym will soon replace shenzhen does shows you exactly those kind of error messages.
Please try gym and let me know how it works for you :+1:

Oh great ! :D I didn't see the doc of Gym until now =X
I can't promise you now for testing Gym, because (as an internship) I don't really want to take the risk of breaking the building process of our apps. But I'll talk about it to my tutor :)
Thank you ! \o

@Khronoss gym is not announced yet, that's why it's not in the docs. You don't need to integrate it into the build process - instead just run it manually for your project just by running gym -s "scheme"

Okay, why not ? :)

Cool, thanks! I'll close this issue for now, feel free to add comments here :+1:


Sorting using capabilies.json not working

According to this article
 "sorting": {
        "default": {   }
    }

Should produce result something like this

It is not working at all,

I tried sorting with
    "sorting": {
        "implicit": {
            "clauses": [
                {
                    "role": "category",
                    "direction": 1
                },
                {
                    "role": "measure",
                    "direction": 2
                }
            ]
        }

This also does not work at all
Am I missing something or is this a bug. Please clarify.

@krngd2
It do works for https://github.com/microsoft/powerbi-visuals-gantt for example
Could you please provide you capabilities.json? Maybe you have some issues with DataViewMapping usage in general


Parentheses Checker

Program Statement:
We are given an expression and we need to check whether the given expression is correct or not.
Programming language:
C++

@Ayush7614 Kindly assign me this issue. I would like to work on it as a part of my LGM-SoC'21

@Ayush7614 Kindly assign me this issue. I would like to work on this issue as a part of my LGM-SoC'21

@Saurabh4626 can you please merge my pull request #1098


fix(url): base createURL on UiState instead of SearchParameters

Summary

This allows the URL to make sense (be filled) before the widget is mounted (like in React InstantSearch Hooks for the initial render)
Result
FX-2416: overall task
FX-2438: setup to allow createURL to use UiState, ensuring routing uses UiState on initial mount
FX-2439: refinementList
FX-2440: pagination
FX-2441: breadcrumb
FX-2442: clearRefinements (skipped)
FX-2443: currentRefinements (skipped)
FX-2444: hierarchicalMenu
FX-2445: hitsPerPage
FX-2446: menu
FX-2447: numericMenu
FX-2448: ratingMenu
FX-2449: toggleRefinement
FX-2450: tests
Both clearRefinements and currentRefinements have not been solved as it would require the whole widget to work with uiState instead of helper state (which it currently does). This should be done at a later stage, as it's unlikely to be fixable without translating manually between every possible widget's ui state and search state.
fixes #5236

That's a huge PR, is there any way to use stacked PRs instead (e.g., one for overall setup, and one per component/one for all components and their tests)?

That's a huge PR, is there any way to use stacked PRs instead (e.g., one for overall setup, and one per component/one for all components and their tests)?

You can review each commit individually :)


HttpRequestException during runtime read API call

Describe the bug
A read operation failed because connection to Cosmos DB failed with a transient network error. But what we received is a HttpRequestException which looks like a TCP timeout(SocketException(10060)) not a CosmosException. The detailed exception is shown below.
But seeing from this work item (https://github.com/Azure/azure-cosmos-dotnet-v3/issues/2093), this sort of exception should already be covered by native SDK retry policy especially for read operations. And in the exception trace there is also a "SendWithVersionDetectionAndRetryAsync()" method. So could you help confirm why we still receive this exception in our client side?
And if this exception is expected, could you suggest a way on how to perform retries for such type of network errors? For now we only retry on the retriable CosmosException according to this doc: https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/conceptual-resilient-sdk-applications
To Reproduce
Transient network error. Can't reproduce locally.
Expected behavior
Receive a CosmosException, or retry by native SDK library.
Actual behavior
Received a HttpRequestException.
Environment summary
SDK Version: 3.31.0
OS Version (e.g. Windows, Linux, MacOSX)
Additional context
System.Net.Http.HttpRequestException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (<-databaseName->.documents.azure.com:443)
 ---> System.Net.Sockets.SocketException (10060): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|277_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at Microsoft.Azure.Cosmos.CosmosHttpClientCore.ExecuteHttpHelperAsync(HttpRequestMessage requestMessage, ResourceType resourceType, CancellationToken cancellationToken)
   at Microsoft.Azure.Cosmos.CosmosHttpClientCore.SendHttpHelperAsync(Func`1 createRequestMessageAsync, ResourceType resourceType, HttpTimeoutPolicy timeoutPolicy, IClientSideRequestStatistics clientSideRequestStatistics, CancellationToken cancellationToken)
   at Microsoft.Azure.Cosmos.GatewayStoreModel.GetDatabaseAccountAsync(Func`1 requestMessage, IClientSideRequestStatistics clientSideRequestStatistics, CancellationToken cancellationToken)
   at Microsoft.Azure.Cosmos.DocumentClient.GetDatabaseAccountPrivateAsync(Uri serviceEndpoint, CancellationToken cancellationToken)
   at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.GetAccountPropertiesHelper.GetAndUpdateAccountPropertiesAsync(Uri endpoint)
   at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.GetAccountPropertiesHelper.GetAccountPropertiesAsync()
   at Microsoft.Azure.Cosmos.Common.AsyncCache`2.GetAsync(TKey key, TValue obsoleteValue, Func`1 singleValueInitFunc, CancellationToken cancellationToken, Boolean forceRefresh)
   at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.GetDatabaseAccountAsync(Boolean forceRefresh)
   at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.RefreshDatabaseAccountInternalAsync(Boolean forceRefresh)
   at Microsoft.A--TRUNCATED--

You are getting this Socket Exception: https://learn.microsoft.com/en-us/windows/win32/winsock/windows-sockets-error-codes-2#WSAETIMEDOUT
As mentioned in https://github.com/Azure/azure-cosmos-dotnet-v3/issues/2093#issuecomment-751697666 , We are retrying only on HttpRequestException not on SocketException ref. this code https://github.com/Azure/azure-cosmos-dotnet-v3/blob/5ec7b4bcd7e2e0698736cd374f2196682227c913/Microsoft.Azure.Cosmos/src/ClientRetryPolicy.cs#L71
These exceptions are generally transient and should not occur continuously. If it happens repeatedly, you should contact your networking team to find out the root cause.
There is no recommendation to handle socket exception from SDK side. It is mentioned on above comment why it is not handled in SDK.
May be you can catch and retry in your application.

can you please provide the full stack trace? and How often you are experiencing this issue?

@sourabh1007 Yes, this exception is thrown during the API call. And I see there is "RefreshDatabaseAccountInternalAsync" and "SendWithVersionDetectionAndRetryAsync" method in the stack trace. But this exception still occurred during the runtime.
Not very often. For all microsevices in all environments, there is only 8 this exception in a month.
Our log is truncated. Below one is the longest one I can get for now which shows clearly that it has already retried but still thrown. (Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync)
System.Net.Http.HttpRequestException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (cpc-csmsdb-alert-prod-altausse.documents.azure.com:443)
 ---> System.Net.Sockets.SocketException (10060): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|277_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at Microsoft.Azure.Cosmos.CosmosHttpClientCore.ExecuteHttpHelperAsync(HttpRequestMessage requestMessage, ResourceType resourceType, CancellationToken cancellationToken)
   at Microsoft.Azure.Cosmos.CosmosHttpClientCore.SendHttpHelperAsync(Func`1 createRequestMessageAsync, ResourceType resourceType, HttpTimeoutPolicy timeoutPolicy, IClientSideRequestStatistics clientSideRequestStatistics, CancellationToken cancellationToken)
   at Microsoft.Azure.Cosmos.GatewayAccountReader.GetDatabaseAccountAsync(Uri serviceEndpoint)
   at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.GetAccountPropertiesHelper.GetAndUpdateAccountPropertiesAsync(Uri endpoint)
   at Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.GetAccountPropertiesHelper.GetAccountPropertiesAsync()
   at Microsoft.Azure.Cosmos.GatewayAccountReader.InitializeReaderAsync()
   at Microsoft.Azure.Cosmos.CosmosAccountServiceConfiguration.InitializeAsync()
   at Microsoft.Azure.Cosmos.DocumentClient.InitializeGatewayConfigurationReaderAsync()
   at Microsoft.Azure.Cosmos.DocumentClient.GetInitializationTaskAsync(IStoreClientFactory storeClientFactory)
   at Microsoft.Azure.Documents.BackoffRetryUtility`1.ExecuteRetryAsync[TParam,TPolicy](Func`1 callbackMethod, Func`3 callbackMethodWithParam, Func`2 callbackMethodWithPolicy, TParam param, IRetryPolicy retryPolicy, IRetryPolicy`1 retryPolicyWithArg, Func`1 inBackoffAlternateCallbackMethod, Func`2 inBackoffAlternateCallbackMethodWithPolicy, TimeSpan minBackoffForInBackoffCallback, CancellationToken cancellationToken, Action`--TRUNCATED--

@blankor1 This is an initialization error:
at Microsoft.Azure.Cosmos.GatewayAccountReader.InitializeReaderAsync()
   at Microsoft.Azure.Cosmos.CosmosAccountServiceConfiguration.InitializeAsync()
   at Microsoft.Azure.Cosmos.DocumentClient.InitializeGatewayConfigurationReaderAsync()
   at Microsoft.Azure.Cosmos.DocumentClient.GetInitializationTaskAsync(IStoreClientFactory storeClientFactory)

It means, it is happening on the first ever request a client instance is doing, and if this is happening on runtime (when you already started the app and you already had past request) it means you are not fully following the Singleton pattern.
The SDK does have retry policies in place for HttpRequestException:
https://github.com/Azure/azure-cosmos-dotnet-v3/blob/08981bf2fd87f110ca4a1e2af5f82974857c1aaf/Microsoft.Azure.Cosmos/src/ClientRetryPolicy.cs#L85C14-L85C14
But they apply to a running client, in this stack, the client could not even finish initializing.
For initialization, there are some retries (https://github.com/Azure/azure-cosmos-dotnet-v3/blob/08981bf2fd87f110ca4a1e2af5f82974857c1aaf/Microsoft.Azure.Cosmos/src/Routing/GlobalEndpointManager.cs#L115) but they would only happen if you are specifying either CosmosClientOptions.ApplicationPreferredRegions or CosmosClientOptions.ApplicationRegion.

@ealsur has provided analysis on the basis of the exception stacktrace. Please reopen with details if you need more information regarding this.

Sorry for the late update. Thank @ealsur and @sourabh1007 for your detailed information! We will enable the CosmosClientOptions.ApplicationRegion in the future to have the retry behavior during the initialization.
I have a follow up question about this issue:
Does SDK client have a default timeout for this sort of HttpRequestException(SocketException(10060)? Or can we configure this timeout value in somewhere?
I have this question because during the Aug 30 Australia outage, we receive many HttpRequestException again in read API call. And it takes more than 16 minutes for the ReadItemAsync() API to hit the HttpRequestException.

Do you see any potential reason why the HttpRequestException response time take a fluctuating and long time to be received by the service? If it's keeping retry until the maxRetryCount 120, then it should be a relatively fix range like 120*5 seconds = 600 seconds (about 10 minutes).
Also I have 3 questions regarding the timeout configuration and cancellationtoken
I see two timeout configurations:
CosmosClientOptions.RequestTimeout: default value 6 seconds.
CosmosClientOptions.OpenTcpConnectionTimeout : default value 5 seconds.

What is the scope of these properties?
For example, if one API call(ReadItemAsync) contains a request to open a TCP connection, which value will be respected? Will these timeout values also apply on the HTTP request in the above HttpRequestException case(it's underlying is still a TCP connection)?

The doc xml has a mark (Direct/TCP) on the property OpenTcpConnectionTimeout. Does this mean it only apply to direct mode TCP connection? Will it still take effect if the client is in Gateway mode?

Can the cancellationToken guarantee to cancel a request? For example, a write request has reached the database server and has been executed, but the response timeout happened due to the network traffic, can cancellationToken cancel this write operation on the server-side?

@blankor1 I don't know why HttpRequestException might take X or Y time, the failure is not driven by the SDK. SDK sets a timeout, but if you are getting HttpRequestException it is not the timeout that is firing. I have seen HttpRequestException take 60 seconds to happen, so 60x120 = 2 hs.
Please see https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/troubleshoot-dotnet-sdk-request-timeout?tabs=cpu-new#customize-the-timeout-on-the-azure-cosmos-db-net-sdk for answers to your questions.
One clarification, OpenTcpConnectionTimeout is, by its name, applied to TCP connections, not HTTP. There is no Open HTTP Timeout, HttpClient uses the same timeout (RequestTimeout) for both steps (connection and request). Newer .NET versions added an extra setting but they did not expose it on NETStandard. If you are customizing the HttpClient with the HttpClientFactory you might want to test setting it: https://github.com/Azure/azure-cosmos-dotnet-v3/issues/3771


Question: Alphanumeric sort?

Hi 👋
This is sort of a question and a feature request mixed into a single issue depending on whether or not there already exists easy way to do this.
How do I sort a collection alphanumerically in Hugo? When I use the built-in sort function, I always end up with the wrong output for my intended use case.
For example if I have "1_something", "2_something", "11_something", "10_something" (in my case these are file names) and I try to sort them, I up with: "10_something", "11_something", "1_something", "2_something"]which is not what I'm expecting. I want it to sort it alphanumerically, not just alphabetically.
Can you guys add an alphanumericSort function to Hugo?
Is there a way for Hugo users to specify their own custom sorting functions? (couldn't find anything in the docs)

Gonna close this since I know it'll be closed anyways :(


Enhance new JDBC driver

This is derived from PR #747 focusing on below items:

[ ] basic JDBC escape syntax support
[ ] enhance prepared statement

multiple values for batch insertion
leverage JDBC escape syntax and external table for non-insert query(in a similar way as input function based approach)

[ ] share test cases for http and grpc clients
[ ] better support of AggregateFunction(and further optimization to bitmap)
[ ] implement unwrap methods to expose Java client API for JDBC users
[ ] enhance multi-format support(grpc is inconsistent with http)
[ ] fix reported issues in new JDBC driver

@zhicwu  let me know if I can help.

@zhicwu let me know if I can help.

Thank you @enqueue as always. Could you help with below items?

share test cases for all type of clients - enforce consistency and better quality
clickhouse-grpc-client was implemented first along with a few tests, and then clickhouse-http-client with almost no test. As we'll soon add clickhouse-tcp-client(using native TCP protocol), we need an elegant way to share test cases among these modules, with the ability of adding and turning on/off specific tests for certain modules. I thought about creating a new module just for testing, like a toolkit for compatibility check, but it's inconvenient for CI and VSCode(does not support multiple maven module very well). Or shared git submodule along with a configuration file in upper directory? Perhap there's better way.

review and test the Java client and new JDBC driver
I didn't intent to rewrite everything in a minor release, but one thing led to another, I rewrote the code a few times in the past months :p I have to admit it's still kind of messy and inmature, for examples: 1) introducing ClickHouseInputStream to replace InputStream scarified usability with only 5% - 10% performance gain on tiny reads; 2) ClickHouse*Value classes should be removed/generated, they're there only because they provide better performance; 3) naming and API doc - maybe I should use google translator in the first place :D
Please file issues to log your findings and we can address them one by one moving forward. I wouldn't mind to rewrite it again, but we'd better hold that until 0.3.3 or 0.3.2 will never be released :)

add benchmarks to define ideal performance
We need a set of benchmarks to define what's the ideal performance for reading and writing. They do not rely on any existing client, but directly connect to ClickHouse and issue query in the most efficient way.
Based on my testing, 0.3.2 performs much better than before with less memory footprints. I think it's mainly come from RowBinary format and maybe the new read / write paths. However, we need to understand what's the limit and which lane is faster to guide future development.

Created #769 for accidentally closed this one :p

Ad 1: In some gradle projects test fixtures are used. Perhaps a similar concept can be used in this maven project.
Ad 2: This will require some manual testing, e.g checking. how DBeaver or similar tools behave. We have added unit tests over the last couple of years, but of course they won't spot everything.
Ad 3: I don't know enough about benchmarking, so I won't be any help there. Sorry.

Ad 1: In some gradle projects test fixtures are used. Perhaps a similar concept can be used in this maven project.

Cool. Will you be able to spend some time to take care of this one?

Ad 2: This will require some manual testing, e.g checking. how DBeaver or similar tools behave. We have added unit tests over the last couple of years, but of course they won't spot everything.

Yes, I've been tried DBeaver and SQuirreL SQL. Actually I also tried DataGrip earlier but had to stop due to license expiration ;) Are you interested in code review? Any suggestion is greatly appreciated.

Ad 3: I don't know enough about benchmarking, so I won't be any help there. Sorry.

No problem. I think we can start a simple program and then add it into benchmarks.
Let me know if there's any specific item you're interested. I created a pre-release 0.3.1-test1last night, I think we just need one or two more in the coming days, and we should be able to roll out 0.3.2(in 2 or 3 weeks?).


'wsl --version' not available any more

Windows Version
Microsoft Windows [Version 10.0.19045.3570]
WSL Version
2.0.6
Are you using WSL 1 or WSL 2?

[X] WSL 2
[ ] WSL 1

Kernel Version
<IP_ADDRESS>
Distro Version
No response
Other Software
No response
Repro Steps
wsl --version
Expected Behavior
Version output
Actual Behavior
~#@❯ wsl.exe --version
Ungültige Befehlszeilenoption: --version
Copyright (c) Microsoft Corporation. Alle Rechte vorbehalten.
Verwendung: wsl.exe [Argument] [Options...] [CommandLine]
...
Diagnostic Logs
No response

/logs
I suspect the store version of WSL has been uninstalled.

Hello!
Here are the Logs:
WslLogs-2023-10-30_19-06-57.zip
Update on the issue:
--version works well as administrator:

wsl --version
WSL version: <IP_ADDRESS>
Kernel version: <IP_ADDRESS>-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25880.1000-230602-1350.main
Windows version: 10.0.19045.3570

Also the reported kernel version is newer/current here.
Looks like something went wrong during update to <IP_ADDRESS>.

Can you clarify your statement about --version working as administrator? Does it work as one user and not as the other? If so, what environment are you running with the user that does not work?

I try to clarify:
'wsl --version' works as expected in an elevated powershell session but does not work in a standard powershell session.

That is very odd. Can you run this in both?
cmd.exe /c where wsl

Standard:
~#@❯ cmd.exe /c where wsl                                                                                ❮  
C:\Windows\System32\wsl.exe
C:\Users\nmr\AppData\Local\Microsoft\WindowsApps\wsl.exe
Elevated:

cmd.exe /c where wsl
C:\Windows\System32\wsl.exe
C:\Users\nmradm\AppData\Local\Microsoft\WindowsApps\wsl.exe

I've checked the store -> wsl was missing there, after I installed from store 'wsl --version' works and shows the correct versions.
So problem fixed... but now I reproduced the issue:

~#@❯ wsl --version
WSL version: <IP_ADDRESS>
Kernel version: <IP_ADDRESS>-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25880.1000-230602-1350.main
Windows version: 10.0.19045.3570

Check for update:

~#@❯ wsl --update --pre-release
Checking for updates.
Updating Windows Subsystem for Linux to version: 2.0.7.
Der angeforderte Vorgang erfordert erhöhte Rechte.
Checking for updates.
Updating Windows Subsystem for Linux to version: 2.0.7.

This asks for elevated privileges - I don't remember this from older versions.
After the update, old issue again:

~#@❯ wsl --version
Ungültige Befehlszeilenoption: --version
Copyright (c) Microsoft Corporation. Alle Rechte vorbehalten.

--
Übergeben Sie die restliche Befehlszeile ohne Änderung.
...

Install from store again:

~#@❯ wsl --version
WSL version: <IP_ADDRESS>
Kernel version: <IP_ADDRESS>-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25880.1000-230602-1350.main
Windows version: 10.0.19045.3570

I think my problem started a bit earlier.
A week ago I tried to update from 2.0.0 to 2.0.5, this failed (see my comment on #10635).
I installed the msi package from the wsl repo -> this worked but I think this was the start of the problem.

So problem fixed... but now I reproduced the issue:

Can you share a log collection during the installation ? I'd be curious to see what's happening.
/logs

Also @Peter-76: wsl --update is not sycnhronous (meaning that the installation runs in background), so it might be worth waiting a minute or two to see if the issue goes away

Ok, some more information:
WSL seems to be uninstalled/downgraded when I reboot !?
(WSL is working as expected -> reboot -> 'WSL --version' not working)
Logs after reboot, before installation of WSL via Store:
WslLogs-2023-11-02_09-07-33.zip
Logs after installation of WSL via Store:
WslLogs-2023-11-02_09-08-03.zip
After installation:
~#@❯ wsl --version
WSL version: <IP_ADDRESS>
Kernel version: <IP_ADDRESS>-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25880.1000-230602-1350.main
Windows version: 10.0.19045.3570
Note on the log-collection-script:
The script runs with an error:

>.\collect-wsl-logs.ps1
`    Directory: C:\Git`
Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----          02.11.2023    09:08                WslLogs-2023-11-02_09-08-03
Der Vorgang wurde erfolgreich beendet
Der Vorgang wurde erfolgreich beendet.
Der Vorgang wurde erfolgreich beendet.
get-appxpackage: C:\Git\collect-wsl-logs.ps1:36
Line |
  36 |  get-appxpackage MicrosoftCorporationII.WindowsSubsystemforLinux > $fo …
     |  ~~~~~~~~~~~~~~~
     | The 'get-appxpackage' command was found in the module 'Appx', but the module could not be loaded due to the
     | following error: [Operation is not supported on this platform. (0x80131539)] For more information, run
     | 'Import-Module Appx'.
Log collection is running. Please reproduce the problem and press any key to save the logs.
Saving logs...


How to upload by asset-library in IOS

My uri is 'assets-library://asset/asset.JPG?id=ADDB18BD-F81E-4C64-BB05-D994F0D53F8D&ext=JPG'
How can I upload image by this
Thanks

Assign to filepath.

It's untested but I forked this code and added assets-library support.
https://github.com/wootwoot1234/react-native-transfer


Avoid to assume that CONDA_PREFIX is defined

Fix https://github.com/conda-forge/mujoco-feedstock/issues/49 .
cc @flferretti
Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

@conda-forge-admin, please rerender


Support stderr and test output

tl;dr:

add STDERR support to the notebook
enable the inclusion of output from Test.pm6

Recent convert to both Jupyter and Perl 6, I observed that STDERR was ending up on the console rather than appearing in the web UI. Furthermore, when creating a notebook to demonstrate some Test.pm6 behaviour all of its output went to the console.
Some digging led me to discover that $stderr was not being initialised in Result. Adding that, and then making the kernel publish it, made note work as desired.
To make Test.pm6 output appear it was necessary to reassign $PROCESS::OUT and ERR to the custom streams within the Sandbox - which themselves needed a .say method (as that's what Test.pm6 calls, not print).

Great, thank you!
(The travis test failures look unrelated).


Failing file upload should result in an error message shown to the user

No error message is shown on the client when a server-side request for file upload (sent upon choosing a file in the file browser) fails. The error is just ignored silently:

This is important, for instance, to tell the user that the uploaded file does not satisfy size or format restrictions.
Using 0.9.0-dev

Any plan or update on this?

Until we code a solution for the Image and Upload fields, here is a workaround: https://github.com/marmelab/ng-admin/issues/541#issuecomment-118265671


Add parser for Chemstation "31" format

This is an Agilent format for storing DAD data that Aston supports (although I think it may be a bit buggy) and might be pretty easy to support here too.

somehow I just noticed this. thanks!


JS interop updates

Fixes #26980
Thanks @contractcooker! 🚀 ...

I finally reached your issue. Sorry for the delay. It was a busy .NET 7 release season late last year, and I'm just now wrapping up last year's backlog issues.
Two things that I found out improving the JS interop coverage:

I found a bug in one of the examples that didn't prevent it from running ... the example just wasn't composed correctly. I found one line in the article's disposal example for instance methods that required an update. (I wish that I had known about this because I would've marked your issue as a 🪲 and worked it last year.)
Also, I found a blasted spelling error 😈 in one of the code examples 🙈 ... that HEX array byte array support example that writes out a Serenity movie quote via JS interop ... that code example misspelled one of the words in the quote. Arrrrrgh! 😠 Anyway, I spotted it, updated the HEX, and it will be fine going forward.

Assembly names aren't optional in the static method call case. The call throws at runtime if the assembly name isn't the first parameter. In the instance cases, the assembly name isn't a parameter. I've improved the section on instance method calls. I'm curious about the circumstances where you found that the assembly name is optional and the call is invoked either way. You didn't state exactly which JS interop scenario that you were working with at the time. If you found one or more cases where it looks optional and instance method calls execute either way, please put up a GH repro project or paste your code examples without and with the assembly name parameter into an issue comment back on the original issue that you opened because I'd like to research it further and see what I'm failing to understand ... I'd reach out to Javier to ask for a clarification on it for another update to this article. Currently tho, all of the instance method examples are going to show no assembly name parameter. I've made a note to follow-up on this PR with a series of example tests to make sure that the sample apps that provide this code are all working well.

Actually, let's hold here for a sec and ask @MackinnonBuck to comment on this ...
Mackinnon, can you clarify what I think I'm seeing for calling static and instance .NET methods with JS interop? ...

Static methods require the assembly name in the call. A static method and ...

✔ invokeMethodAsync('{ASSEMBLY NAME}', '{.NET METHOD ID}', {ARGUMENTS})
❌ NOT ... invokeMethodAsync('{.NET METHOD ID}', {ARGUMENTS})

Instance methods don't allow the assembly name in the call. A non-static method and ...

✔ invokeMethodAsync('{.NET METHOD ID}', {ARGUMENTS})
❌ NOT ... invokeMethodAsync('{ASSEMBLY NAME}', '{.NET METHOD ID}', {ARGUMENTS})

@contractcooker originally (maybe) said (if I'm not misinterpreting) that some non-static instance calls might require the assembly name optionally, but I haven't seen that in testing or from examples sent over by the PU.
The line that I'm adding here to the Invoke an instance .NET method section will read (in a NOTE) ...

> [!NOTE]
> `invokeMethodAsync` and `invokeMethod` don't accept an assembly name parameter when invoking an instance method.

... so obviously if there are optional cases, then that line shouldn't be added. We'll need to clarify any optional cases. Today, all instance method examples will have no assembly name parameter passed.

@MackinnonBuck ... I'm going to go ahead now and get this in and live because I have a 🪲 to squash in the example ... and a rotten spelling error 😈. I'm 👂 for your feedback on that ☝, and I'll patch things up quickly 🏃 if changes are needed based on your feedback.

@guardrex, the assembly name is not optional when invoking a static method. Maybe @contractcooker was saying that the assembly name is not always required (i.e., in the case of invoking an instance method), so thus is "optional". Although it really isn't optional, it's either always required (for static methods) or never required (for instance methods).

Good ... that's what I thought.
It looks like I just need to patch that one bit. I'll take care of that right now.


Add support for win-arm64 prebuilt binaries

Unfortunately, it's not possible at the moment due to GitHub not providing a Windows arm64 runner. You can keep track of https://github.com/actions/runner-images/issues/768 for updates.

@m4heshd maybe I am doing something wrong but I was able to generate an arm64 build of better-sqlite3-multiple-cipher on my on x86/x64 Windows PC using Visual Studio ARM build tools.

Just tested and this is technically possible now since Node has been providing Windows headers for arm since Node v20, at https://nodejs.org/dist/v20.0.0. But builds will still fail for Node v18. Electron however provided arm headers since v6.0.8. So electron builds seem to be fine.
I might add this feature but need to test it a lot before. I already tested all Electron versions and currently supported Node versions. Everything's fine except Node v18.

That's good to know.
In the meantime, I have forked this project since I need the ARM binaries for Electron quite urgently. I'll be keeping an eye out for when you release support for ARM builds so I can move back.

PR already created for the upstream at https://github.com/WiseLibs/better-sqlite3/pull/1141.
You can take a look at the tests here: https://github.com/m4heshd/better-sqlite3-multiple-ciphers/actions/runs/7853495517

Thanks for the quick response!

This feature is now available in v9.4.1.
Closing this.

@m4heshd thank you for adding this so quickly! Would it also be possible to add support for linux-arm64 prebuilds for electron?

We talked about that at BS3 but not feasible for the moment. It can be done, but due to the limitations of Qemu, it would take days for the workflow to finish if we do that. Have to wait for dedicated hardware. But who knows? This might be possible already 🤷🏻♂. We just don't have enough time to put into research sadly.

@m4heshd positive development in this area: https://github.blog/changelog/2024-06-03-actions-arm-based-linux-and-windows-runners-are-now-in-public-beta/

That is indeed great news. 🥳


Translation of bot account, auto save screenshots, and denoise strings

Added translation for:

Contacts.Bot
Settings.AutosaveScreenshotPath
Settings.Audio.NoiseSupression
Inspector.Audio.DenoiseRNNoise

Note: "Settings.AutosaveScreenshotPath" might need improvement in the future, if it will not make sense to users...
(this comment will be updated if more changes will be made before this pull request's merge/closing)

Thank you for the additions!

Thank you for the additions!


Implement WifiManager

This is quite cool.

@robbiet480 This is a really cool library! I'm using it in my Sonoff sketches. Sadly, the device doesn't have any button to reset the configuration if we would like to change some settings. However, it's possible to assume that the configuration portail should be launch if the WiFi/MQTT connection failed for the XXth time.

Just a shot in the dark, but why not use the same mechanism as the original firmware? They reset the wifi when you connect and disconnect power supply a few times in a row.

Yes! This is definitely something I'd like to see as well!


Update container-app example to expect to be 14 columns wide

More 2.0 updates may be needed, but this fixes the problem where the
secondary content is shown below the main content.

I'm not sure I understand your approach. In Bootstrap 1.4.x, the full grid was 940px (== 16*(40+20)-20), and knocking off two columns resulted in 820px (== 14*(40+20)-20). Fine.
In the new version, the full grid is still 940px (== 12*(60+20)-20), but  you can't get to 820px with an integral number of columns. 10 columns are only 780px wide, 11 columns are 860px. So you're wasting 30px. Is that intentional? Maybe
for an example it doesn't matter much…
Also, for what it's worth, your change significantly alters the proportions of widths of the two content areas.

I will say this again. Core concept for container-app example was to make the content feel a bit tighter and more cohesive. That's why it was shrunk to 820px. This removes two full columns from the grid.
Second. You're right about proportions. It should be span7 + span3

OK, I understand it was meant to be more compact.
Forcing the width to 820px used to remove two full columns from the grid, but with the new twelve-column layout, it doesn't do so any more. It should either shrink to 780px (10 columns) or expand to 860px (11 columns), unless you actually want to leave 30px of dead space on the right.

Thanks for figuring this out guys—merged in @OpenGrid's change and handled it there.


<EMAIL_ADDRESS>is returning False

Bug Report

Q
A

Version(s)
v0.0.0-20210307081110-f21760c49a8d

Summary
This code is not working and returns false
package main

import (
	"fmt"

	"github.com/asaskevich/govalidator"
)

func main() {
	fmt.Println(govalidator.IsExistingEmail("john@doe.ca"))
}

Current behavior
Returns False but should return TRUE
How to reproduce
Playground: https://play.golang.org/p/Sw2aR6bg_jG
Expected behavior
Should return TRUE

I figured it out isEmail uses the MX lookup and fails so i used fmt.Println(govalidator.IsEmail("john@doe.ca")) and it worked.


inegrate activity log with any no sql database

hi,
if i have some crazy loging record can i integrate this package with elk Stack or some mongo db to save logs any where out of my  database ???
thanks

Hey,
we allow to customize the activity model in the config. The custom model should implement the Spatie\Activitylog\Contracts\Activity interface. So you could create a custom model, use jenssegers/laravel-mongodb for example and everything should be fine.
This is also related to #81

Thanks @Gummibeer But still no luck for logstash and elastic right ??

If you find any eloquent package which works with them it will work. But we only provide the basic eloquent implementation and don't care about the underlying database.
To bring them in elastic for read you could use laravel scout with one of the available ES drivers. But this is only for read and you still need a database which persists everything.

https://packagist.org/packages/sormagec/laravel-activitylog-mongo is a fork of laravel-activitylog that  works with mongo

Why a fork? A simple extension that adds a new activity model would be enough? 🤔

Hi, can you please explain how to implement this package with Jenssegers mongodb? I tried many times and it is not working. Thanx

Could you provide your exact problems?

Thanks for quick reply. I implementing Spatie\Activitylog\Contracts\Activity interface into my model but then getting Class App\Province contains 7 abstract methods and must therefore be declared abstract or implement the remaining methods (Spatie\Activitylog\Contracts\Activity::subject, Spatie\Activitylog\Contracts\Activity::causer, Spatie\Activitylog\Contracts\Activity::getExtraProperty...
i know it's begginers question but i'm begginer :)

The interface defines a public API without implementing them. So it only tells you that this method has to be defined by the class implementing the interface.
You can check out the package model (for SQL database) to copy the methods or adjust them if needed.

OK, got it :) Thank you very much

Hey,
we allow to customize the activity model in the config. The custom model should implement the Spatie\Activitylog\Contracts\Activity interface. So you could create a custom model, use jenssegers/laravel-mongodb for example and everything should be fine.
This is also related to #81

I'm not able to integrate mongodb in activity log

Hey,
we allow to customize the activity model in the config. The custom model should implement the Spatie\Activitylog\Contracts\Activity interface. So you could create a custom model, use jenssegers/laravel-mongodb for example and everything should be fine.
This is also related to #81

I'm not able to integrate mongodb in activity log
try
https://nickdevs.wordpress.com/2022/05/17/laravel-laravel-activitylog-inegrate-activity-log-with-mongodb/

Same problem


Question - Set Reduction By Relation Specification

Hi all:
Question, not a bug!  I save a simple set of Models and relations.
Study hasMany Assessment, Assessment hasMany Responses
I care to get just the Responses.  I have a Study.id value and an Assessment.id value.  I want to fetch those models constrained to the two ids I have.  I see how I can do that in one example below using through, but I do not want to have fold response all the way back up to Study, I want to leave its relationship definition in Assessment.  Tips?
// DEFINE MODELS
var Study = bookshelf.Model.extend({
    tableName: 'study',
    assessment: function() {
        return this.hasMany(Assessment);
    }
    // grumble grumble - this works, but i don't want it defined Study
    // ,response: function() {
    //     return this.hasMany(Response).through(Assessment);
    // }
});

var Assessment = bookshelf.Model.extend({
    tableName: 'assessment',
    response: function() {
        return this.hasMany(Response);
    }
});

var Response = bookshelf.Model.extend({
    tableName: 'response',
    assessment: function() {
        return this.belongsTo(Assessment);
    }
});

// METHOD 1 - FOLD RELATION QUERY INTO STUDY
// new Study({id: 2}).response().then(...) // this works, i get responses!

// METHOD 2 - YOUR TIP?
// Something like
//  new Study({id: 2}).assessment({id: 100}).response().then(...)
// the goal is to to reduce the final set as I go left to right, directly referencing
// related models and filters, constraining relationships as I go.  i have a feeling
// this is already possible, I just don't know how to express it

Thanks!

The project leadership of Bookshelf recently changed. In an effort to advance the project we close all issues older than one year.
If you think this issue needs to be re-evaluated please post a comment on why this is still important and we will re-open it.
We also started an open discussion about the future of Bookshelf.js here https://github.com/bookshelf/bookshelf/issues/1600. Feel free to drop by and give us your opinion.
Let's make Bookshelf great again


import error when trying to run the example on homepage

Hello, I pip installed timemachines 0.7.2 with python3.8.5 on Ubuntu 20.04 LTS successfully. I can import timemachines package. But can't run the example on homepage due to missing imports on the first line:
from timemachines.skatertools.data import hospital_with_exog
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-2-e7d8e2dd7f0b> in <module>
----> 1 from timemachines.skatertools.data import hospital_with_exog
      2 from timemachines.skatertools.visualization.priorplot import prior_plot
      3 import matplotlib.pyplot as plt
      4
      5 # Get some data

ImportError: cannot import name 'hospital_with_exog' from 'timemachines.skatertools.data' (/home/crayonfu/myProjects/ts_test/bt_venv/lib/python3.8/site-packages/timemachines/skatertools/data/__init__.py)

I can't find the class of hospital_with_exog in the directory of timemachines/skatertools/data on github repo. Am I missing something here? Thank you.

nvm. I find the hospital_with_exog function in  timemachines/skatertools/data/real.py and can import it. maybe the example on the home page needs to be updated a bit.

Thanks ... give me one second

Horendous! I make k compulsory and forgot.
Anyway should be fixed now... https://github.com/microprediction/timemachines/blob/main/README.md
Added examples/basic_usage too

Closing. Hopefully, it works now. Sorry about that.


Warn on Save when auto-formatting fails

When saving a file with editor.formatOnSave settings on it would be great if VSCode would issue a warning (A dialog modal asking if I'm sure I want to save this file) when formatting fails.
Otherwise the file would be saved, webpack/tsc would start processing the faulty file, I would have to fix the issue, re-save it and wait for webpack/tsc to finish processing the faulty file.
This could save previous time when dealing with a large repository.

Why is a non formatted file faulty? Formatting is all about inserting/removing whitespace and shouldn't impact compilation.

Prettier fails when the file has syntax errors. Your second point is correct, but inserting/removing in a large repo, with Webpack source-maps enabled takes a bit of time (10sec per build)
This use-case might be too specific and it might very be that we're the only ones affected by it, I'm just throwing it out here.

Prettier fails when the file has syntax errors.

Yeah, that might be but then formatting isn't the issue but syntax errors are. That should already be reported in the editor (squiggles at el) and after saving the compiler should also tell you about those errors. It seems that the real issue is that you aren't happy with the compile speed in your project.

Lol. You're probably correct. I'll try fixing that :)


TaskCompletionSource and CancellationToken not implemented

TaskCompletionSource and CancellationToken are not currently implemented in the Bridge.NET library.  These two classes are very important to async/await code and should be available. Note that CancellationToken is a structure.  Issue #789 covers an issue with how structures are handled.

Thank you for the request! We'll be investigating.


how to make sure 9.5 is running on travis?

invalid syntax in 9.4 https://travis-ci.org/ralphtheninja/pgdown/jobs/111322545#L588

https://github.com/ralphtheninja/pgdown/commit/080a3d6c409e348af87ac1e08402c8df11bbaa90


Re-evaluate Explicit SIMD Aggregations

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

We currently only have explicit SIMD kernels for min, max and sum. This is a non-trivial additional complexity, and relies on features not present in stable Rust.
Describe the solution you'd like

Historically LLVM has struggled with auto-vectorisation of horizontal operations like aggregates, and this has been why we've kept these kernels, however, it is possible this has since improved. We should assess whether it is possible to eliminate the need for explicit SIMD kernels, and potentially remove them
Describe alternatives you've considered

Additional context

https://github.com/apache/arrow-rs/pull/4560 contains some experiments for improving the auto-vectorisation of aggregates

I started working on this and #5031 and think I have found a way to generalize the approach from #4560 and get auto-vectorization also for MIN/MAX. Still need to clean up the code further and run more benchmarks.

Awesome, I presume you are also aware of https://github.com/apache/arrow-rs/issues/5031?

@tustvold I must have missed or forgotten that the compare kernels and arithmetic div/mod also no longer use explicit simd. Just to confirm, all the methods in ArrowNumericType behind the simd feature would no longer be needed once aggregation stops using them?

Correct, it would definitely simplify things to no longer have nightly only functionality

label_issue.py automatically added labels {'arrow'} from #5100


BoundaryConditions metadata incorrect / type coercion error

So we're getting values that we probably don't want in our boundary conditions metadata.
We should have a look at what we want to store for things like resolution and lat/long values.
cams_resolution': "<xarray.dataarray 'latitude' ()>\narray(0., dtype=float32)
x <xarray.dataarray 'longitude' ()>\narray(0., dtype=float32)",

Can't recreate the problem


Update zio, zio-test, zio-test-sbt to 2.0.15

About this PR
📦 Updates

dev.zio:zio
dev.zio:zio-test
dev.zio:zio-test-sbt

from 2.0.4 to 2.0.15
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "dev.zio" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "dev.zio" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #83.

Superseded by #90.


fix search box issue

This PR fixes some issue with the table header
when typed in the search box

The result is displayed horizontally
For query editor, a not implemented exception is thrown

Before:

After:

yeah, yarn run watch didn't catch the compilation issue, I have to rerun it to make it show up locally.

Pull Request Test Coverage Report for Build 742118067

0 of 6 (0.0%)  changed or added relevant lines in 1 file are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.005%) to 43.546%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/sql/base/browser/ui/table/plugins/headerFilter.plugin.ts
0
6
0.0%

Files with Coverage Reduction
New Missed Lines
%

src/sql/base/browser/ui/table/plugins/headerFilter.plugin.ts
1
0.63%

Totals

Change from base Build 739683685:
-0.005%

Covered Lines:
26179

Relevant Lines:
54937

💛  - Coveralls


Barcode - 44 digits

Hi developers,
I have a sample Xamarin Forms application and i'm using Zxing.Net.Mobile.
I can read QR Codes, ITF Small codes but, I can't read barcodes that has 44 digits.
My ideia is with app, read bank slip some figure below:
http://s.glbimg.com/po/tt/f/original/2013/04/15/imagem-fake-banco.jpg
How do this?
It is my simples code:
`public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
}
async private void openScanner_Clicked(object sender, EventArgs e)
{
    var opts = new ZXing.Mobile.MobileBarcodeScanningOptions
    {
        PossibleFormats = new List<ZXing.BarcodeFormat> { ZXing.BarcodeFormat.QR_CODE, ZXing.BarcodeFormat.ITF,
            ZXing.BarcodeFormat.All_1D, ZXing.BarcodeFormat.EAN_13, ZXing.BarcodeFormat.CODE_39, ZXing.BarcodeFormat.CODE_128,
            ZXing.BarcodeFormat.PDF_417, ZXing.BarcodeFormat.UPC_EAN_EXTENSION
        }
    };

    opts.TryHarder = true;
    var barcodeReader = opts.BuildBarcodeReader();
    barcodeReader.Options.AllowedLengths = new[] { 44 };

    ZXingScannerPage scanPage = new ZXingScannerPage(opts);

    scanPage.OnScanResult += (result) => {

        Device.BeginInvokeOnMainThread(() => {
            Navigation.PopAsync();
            DisplayAlert("Scanned Barcode", result.Text, "OK");
        });
    };

    await Navigation.PushAsync(scanPage);
}

}`

Thanks for reporting this issue!  Unforunately it took me way too long to respond 😭.  Sorry, I apologize!  Recently the source code for this project was completely refactored to modernize it.  Many PR's were included in this effort, and many bugs were hopefully fixed.  Please try out the latest 3.x series of NuGet packages (currently in prerelease).  To try and make the project more maintainable in my spare time going forward, I've decided to close all existing issues to start with a clean slate.  If you're still experiencing this issue on the newest version, please open a new issue with as much detail as possible.  Thank you for your patience and understanding!  Happy scanning!


Add Codeclimate

WHY?
See #24
WHAT?
Adds .codeclimate.yml (configuration file) and a badge to README.md
Resolves #24

Coverage remained the same at 88.525% when pulling 97f41366af438a3cdbeedfcb4bec37545699ed40 on feature/codeclimate into 259eac4af47ae8a35ed39cc07f4327eb6b8f0b61 on master.

Coverage remained the same at 88.525% when pulling ca320011274439eb898e6c24101d53c239eac462 on feature/codeclimate into 259eac4af47ae8a35ed39cc07f4327eb6b8f0b61 on master.

Error: see https://github.com/tkqubo/codeclimate-tslint/issues/4

Changes Unknown when pulling cbc25396d9d2fbfc7ce231675174418f6ba043c2 on feature/codeclimate into ** on master**.

Changes Unknown when pulling d88193962f978bd7568cb3aed8eab0125928f36a on feature/codeclimate into ** on master**.

Changes Unknown when pulling 1ff178708720248c0acbf38e5890a7a35f418f05 on feature/codeclimate into ** on master**.

@olliahonen fixed the issues with this one, it needs a new approval

Coverage remained the same at 90.278% when pulling 5c0921e35ee579d85315f90cfe22d0ed1be05245 on feature/codeclimate into d0d232f6a2709a2a44886080d582dfa6fe143c41 on master.


42singapore

@bwyyoung First stage of verification passed, official domain for 42 Singapore is student.42singapore.sg as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.


Add repositories attribute to gitea_team resource

Is your feature request related to a problem? Please describe.
Missing attribute to specify repositories when creating team with include_all_repositories = false.
Describe the solution you'd like
I want an attribute that specifies the target repository as follows.
resource "gitea_team" "test_team_restricted" {
  name                     = "Restricted Devs"
  organisation             = gitea_org.test_org.name
  description              = "Restricted Devs of Test Org"
  permission               = "write"
  members                  = [gitea_user.test.username]
  include_all_repositories = false
  repositories             = [gitea_repository.test.name]
}

Describe alternatives you've considered
None.
Additional context
I will create a pull request for this issue.

Released as v0.13.0 . Thanks again for raising this and implementing this feature at the same time 💯


Using Google Cloud Datastore API in Python Code

Hi @dhermes ,
I am trying to Implement Google Cloud DataStore in my Python Django Project not running on Google App Engine.
Can it be possible to use Google Datastore without having the project run on Google App Engine ?
If yes, Can you please tell how to retrieve the complete entity object or execute the query successfully, if possible ?
The below code snippet prints the query object but throws an error after that.
( I have a valid project. It prints the correct project if i try to print the value of key)
Code Snippet:
from gcloud import datastore
entity_kind = "EntityKind"
numeric_id = 1234xxx89

client = datastore.Client()
key = client.key(entity_kind, numeric_id)
query = client.query(kind=entity_kind)
print(query)
results = list(query.fetch())
print(results)

Error:
NotFound: 404 The project gxxxp does not exist or it does not contain an active App Engine application. Please visit http://console.developers.google.com to create a project or https://console.developers.google.com/appengine?project=gxxxp to add an App Engine application. Note that the app must not be disabled.
Thanks

Did you follow the recommendation in the error?

Thanks @dhermes for your reply.
I have a valid Google Project. But No Active App running on Google App Engine. I wish to use Google Datastore API without using the Google App Engine. Is it possible ?

I don't think so. You should file an issue on https://github.com/GoogleCloudPlatform/google-cloud-datastore to double check (and also people in the future can find out there).


Make utimensat wrapper optionally take timestamps

Right now, you have to pass both mtime and atime to the utimensat syscall wrapper. Infact, this is not required, and you can skip one of them by setting it to the magic value UTIME_OMIT. We should allow this. I'm not sure if this is a "stable" API or not.

Yes, I also want this. See #1834

Closing as duplicate of #1834.


Loss function

Hi,
Can you tell me where did you define the loss function? I want to apply a modification to it and test it out
Thanks,

After my whole day study, I found the loss is defined in the contrib.YoloOutput whose source codes are in the src/operator/contrib/yolo_output-inl.h. And there are other files(.cu .cc) about yolooutput should be considered.


[RELAY][TF] Support symbolic newshape for Reshape

Make reshape's newshape allow relay.Expr
Handle dynamic shape introduced by symbolic newshape
Output of reshape may depend on both shape of data and data of newshape

@jroesch @icemelon9 Could you please review? Thanks

cc @yongwww for another round of review.

@tqchen @kevinthesun I've changed newshape to Optional. Please take a look, thanks

Thanks @lixiaoquan @icemelon9 @tqchen @yongwww This is now merged.


Capture image was flipped horizontal and had green screen

Thanks for your public code.
I ran your code and had some issues that the image captured by Camera was flipped and had screen

Interesting. I'll need to look into it then. It might be the C code that's causing it

Interesting. I'll need to look into it then. It might be the C code that's causing it

@Hugand thanks for your fast reply.
I had checked and realized that if i used android 7 or higher. It worked well excepted having green bar at the bottom, and that bar pushed the image. It seemed that the bar wasn't a part of image.
If i used android 5, then the result was this issue i opened (green screen and flipped)

@Hugand thanks for your fast reply.
I had checked and realized that if i used android 7 or higher. It worked well excepted having green bar at the bottom, and that bar pushed the image. It seemed that the bar wasn't a part of image.
If i used android 5, then the result was this issue i opened (green screen and flipped)

@Hugand please can take a look in that issue. I have the same issue

@assanbayev Yes of course. Can you provide more details on the device you're using and the android version?

@Hugand Hi. Thank you for responce. On xiaomi divices image has green bottom bar. on sansung some huawei, android 8, galaxy s20, android 11, samsung a51 android 10 works well. Bun on xiaomi note 8,note 9, and on some redmi it has the issue. on working devised u or v array length is equal to ((y array length)/2 -1) and on not working devices there's lack of u and v array bytes. For example in that image y = 168592, u = 184271, v = 184271

Why there's additional bytes on xiaomi devices? I  mean 480*720=345600 and its not what we have in y array 268592. Thats the problem


Upgrade dependency

Signed-off-by: Vacha<EMAIL_ADDRESS>Description
Upgrading guava, commons-io and apache-ant dependencies in OpenSearch.
Issues Resolved
Closes #1551, #1552, #1554.
Check List

[ ] New functionality includes testing.

[X] All tests pass

[ ] New functionality has been documented.

[ ] New functionality has javadoc added

[X] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

start gradle check

@VachaShah could you also backport this change to 1.x?


Add more verbose test skipping

As promised, here is an implementation of test skipping that reports which tests were skipped. I think this adds too much noise to the test file, but maybe it is worth it to give the user more information. Each test would have to carefully be created with its own condition(pending(hello_world_with_a_name)) and the name is duplicated in each test goal. Here is the output:
ERROR: /Users/parker/code/xprolog/exercises/hello-world/hello_world_tests.plt:19:
	test hello_world: failed

skipping hello_world_with_a_name
skipping hello_world_another_name done
% 1 test failed
% 0 tests passed

and when the test passes:
% PL-Unit: hello_word .
skipping hello_world_with_a_name
skipping hello_world_another_name done
% test passed

Ok, @kytrinyx @qjd2413 I think I'm settling for this.
Testing hello_world
% PL-Unit: hello_word .
A TEST IS PENDING!

A TEST IS PENDING!
 done
% test passed

I feel it is important for this track to be able to skip tests because many of our tests will pass with the initial implementation. This is due mostly to Prolog's nature. I think that being able to control what test fails when will be important to user's success with this track.
I await your review, but am going to move ahead with updating the problems with this implementation.
Thanks

Closing in favor of #26


Godot 4 running in 5fps randomly

Godot version
4.1
System information
Windows 10 no vulkan support
Issue description
Hi there,
I've started using godot 4 for the last couple of days but for the last 2 days my godot 4 is running 0 - 5fps it was working with no issues before the last 2 days and it really frustrated me.
I've tried restarting pc, restarting godot and even tried an empty project but whatever I've done it's the same result.
I do not know the reason for this. Thanks
My specs are
I5-3340 with 4 cores and integrated gpu (4th gen)
500gb hdd
Steps to reproduce
I've tried restarting godot
Minimal reproduction project
Do not have a file

Can you reproduce this if you enable Update Continuously in the Editor Settings?

Did you see task manager if there are heavy apps running in background.Do a malwarebyte check.Try using CoreTemp to assess CPU temperature and also is there any performance downgrade in other applications.See if you can downgrade or restore your pc as well.

Hi

Sorry for the late replies,
I've tried everything mentioned above and seen no improvement, my cpu temperatures are very low as you can see in the image attached, it was very random that its running at 5 fps
All other games run absolutely no issues what so ever.

Does this occur after uninstalling RTSS? It tends to cause trouble with Godot.

Closing due to lack of response. Please comment if you can still reproduce this bug on the latest Godot version.


[Light Side] icon vs [Light Side Force] icon?

There is inconsistency between how gametext references a force icon.
e.g.

In some cases, a card will say [Light Side Force] icon(s) and in other cases it will say [Light Side] icon(s).
Which should we standardize on and would we want those also applied to legacy cards?

I think [Light Side Force] makes more sense, and I like the idea of standardizing it.

Any official text that is spelled out instead of using the image will use [Light Side] because that's what the proofing team uses. The AR has two examples that are both [Light Side].

[Light Side] it is!

Would you want that applied to legacy cards too?

I think so. It makes sense to standardize it.

(I hate the legacy cards.  Wish they could be archived into Light.legacy.json or something.)

We could create a separate issue for this, but I agree; I think it could be great to have separate json files for the Decipher/Virtual/Legacy cards.

FWIW,  I'd be fine with moving the legacy cards into their own files.  If someone has time to do this, go for it!

[Light Side] it is!

Agreed!  If someone has time for this, I'll happily approve the PR

I'll get on it likely tomorrow now that my backlog of PR's have been approved and merged.

Awesome. Thanks Ron.  I very much appreciate your work on this!  Sorry it takes me a while to post back on PRs / issues. I've been trying to limit my technology duties to just a few days per week.


chore: upgrade important packages

Why
Upgrades some important packages (specially Reanimated)

How

Test Plan

Seems like reanimated upgrade breaks our Tab view component - or its Expo Image. I'll have to make a dedicated test.


请问获得训练好的词向量的值？ How to get the pretrained embedding_table?

I wanted to know how to get the word embedding after I pretrain the model. Are there someone kindly tell me?

https://github.com/google-research/bert#using-bert-to-extract-fixed-feature-vectors-like-elmo

After get the token_ to_ orig_ Map, how to get the embedding of each word? For example, if a word is divided into three segments, can we directly calculate the average of the three segments?


Binary is not portable

I think this is a weird case, but I compiled on OS X, and ran on Linux. Since I compiled on OS X the netty jar doesn't have the correct native netty library but the JVM reports Linux as the OS so timely tries to use the native netty NioEventLoopGroup, instead of the epoll ones.
I think we should allow an option to force epoll over native from some config option. Or we could do netty mode options as epoll,native,auto defaulting to auto so it is the current behavior.

The os-maven-plugin creates a set of maven properties based on the architecture of the machine on which you are building the project. The server pom file uses the os.detected.classifier property to grab the correct version of the netty-tcnative dependency for your machine. You should be able to override the value of the property on the command line like so: mvn clean package -Dos.detected.classifier=???, where ??? is one of the correct classifiers.

I'll give it a shot. Perhaps we should make the build always use Linux and
have the Server.java code just do epoll for non-Linux. Supporting OS X for
production isn't really a requirement in my mind.
On Sunday, June 26, 2016, Dave Marion<EMAIL_ADDRESS>wrote:

The os-maven-plugin creates a set of maven properties based on the
architecture of the machine on which you are building the project. The
server pom file uses the os.detected.classifier property to grab the
correct version of the netty-tcnative dependency for your machine. You
should be able to override the value of the property on the command line
like so: mvn clean package -Dos.detected.classifier=???, where ??? is one
of the correct classifiers.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/NationalSecurityAgency/timely/issues/28#issuecomment-228603138,
or mute the thread
https://github.com/notifications/unsubscribe/AAmkIKvqYvF2u9Y3uHzDwPJH7dqh-5HCks5qPoewgaJpZM4I-JyL
.

Do you have a stack trace?

Maybe we just need to tweak the logic in Server.useEpoll(). I think the only code that uses a native library though is the OpenSSL code. Two different issues, so I am a little confused as to which one you are hitting.

Caused by: java.lang.IllegalArgumentException: Failed to load any of the given libraries: [netty-tcnative-linux-x86_64, netty-tcnative-linux-x86_64-fedora, netty-tcnative]
at io.netty.util.internal.NativeLibraryLoader.loadFirstAvailable(NativeLibraryLoader.java:167)
at io.netty.handler.ssl.OpenSsl.(OpenSsl.java:78)
... 9 more

Ok, I don't think this is an epoll issue, and I think it is directly related to the os.detected.classifier build property.

Timely uses the (netty-tcnative) [http://netty.io/wiki/forked-tomcat-native.html] module to provide native access to OpenSSL. The correct version of the artifact is downloaded during the build. If you are building for a different platform, then you can override the classifier by specifying the os.detected.classifier property on the Maven command line. See the netty-tcnative wiki for more information.

I'll update the wiki with the text above.


Enhancement: XMem mask video propagation as CVAT AI Tools polygon tracker

My actions before raising this issue

I read/searched the docs
I searched past issues

There is a great instance segmentation mask propagation tool [ECCV 2022] XMem: Long-Term Video Object Segmentation with an Atkinson-Shiffrin Memory Model by Deep learning researchers Yue Zhao and Rex Cheng.
We have a video, and one instance segmentation mask for the first frame of our video.
We give them to the neural network and it predicts masks for all other frames.
There is a link to git repo.
Features:

Handle very long videos with limited GPU memory usage
Quite fast. Expect ~20 FPS even with long videos (hardware dependent)
It doesn't have any special list of classes. We can annotate by mask everything (Unlike SiamMask, which has a specific set of classes that it can work with)

They have a Colab demo with their neural network link. There are easy launch and simple code that can be integrated.
The example from the link is great for creating a potential CVAT interactor of mask polygon tracker type )
There are some demo on video:

link1
link2

It works great and looks as fantastic.
This DL model also have a GUI. We can annotate mask for some objects and then propagate masks for them through all video.
It's interesting that the creators use f-BRS for creating instance segmentation mask for future mask propagation.
CVAT have f-BRS as segmentation interactor too.
But in general, it is not so important what the preliminary mask is created with.
I think other CVAT's AI tool's interactors will work great too (for example HRnet).
It seems like a very intresting tool for CVAT for video instance segmentation tool.
Context
Get a powerful instance segmentation annotation tool for video )

My tests have shown that XMem is not lost among many objects with the same texture as the selected mask.
It's also great. For example, another neural network MiVOS jumped from one fish to another when propagating masks.

I also think "Xmem for automatic annotation" is an excellent enhancement project.

Given the segment results requested per frame, should we have long-term memory for each user?
The memory reset problem may occur by another user while using Xmem.

I think you are right. Most likely we need a separate memory for each user.


The CLA link is broken in the CLA bot

Describe the bug:
The cla bot is pointing me to a non-existing url:
https://github.com/otterize/cla/blob/main/otterize-individual-cla-v1.0.mdx

Expected behaviour:
The CLA link actually works :) I couldn't find any reference to that particular link in this repo, the cla-bot repo, nor the otterize docs. I assume it's in your internal config ;)
Maybe a good idea would be to keep the CLA document together with the repo contributing to? (I.E. This repo)
Steps to reproduce the bug:
Create a PR, wait for cla-bot to post a comment.

Thank you, fixed! Correct link is here: https://github.com/otterize/cla/blob/main/otterize-individual-cla-v1.0.md


some bugs on getmdl.io

it is pretty buggy right now:

in the footer there’s no space between the links:

the components docs contain broken markup:

Both already fixed. Just waiting for next site refresh.


Showing Leave channel for guest accounts in town square

Summary
Showing Leave channel for guest accounts in town square
Ticket Link
MM-19426

Creating a new SpinWick test server using Mattermost Cloud.

Mattermost test server created! :tada:
Access here: https://mattermost-webapp-pr-3961.test.mattermost.cloud

Account Type
Username
Password

Admin
sysadmin
Sys@dmin123

User
user-1
User-1@123

Test server destroyed

Creating a new SpinWick test server using Mattermost Cloud.

Test server creation failed. See the logs for more information.

Test server destroyed


Internet provider with proxy compression - Ajax Call breaks yii2 site

What steps will reproduce the problem?
Use mobile net with proxy, compressing site into one file. (css, js is included in main dom)
Try to do Ajax Call.
What is the expected result?
Working site.
What do you get instead?
After Ajax call site is broken.
Additional info
js,css file cannot filtered out because proxy did modify the output.

Q
A

Yii version
2.0.9

PHP version
5.6

Operating system
Linux

It what exact way your assets are being broken?

js,css file cannot filtered out because proxy did modify the output.

What kind of filtration you are talking about?

I think i found the answer as well:
Yii::$app->response->headers->set('Cache-Control','no-transform');
that tells the proxy that code should not be transformed into one page design. (proxy does not includes the js, css files into the html code)


Add duplicates rules

Closes #89
Closes #113

Closes #118
Unless 118 should cover bigger scope than variables section? @mnojek

I've discovered that I need to normalize keyword names too, I will update this PR

Closes #118
Unless 118 should cover bigger scope than variables section? @mnojek

I think variables section is a good start. We can always extend it.


⚠ Turnos 24x7 has degraded performance

In a3c30bc, Turnos 24x7 (https://reservas-dev.alternativasinteligentes.com/) experienced degraded performance:

HTTP code: 200
Response time: 942 ms

Resolved: Turnos 24x7 performance has improved in 552791d.


RFC: Cookie Backdoor for Invalid Cookies

" or ,

Are characters that often end up in cookies despite the fact they are illegal. We cannot parse the cookie correctly so. However that means people have to brew their own parsers for their illegal cookies.
Perhaps we can make this easier in some regard. Discuss.

Right now, header parsing is a global registry that's awfully hard to customize.  I've thought about making it a parameter of the backends, that can be customized, but we're currently able to parse headers constructed straight from Strings without any backend reference.  I think the lazy header parsing model is an obstacle to configuration.
A simpler answer might be to relax these given real world use.

Hi there, relaxing the parser sounds great! we just ran into an issue where invalid cookie names and values that are set by some wonderful third party scripts at the other end of our organisation would make customers on our end run into no-cookies-provided based app states (session timeout, not logged in etc) as the parser appears to be failing silently, returning no cookies at all if there's a bad one 🙃
Not sure how relevant, but it looks like in akka-http invalid cookies are simply dropped and only valid ones returned.

So all the cookies should always be available as raw headers, but that's not exactly convenient.
The akka-http compromise doesn't sound unreasonable.

Already got the issue with third party cookie

Starting in 0.22, headers are a typeclass, and it's possible to define both a strict cookie and a lax cookie, and relax it however you need.


No Affiliations for a Group Returns Null in the User Self Dashboard

Bug:
When a group has not affiliations, the return value of the group affiliation is null, which places an empty space in the user's list of affiliations
Expected:
A group can have no affiliation, and it should not affect the user's dashboard

@timcortesi confirmed, fixed


provide migration advice for early initializers

some previous discussion on this: https://github.com/scala/scala/pull/8370
the Scala 2 warning (only emitted under -Xsource:3) says:

warning: early initializers are deprecated; they will be replaced by trait parameters in 3.0, see the migration guide on avoiding var/val in traits

at the time that message was written, no such migration guide existed, but now that this repo exists, I guess we can keep that wording :-)

We now have a table of incompatibilities that comprises the early initializers:
https://scalacenter.github.io/scala-3-migration-guide/docs/incompatibilities/dropped-features.html#early-initializer


ToolResources property is missing in AssistantResponse model

Describe the bug
ToolResources property is missing in the AssistantResponse model but it is present in JSON response from OpenAI API

solved in 8.6.0


resource_manager: add watch for resource group

Signed-off-by: husharp <ihusharp@gmai;.com>
What is changed and how it works?

Issue Number: Close #13983
What's Changed:

- add etcd mock for pd
- add service for resource group

Check List
Tests

Unit test
Integration test

Release note
None

/cc @glorv @nolouch @JmPotato friendly ping :)

Noticed a new failure. cases::test_pd_client::test_backoff please fix it.

/test

Noticed a new failure. cases::test_pd_client::test_backoff please fix it.

Seems like a ci detection problem🤔

/retest

Are you using the stale proto lib now?

Are you using the stale proto lib now?

Seems like we can not use reserved 7; by error pdpb.proto:164:14: Missing numeric value for enum constant.
I am not sure...

according to https://github.com/wechaty/grpc/issues/116, need protoc >= 3.5. our ci is too old:

any blocking issue left? @HuSharp If no, please try let it merged.

please run make format to cleanup unused import etc.

@Connor1996 PTAL

I think the logic is correct now.

Thx for ur comments!

@nolouch @Connor1996 @JmPotato  friendly ping :)

/merge

/retest

/test


/campaigns Page Not Displaying Properly for BR and MX experience

BUG
Current Behavior
The /campaigns page on BR and MX are presenting campaigns in English. When clicked, some campaigns 404, some campaigns go to the BR or MX translation (clicking on an English icon on /campaigns goes to a Portuguese pitch page, for example), and in some cases the URL changes but the /campaigns page simply refreshes.
Desired Behavior
Taking MX as an example:
The /campaigns page should show campaigns that are translated into Spanish and GL EN. Campaigns translated into Spanish should appear in Spanish on /campaigns. Campaigns translated into GL EN should appear in English on /campaigns.
No campaigns should 404 when clicked. All campaigns should bring users to the campaign pitch page of the campaign when clicked. Destination URLs should all be of published translations/campaigns.
Steps to Replicate
Go to https://www.dosomething.org/mx/campaigns or https://www.dosomething.org/br/campaigns and look at the campaigns listed. It seems that:

all campaigns are appearing in English, regardless if they are translated or not
When clicked, campaigns that are only in GL EN and US EN end up in a loop and while the URL changes in the top bar, the /campaigns page reloads. The URL looks incorrect -- showing /campaigns/ vs. /voluntario/ (From /campaigns: https://www.dosomething.org/br/campaigns/visionary-volunteer?source=campaigns, From the homepage: https://www.dosomething.org/br/voluntario/atualize-seu-status)
Campaigns are all being presented in English on /campaigns. however, when clicked, campaigns that are translated in BR PR or MX SP go to translated pitch page. (This campaign, Staring with the Stars, is appearing in English on /mx/campaigns, but when clicked it takes you to: https://www.dosomething.org/mx/voluntario/mirando-con-las-estrellas?source=campaigns)
Additionally, some unpublished translations are present on /campaigns, and are 404ing when clicked (Bookmark Climate Change -- https://www.dosomething.org/mx/voluntario/marca-el-cambio-climático?source=campaigns -- , Not Stuck in Traffick, Repoppin, etc)
The one exception is Don't Be A Sucker. It is translated and the translations are published, but clicking on it brings you to /campaigns. Given the above pattern, one would expect to be brought to the translated pitch page. https://www.dosomething.org/us/node/46/translate

Why This Matters
It's a bizarre user experience to see only English campaigns on the BR and MX site, and we aren't showing people all the campaigns they can do. Additionally, people should be able to access the campaign they are looking for through /campaigns. Site users have no other way to access the campaign.
Countries Affected (optional)
BR and MX. Does not appear to be a problem on GL EN.
Relevant Screenshots + Links
Refs: https://github.com/DoSomething/phoenix/issues/6389, https://github.com/DoSomething/phoenix/issues/6289 -- also worth noting that closed campaigns are appearing in the finder and US /campaigns, unsure if the issues are related: https://github.com/DoSomething/phoenix/issues/6374
cc @angaither @mikefantini @mnelson338

Here's what I dug up on this issue:
1)

in some cases the URL changes but the /campaigns page simply refreshes
This happens for campaigns that are not available within given country. For such pages 404 should be displayed. I think this happens because explore_campaigns accepts incorrect urls all incorrect urls by a wildcard. Example: https://www.dosomething.org/campaigns/sdfsdf

Logic responsible for filtering campaigns by language appears incorrect. It factors in user geodata to prepare language filters. Thus, it doesn't matter what site user is at, only user country determined by Fastly.

As I understand, it should use dosomething_helpers_get_current_language_content_code() instead.
The catch here is that this filtering happens globally for all Solr query, as it's implemented in hook_apachesolr_query_alter().

yeah the global_get_user_vars function @sergii-tkachenko linked above was just a way to grab a million variables for the custom routing logic in global. there are more specific functions to figure out what lang the node should be displayed in (whose names escape me right now, but theyre probably in the dosomething global module)

Campaigns translated into Spanish should appear in Spanish on /campaigns. Campaigns translated into GL EN should appear in English on /campaigns.

The reason why content always is displayed in English is that  explore_campaigns  view uses 'Entity Id' field for grouping. When Solr indexes entities, it creates one record per translation. This is achieved with complex internal id (for example, "3tj1ah/node/13/en-global").
When results are retrieved from it, every translation is returned as a separate record. However, grouping by id combines all translations records for same node id into one, and first language returned is displayed first (usualy, English), the rest — discarded.

I can't confirm that translation status (published/unpublished) is factored in search query. We need to make sure that if translation isn't published for requested language, it's not displayed.

Example for item 3: for Brazilian page both translations of node/15 (Momm-o-grams) are returned, after grouping by id 15, only first, English, is displayed:

When view format is switched to Unformatted list, both translations are displayed:

I tracked it down to this line: https://github.com/DoSomething/phoenix/blob/dev/lib/modules/dosomething/dosomething_search/dosomething_search.module#L133
That is attempting to set the language based on the HTTP_X_FASTLY_COUNTRY_CODE header, and just returns en-global by default if that header isn't found. So it's ignoring the /br/ or /mx/ or whatever path in the URL completely.
What's the correct fix here? Should this be updated to pay attention to the country code in the URL as opposed to the HTTP_X_FASTLY_COUNTRY_CODE header? Or at least fall back to the country code in the URL if that header isn't found? Or some other alternative?

I believe there's a function somewhere for getting the language that takes the URL prefix into account. I'll have to hunt it down though, it's been a while sine I've touched that code.

@blisteringherb You might be talking about this one? https://github.com/DoSomething/phoenix/blob/dev/lib/modules/dosomething/dosomething_helpers/dosomething_helpers.module#L715
Can I take that to mean that we can just use the country code from the URL and ignore that header from Fastly, when deciding what language to filter by on the /campaigns page?

Can I take that to mean that we can just use the country code from the URL and ignore that header from Fastly, when deciding what language to filter by on the /campaigns page?

Yeah, I think that's probably a safe assumption. If the user isn't at a language-prefixed URL and has a Fastly country header, they should always be redirected to a URL with a valid country code.


Move e2e tests to e2e folder (#272)

Coverage: 94.216% (-1.5%) from 95.746% when pulling 444f9116e28c01be2955586ea2479988c32f401a on regularcoder:master into c3059a97fa350e4067b9585917c35aa786bd6f25 on gavv:master.

@gavv this is the latest PR, please can you review?

https://github.com/gavv/httpexpect/issues/272

Thank you so much!


(doc) update CONTRIBUTING to refer to the correct upstream repository

Before submitting this PR, please make sure:

[ ] Your code builds clean without any errors or warnings
[ ] You are using approved title ("feat/", "fix/", "docs/", "refactor/")

A description of the changes proposed in the pull request:
These changes follow the guidelines at:
https://hummingbot.org/developers/contributions/
Tests performed by the developer:
Not applicable, there are no code changes to be tested.
Tips for QA testing:
There is one more inconsistency regarding the preferred prefix for the documentation related branches.
The https://hummingbot.org/developers/contributions/#2-creating-your-branch and CONTRIBUTING.md mention "doc/" while the github PR template (https://github.com/hummingbot/hummingbot/blob/master/.github/pull_request_template.md) wants "docs/" (thus i didn't check the box above).

Resolves #5316

PRP: https://snapshot.org/#/hbot-prp.eth/proposal/0x974c552ba9fe761a1d8389c8ef6445dc07f456163a62cc904d73b3bcdc10ed07

Hi, @ctria. Please fix the failed GitHub checks in this PR. Thanks!

Yeah looks like another PR covered those :)