用的ollama,但没有回复

ollama的模型
hiyu@603e5f4a42f1 FreeAskInternet % ollama list NAME                   	ID          	SIZE 	MODIFIED    qwen:32b-chat-v1.5-fp16	bb930ce340f6	65 GB	6 days ago
freeaskinternet的设置,用的局域网IP,v1后加不加/都一样的没有回复.

docker的log如下
2024-04-12 19:29:19 backend-1             | INFO:     <IP_ADDRESS>:57854 - "POST /api/search/get_search_refs HTTP/1.0" 200 OK 2024-04-12 19:29:19 freeaskinternet-ui-1  | <IP_ADDRESS> - - [12/Apr/2024:11:29:19 +0000] "POST /api/search/get_search_refs HTTP/1.1" 200 36 "http://localhost:3031/search/3UUj9QvUHU6iccgTKjizqa?query=hi&model=gpt3.5&ask_type=llm&model_token=" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Safari/605.1.15" "-" 2024-04-12 19:29:19 backend-1             | INFO:     <IP_ADDRESS>:57860 - "POST /api/search/stream/5rh2zteIRiDWNAHzXdcNJd HTTP/1.0" 200 OK 2024-04-12 19:29:21 backend-1             | ERROR:    Exception in ASGI application 2024-04-12 19:29:21 backend-1             | Traceback (most recent call last): 2024-04-12 19:29:21 backend-1             |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 265, in __call__ 2024-04-12 19:29:21 backend-1             |     await wrap(partial(self.listen_for_disconnect, receive)) 2024-04-12 19:29:21 backend-1             |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 261, in wrap 2024-04-12 19:29:21 backend-1             |     await func() 2024-04-12 19:29:21 backend-1             |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 238, in listen_for_disconnect 2024-04-12 19:29:21 backend-1             |     message = await receive() 2024-04-12 19:29:21 backend-1             |   File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 535, in receive 2024-04-12 19:29:21 backend-1             |     await self.message_event.wait() 2024-04-12 19:29:21 backend-1             |   File "/usr/local/lib/python3.9/asyncio/locks.py", line 226, in wait 2024-04-12 19:29:21 backend-1             |     await fut 2024-04-12 19:29:21 freeaskinternet-ui-1  | <IP_ADDRESS> - - [12/Apr/2024:11:29:21 +0000] "POST /api/search/stream/5rh2zteIRiDWNAHzXdcNJd HTTP/1.1" 200 5 "http://localhost:3031/search/3UUj9QvUHU6iccgTKjizqa?query=hi&model=gpt3.5&ask_type=llm&model_token=" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Safari/605.1.15" "-" 2024-04-12 19:29:21 backend-1             | asyncio.exceptions.CancelledError: Cancelled by cancel scope ffffaa5493d0 2024-04-12 19:29:21 backend-1             |  2024-04-12 19:29:21 backend-1             | During handling of the above exception, another exception occurred: 2024-04-12 19:29:21 backend-1             |  2024-04-12 19:29:21 backend-1             |   + Exception Group Traceback (most recent call last): 2024-04-12 19:29:21 backend-1             |   |   File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 407, in run_asgi 2024-04-12 19:29:21 backend-1             |   |     result = await app(  # type: ignore[func-returns-value] 2024-04-12 19:29:21 backend-1             |   |   File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 69, in __call__ 2024-04-12 19:29:21 backend-1             |   |     return await self.app(scope, receive, send) 2024-04-12 19:29:21 backend-1             |   |   File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 1054, in __call__ 2024-04-12 19:29:21 backend-1             |   |     await super().__call__(scope, receive, send) 2024-04-12 19:29:21 backend-1             |   |   File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 123, in __call__ 2024-04-12 19:29:21 backend-1             |   |     await self.middleware_stack(scope, receive, send) 2024-04-12 19:29:21 backend-1             |   |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 186, in __call__ 2024-04-12 19:29:21 backend-1             |   |     raise exc 2024-04-12 19:29:21 backend-1             |   |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 164, in __call__ 2024-04-12 19:29:21 backend-1             |   |     await self.app(scope, receive, _send) 2024-04-12 19:29:21 backend-1             |   |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 93, in __call__ 2024-04-12 19:29:21 backend-1             |   |     await self.simple_response(scope, receive, send, request_headers=headers) 2024-04-12 19:29:21 backend-1             |   |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 148, in simple_response 2024-04-12 19:29:21 backend-1             |   |     await self.app(scope, receive, send) 2024-04-12 19:29:21 backend-1             |   |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 65, in __call__ 2024-04-12 19:29:21 backend-1             |   |     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) 2024-04-12 19:29:21 backend-1             |   |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app 2024-04-12 19:29:21 backend-1             |   |     raise exc 2024-04-12 19:29:21 backend-1             |   |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app 2024-04-12 19:29:21 backend-1             |   |     await app(scope, receive, sender) 2024-04-12 19:29:21 backend-1             |   |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 756, in __call__ 2024-04-12 19:29:21 backend-1             |   |     await self.middleware_stack(scope, receive, send) 2024-04-12 19:29:21 backend-1             |   |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 776, in app 2024-04-12 19:29:21 backend-1             |   |     await route.handle(scope, receive, send) 2024-04-12 19:29:21 backend-1             |   |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 297, in handle 2024-04-12 19:29:21 backend-1             |   |     await self.app(scope, receive, send) 2024-04-12 19:29:21 backend-1             |   |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 77, in app 2024-04-12 19:29:21 backend-1             |   |     await wrap_app_handling_exceptions(app, request)(scope, receive, send) 2024-04-12 19:29:21 backend-1             |   |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app 2024-04-12 19:29:21 backend-1             |   |     raise exc 2024-04-12 19:29:21 backend-1             |   |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app 2024-04-12 19:29:21 backend-1             |   |     await app(scope, receive, sender) 2024-04-12 19:29:21 backend-1             |   |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 75, in app 2024-04-12 19:29:21 backend-1             |   |     await response(scope, receive, send) 2024-04-12 19:29:21 backend-1             |   |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 265, in __call__ 2024-04-12 19:29:21 backend-1             |   |     await wrap(partial(self.listen_for_disconnect, receive)) 2024-04-12 19:29:21 backend-1             |   |   File "/usr/local/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 678, in __aexit__ 2024-04-12 19:29:21 backend-1             |   |     raise BaseExceptionGroup( 2024-04-12 19:29:21 backend-1             |   | exceptiongroup.ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception) 2024-04-12 19:29:21 backend-1             |   +-+---------------- 1 ---------------- 2024-04-12 19:29:21 backend-1             |     | Traceback (most recent call last): 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/httpx/_transports/default.py", line 69, in map_httpcore_exceptions 2024-04-12 19:29:21 backend-1             |     |     yield 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/httpx/_transports/default.py", line 233, in handle_request 2024-04-12 19:29:21 backend-1             |     |     resp = self._pool.handle_request(req) 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/httpcore/_sync/connection_pool.py", line 216, in handle_request 2024-04-12 19:29:21 backend-1             |     |     raise exc from None 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/httpcore/_sync/connection_pool.py", line 196, in handle_request 2024-04-12 19:29:21 backend-1             |     |     response = connection.handle_request( 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/httpcore/_sync/connection.py", line 99, in handle_request 2024-04-12 19:29:21 backend-1             |     |     raise exc 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/httpcore/_sync/connection.py", line 76, in handle_request 2024-04-12 19:29:21 backend-1             |     |     stream = self._connect(request) 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/httpcore/_sync/connection.py", line 122, in _connect 2024-04-12 19:29:21 backend-1             |     |     stream = self._network_backend.connect_tcp(**kwargs) 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/httpcore/_backends/sync.py", line 213, in connect_tcp 2024-04-12 19:29:21 backend-1             |     |     sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/contextlib.py", line 137, in __exit__ 2024-04-12 19:29:21 backend-1             |     |     self.gen.throw(typ, value, traceback) 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions 2024-04-12 19:29:21 backend-1             |     |     raise to_exc(exc) from exc 2024-04-12 19:29:21 backend-1             |     | httpcore.ConnectError: [Errno 111] Connection refused 2024-04-12 19:29:21 backend-1             |     |  2024-04-12 19:29:21 backend-1             |     | The above exception was the direct cause of the following exception: 2024-04-12 19:29:21 backend-1             |     |  2024-04-12 19:29:21 backend-1             |     | Traceback (most recent call last): 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/openai/_base_client.py", line 931, in _request 2024-04-12 19:29:21 backend-1             |     |     response = self._client.send( 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 914, in send 2024-04-12 19:29:21 backend-1             |     |     response = self._send_handling_auth( 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 942, in _send_handling_auth 2024-04-12 19:29:21 backend-1             |     |     response = self._send_handling_redirects( 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 979, in _send_handling_redirects 2024-04-12 19:29:21 backend-1             |     |     response = self._send_single_request(request) 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1015, in _send_single_request 2024-04-12 19:29:21 backend-1             |     |     response = transport.handle_request(request) 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/httpx/_transports/default.py", line 233, in handle_request 2024-04-12 19:29:21 backend-1             |     |     resp = self._pool.handle_request(req) 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/contextlib.py", line 137, in __exit__ 2024-04-12 19:29:21 backend-1             |     |     self.gen.throw(typ, value, traceback) 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions 2024-04-12 19:29:21 backend-1             |     |     raise mapped_exc(message) from exc 2024-04-12 19:29:21 backend-1             |     | httpx.ConnectError: [Errno 111] Connection refused 2024-04-12 19:29:21 backend-1             |     |  2024-04-12 19:29:21 backend-1             |     | The above exception was the direct cause of the following exception: 2024-04-12 19:29:21 backend-1             |     |  2024-04-12 19:29:21 backend-1             |     | Traceback (most recent call last): 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 261, in wrap 2024-04-12 19:29:21 backend-1             |     |     await func() 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 250, in stream_response 2024-04-12 19:29:21 backend-1             |     |     async for chunk in self.body_iterator: 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/starlette/concurrency.py", line 65, in iterate_in_threadpool 2024-04-12 19:29:21 backend-1             |     |     yield await anyio.to_thread.run_sync(_next, as_iterator) 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-04-12 19:29:21 backend-1             |     |     return await get_async_backend().run_sync_in_worker_thread( 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 2144, in run_sync_in_worker_thread 2024-04-12 19:29:21 backend-1             |     |     return await future 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 851, in run 2024-04-12 19:29:21 backend-1             |     |     result = context.run(func, *args) 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/starlette/concurrency.py", line 54, in _next 2024-04-12 19:29:21 backend-1             |     |     return next(iterator) 2024-04-12 19:29:21 backend-1             |     |   File "/app/server.py", line 211, in generator 2024-04-12 19:29:21 backend-1             |     |     for token in  free_ask_internet.chat(prompt=prompt,model=model,llm_auth_token=llm_auth_token,llm_base_url=llm_base_url,using_custom_llm=using_custom_llm,stream=True): 2024-04-12 19:29:21 backend-1             |     |   File "/app/free_ask_internet.py", line 196, in chat 2024-04-12 19:29:21 backend-1             |     |     for chunk in openai.chat.completions.create( 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/openai/_utils/_utils.py", line 275, in wrapper 2024-04-12 19:29:21 backend-1             |     |     return func(*args, **kwargs) 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/openai/resources/chat/completions.py", line 667, in create 2024-04-12 19:29:21 backend-1             |     |     return self._post( 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/openai/_base_client.py", line 1213, in post 2024-04-12 19:29:21 backend-1             |     |     return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/openai/_base_client.py", line 902, in request 2024-04-12 19:29:21 backend-1             |     |     return self._request( 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/openai/_base_client.py", line 955, in _request 2024-04-12 19:29:21 backend-1             |     |     return self._retry_request( 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/openai/_base_client.py", line 1026, in _retry_request 2024-04-12 19:29:21 backend-1             |     |     return self._request( 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/openai/_base_client.py", line 955, in _request 2024-04-12 19:29:21 backend-1             |     |     return self._retry_request( 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/openai/_base_client.py", line 1026, in _retry_request 2024-04-12 19:29:21 backend-1             |     |     return self._request( 2024-04-12 19:29:21 backend-1             |     |   File "/usr/local/lib/python3.9/site-packages/openai/_base_client.py", line 965, in _request 2024-04-12 19:29:21 backend-1             |     |     raise APIConnectionError(request=request) from err 2024-04-12 19:29:21 backend-1             |     | openai.APIConnectionError: Connection error. 2024-04-12 19:29:21 backend-1             |     +------------------------------------ 2024-04-12 19:30:35 llm-freegpt35-1       | Error refreshing session ID, retrying in 1 minute... 2024-04-12 19:30:35 llm-freegpt35-1       | If this error persists, your country may not be supported yet. 2024-04-12 19:30:35 llm-freegpt35-1       | If your country was the issue, please consider using a U.S. VPN. 2024-04-12 19:32:36 llm-freegpt35-1       | Error refreshing session ID, retrying in 1 minute... 2024-04-12 19:32:36 llm-freegpt35-1       | If this error persists, your country may not be supported yet. 2024-04-12 19:32:36 llm-freegpt35-1       | If your country was the issue, please consider using a U.S. VPN.

我没有开VPN

我填入呢kimi和chatglm的key, 但是,模型列表还是灰色,点击不出列表,无法选择模型, 只是显示gpt 3.5

我没有执行
‘export OLLAMA_HOST=<IP_ADDRESS>
ollama serve’
以上错误是否和这个有关系?
我是MAC, 目前ollama会自动在tray里面出现图标,自动做服务器,open webui等都很正常.不需要ollama serve.
运行你这个项目必须要改host?对其他APP有影响吗? 我在docker运行dify 也是用局域网IP就行了,没有改HOST的呀

我没有执行 ‘export OLLAMA_HOST=<IP_ADDRESS> ollama serve’
以上错误是否和这个有关系?
我是MAC, 目前ollama会自动在tray里面出现图标,自动做服务器,open webui等都很正常.不需要ollama serve.
运行你这个项目必须要改host?对其他APP有影响吗? 我在docker运行dify 也是用局域网IP就行了,没有改H

这个OLLAMA_HOST 需要设置一下，不然默认只是监听<IP_ADDRESS>，亲测即使是和Ollam部署在一台机器上也需要设置

到底要如何设置


adding draft changes

Draft PR to discuss the changes required.

Draft PR to discuss the changes required.

Hi @gbidsilva
Please provide a useful description.

This PR is created just for the issue discussion purposes and this is not a merge ready PR.
In the mailing list, comments have been provided.
Closing the PR.


moment.duration(NaN) now throws an error (issue#3225 + #3071)

Unfortunately this can't be implemented this way. It is our rule that we don't throw errors in this code. Instead, we do something like invalidating the date. To fix this, one would need to implement a way to have an invalid duration.

@ichernev @icambron @mj1856 @butterflyhug - if we were to do this, how do we want it to look? I think that there should be a way to invalidate duration just like there is with moment. That's going to propagate all over the code though.

Agreed.  I think a Duration.isValid method and corresponding API support would be the right way to fix this.  Unfortunately it'll be a bit of a pain to implement.

Dear moment authors,
We were talking about how quickly maggiepint responded.
It only took… a moment (lol).
I might try to tackle this problem again at some point, but it will have to wait.
I just wanted to say thank you for taking the time to respond so kindly with detail about the pull request.
-Lisa

On Oct 28, 2016, at 9:08 PM, Lucas Sanders<EMAIL_ADDRESS>wrote:
Agreed. I think a Duration.isValid method and corresponding API support would be the right way to fix this. Unfortunately it'll be a bit of a pain to implement.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/moment/moment/pull/3533#issuecomment-257067333, or mute the thread https://github.com/notifications/unsubscribe-auth/AOj36S46xqlxNzYhChyNYnRxP0rlxgVAks5q4rjBgaJpZM4Khze8.

Slack desktop notifications for pull requests:-)

Yep, we need isValid and the like ... It used to be hard to produce an invalid duration. Not any more.

Closing as this implementation isn't what we want.


How to deal with big content

Hello,
I'm currently testing your library and the diagnostics look really good!
I am just having one issue and it's unclear to me how to solve it from the docs. If I have content that spans over multiple lines and it breaks the layout. Is it possible to use say Docs instead of Text/String to create a Report? Or what would be the way of doing something like this? Say showing actual/expected types in a type error, or having a type that is long ( record type or function types for example ).

Hi there.
Could you please an example (ideally with a simple way of reproducing) that breaks the current layout?
Also, yes it is possible to use Docs. In fact, it is possible to use any type t which has a Pretty t instance. (this is the only requirement)
I have personally not have errors which broke the layout. If the input Text/String is long and unbroken (meaning that there is no \n within), then the layout will not try to break it for you (this is the default expected behavior of prettyprinter). This means that if you output a type which is very long, it is your responsibility to make it fit within the acceptable boundaries of a text. (usually, this lis between 80 and 100 characters per line, but this may vary)
If the docs are unclear on that matter, I'll happily change them so that they're easier to understand! (this will wait until #14 is merged though, which changes a whole lot of things)

Well I believe the example is precisely what you highlighted. Like it's not breaking the layout per se but it's more that the line goes on and visually starts column one. When trying it with a Report (Doc ann) I get the following issue:
No instance for (Pretty.Pretty (Pretty.Doc ann0))
        arising from a use of ‘Diagnose.prettyDiagnostic’

Do you have an example somewhere using Doc as the msg type?

I see.
I am facing the same issue, because Doc is not prettyprintable (I was unaware of that).
Unfortunately, I don't really know whether there is an easy fix for this (other than the “hacks” present in the issue linked, which in this case rely on defining orphan instances) or not.

I see. So the best option for now would be to render it to Text beforehand to have the line returns in place with a width of like 50-60?

Pre-rendering should work, provided that there are lines (or hardlines) within the Document to render.
Otherwise, it would pretty much have no effect (prettyprinter does not break long lines for you if there are no lines within, but it is able to otherwise).
One fix (which is very dirty and completely voids the purpose of the Pretty typeclass, which is flawed anyway) would be for diagnose to internally pass msg -> Doc ann functions to every rendering function. But this is very cumbersome and error-prone. And this also bloats the function interfaces.
If GHC supported local instances (as e.g. Agda), we could define a printDiagnostic' which would internally create an instance given the type of a pretty-printing function passed as parameter. Unfortunately this is not the case, and I don't see it added soon (because it adds a lot of complexity to a system which is already very complicated).
The other solution is the one present in the issue, that is to say to define this instance:
instance Pretty (Doc ann) where
  pretty = unAnnotate

But this greatly decreases performance (I am confident that using unsafeCoerce in place of unAnnotate will not work) so it should be avoided as much as possible.

Thanks for taking the time to give a detailed answer! I’ll try my chance with pre-rendering it then. Sounds like the best compromise to me.

No problem! I'll close this issue as there is pretty much nothing I can really do to solve this issue (because it originates from prettyprinter itself).
Thanks for the report too! Now I know that Doc ann cannot be pretty-printed (for good reasons though). :)


Update Figures Users API to provide completion date and grade against user's course

Description: Updated Figures Users API to provide completion date and grade against user's course
Here's the example data:
{
"id": 18,
"username": "haseeb",
"name": "Muhammad Haseeb",
"email"<EMAIL_ADDRESS>"country": "PK",
"is_active": true,
"year_of_birth": null,
"level_of_education": "",
"gender": "",
"date_joined": "2020-09-23T10:26:00Z",
"last_login": "2020-09-24T12:27:14.611733Z",
"bio": null,
"courses": [
{
"course_name": "Introduction to Red Site",
"course_code": "RED_101",
"course_id": "course-v1:red+RED_101+Spring_2020",
"date_enrolled": "2020-09-24",
"progress_data": {
"course_completed": true,
"percent_grade": 1,
"course_progress": 1,
"course_progress_history": [],
"letter_grade": "Pass",
"passed_timestamp": "2020-09-24T12:32:04.142463Z",
"course_progress_details": {
"sections_worked": 1,
"points_possible": 1,
"sections_possible": 1,
"points_earned": 1
}
},
"enrollment_id": 11
}
],
"language_proficiencies": [],
"profile_image": {
"image_url_full": "/static/images/profiles/default_500.png",
"image_url_large": "/static/images/profiles/default_120.png",
"image_url_medium": "/static/images/profiles/default_50.png",
"image_url_small": "/static/images/profiles/default_30.png",
"has_image": false
}
}

Can we have these in percentage?
"percent_grade": 1,
"course_progress": 1,
@asadmanzoor93 These are already in percentage. (0-1)

1

Kindly convert it into 0-100% as for users 0-100 is normally used progress % value.


Update fuzzing utilities to work with Bellatrix

Currently, FuzzUtil only supports Phase0 state transitions:

attestation
attester_slashing
block
block_header
deposit
proposer_slashing
voluntary_exit

I propose we update these state transitions to work with Bellatrix & add new ones:

signed_contribution_and_proof
sync_committee_message

Rationale: I would like to update beacon-fuzz to work with Bellatrix.

I would like to do this ticket myself; it would be a good learning opportunity.


0 GTU TRANSFER

CODE : ./concordium-client transaction send-gtu --amount 0 --sender T1 --receiver T2
0 gtu can be sent with other transfer codes. 0 GTU should not be transferred
https://dashboard.testnet.concordium.com/chain/75ccf15aa61017ea2969d0bb467699d979dde7b45c15ef0f7b2bd28a4a841f2d

Hi donadel01, we do not want to check if the amount is strictly higher than 0. It might not be meaningful to do so and it also costs the regular transaction fee. However, we do not have plans to restrict that right know. But thanks for submitting!


Add deployment name

So we are replicating vhosts magic of HTTP/1.x where the Host indicates where the traffic belongs. Access-point is the new Host attribute and servers would resolve all setting items internally and respond to client accordingly.

Best to add a proposal, describing ins and outs of the interactive workflow here.


ReferenceError: "Calendar" is not defined. (line 325, file "Code")

This happens at run-test

Hello, @kpatyh, thank you for reporting this.
have you double-checked you have completed all the Activate the API for the script steps? In particular you have to enable the Calendar API both in the Google Script page and in the Google API Console page.
It's really easy to overlook one of these steps and the error message seems to indicate that this is the source of the problem.
Best regards

U r right, my mistake, sorry :)

No problem :-)


NLopt error for Bernoulli models with random slopes when NOT using fast=true

Something strange is happening with Bernoulli models. Normal seems to run okay.
Also, unrelated to this issue, but the package cannot handle arrays with missing values out of the box.
using DataFrames, MixedModels, GLM, RDatasets, RData, RCall, Missings, CSV

lexdec = rcopy(R"languageR::lexdec")

fm = fit(MixedModel, @formula(Correct ~ 1 + Class*NativeLanguage*Frequency + Trial + (1+Class + Frequency + Trial|Subject) + (1|Word)), lexdec, Bernoulli())
ERROR: ArgumentError: invalid NLopt arguments: zero step size
Stacktrace:

julia> fm = fit!(GeneralizedLinearMixedModel(@formula(Correct ~ 1 + Class*NativeLanguage*Frequency + (1+Class + Frequency + Trial|Subject) + (1|Word)), lexdec, Bernoulli()))
ERROR: ArgumentError: invalid NLopt arguments: zero step size
Stacktrace:

julia> fm = fit!(GeneralizedLinearMixedModel(@formula(Correct ~ 1 + Class*NativeLanguage*Frequency + (1+Class + Frequency + Trial|Subject) + (1|Word)), lexdec, Bernoulli()), fast=true)
Generalized Linear Mixed Model fit by maximum likelihood (nAGQ = 1)
  Correct ~ 1 + Class + NativeLanguage + Frequency + Class & NativeLanguage + Class & Frequency + NativeLanguage & Frequency + Class & NativeLanguage & Frequency + (1 + Class + Frequency + Trial | Subject) + (1 | Word)
  Distribution: Bernoulli{Float64}
  Link: LogitLink()

  Deviance: 475.6604

Variance components:
             Column        Variance      Std.Dev.    Corr.
 Subject (Intercept)   1.8648165158988 1.365582848
         Class: plant  0.6393674729270 0.799604573 -0.49
         Frequency     0.1061836740609 0.325858365 -0.94  0.73
         Trial         0.0000076274775 0.002761789  0.93 -0.21 -0.75
 Word    (Intercept)   0.7313290831756 0.855177808
 Number of obs: 1659; levels of grouping factors: 21, 79

Fixed-effects parameters:
──────────────────────────────────────────────────────────────────────────────────────────
                                                   Estimate  Std.Error    z value  P(>|z|)
──────────────────────────────────────────────────────────────────────────────────────────
(Intercept)                                       -1.11513    0.839064  -1.32902    0.1838
Class: plant                                      -0.721878   1.14746   -0.629111   0.5293
NativeLanguage: Other                              0.913713   1.03829    0.88002    0.3788
Frequency                                         -0.495801   0.174133  -2.84725    0.0044
Class: plant & NativeLanguage: Other               1.20139    1.33366    0.900816   0.3677
Class: plant & Frequency                          -0.140558   0.274048  -0.512895   0.6080
NativeLanguage: Other & Frequency                 -0.118276   0.221975  -0.532835   0.5941
Class: plant & NativeLanguage: Other & Frequency  -0.263183   0.336882  -0.781232   0.4347
──────────────────────────────────────────────────────────────────────────────────────────

Duplicate of #201

Thanks for reporting this -- it's good to have a test case for the boundary issue that isn't dependent on using gamma regression, which is generally less well tested than logistic regression.

Also, unrelated to this issue, but the package cannot handle arrays with missing values out of the box.

The development version can handle missing values (by dropping them), but the more general problem is more or less inherited from JuliaStats/StatsModels.jl#17, JuliaStats/StatsModels.jl#145 and JuliaStats/StatsModels.jl#153. Please don't mix unrelated tidbits -- they distract or will be ignored. When we fix the boundary fit problem then this issue will be closed and that extra bit of info will disappear.

Thank you for the tip on missing - the development version did the trick.
About the model above. I think it is problematic model that should not converge. It should give warnings. This model doesn't converge in R with either glmer or glmmTMB. Both give warnings. On close examination, it looks like the random slope for Trial doesn't account for much variance (see below). rePCA from lme4 can also help to figure this out. So the model is overparametrized.
The model converges in Julia and in R with glmmTMB (but not either glmer) without the slope for Trial.
I remember dmbates objected the idea of giving the user warnings about convergence and potentially model misspecifications, but it seems that in this case it would have helped. Again, the problematic fit should be obvious based on the variance estimate for the random slope for Trial, but Julia ambiguously doesn't converge without fast=true. The user might be under the impression that the model is ok, but there is a problem with MixedModels.jl

> fm <- glmer(Correct ~ 1 + Class*NativeLanguage*Frequency + Trial + (1+Class + Frequency + Trial|Subject) + (1|Word), lexdec, family="binomial")
Warning messages:
1: In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv,  :
  Model failed to converge with max|grad| = 1.16397 (tol = 0.001, component 1)
2: In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv,  :
  Model is nearly unidentifiable: large eigenvalue ratio
 - Rescale variables?

> summary(fm)
Generalized linear mixed model fit by maximum likelihood (Laplace
  Approximation) [glmerMod]
 Family: binomial  ( logit )
Formula: Correct ~ 1 + Class * NativeLanguage * Frequency + Trial + (1 +
    Class + Frequency + Trial | Subject) + (1 | Word)
   Data: lexdec

     AIC      BIC   logLik deviance df.resid
   513.2    621.5   -236.6    473.2     1639

Scaled residuals:
    Min      1Q  Median      3Q     Max
-1.1224 -0.1865 -0.1193 -0.0731  7.7318

Random effects:
 Groups  Name        Variance  Std.Dev. Corr
 Word    (Intercept) 8.690e-01 0.932178
 Subject (Intercept) 1.345e+00 1.159747
         Classplant  7.804e-01 0.883404 -0.37
         Frequency   9.266e-02 0.304398 -0.94  0.52
         Trial       1.435e-05 0.003788  0.87 -0.13 -0.66
Number of obs: 1659, groups:  Word, 79; Subject, 21

Fixed effects:
                                          Estimate Std. Error z value Pr(>|z|)
(Intercept)                              -1.048216   1.423579  -0.736   0.4615
Classplant                               -0.916008   1.954159  -0.469   0.6392
NativeLanguageOther                       0.826676   1.553323   0.532   0.5946
Frequency                                -0.561306   0.295837  -1.897   0.0578
Trial                                    -0.001595   0.003758  -0.424   0.6713
Classplant:NativeLanguageOther            1.621867   2.082790   0.779   0.4362
Classplant:Frequency                     -0.164784   0.469251  -0.351   0.7255
NativeLanguageOther:Frequency            -0.090174   0.332856  -0.271   0.7865
Classplant:NativeLanguageOther:Frequency -0.350099   0.525350  -0.666   0.5051

(Intercept)
Classplant
NativeLanguageOther
Frequency                                .
Trial
Classplant:NativeLanguageOther
Classplant:Frequency
NativeLanguageOther:Frequency
Classplant:NativeLanguageOther:Frequency
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Correlation of Fixed Effects:
            (Intr) Clsspl NtvLnO Frqncy Trial  Cl:NLO Clss:F NtLO:F
Classplant  -0.593
NtvLnggOthr -0.544  0.344
Frequency   -0.928  0.607  0.542
Trial       -0.225 -0.010 -0.016 -0.007
Clsspln:NLO  0.340 -0.603 -0.617 -0.364  0.032
Clssplnt:Fr  0.487 -0.927 -0.292 -0.517 -0.002  0.576
NtvLnggOt:F  0.525 -0.346 -0.955 -0.571  0.010  0.618  0.303
Clssp:NLO:F -0.273  0.559  0.485  0.303 -0.031 -0.924 -0.614 -0.502
convergence code: 0
Model failed to converge with max|grad| = 1.16397 (tol = 0.001, component 1)
Model is nearly unidentifiable: large eigenvalue ratio
 - Rescale variables?

> summary(rePCA(fm))
$Word
Importance of components:
                         [,1]
Standard deviation     0.9322
Proportion of Variance 1.0000
Cumulative Proportion  1.0000

$Subject
Importance of components:
                         [,1]   [,2]    [,3]      [,4]
Standard deviation     1.2727 0.7694 0.07979 0.0003709
Proportion of Variance 0.7303 0.2669 0.00287 0.0000000
Cumulative Proportion  0.7303 0.9971 1.00000 1.0000000

> fm2 <- glmmTMB(Correct ~ 1 + Class*NativeLanguage*Frequency + Trial + (1+Class + Frequency + Trial|Subject) + (1|Word), lexdec, family="binomial")
Warning messages:
1: In fitTMB(TMBStruc) :
  Model convergence problem; non-positive-definite Hessian matrix. See vignette('troubleshooting')
2: In fitTMB(TMBStruc) :
  Model convergence problem; false convergence (8). See vignette('troubleshooting')

> summary(fm2)
 Family: binomial  ( logit )
Formula:
Correct ~ 1 + Class * NativeLanguage * Frequency + Trial + (1 +
    Class + Frequency + Trial | Subject) + (1 | Word)
Data: lexdec

     AIC      BIC   logLik deviance df.resid
      NA       NA       NA       NA     1639

Random effects:

Conditional model:
 Groups  Name        Variance  Std.Dev. Corr
 Subject (Intercept) 2.415e+00 1.553987
         Classplant  8.742e-01 0.934975 -0.46
         Frequency   1.403e-01 0.374617 -0.97  0.56
         Trial       1.131e-05 0.003363  0.82 -0.14 -0.64
 Word    (Intercept) 9.221e-01 0.960246
Number of obs: 1659, groups:  Subject, 21; Word, 79

Conditional model:
                                          Estimate Std. Error z value Pr(>|z|)
(Intercept)                              -1.049643   1.460669  -0.719   0.4724
Classplant                               -0.987369   2.013568  -0.490   0.6239
NativeLanguageOther                       0.992664   1.636702   0.606   0.5442
Frequency                                -0.574650   0.306207  -1.877   0.0606
Trial                                    -0.001363   0.003390  -0.402   0.6877
Classplant:NativeLanguageOther            1.424499   2.104225   0.677   0.4984
Classplant:Frequency                     -0.153430   0.480728  -0.319   0.7496
NativeLanguageOther:Frequency            -0.121959   0.349751  -0.349   0.7273
Classplant:NativeLanguageOther:Frequency -0.304610   0.528633  -0.576   0.5645

(Intercept)
Classplant
NativeLanguageOther
Frequency                                .
Trial
Classplant:NativeLanguageOther
Classplant:Frequency
NativeLanguageOther:Frequency
Classplant:NativeLanguageOther:Frequency
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

While parameterization issues can cause convergence issues, these are two different sets of problems. In particular, a random effect going to zero is something that lme4 and MixedModels.jl can deal with and that's a feature, not a bug. For such boundary fits, the gradient test  isn't informative because the gradient being equal to zero is only a necessary condition for minima in the interior of a bounded parameter space. (There are also issues with the finite-differences approximation used by lme4, but this is a result of lme4 using a gradient-free method for fitting.) The eigenvalue test is more interesting; @dmbates may have a comment on whether or not we we should add it to a list of desirables.
glmmTMB uses a different fitting method (based on the gradient) and runs into a somewhat different convergence issue. A non positive-definite Hessian would also create problems for lme4, but because of the different convergence methods, the intermediate results are different and thus the two packages get stuck in different problem zones. That said, looking at the glmmTMB docs, problems with the Hessian can be the result of a boundary fit.

Thank you for clarifications!

@hikea I have made changes to the optimization algorithm for GLMMs in the dropmulalphabeta branch of the package.  Could you check your example after installing that branch as a development version?  That is
using Pkg; Pkg.develop(PackageSpec(name="MixedModels", rev="dropmulalphabeta")

Can't get it working. Keep getting ERROR: git revision can not be given to develop`` Tried installing the master version, but that didn't help either.

@dmbates This example runs on the dropmulalphabeta branch.


[ts] 'percent' is declared but its value is never read

Hi @coryhouse,
You declared the parameter percent but are using this.props.percent.
Thanks,
Amadou

Ah, good eye! Thankfully, there's no impact. That said, I'm going to leave this open until I have a chance to patch the course accordingly.

Closing this to avoid having it in my list of open PRs


FLAC Support

This is an ideal audio player for me in many ways, except that my main use-case involves mostly FLAC audio. Sorry, I don't have the time or stack proficiency to add this in myself.
I noticed Aural Player uses AVFoundation for playback. I couldn't find anything online about FLAC with AVFoundation, so I assume that FLAC support would entail the use of a third-party library. This may involve re-writing of or indirection around the currently used AVFoundation APIs, so I understand if this is out-of-scope for a minimalist project. As for third-party audio engines, my cursory searching led me to OrigamiEngine, which also seems to standardize metadata access across formats too.
Thanks for the work on Aural Player so far! If this is out-of-scope, perhaps someone in the community could take this up?

Hi @jicksta ,
Thanks for your great feedback on and interest in the Aural Player project.
Yes, you're right, this was intended as a "minimalist" project, not as a comprehensive audio player that plays everything. From what you've said about FLAC and from what I know, that definitely seems like it would require too much reworking to support, so I will have to pass on the responsibility for now.
I would love for someone to fork Aural Player and add the FLAC support (another good one to have would be WMA).
Best regards,
maculateConception

Hi @jicksta ,
I discovered today that my player can, in fact, play FLAC files, right out of the box without any special modifications.
I have also figured out how to include LibAV in my player, which can transcode between other formats like Ogg, Vorbis, WMA, etc, and happen to be adding that support right now. So, pretty soon, I will put out a release of my app that can play damn near everything.
Thought I'd let you know because you had mentioned that Aural Player is an ideal player for your needs.
Cheers !

Hi !
I read this thread, and I'd like to back jicksta up on this neat feature :)
Cheers !

Hi grogcw, thanks for the message.
Yes, my player can definitely play FLAC files. I was unaware of this before, but today, accidentally discovered this :)
I will soon put out a release that allows users to add FLAC files to the playlist.
Cheers !

Cool ! Thanks for the great feedback.
BTW, I realized that I'm running macOS 10.14, and native FLAC support was introduced in 10.13 (High Sierra). So, Aural Player will natively play FLAC on High Sierra and Mojave. If you have an older OS, it will now transcode it to another format like AIFF and play the transcoded file.
So, either way, FLAC support is coming for sure :)
Thanks again, and yes, do file that issue.

I'm glad to read that ! I started using your player yesterday and I love it already !
I'd like it to be a little more compact width-wise tho, but I'll open another issue regarding the GUI.
Please continue your great work, you're on the right track !
Cheers !

Hi, I've been working hard to get the new release out, that will play many new formats including FLAC. At this point, the implementation is pretty much done and I am doing extensive testing. So, you can expect a release some time in the next few days.

Released with support for FLAC and many more formats !
Download here:


[BUG] Bad colors to display in documentation

🐞 Bug report
Description
I use a dark theme everywhere, but visibility is poor in some places
Reproduction
https://taiga-ui.dev/components/calendar

https://stackblitz.com/edit/taiga-starter?file=src%2Fapp%2Fapp.component.html

I believe it's fixed already, colors are more contrast now.


Spell sitter not showing incorrect spelling (/not working)

Hey thanks for working on this plugin, I've really been missing having spell working in treesitter languages.
Apologies for the it doesn't work type issue but for the life of me I really can't seem to get it to work. I'm not sure if this is because it's still WIP in which case I'll just wait a bit, or if it should be working.
I have the plugin configured as
    use {
      "lewis6991/spellsitter.nvim",
      config = function()
        require("spellsitter").setup {hl = "SpellBad", captures = {"comment"}}
      end
    }

I'm on the latest nvim nightly, I have spell set to 0 my other spell related settings are
--the add helper just does string concatenation more or less
vim.o.spellsuggest = add(12, vim.o.spellsuggest)
vim.o.spelloptions = "camel"
vim.o.spellcapcheck = "" -- don't check for capital letters at start of sentence
vim.o.complete = add("kspell", vim.o.complete)

FWIW it was working when it was based on hunspell although I'm very glad to be done with an external dependency.

I've noticed that if I set spell then I set no spell it seems to maybe work but tbh I could just be mixing that up with the native spell highlighting not being cleared if you set spell then set nospell

AFAIK set spell shouldn't make a difference. I can confirm the plugin is working my end. A good way to check is to set hl='error':
       require('spellsitter').setup{
         hl = 'error',
       }

I haven't done any testing with any spell options you listed. You may want to try with them commented out.
The whole plugin is only ~170 LOC, so it should be easy to insert a few print statements to see what's going on. Some things to know:

on_lines should be called for every screen line that gets redrawn.
on_win should be called before on_lines is called.

This plugin is pretty WIP, the concept of it is a bit flawed too since neovims built-in spellchecker has a pretty scattered implementation. Hopefully this plugin can help figure out what we need to do to improve it.

@akinsho I have the same issue. Did you made it working for you?

@weilbith I recently had to re-install my machine (for unrelated reasons) and now it seems to work, tbh I have no idea what changed, I think I must have removed some plugin or setting somewhere that must have made the difference. I also recently re-added syntax enable to the start of my config. I had removed it because nvim does it by default but turns out there's an issue with how nvim does it and it's done too late

Are you sure the plugin is working and your not running the regular spellchecker using vims regex syntax engine?
I use this lua function to detect if the regex syntax engine is enabled for a buffer:
  function Syn_stack()
    local c = vim.api.nvim_win_get_cursor(0)
    local stack = vim.fn.synstack(c[1], c[2]+1)
    for i, l in ipairs(stack) do
      stack[i] = vim.fn.synIDattr(l, 'name')
    end
    print(vim.inspect(stack))
  end
  map('n', '<leader>z', ':lua Syn_stack()<CR>', {noremap=true})

@lewis6991 you're right, I just checked the set syntax? and for the filetypes where I see spelling errors the syntax has been set by some syntax plugins in my config. Where there is no syntax it still doesn't work.

@matu3ba I don't really know how the issues you're describing relate here. I'm yet to figure out what actually causes this issue for me, so I can't really change the title. My filetypes aren't being set differently than anyone else's, since I depend on vim's default ftdetect for most things.

For me, it works well when i open a file directly from the command line
nvim myfile.java

but when i change file inside nvim
:e myfile.java
:tabnew myfile.java

it does not work.

For me, it works well when i open a file directly from the command line
nvim myfile.java
but when i change file inside nvim
:e myfile.java
:tabnew myfile.java
it does not work.

Trying to track this down, it looks like the plugin is still going through the motions correctly in that ffi.C.spell_check is being called on all the right parts of the file. However, if the buffer was opened with :e or :tabopen or similar, then ffi.C.spell_check always returns no mistakes.
I found by fiddling with the  M.mod_spell_opt method -- making it set and then unset spell -- i could get it to work. This may be a bodge though..
function M.mod_spell_opt()
  local bufnr = api.nvim_get_current_buf()
  if not buf_enabled(bufnr) then return end
  spell_opt[bufnr] = vim.wo.spell
  vim.wo.spell = true
  vim.schedule(function()
      vim.wo.spell = false
  end)
end

A bit more playing: this seems to be connected to the nvim-lspconfig plugin. If i uninstall it, then spellsitter doesn't show the behaviour above.


Partial in the table

Vue.js version
1.0.18
Reproduction Link
https://jsfiddle.net/nx4ffts3/
Steps to reproduce
Open jsfiddle
What is Expected?
partial 'td' in the tr
What is actually happening?
partial 'td' is out from table

probably related to this: http://vuejs.org/guide/components.html#is-attribute

Some HTML elements, for example , have restrictions on what elements can appear inside them. Custom elements that are not in the whitelist will be hoisted out and thus not render properly. In such cases you should use the is special attribute to indicate a custom element.

Yes, but is doesnt work for partial.

@AStaroverov Hello!
@jonagoldman You're right.
The thing is: browser will parse the html before it's compiled by Vue. So your templates (it's same for both partials and components) should valid html before compilation.
Browser won't allow anything else than <td> tag inside <tr> so <partial> got moved outside the table.
You probably can't use a partial inside <tr>. Consider using a component.


POM.xml file configuration

Description
Create Documentation for configuration of POM.xml file
Domain
Backend Dev (Java)
Type of Contribution
Audio, Video, Documentation
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

\assign document

/assign document


PrettierFixForJuly24Preview

ARM (Control Plane) API Specification Update Pull Request

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

[!NOTE]
As of January 2024 there is no PR assignee. This is expected. See https://aka.ms/azsdk/pr-arm-review.

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

Click here to see the details of Step 1, Breaking Changes review
If you are in purview of Step 1 of the diagram, follow the Breaking Changes review process.
IMPORTANT! This applies even if you believe your PR was mislabeled, for any reason, including tool failure.

Click here to see the details of Step 2, ARM review
See https://aka.ms/azsdk/pr-arm-review.

 Click here to see the diagram footnotes
Diagram footnotes
[1] See ARM review queue (for PR merge queues, see [2]).
[2] public repo merge queue, private repo merge queue (for ARM review queue, [1])
The ARM reviewer on-call engineer visits the merge queue twice a day, so the approximate ETA for merges is 12 - 24 hours.

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

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

Prettier Check Fix

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

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

Additional information

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

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

Getting help

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

FYI ARM Reviewer, the change in this PR is to address the prettier check failures on this parent PR: https://github.com/Azure/azure-rest-api-specs/pull/28872/checks?check_run_id=24320892338
There are 225 errors in the raw log : https://dev.azure.com/azure-sdk/public/_build/results?buildId=3739401&view=logs&j=011e1ec8-6569-5e69-4f06-baf193d1351e&t=0f4aa080-c997-58ca-481c-4930865ae0f8

/pr RequestMerge

@ragovada - You can merge this PR yourself. ARM team only does merges to main and RPSaaSMaster.


Configuration for specification of the storage account to be used for stemcells

Is your feature request related to a problem? Please describe.
This feature can provide more control for BOSH operator to specify a dedicated storage account for stemcell instead of letting to the BOSH automatically find some storage account which may not be suitable for stemcells.
This feature would address the issue described here: https://github.com/cloudfoundry/bosh-azure-cpi-release/issues/612
Describe the solution you'd like
BOSH CPI should accept in configuration storage account to be used for stemcells.
When this configuration is in place, then stemcells storage account autodetection logic should be inactive.
All stemcell operations should respect this configuration and not perform lookups in any other storage account.
Thanks

The use_default_account_for_cleaning feature also provides a workaround to the stemcell issue specified here.


Sitl config txt support

ssrc_config files copied into tii-px4-sitl container image.
Configuration can be selected by env variable SSRC_CONFIG.
E.g.
SSRC_CONFIG=indoor
=> source /ssrc_config/config_indoor.txt file for indoor flying parameters.

Seems like the parameters don't work for SITL. The drone doesn't seem to work with config_indoor.txt. It stays at the MANUAL mode for some reason. And the drone doesn't seem to get location, the start heading is pointing to north 0 degrees. Without the config file, it gets the location correctly and points to east 90 degrees. I guess we need to add a default SITL config file.

I'll check this.

The "Disable magnetometer" part of indoor config seems to cause the issue with global position.

I reverted back the commit which has the log encryption disabling. I think it is better to keep the "_sim" config file as close as possible to the original real drone config file.

Squash fixup commits

From some tests, these parameters worked better in the SITL. Otherwise, causing sudden movements;
MPC_XY_VEL_P_ACC 1.2
MPC_XY_CRUISE 2.0

Would these make it fly & accelerate very slow in simulation? Not an issue for me, just wondering whether you are simulating the real-case or simulating indoors flying? ;)

Well, that is a good point. If we are to have the exact same setup, I guess its better to have the same parameters #200 , as
MPC_XY_VEL_P_ACC 1.9
MPC_XY_CRUISE 2.0


Node failed to recover after a crash

A server crash led to an incomplete write to the wallet file and after restart it still fails to recover
      An error occurred starting the application.
There was a problem initializing the node. Details: 'System.AggregateException: One or more errors occurred. (Object reference not set to an instance of an object.) (Value cannot be null.
Parameter name: block) (Unterminated string. Expected delimiter: ". Path 'accountsRoot[0].accounts[0].internalAddresses[2].transactions[1957].blockHash', line 40818, position 12612815.) ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at Stratis.Bitcoin.Features.Consensus.StakeChainStore.LoadAsync() in C:\Projects\Stratis\StratisBitcoinFullNode\src\Stratis.Bitcoin.Features.Consensus\StakeChainStore.cs:line 58
   at Stratis.Bitcoin.Features.Consensus.Rules.PosConsensusRuleEngine.Initialize() in C:\Projects\Stratis\StratisBitcoinFullNode\src\Stratis.Bitcoin.Features.Consensus\Rules\PosConsensusRuleEngine.cs:line 52
   at Stratis.Bitcoin.Base.BaseFeature.InitializeAsync() in C:\Projects\Stratis\StratisBitcoinFullNode\src\Stratis.Bitcoin\Base\BaseFeature.cs:line 201
   at Stratis.Bitcoin.Builder.FullNodeFeatureExecutor.<>c.<Initialize>b__3_1(IFullNodeFeature service) in C:\Projects\Stratis\StratisBitcoinFullNode\src\Stratis.Bitcoin\Builder\FullNodeFeatureExecutor.cs:line 52

If I remove the wallet, there is still an error in StakeChainStore where it can't find the block for the
fail: Stratis.Bitcoin.Builder.FullNodeFeatureExecutor[0]
      An error occurred starting the application.
There was a problem initializing the node. Details: 'System.AggregateException: One or more errors occurred. (Object reference not set to an instance of an object.) (Value cannot be null.
Parameter name: block) ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at Stratis.Bitcoin.Features.Consensus.StakeChainStore.LoadAsync() in C:\Projects\Stratis\StratisBitcoinFullNode\src\Stratis.Bitcoin.Features.Consensus\StakeChainStore.cs:line 58
   at Stratis.Bitcoin.Features.Consensus.Rules.PosConsensusRuleEngine.Initialize() in C:\Projects\Stratis\StratisBitcoinFullNode\src\Stratis.Bitcoin.Features.Consensus\Rules\PosConsensusRuleEngine.cs:line 52
   at Stratis.Bitcoin.Base.BaseFeature.InitializeAsync() in C:\Projects\Stratis\StratisBitcoinFullNode\src\Stratis.Bitcoin\Base\BaseFeature.cs:line 201

I was able to recover by adding the following line of code to to StakeChainStore in order to rewind coinview 1 block
public async Task LoadAsync()
        {
            uint256 hash = await this.dBreezeCoinView.GetTipHashAsync().ConfigureAwait(false);
            ChainedHeader next = this.chain.GetBlock(hash);

            // Rewind coinview one block if next is not in blockstore as it means node must have crashed before it was able to persist to blockstore despite managing to update coinview
            if (next == null)
            {
                hash = await this.dBreezeCoinView.Rewind().ConfigureAwait(false);
                next = this.chain.GetBlock(hash);
            }

Re the wallet:
that's interesting. Normally, when we save the wallet to the file system, it is first written to a temporary file walletname.uniqueid.new, then the wallet file walletname is renamed to walletname.uniqueid.temp and then walletname.uniqueid.new is renamed to walletname.
so wherever it fails, there should always be
a file with the wallet content somewhere.
Is that not the case? @majikandy @sondreb
Here is the code:
https://github.com/stratisproject/StratisBitcoinFullNode/blob/a238bc18bf97bfab93b8e936cd92dc8ed55d53f2/src/Stratis.Bitcoin/Utilities/FileStorage.cs#L38-L70

For my home server, that has not been the case. It has written multiple wallets file with zeroes (0) multiple times. I sent some messages to Dan regarding this earlier, and I know the problem is my server which does a hardware reset once in a while (often at least once a day). I'm in the process of replacing the hardware on it to avoid this, so it is really an hardware issue, but still strange that multiple wallets ended up being zeroed.

@bokobza @majikandy I believe this has been fixed?

yeah we can close this, the chances of this happening is very slim and it generally shouldn't.


Service Category in TO API uses non-RFC3339 date/time strings

Parent Issue: https://github.com/apache/trafficcontrol/issues/5911
Traffic Control components affected:

Traffic Ops

Current behavior:
curl -k -X GET -H "Content-Type: application/json" --cookie $mojolicious_id "https://localhost:8443/api/4.1/service_categories?name=demo_app"

{"response":[{"lastUpdated":"2023-03-18 10:55:09+05","name":"demo_app"}]}

Expected behavior:
curl -k -X GET -H "Content-Type: application/json" --cookie $mojolicious_id "https://localhost:8443/api/5.0/service_categories?name=demo_app"

{"response":[{"lastUpdated":"2023-03-18T10:55:09+05:30","name":"demo_app"}]}

Steps to reproduce:
Make the above api call to 4.1 version

Breaking down the Parent Issue in smaller issues to raise separate, reviewable PRs for each of the services.


Create account and get authentication key

How do I create account to liityntäkatalogi to be able to get keys for API-functions requiring authorization? For example I was trying to get list of revisioned APIs in catalogue with
https://liityntakatalogi.suomi.fi/api/3/action/revision_list

and response is:
{"help": "https://liityntakatalogi.suomi.fi/api/3/action/help_show?name=revision_list", "success": false, "error": {"message": "P\u00e4\u00e4sy ev\u00e4tty: <function admin_only at 0x7fe86007cf50> requires an authenticated user", "__type": "Authorization Error"}}

As documented on the front page, registeration is not possible during beta phase. And it wouldn't help since revision list is blocked from everyone else except admins, since only the latest version of api is shown and we don't want so have the older ones to be findable anywhere.

Clarification. In my use I just need information which APIs have been updated not the old content. Based on that info I can retrieve changed meta data again. Would that be possible?

@kyyberi you can use package_search api for that with appropriate filters.
For example https://liityntakatalogi.suomi.fi/api/3/action/package_search?q=metadata_modified%3A[2016-04-25T10:00:00Z TO NOW] leaves one the public apis out since it was modified before the start datetime.

Thanks, I'll check that out.


Awake does not prevent the screensaver from kicking in

Microsoft PowerToys version
0.70.0
Installation method
GitHub
Running as admin
None
Area(s) with issue?
Awake
Steps to reproduce
I need something to temporarily prevent the screensaver from kicking in.
I've installed PowerToys and enabled Awake. It looks like Awake does not block the screensaver from activating after the timeout. AFAICT, Awake only deals with the power plan.
Some users (like myself) use the screensaver to lock their screens. Awake does not help these users.
Please allow Awake to also temporarily suspend the screensaver activation.
✔ Expected Behavior
I've expected Awake to prevent the screensaver from kicking in after its timeout.
❌ Actual Behavior
The screensaver activated as usual and my screen got locked. :(
Other Software
No response

This is out of scope for Awake. It's meant to prevent the computer from sleeping and the screen from turning off, but it will not interfere with screensaver or login prompt configuration.


Label/Aliases for npubs with no set name

Problem example:
I know that Peter is posting using
npub1******************.
As Peter has not filled in a name, I only see the hard-to-recognize public key in postings. If several people whom I follow do that, it becomes really hard to distinguish them and that hampers following the conversations.
Request: let the user add names/aliases/labels locally for any npub they follow/have in their contacts.
Thanks!

Great idea and this is indeed possible at protocol level cc @FrontendCrypto

Added to list. I'll work in the design.


Use PyLong_AsVoidPtr, PyLong_FromVoidPtr for conversion

Use PyLong_AsVoidPtr, PyLong_FromVoidPtr to convert the pointer. Use of
PyInt_AsLong returns a long which will truncate the pointer on a LLP64
target (i.e. Windows). Using PyLong_AsVoidPtr will return a void * for
the Python integer or long integer. Define the corresponding "out" map
which specifies the conversion to wrap the return value of a function
returning a TfLiteDelegate *. This ensures that the conversion is always
valid as the value is constructed fro the PyLong_FromVoidPtr.

CC: @jdduke @saeta

@saeta - I don't think that this is sufficient to restore the Windows build.  I'm still trying to get tensorflow to build on Windows - seems that the version info gen rule is failing for some reason.  I suspect that the changes for bazel will be needed for that


dead code in encodeDouble

I think there is dead code in encodeDouble. count is never used, so all of those lines are extraneous.

Thanks. I will add this to Jira DB-10780.


add details about the selectorTarget field

SelectorTarget details
Document the newly added ClusterPodConvention selectorTarget field and how it works with defined selectors.

Codecov Report

Merging #172 (8994819) into main (2ba5314) will increase coverage by 0.10%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #172      +/-   ##
==========================================
+ Coverage   69.48%   69.58%   +0.10%
==========================================
  Files          17       17
  Lines         934      947      +13
==========================================
+ Hits          649      659      +10
- Misses        265      267       +2
- Partials       20       21       +1

Impacted Files
Coverage Δ

...ventions/v1alpha1/clusterpodconvention_defaults.go
64.70% <0.00%> (-13.87%)
:arrow_down:

pkg/binding/convention.go
92.50% <0.00%> (ø)

pkg/binding/conventions.go
100.00% <0.00%> (ø)

...conventions/v1alpha1/clusterpodconvention_types.go
100.00% <0.00%> (ø)

...ntions/v1alpha1/clusterpodconvention_validation.go
100.00% <0.00%> (ø)

pkg/controllers/podintent_reconciler.go
85.71% <0.00%> (+0.28%)
:arrow_up:

Continue to review full report at Codecov.

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

LGTM!


Navigation Links

Description
Hi, so I have recently been trying to add custom navigation links to my website. However, it seems that the "About" Notion Page is functional but the "Projects" & "Contact" are not working and instead just redirect to a 404 Page Not Found error. The "About", "Projects", and "Contact" pages are all public and have the same exact settings however the Projects, and Contact ones are not working. I am honestly about to give up on the navigation links. I really hope you might be able to help.
Thanks,
Zach

Notion Test Page ID
About:  913fde00aaa74f94a5cd3fb28a7890ff
Projects:  eecb4e6d98c247f9a8fcb71026aabd4a  (Not Functional)
Contact:  0076f5e0f9ec446a8160d77019608d46  (Not Functional)

Here is a link to the vercel instance:
https://zachjmurphy-demo.vercel.app/

@fky2015 Just mentioning you in-case you didn't see this issue.

Can you provide your site.config.ts so I can try to reproduce your problem?
It seems that you created these three pages in three different databases. As you can see, there'is a rootNotionSpaceId in the config. It will prevent rendering cross databases.
A good practice is nesting them together in a single database (just what it is in demo).

Sure! Here is my site.config.ts
import { siteConfig } from './lib/site-config'

export default siteConfig({
  // the site's root Notion page (required)
  rootNotionPageId: 'f41ace4892a842d2a2766e501b8aad77',

  // It's will be used as the root page when running `yarn dev`. (optional)
  // If you are suffering from the slow loading or compiling speed, set this to a smaller page.
  // Just leave `null` if you don't want to use it.
  rootNotionTestPageId: null,

  // if you want to restrict pages to a single notion workspace (optional)
  // (this should be a Notion ID; see the docs for how to extract this)
  rootNotionSpaceId: null,

  // basic site info (required)
  name: 'Zach J Murphy',
  domain: 'zachjmurphy.ca',
  author: 'Zach J Murphy',

  // open graph metadata (optional)
  description: 'Hello My name is Zach J Murphy. I do a bit of everything I make apps with SwiftUI, websites in Next.js and React, servers in Nodejs & Express.',

  // social usernames (optional)
  twitter: 'zachjmurphy',
  github: 'zachjmurphy',
  linkedin: null,

  // default notion icon and cover images for site-wide consistency (optional)
  // page-specific values will override these site-wide defaults
  defaultPageIcon: null,
  defaultPageCover: null,
  defaultPageCoverPosition: 0.5,

  // Giscus comments via Github Discusstion (optional)
  //
  // To generate the following configs, visit https://giscus.app/.
  giscusGithubConfig: {
    repo: 'zachjmurphy/zachjmurphy',
    repoId: 'R_kgDOHZ_AOg',
    category: 'Comments',
    categoryId: 'DIC_kwDOHZ_AOs4CPWDn',
    mapping: 'title',
    reactionsEnabled: '1',
    theme: 'light',
    term: null,
  },
  // whether or not to enable support for LQIP preview images (optional)
  isPreviewImageSupportEnabled: true,

  // whether or not redis is enabled for caching generated preview images (optional)
  // NOTE: if you enable redis, you need to set the `REDIS_HOST` and `REDIS_PASSWORD`
  // environment variables. see the readme for more info
  isRedisEnabled: false,

  // map of notion page IDs to URL paths (optional)
  // any pages defined here will override their default URL paths
  // example:
  //
  // pageUrlOverrides: {
  //   '/foo': '067dd719a912471ea9a3ac10710e7fdf',
  //   '/bar': '0be6efce9daf42688f65c76b89f8eb27'
  // }
  pageUrlOverrides: null,

  // Optional: Normally, the page contain it's metadata
  // like `CreatedTime`, `LastEditedTime`.
  // These metadata cannot be changed by the user.
  // If you want to override this with a page property (so that
  // you can custom it's value), specify it's name here.
  //
  // This should align with the property name in Notion.
  // And the data type should be `Date` or `String`.
  // Any invalid data type will be ignored and fallback to default metadata.
  //
  // These metadata will be used when generating RSS, Sitemap, etc.
  OverrideCreatedTime: null,
  OverrideLastEditedTime: null,

  // whether to use the default notion navigation style or a custom one with links to
  // important pages
  navigationStyle: 'custom',
  navigationLinks: [
    {
      title: 'About',
      pageId: '913fde00aaa74f94a5cd3fb28a7890ff'
    },
    {
      title: 'Projects',
      pageId: 'eecb4e6d98c247f9a8fcb71026aabd4a'
    },
    {
      title: 'Contact',
      pageId: '0076f5e0f9ec446a8160d77019608d46'
    }
  ]
})```

Can you provide your site.config.ts so I can try to reproduce your problem?
It seems that you created these three pages in three different databases. As you can see, there'is a rootNotionSpaceId in the config. It will prevent rendering cross databases.
A good practice is nesting them together in a single database (just what it is in demo).

How would I put it into a single database?

Just drag and move your page in the Notion navbar :smiley:.

As you can see in the demo, the "Contact" page is actually a subpage of the blog post. And the "About" page is also a subpage (that is hiding in the database).

In detail, Navigation Links is aimed to provide an alias to processed pages, which means all the pages in rootNotionPageId. Other pages, however, are not indexed by the project. So it's impossible to generate aliases because origin content does not exist.

Just drag and move your page in the Notion navbar 😃.

As you can see in the demo, the "Contact" page is actually a subpage of the blog post. And the "About" page is also a subpage (that is hiding in the database).

Thank You. I will make this change.

In detail, Navigation Link is aimed to provide an alias to processed pages, which means all the pages in rootNotionPageId. Other pages, however, are not indexed by the project. So it's impossible to generate aliases because origin content does not exist.

Thank you for the information.

Just drag and move your page in the Notion navbar 😃.

As you can see in the demo, the "Contact" page is actually a subpage of the blog post. And the "About" page is also a subpage (that is hiding in the database).

I just made these changes and it fixed my problem. Thank You!


chore: fix invalid symbol '"'

Description
Ref codeigniter4/CodeIgniter4#9058
Checklist:

[x] Securely signed commits
[ ] Component(s) with PHPDoc blocks, only if necessary or adds value
[ ] Unit testing, with >80% coverage
[ ] User guide updated
[x] Conforms to style guide

See https://github.com/actions/runner/issues/753#issuecomment-1602902095 for the proper fix.


add sudo rule

sudo/sudo_user are deprecated commands as of ansible 1.9. Instead playbooks should be using become/become_user. This rule looks for uses of sudo and sudo_user.

This looks good - can we have an associated test for it?

In particular, there seem to be two main code paths, where sudo is in a list, and where it's in a dict - it would be good to exercise both paths.

@willthames I created some unit tests for the Sudo rule.

+1

This currently fails flake8. Once it passes, I will merge this, thanks.

flake8 warnings have been fixed

Merged, thanks


Select a bubble programmatically

Hello
I want to programmatically select a bubble and that bubble is highlighted.
Do you have any suggestions?
Thankful

I believe you have a few options, you can use reflections to change the tint of the selected cell on select and unselect.  Use a custom cell that provides direct support for the feauture, or see jf you can modify the cell selection state of the table to enable highlighting of the cell.  Personally, I have not done either of the three, but I would look at the source to see what is possible.


Text in drawer can't be selected

There was already a similar issue before: https://github.com/emilkowalski/vaul/issues/295.
It looks like the #182 (drawer handle component) discards the changes introduced in #314 (block swipe if in wrong direction).
My guess is that this change from #314 was reverted in drawer handle PR and that's the reason why text selection is not working

@dmytro-ulianov did you ever find a solution?

Facing the same issue here, is there a work around?

@fruityfishy , unfortunately, this also does not seem to work for me :(. Does this solution work for you on mobile phones?

@shrihari-prakash, ah that's unfortunate.  I haven't checked on mobile but I can confirm it works on web.

Hello @emilkowalski , would there be any plan to fix this? Or would you possibly know any workarounds that we could try to solve this issue? Would appreciate any clue on how to resolve this.

@shrihari-prakash, i plan to investigate this issue within the next week or two to determine how it can be resolved.
and i believe the changes proposed in https://github.com/emilkowalski/vaul/pull/314 should meet our needs.

@fruityfishy , unfortunately, this also does not seem to work for me :(. Does this solution work for you on mobile phones?

you can fix it with !select-text in tailwind or !important with regular css

Fixed in #291

@emilkowalski do you think it makes sense to reopen this issue since it hasn't been really resolved?
here's the discussion on twitter


feat: add AVRO schema validation

Description
This PR adds AVRO validation for message payloads that uses the schema formats:
"application/vnd.apache.avro;version=1.9.0",
"application/vnd.apache.avro+json;version=1.9.0",
"application/vnd.apache.avro+yaml;version=1.9.0"

Based on the recommended schema formats: https://www.asyncapi.com/docs/reference/specification/v2.6.0#messageObjectSchemaFormatTable
Related issue(s)
Blocked by https://github.com/asyncapi/spec-json-schemas/pull/334

This PR is ready to be reviewed as https://github.com/asyncapi/spec-json-schemas/pull/334 has been merged.
Think you have to re-run the macos test.

See https://github.com/asyncapi/spec-json-schemas/pull/350


Update dim-statement.md

there was no blank (space) between lower and To in the parameter description, so changed from lowerTo to lower To

Docs Build status updates of commit 5d2769e:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

Language/Reference/User-Interface-Help/dim-statement.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

@Tanguerjho I already fixed this when you submitted it as an issue. FYI: if a request is small, it's better to submit it as an issue, because this repo takes a long time to build. Just remember to include a link to the page so we know where the change needs to go. Closing this PR without merging.


Slow on Android

After switching from react-native-document-scanner to this lib, the Android version is slow at capturing (about 5 seconds). Noticed this on various models. Let me know if I can do anything to dig into it.

@antoinerousseau Same here, it's a bit slow after the picture is taken.

What image quality setting are you capturing on?
One of the reasons why I added the separate onPictureTaken and onPictureProcessed callbacks was writing the image(s) to the file system takes the most amount of time.
Also, here's some additional thoughts on optimizing.
Android auto focus
On capture, android has to auto focus before starting the capture here. Ideally, the system should be auto focusing continuously so what's the point of triggering a refocus again?
image quality
If you specify a higher jpeg image quality (> 0.8 lets say), the actual image size is larger and can take longer to save the photo, so setting that number to lower may be desired. I noticed with some of the other packages that the ImageProcessor.java file would scale the cropped image down. For example height = src.size.height / 500. I removed all of that, so this easily could be related to final image capture quality/size. Reducing the image quality might not be enough though, maybe we should add a scale option to the component to scale the image size too.
Time Testing
The easiest way to check these would just be logging the time for some of those capture functions to run. So log the time difference for the CameraDeviceController.captureImageLater func and the CameraDeviceController.onPictureTaken func to see how long the auto focus step is taking.
Then log the final RNRectangleScannerView.onProcessedCapturedImage to see how long storing the images is taking.
My original thoughts with adding the onPictureTaken and onPictureProcessed was to allow people to capture higher quality images while showing their customers a loading screen (or transitioning to a different view AND then load the image once the processed callback was triggered. But I noticed that often times you don't need to capture the highest quality image. For my company's use case, our images were huge and took longer than desired to upload to the server after capture. So reducing the quality worked for us.

@humphreyja thank you for the complete feedback, I'll play with these settings next week and I'll let you know!

@antoinerousseau issue #28 seems to be related to getting stuck because of the autofocus on capture as well. I'm leaning towards removing that block of code.

Maybe you could make an autofocus option (prop)

That might not be the ideal solution as this package should always be autofocusing. The problem is android, actually specific android hardware. Not every device supports continuous autofocus or even autofocus.
I think I'll end up removing it. But maybe I can trigger it to autofocus every few seconds (to mimic a continuous autofocus). This is something that would get enabled on setting up the camera so it wouldn't run for every device. That way the capture button is more instant.

How to work in Android ?????


Merge develop to main 1.10.2021

Description :sparkles:
Merge changes from develop branch to main.
Issues :bug:
Testing :alembic:
Screenshots :camera_flash:
Additional notes :spiral_notepad:

Codecov Report

Merging #325 (ed747b3) into main (c881015) will decrease coverage by 0.25%.
The diff coverage is 97.27%.

@@            Coverage Diff             @@
##             main     #325      +/-   ##
==========================================
- Coverage   95.64%   95.38%   -0.26%
==========================================
  Files         140       88      -52
  Lines        4726     2882    -1844
==========================================
- Hits         4520     2749    -1771
+ Misses        206      133      -73

Impacted Files
Coverage Δ

...ed/audit_log/jobs/quarter_hourly/send_audit_log.py
75.00% <ø> (ø)

backend/shared/shared/audit_log/models.py
53.33% <0.00%> (ø)

backend/kesaseteli/applications/tests/conftest.py
66.66% <62.50%> (-33.34%)
:arrow_down:

backend/shared/shared/azure_adfs/auth.py
81.81% <63.63%> (-4.39%)
:arrow_down:

...kend/kesaseteli/applications/api/v1/permissions.py
92.85% <92.85%> (+3.96%)
:arrow_up:

backend/kesaseteli/applications/views.py
97.61% <97.61%> (ø)

...esaseteli/applications/exporters/excel_exporter.py
97.87% <97.87%> (ø)

...kend/kesaseteli/applications/api/v1/serializers.py
96.66% <100.00%> (+0.45%)
:arrow_up:

backend/kesaseteli/applications/api/v1/views.py
92.85% <100.00%> (+0.75%)
:arrow_up:

...pplications/jobs/monthly/clean_old_applications.py
100.00% <100.00%> (ø)

... and 58 more

Continue to review full report at Codecov.

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


Reference formats by unique identifier

When Pokebank was released and gen7pokebankou was renamed gen7ou (ced6a88ddea26748d24e7c42b7ed35f699d6c92e),  it made it extremely difficult to figure out which battles of format "gen7ou" are pre- and post-bank.
This is probably the most important example, but there are also cases where one would want to know whether a log is from before or after a tier shift, suspect test or new release. None of that is possible when the only thing that denotes the battle's format is the format name.
Luckily, this is a solved problem: basically, every variation on every format should be given a unique ID. That is, something gets banned, it gets a new ID. Tier gets renamed, totally new ID. It's way easier to combine than to separate.
How this ID gets generated, and how it's looked up, I leave as implementation details (if you want suggestions, I'll be happy to provide), but yeah, this goes near the top of my "want" list.

in theory, you can generate it yourself from datestamp and format ID, right?

But I have no way of knowing precisely when a format switched over. PS doesn't auto-restart when you commit changes to master, does it?

In theory just look for the last gen7pokebankou game, and that's a pretty good timestamp to use.
You can also look for hotpatches around that time.

I wonder if it would be feasible to have a version field for each format, like:
version: 1,

which gets incremented each time a change is made, and is included with all replays.

Formatid + version would indeed define a unique identifier.
I'd actually suggest instead of numerical version use either timestamp of last format change or--better--commit hash.
To simplify further, just include the PS version (commit hash) in the logs! That also accounts for changes resulting from bugfixes or mechanics changes.

Commit hash is feasible, but I want to point out that main server doesn't have the same commit hashes as the Showdown repository itself, due to changes that aren't in repository proper.
The question I assume is that you want to know if a given commit is before or after commit where certain big change occurred. For this question to be answerable, you need to know the entire tree of commits (which is completely different to the one in repository, due to changes that weren't pushed).
I suppose this can be handled, I just wanted to point a small issue out.


[Bug]: Get-EvergreenApp -Name AdobeAcrobatReaderDC is returning an HTTP 400 Bad request

What happened?
I'm unsure at this stage if this is a transient issue, but running Get-EvergreenApp -Name AdobeAcrobatReaderDC this morning results in an HTTP 400 Bad request
The webpage (https://get.adobe.com/uk/reader/) reports it is for version 24.005.20320 - This is newer than the previous version (24.004.20220), But this is not (yet) showing on their release notes page: https://www.adobe.com/devnet-docs/acrobatetk/tools/ReleaseNotesDC/index.html
So, being 'Patch Tuesday' I suspect Adobe are updating their JSON files atm ready for a new version release
Version
2412.1685
What PowerShell edition/s are you running Evergreen on?
PowerShell Core, Windows PowerShell
Which operating system/s are you running Evergreen on?
Windows 10+
Have you reviewed the documentation?

[X] Troubleshooting at: https://stealthpuppy.com/evergreen/troubleshoot/
[X] Known issues at: https://stealthpuppy.com/evergreen/issues/

Verbose output
Get-EvergreenApp -Name AdobeAcrobatReaderDC -verbose
VERBOSE: Function path: C:\Program Files\WindowsPowerShell\Modules\Evergreen\2412.1685\Apps\Get-AdobeAcrobatReaderDC.ps1
VERBOSE: Function exists: C:\Program Files\WindowsPowerShell\Modules\Evergreen\2412.1685\Apps\Get-AdobeAcrobatReaderDC.ps1.
VERBOSE: Dot sourcing: C:\Program Files\WindowsPowerShell\Modules\Evergreen\2412.1685\Apps\Get-AdobeAcrobatReaderDC.ps1.
VERBOSE: Get-FunctionResource: read application resource strings from [C:\Program Files\WindowsPowerShell\Modules\Evergreen\2412.1685\Manifests\AdobeAcrobatReaderDC.json]
VERBOSE: Calling: Get-AdobeAcrobatReaderDC.
VERBOSE: Get-AdobeAcrobatReaderDC: Searching updates for language: mui.
VERBOSE: Invoke-EvergreenRestMethod: Invoke-RestMethod parameter: DisableKeepAlive: True.
VERBOSE: Invoke-EvergreenRestMethod: Invoke-RestMethod parameter: Method: Default.
VERBOSE: Invoke-EvergreenRestMethod: Invoke-RestMethod parameter: MaximumRedirection: 2.
VERBOSE: Invoke-EvergreenRestMethod: Invoke-RestMethod parameter: UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36 Edg/127.0.2651.105.
VERBOSE: Invoke-EvergreenRestMethod: Invoke-RestMethod parameter: ContentType: application/json; charset=utf-8.
VERBOSE: Invoke-EvergreenRestMethod: Invoke-RestMethod parameter: UseBasicParsing: True.
VERBOSE: Invoke-EvergreenRestMethod: Invoke-RestMethod parameter: Uri: https://rdc.adobe.io/reader/products?lang=mui&site=otherversions&os=Windows%2010&preInstalled=&api_key=dc-get-adobereader-cdn.
VERBOSE: Requested HTTP/1.1 GET with 0-byte payload
VERBOSE: Received HTTP/1.1 response of content type application/json of unknown size
VERBOSE: Content encoding: utf-8
VERBOSE: Get-AdobeAcrobatReaderDC: Searching downloads for language: MUI, mui.
VERBOSE: Invoke-EvergreenRestMethod: Invoke-RestMethod parameter: DisableKeepAlive: True.
VERBOSE: Invoke-EvergreenRestMethod: Invoke-RestMethod parameter: Method: Default.
VERBOSE: Invoke-EvergreenRestMethod: Invoke-RestMethod parameter: MaximumRedirection: 2.
VERBOSE: Invoke-EvergreenRestMethod: Invoke-RestMethod parameter: UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36 Edg/127.0.2651.105.
VERBOSE: Invoke-EvergreenRestMethod: Invoke-RestMethod parameter: ContentType: application/json; charset=utf-8.
VERBOSE: Invoke-EvergreenRestMethod: Invoke-RestMethod parameter: UseBasicParsing: True.
VERBOSE: Invoke-EvergreenRestMethod: Invoke-RestMethod parameter: Uri: https://rdc.adobe.io/reader/downloadUrl?name=Reader%202024.005.20320%20MUI%20for%20Windows-64bit&os=Windows%2011&site=enterprise&lang=mui&api_key=dc-get-adobereader-cdn.
VERBOSE: Requested HTTP/1.1 GET with 0-byte payload
VERBOSE: Received HTTP/1.1 response of content type application/json of unknown size
WARNING: Invoke-EvergreenRestMethod: Response status code does not indicate success: 400 (Bad Request)., with: https://rdc.adobe.io/reader/downloadUrl?name=Reader%202024.005.20320%20MUI%20for%20Windows-64bit&os=Windows%2011&site=enterprise&lang=mui&api_key=dc-get-adobereader-cdn.
WARNING: Invoke-EvergreenRestMethod: For troubleshooting steps see: https://stealthpuppy.com/evergreen/troubleshoot/.
WARNING: Run 'Get-EvergreenApp -Name "AdobeAcrobatReaderDC" -Verbose' to review additional details for troubleshooting.
Invoke-RestMethod: C:\Program Files\WindowsPowerShell\Modules\Evergreen\2412.1685\Private\Invoke-EvergreenRestMethod.ps1:123
Line |
 123 |          $Response = Invoke-RestMethod @params
     |                      ~~~~~~~~~~~~~~~~~~~~~~~~~
     |  {   "reason": "HTTP 400 Bad Request Request id: JXkjmqes3dDdoZkARAOEVmyPX4okXaAC.",   "message": "Application error" }

Ignore - It was a transcient issue, It's now returning the correct results


Fix cpp coverage

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

Project coverage is 90.00%. Comparing base (edc9ba6) to head (9dedc50).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main       #2   +/-   ##
=======================================
  Coverage   90.00%   90.00%
=======================================
  Files           1        1
  Lines          20       20
=======================================
  Hits           18       18
  Misses          2        2

Flag
Coverage Δ

unittests
90.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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


Deployment on Red Hat OpenShift fails

During startup the following error is logged:
Traceback (most recent call last):
  File "app.py", line 18, in <module>
    from api import ModelMetadataAPI, ModelPredictAPI
  File "/workspace/api/__init__.py", line 18, in <module>
    from .predict import ModelPredictAPI  # noqa
  File "/workspace/api/predict.py", line 64, in <module>
    class ModelPredictAPI(PredictAPI):
  File "/workspace/api/predict.py", line 66, in ModelPredictAPI
    model_wrapper = ModelWrapper()
  File "/workspace/core/model.py", line 57, in __init__
    vocab_file='assets/vocab.txt', do_lower_case=True)
  File "/workspace/core/tokenization.py", line 151, in __init__
    self.vocab = load_vocab(vocab_file)
  File "/workspace/core/tokenization.py", line 113, in load_vocab
    token = convert_to_unicode(reader.readline())
  File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/lib/io/file_io.py", line 183, in readline
    self._preread_check()
  File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/lib/io/file_io.py", line 85, in _preread_check
    compat.as_bytes(self.__name), 1024 * 512, status)
  File "/opt/conda/lib/python3.6/site-packages/tensorflow/python/framework/errors_impl.py", line 528, in __exit__
    c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.PermissionDeniedError: assets/vocab.txt; Permission denied

Permissions:

$ ls -al
total 92
drwxr-xr-x. 1 root root   4096 Sep 13 07:24 .
drwxr-xr-x. 1 root root   4096 Sep 18 12:52 ..
-rw-r--r--. 1 root root     15 Sep 13 07:16 .dockerignore
-rw-r--r--. 1 root root   1197 Sep 13 07:16 .gitignore
-rw-r--r--. 1 root root    912 Sep 13 07:16 .travis.yml
-rw-r--r--. 1 root root   1650 Sep 13 07:16 Dockerfile
-rw-r--r--. 1 root root  11357 Sep 13 07:16 LICENSE
-rw-r--r--. 1 root root    812 May 29 00:32 README.md
drwxr-xr-x. 2 root root   4096 Sep 13 07:16 api
-rw-r--r--. 1 root root    878 Sep 13 07:16 app.py
drwxr-xr-x. 1  501 staff  4096 Sep 13 07:21 assets
-rw-r--r--. 1 root root    955 Sep 13 07:16 config.py
drwxr-xr-x. 2 root root   4096 Sep 13 07:16 core
drwxr-xr-x. 2 root root   4096 Sep 13 07:16 docs
-rw-r--r--. 1 root root   1221 Sep 13 07:16 max-question-answering.yaml
-rw-r--r--. 1 root root     23 Sep 13 07:16 requirements-test.txt
-rw-r--r--. 1 root root     45 Sep 13 07:16 requirements.txt
drwxr-xr-x. 2 root root   4096 Sep 13 07:16 samples
-rw-r--r--. 1 root root    677 Sep 13 07:16 sha512sums.txt
drwxr-xr-x. 2 root root   4096 Sep 13 07:16 tests
$ cd assets
$ ls -al
total 248
drwxr-xr-x. 1  501 staff   4096 Sep 13 07:21 .
drwxr-xr-x. 1 root root    4096 Sep 13 07:24 ..
-rwxr-xr-x. 1  501 staff    213 Sep 13 01:41 ._max_qa_model
-rw-------. 1  501 staff    350 Sep 13 01:39 ._vocab.txt
drwxr-xr-x. 3  501 staff   4096 Sep 13 07:21 max_qa_model
-rw-------. 1  501 staff 231508 Sep 13 01:39 vocab.txt

Will fix this issue and upload to max-assets-prod once the trainable PR is also merged incase we find some regression issues.

@ptitzler which file is the one causing issues? is it just vocab.txt?

Yes. The issue is that Red Hat applies strict security and uses a "random" id to run the Docker image. That id is different from the id "501" that was used when the Docker image was built. During the build assets.tar.gz was downloaded and extracted and the original file permissions retained. To solve the problem you need to

repackage assets.tar.gz (assuring that for all files go+r permissions are set)
upload the new version to COS
reference the updated file in Dockerfile


Make connections avoid other systems

Sometimes a path is taken that leads back to a previous system, and the path line goes under all the other systems.
my request is to make this connections line collide with the least amount of systems possible for clearer vision of where the connection comes from and leads to.

Can't you just move it around on the map to make it do that?

Can't you just move it around on the map to make it do that? That is what I do when I have the same issue.

Yeah that's what we have to do at the moment, but if you have a long line and you dont know which system it's going to it can take a few minutes to figure it out, which could be more time spent scanning

@Raldeme Adding some kind of a "collision detection" for connections is not realistic. A ton of work, with a huge risk of being buggy at the end.
I think the changes I made in https://github.com/exodus4d/pathfinder/issues/845#issuecomment-538456783 for the next release might help with your problem.
New created systems (jump detected) are no longer created at [0,0] map coordinate. Its new position is based on the current map scroll section of that user + some collision detection for existing systems in that area.


fix: Avoid heavy imports in operator constructor

After a previous commit [1] improving import time on operator import, this commit fixes the import time issues when instantiating any of the dbt operators.
The main issue still present was the enum imports in the operator constructors, which make DAGs slow to import any time they instantiated one of them.
Profiling can be easily run locally, with the following command:
python -X importtime -c "from airflow_dbt_python.operators.dbt import DbtRunOperator; DbtRunOperator(task_id='test')" 2>import-times.log

[1] https://github.com/tomasfarias/airflow-dbt-python/commit/67c8d7866235e105675bd208659aac2ccc26070e

note-to-self: Keep this trick in mind for future development.

@tomasfarias, thanks for the quick review and resolution! Glad to see this project well supported and moving forward.

Moreover, it's a common pattern in other Airflow provider packages

Exactly, I looked at some official providers to follow the same pattern, as I thought that could be a concern if a separate module didn't exist until now.


Fix GUROBI status map

Fixes issue #99
Looking at the Gurobi docs, there are status codes which indicate user limits reached. It appears to me suboptimal solution may and often exist in these cases. https://www.gurobi.com/documentation/6.5/refman/optimization_status_codes.html#sec:StatusCodes
I played around with these Gurobi user limits, and indeed when time, iteration and solution limits are hit (in my single test case of a mixed integer programming problem), suboptimal solutions are returned from Gurobi solver, and can be successfully unpacked by CVXR.
I suggest we relax what CVXR considers suboptimal solutions to include these user limit solutions. I made the change for GUROBI_CONIC as well, though I didn't bother testing that.
I did not use USER_LIMIT for these user limits status codes because USER_LIMIT is not included in SOLUTION_PRESENT, which would have caused no solution unpacking. I'm not sure if it's wise to add USER_LIMIT to SOLUTION_PRESENT, so I did not use USER_LIMIT.

@bnaras  hi, any chance you can review this super simple PR. It's very important to me