How to get the textured mesh in gradio?

Hi, really inspiring work! I encountered a problem when use the gradio demo. Firstly, I upload the texture img and corresponding mask to get the texture. When I try to rendered the mesh I upload to gradio from the  'example/result' , I got this result in the "Textured results" region.

It seemed like that I got 8 screenshot of the page I was operating. Is there something wrong with my processing. Appreciating for your reply!!!

'Outputs' shows the inpainted result. If you want to get the textured mesh, please put the correct mesh to 'Mesh Input' (Noted that it will take the inputs as the texture image) and click ‘Render’ later.
Or you can download the inpainted result and modify the texture image path in the '.mtl' file.

'Outputs' shows the inpainted result. If you want to get the textured mesh, please put the correct mesh to 'Mesh Input' (Noted that it will take the inputs as the texture image) and click ‘Render’ later. Or you can download the inpainted result and modify the texture image path in the '.mtl' file.

Thanks for your quick reply, I've tried the gradio again, put the correct mesh in mesh input, the expected result should be the textured mesh, but the 'Textured Result' still the screenshot.

BTW, To try the second way you mentioned, I replace the map_Kd in texture.mtl, and how should I get the result, I am new in rendering, hope this not bother you.

Looking for your replay!

That's right, you should replace the path first. And make sure the mesh file contains the correct vts information. You can refer here to add the uv information to a mesh file and bind it with the modified texture.mtl.
You can take a look at the partial_colored.obj in our temp results.
# An .obj file may contains such information :
mtllib texture.mtl # to specific the material file
usemtl texture

v -0.019645 0.195721 0.010508 # vertex information

vt 0.458691 0.749025 # uv information

f 4/1 37498/40198 37499/40199 # triangle mesh

After that, you can directly use software like meshlab or blender to check the textured mesh. Or you can use open3d to render the result manually.
Here is the corresponding code we used in the gradio demo. It will load the mesh and texture image first. Then render the images with open3d. I'm also curious about why it shows the screenshot rather than the mesh even if you have already provided the mesh. Can you please check the temp results of this part. And it will be helpful to provide your environment for me to check later.

Thanks for reply,!

I have check the temp_result  partial_colored.obj , it contains the keys you mentioned

The partial_colored.obj in meshlab is as the following, it contained the uv information.

And my environment is export as:

name: shert
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2024.9.24=h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.15=h5eee18b_0
  - pip=24.2=py38h06a4308_0
  - python=3.8.20=he870216_0
  - readline=8.2=h5eee18b_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - xz=5.4.6=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - absl-py==2.1.0
      - accelerate==1.0.1
      - adabound==0.0.5
      - aiofiles==23.2.1
      - aiohappyeyeballs==2.4.3
      - aiohttp==3.10.10
      - aiosignal==1.3.1
      - altair==5.4.1
      - annotated-types==0.7.0
      - antlr4-python3-runtime==4.9.3
      - anyio==4.5.2
      - argon2-cffi==23.1.0
      - argon2-cffi-bindings==21.2.0
      - arrow==1.3.0
      - asttokens==2.4.1
      - async-lru==2.0.4
      - async-timeout==4.0.3
      - attrs==24.2.0
      - babel==2.16.0
      - backcall==0.2.0
      - beautifulsoup4==4.12.3
      - bleach==6.1.0
      - boto3==1.35.55
      - botocore==1.35.55
      - cachetools==5.5.0
      - certifi==2022.12.7
      - cffi==1.17.1
      - charset-normalizer==2.1.1
      - chumpy==0.70
      - click==8.1.7
      - coloredlogs==15.0.1
      - comm==0.2.2
      - compel==2.0.3
      - compress-pickle==2.1.0
      - contourpy==1.1.1
      - cupy==12.3.0
      - cycler==0.12.1
      - cython==0.29.37
      - debugpy==1.8.7
      - decorator==5.1.1
      - defusedxml==0.7.1
      - diffusers==0.31.0
      - docker-pycreds==0.4.0
      - einops==0.8.0
      - exceptiongroup==1.2.2
      - executing==2.1.0
      - face-alignment==1.4.1
      - facenet-pytorch==2.5.3
      - fastapi==0.112.4
      - fastjsonschema==2.20.0
      - fastrlock==0.8.2
      - ffmpy==0.4.0
      - filelock==3.13.1
      - flatbuffers==24.3.25
      - fonttools==4.54.1
      - fqdn==1.5.1
      - frozenlist==1.5.0
      - fsspec==2024.2.0
      - future==1.0.0
      - fvcore==0.1.5.post20221221
      - gevent==24.2.1
      - gitdb==4.0.11
      - gitpython==3.1.43
      - google-auth==2.36.0
      - google-auth-oauthlib==1.0.0
      - gradio==4.44.1
      - gradio-client==1.3.0
      - gradio-toggle==0.0.2
      - greenlet==3.1.1
      - grpcio==1.67.1
      - h11==0.14.0
      - httpcore==1.0.6
      - httpx==0.27.2
      - huggingface-hub==0.26.2
      - humanfriendly==10.0
      - idna==3.4
      - imageio==2.35.1
      - imgaug==0.4.0
      - importlib-metadata==8.5.0
      - importlib-resources==6.4.5
      - iopath==0.1.10
      - ipykernel==6.29.5
      - ipython==8.12.3
      - ipywidgets==8.1.5
      - isoduration==20.11.0
      - jax==0.4.13
      - jaxlib==0.4.13
      - jedi==0.19.1
      - jinja2==3.1.3
      - jmespath==1.0.1
      - joblib==1.4.2
      - json5==0.9.25
      - jsonpointer==3.0.0
      - jsonschema==4.23.0
      - jsonschema-specifications==2023.12.1
      - jupyter-client==8.6.3
      - jupyter-core==5.7.2
      - jupyter-events==0.10.0
      - jupyter-lsp==2.2.5
      - jupyter-server==2.14.2
      - jupyter-server-terminals==0.5.3
      - jupyterlab==4.2.5
      - jupyterlab-pygments==0.3.0
      - jupyterlab-server==2.27.3
      - jupyterlab-widgets==3.0.13
      - kiwisolver==1.4.7
      - kornia==0.7.3
      - kornia-rs==0.1.7
      - lazy-loader==0.4
      - lightning-utilities==0.11.8
      - llvmlite==0.41.1
      - markdown==3.7
      - markdown-it-py==3.0.0
      - markupsafe==2.1.5
      - matplotlib==3.7.5
      - matplotlib-inline==0.1.7
      - mdurl==0.1.2
      - mediapipe==0.10.11
      - mistune==3.0.2
      - ml-dtypes==0.2.0
      - mpmath==1.3.0
      - msgpack==1.1.0
      - multidict==6.1.0
      - munch==4.0.0
      - narwhals==1.13.2
      - nbclient==0.10.0
      - nbconvert==7.16.4
      - nbformat==5.10.4
      - nest-asyncio==1.6.0
      - networkx==3.0
      - notebook==7.2.2
      - notebook-shim==0.2.4
      - numba==0.58.1
      - numpy==1.23.1
      - oauthlib==3.2.2
      - omegaconf==2.3.0
      - onnxruntime==1.19.2
      - open3d==<IP_ADDRESS>
      - opencv-contrib-python==<IP_ADDRESS>
      - opencv-python==<IP_ADDRESS>
      - opencv-python-headless==<IP_ADDRESS>
      - opt-einsum==3.4.0
      - orjson==3.10.11
      - overrides==7.7.0
      - packaging==24.1
      - pandas==2.0.3
      - pandocfilters==1.5.1
      - parso==0.8.4
      - pexpect==4.9.0
      - pickleshare==0.7.5
      - pillow==10.2.0
      - pkgutil-resolve-name==1.3.10
      - platformdirs==4.3.6
      - pooch==1.8.2
      - portalocker==2.10.1
      - prometheus-client==0.21.0
      - prompt-toolkit==3.0.48
      - propcache==0.2.0
      - protobuf==3.20.3
      - psutil==6.1.0
      - ptyprocess==0.7.0
      - pure-eval==0.2.3
      - pyasn1==0.6.1
      - pyasn1-modules==0.4.1
      - pybind11==2.13.6
      - pycparser==2.22
      - pydantic==2.9.2
      - pydantic-core==2.23.4
      - pydeprecate==0.3.1
      - pydub==0.25.1
      - pyembree==0.2.11
      - pygments==2.18.0
      - pymatting==1.1.12
      - pyparsing==3.1.4
      - python-dateutil==2.9.0.post0
      - python-json-logger==2.0.7
      - python-multipart==0.0.17
      - pytorch-lightning==1.5.0
      - pytz==2024.2
      - pywavelets==1.4.1
      - pyyaml==6.0.2
      - pyzmq==26.2.0
      - referencing==0.35.1
      - regex==2024.11.6
      - rembg==2.0.59
      - requests==2.32.3
      - requests-oauthlib==2.0.0
      - rfc3339-validator==0.1.4
      - rfc3986-validator==0.1.1
      - rich==13.9.4
      - rpds-py==0.20.1
      - rsa==4.9
      - rtree==1.3.0
      - ruff==0.7.2
      - s3transfer==0.10.3
      - safetensors==0.4.5
      - scikit-image==0.21.0
      - scikit-learn==1.3.2
      - scipy==1.10.1
      - semantic-version==2.10.0
      - send2trash==1.8.3
      - sentry-sdk==2.18.0
      - setproctitle==1.3.3
      - setuptools==60.10.0
      - shapely==2.0.6
      - shellingham==1.5.4
      - six==1.16.0
      - smmap==5.0.1
      - smplx==0.1.28
      - sniffio==1.3.1
      - sounddevice==0.5.1
      - soupsieve==2.6
      - stack-data==0.6.3
      - starlette==0.38.6
      - sympy==1.13.1
      - tabulate==0.9.0
      - tensorboard==2.14.0
      - tensorboard-data-server==0.7.2
      - termcolor==2.4.0
      - terminado==0.18.1
      - threadpoolctl==3.5.0
      - tifffile==2023.7.10
      - tinycss2==1.4.0
      - tinyobjloader==0.0.0
      - tokenizers==0.20.3
      - tomli==2.0.2
      - tomlkit==0.12.0
      - torch==2.1.0+cu121
      - torchaudio==2.1.0+cu121
      - torchfile==0.1.0
      - torchmetrics==1.5.1
      - torchvision==0.16.0+cu121
      - tornado==6.4.1
      - tqdm==4.67.0
      - traitlets==5.14.3
      - transformers==4.46.2
      - trimesh==3.23.5
      - triton==2.1.0
      - typer==0.12.5
      - types-python-dateutil==<IP_ADDRESS>41003
      - typing-extensions==4.12.2
      - tzdata==2024.2
      - uri-template==1.3.0
      - urllib3==2.2.3
      - uvicorn==0.32.0
      - wandb==0.18.6
      - wcwidth==0.2.13
      - webcolors==24.8.0
      - webencodings==0.5.1
      - websocket-client==1.8.0
      - websockets==11.0.3
      - werkzeug==3.0.6
      - wheel==0.37.1
      - widgetsnbextension==4.0.13
      - yacs==0.1.8
      - yarl==1.15.2
      - zerorpc==0.6.3
      - zipp==3.20.2
      - zope-event==5.0
      - zope-interface==7.1.1
prefix: /home/aiart/.conda/envs/shert


Unable to fetch data from non SSL verified host

Description

Fetching data from Non SSL verified host is giving network error

React Native Version
0.71.3
Output of npx react-native info
OS: Windows 10 10.0.22
Node: 16.17.0
npm: 8.15.0
Java: 17.06
react: 18.2.0
react-native: 0.71.3
Steps to reproduce

run the react-native using npm run
after fetching it is giving this issue

Snack, code example, screenshot, or link to a repository
const res=fetch();

No se puede


Pagination not working properly for multiple tables with multiple pages

How to draw multiple tables paginated across different pages using current lib..i.e. new table should be drawn next to existing one in paginated fashion

I will have a look to come up with a simple example as soon as I find some time for it. Maybe you can already share what you tried so far.

I tried ExcelLikeExampleTest with 2 tables..as long as 2 tables have data within 1 page it works fine but if data grows over 1 page for any one of the table it breaks..I tried combining example of TableOverServeralPages with ExcelLikeExampleTest but it doesn't work properly

After having a closer look I think the easiest solution is to adapt the TableDrawer class a bit in the library. The idea is to add an additional member that stores the y value at the end, i.e. when drawing the table is finished.

The issue is fixed with release 0.5.1. One can now draw several multipage tables on the same document.

Hey @arunmurukesh, please have a look at https://github.com/vandeseer/easytable/issues/59 – there is an example on how to do it.


PHPMD execution failed with returned code '137'

Hi,
I would like to report an issue and get some support if possible.
We have a pretty big project in PHP and we have Sonar performing an analysis of the project (the tasks are executed using Maven). Pdepend runs properly (although it needs a long time and uses 12GB of RAM and 400MB of disk), but phpmd dies after 7 minutes. This was working for us until a month or so, when we refactored some classes and merged some branches.
The error is:

[DEBUG] [10:59:28.538] Release semaphore on project : org.sonar.api.resources.Project@19b45d3d[id=1,key=Group_name:name,qualifier=TRK], with key batch-Group_name:name
[DEBUG] [10:59:28.935] To prevent a memory leak, the JDBC Driver [org.postgresql.Driver] has been forcibly deregistered
[DEBUG] [10:59:30.270] Delete temporary directory: /tmp/sonar-batch32276477681916127518875165597860515
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16:38.387s
[INFO] Finished at: Wed Aug 07 10:59:30 CEST 2013
[INFO] Final Memory: 23M/762M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0:sonar (default-cli) on project name: Can not execute Sonar: PHPMD execution failed with returned code '137'. Please check the documentation of PHPMD to know more about this failure. -> [Help 1]

If I execute in a terminal the same command that Sonar is running, I get no error or any output, and the xml report file is empty.
I have not found any option in phpmd to have verbose messages and find out how to solve the issue (e.g. --debug).
Some guidance will be really appreciated.
Thank you

It seems to be a resource related problem on the executing machine.
If one of you is interested in tweaking the memory consumption of either phpmd or pdepend, you are very welcome.


fix launcher.py

the launcher.py for the slash branch is broken and i need help fixing it
branch: https://github.com/RJ1002/pollmaster/tree/slash
information about issue:
it seems the issue is with the self.loop.create_task(self.ensure_ipc()). it on line 55 in bot.py

and if you disable self.loop.create_task(self.ensure_ipc()) it seems to start up but there is still an issue with self.load_extension("cogs.eval") and self.load_extension(ext) they are on line 53 and 57 in bot.py. also the bot does show it online and it displays the status message but no commands work.

it might just be easier to edit the pollmaster.py and add shards stuff

not needed anymore so no point in fixing it.

not needed anymore so no point in fixing it.


Fix bug regarding crash on exit and excessive logging

Fixes https://github.com/robotology/yarp-device-ultrapython/issues/12

My warm advice is that you rebase your fork on the upstream master, @mfussi66.
I can see too many commits that are dated back in time, indeed.

Just seen that the rebase perfectly worked 🚀

cc @mfussi66 @triccyx

As far as I know, regarding the 3 points in the issue:

The application crash on exit was corrected
The excessive logging cannot really be fixed completely: since yarp does not provide flags to suppress all logging, warnings and errors will still be printed at minimum (https://github.com/robotology/yarp-device-ultrapython/issues/12#issuecomment-893575988). After all, I assume printing errors (eg no device found) is relevant.
Fixed in the PR!

Thanks @mfussi66 👍🏻
So I think we could integrate already this PR.
@triccyx, it's your turn now.


Issue with a Repeater/ListPart in a NavigatePage

This regards application version 14.4.35602.0 as an extension. For a wizard type page with PageType of NavigatePage, if a Repeater (or ListPart contianing a Repeater) is hidden though its visible property (eg a Back button), repeating an action to make it visible again locks up the session.
Oddly, when the repeater is partially drawn on screen and seems to remember the previous Rec position (more noticible with MultipleNewLines set to True). When this occurs, often the first column is moved one colum to the right, the first colum has a blank caption, and reserved space for the repeater is whitespace after this row and second column.
Simple objects to reproduce this issue. Run in web client, then click Toggle Subpage twice.
Wizard.zip

Appologies for posting here as I could not find the correct bug reporting page in Collaborate.

Hi @SmartNavisys ! As the bug you are reporting is in a version that is in mainstream support and in an area of the product that is not related to the development experience, we cannot provide assistance on this forum.
You can file a bug on Collaborate at https://partner.microsoft.com/en-us/dashboard/collaborate/engagements/1173/feedback/wits/bugs/create . If you do not have access to that page, please contact<EMAIL_ADDRESS>

No bug to report now. This works as intended in 15.0.36560.0 : )
From: Alexandru Toader<EMAIL_ADDRESS>Sent: Thursday, October 3, 2019 9:59 AM
To: microsoft/AL<EMAIL_ADDRESS>Cc: Mark Smart<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [microsoft/AL] Issue with a Repeater/ListPart in a NavigatePage (#5266)
Hi @SmartNavisyshttps://github.com/SmartNavisys ! As the bug you are reporting is in a version that is in mainstream support and in an area of the product that is not related to the development experience, we cannot provide assistance on this forum.
You can file a bug on Collaborate at https://partner.microsoft.com/en-us/dashboard/collaborate/engagements/1173/feedback/wits/bugs/create . If you do not have access to that page, please contact dyn365bep<EMAIL_ADDRESS>—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/AL/issues/5266?email_source=notifications&email_token=ANCCYDSHMVRZFBHSEHNJLE3QMWQ4NA5CNFSM4IVGE452YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAHK7XI#issuecomment-537833437, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ANCCYDX3YFVJUWQX6YSC6CLQMWQ4NANCNFSM4IVGE45Q.


Update the help popup with scatter tutorial to include instructions for Scatter Desktop

maybe we can embed a youtube video for instructions.

replaced images with video tutorial


CMS crashes on rich text formatting option selection

- Do you want to request a feature or report a bug?
bug
- What is the current behavior?
Editor crashes. Message:

Sorry! There's been an error - please report it!

- If the current behavior is a bug, please provide the steps to reproduce.

In /admin, click button for new post
Before typing anything in markdown widget, click H1 twice

Also crashes with: H2, and the quote icon with same steps.

- What is the expected behavior?
Affected button should toggle on and off.
- Please mention your CMS, node.js, and operating system version.

Netlify CMS: 1.0.3
Node v8.9.3 (npm v5.5.1)
Firefox: 58.0b12 (64-bit)
Chrome: 63.0.3239.84

Netlify CMS version 1.0.3     index.js:20
Error: Invalid `key` argument! It must be a key string, but you passed: null     react-dom.production.min.js:164:440
Stack trace:
o@https://unpkg.com/netlify-cms@%5E1.0.0/dist/cms.js:1:82754
value@https://unpkg.com/netlify-cms@%5E1.0.0/dist/cms.js:1:89536
h/e[t]@https://unpkg.com/netlify-cms@%5E1.0.0/dist/cms.js:1:180037
value@https://unpkg.com/netlify-cms@%5E1.0.0/dist/cms.js:1:95647
value@https://unpkg.com/netlify-cms@%5E1.0.0/dist/cms.js:1:1608228
s@https://unpkg.com/netlify-cms@%5E1.0.0/dist/cms.js:1:710533
beginWork@https://unpkg.com/netlify-cms@%5E1.0.0/dist/cms.js:1:714940
o@https://unpkg.com/netlify-cms@%5E1.0.0/dist/cms.js:1:718856
a@https://unpkg.com/netlify-cms@%5E1.0.0/dist/cms.js:1:719177
l@https://unpkg.com/netlify-cms@%5E1.0.0/dist/cms.js:1:719415
E@https://unpkg.com/netlify-cms@%5E1.0.0/dist/cms.js:1:722949
_@https://unpkg.com/netlify-cms@%5E1.0.0/dist/cms.js:1:722686
batchedUpdates@https://unpkg.com/netlify-cms@%5E1.0.0/dist/cms.js:1:732226
Z@https://unpkg.com/netlify-cms@%5E1.0.0/dist/cms.js:1:693321
Se@https://unpkg.com/netlify-cms@%5E1.0.0/dist/cms.js:1:697215

Error: Invalid `key` argument! It must be a key string, but you passed: null     ErrorBoundary.js:27:4
Stack trace:
o@https://unpkg.com/netlify-cms@%5E1.0.0/dist/cms.js:1:82754
value@https://unpkg.com/netlify-cms@%5E1.0.0/dist/cms.js:1:89536
h/e[t]@https://unpkg.com/netlify-cms@%5E1.0.0/dist/cms.js:1:180037
value@https://unpkg.com/netlify-cms@%5E1.0.0/dist/cms.js:1:95647
value@https://unpkg.com/netlify-cms@%5E1.0.0/dist/cms.js:1:1608228
s@https://unpkg.com/netlify-cms@%5E1.0.0/dist/cms.js:1:710533
beginWork@https://unpkg.com/netlify-cms@%5E1.0.0/dist/cms.js:1:714940
o@https://unpkg.com/netlify-cms@%5E1.0.0/dist/cms.js:1:718856
a@https://unpkg.com/netlify-cms@%5E1.0.0/dist/cms.js:1:719177
l@https://unpkg.com/netlify-cms@%5E1.0.0/dist/cms.js:1:719415
E@https://unpkg.com/netlify-cms@%5E1.0.0/dist/cms.js:1:722949
_@https://unpkg.com/netlify-cms@%5E1.0.0/dist/cms.js:1:722686
batchedUpdates@https://unpkg.com/netlify-cms@%5E1.0.0/dist/cms.js:1:732226
Z@https://unpkg.com/netlify-cms@%5E1.0.0/dist/cms.js:1:693321
Se@https://unpkg.com/netlify-cms@%5E1.0.0/dist/cms.js:1:697215

Same for me. I am getting the same error when I click on markdown widget editor.

I believe this was fixed in https://github.com/netlify/netlify-cms/pull/955, which will be in the next release. Can you try reproducing on the CMS Demo site, since it already has the fix merged?

@tech4him1 You're right it is fixed, I cannot reproduce the issue on the demo site. I'll close this.


Support for Multiple Compose Windows on Separate Displays

I would like to propose an enhancement to the Compose project to support the simultaneous display of two Compose windows on two separate physical displays. This feature would greatly enhance the user experience for those with multi-monitor setups, providing increased flexibility and productivity.

Compose for Desktop is already supported multiple windows. Please follow this tutorial - https://github.com/JetBrains/compose-multiplatform/tree/master/tutorials/Window_API_new

I'm aware Jetpack Compose for Desktop supports multiple windows, but I'm struggling to achieve a specific setup. In my multi-display environment, I'd like to launch my application with two distinct windows, each placed on a separate display. Unfortunately, no built-in APIs seem to enable this directly. Could I be missing something, or is this functionality truly absent?

Compose relies on AWT for window management, and might be initialized in any AWT window (or component).
So you can achieve programmatically moving AWT window (and Compose window since it's the same thing) to the 2nd screen by using AWT API.
Good starting point is:
GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


Create API with machine-readable interface file (openAPI)

Hey there,
I would like to propose that we create an API for the data at aoestats.io so for example we can pull in some data and show it for a civilisation on an OBS-overlay.
I would further propose to use openAPI ("specification for machine-readable interface files for describing, producing, consuming, and visualizing RESTful web services"):
https://swagger.io/specification/
To easily create and validate the API file we can use apibldr
https://www.apibldr.com/

@simonsan I am actively working on this. Should be released by/during this weekend. I wasn't planning on generating an OpenAPI spec, but that's easily doable for me. I'm using Django on the backend with Django rest framework which automatically supports generating a OpenAPI spec from my code. I'll update this ticket when it is in production.

@simonsan I am actively working on this. Should be released by/during this weekend. I wasn't planning on generating an OpenAPI spec, but that's easily doable for me. I'm using Django on the backend with Django rest framework which automatically supports generating a OpenAPI spec from my code. I'll update this ticket when it is in production.

Wow, I'm quite happy to hear this as I was writing the openapi files for aoe2net and in this moment for aoe2map to make it easier to use those APIs. Great news for me hearing, that
I think you use this approach then?
https://www.django-rest-framework.org/api-guide/schemas/
It wasn't working (till now) with aoe2map, the assumption was "that requires that the api routes derive from particular classes, but in aoe2map they're simple free functions" by someone from SE discord. I'm trying to let it run on my Linux machine again, as it could have been some filesystem permissions as well.

Hello. I see this json file being requested when accessing the website. Maybe you can use this? Or was this added after the issue, I don't know...


Remove the dependency on cosmossdk.io/simapp

Summary
Our go module currently depends on cosmossdk.io/simapp. This module is pre-release and encapsulates the SDK's simulation app. We have no need to depend on this directly.
go mod why -m cosmossdk.io/simapp

# cosmossdk.io/simapp
github.com/cosmos/ibc-go/v7/testing/simapp/simd/cmd
cosmossdk.io/simapp/simd/cmd

We use the module to simply bootstrap the testnet subcommand of the ibc-go simapp. The testnet cmd can be redefined internally similarly to how prod apps do it. Alternatively we can remove this entirely if we don't see a need for the testnet subcommand.

For Admin Use

[ ] Not duplicate issue
[ ] Appropriate labels applied
[ ] Appropriate contributors tagged/assigned

wdyt should be done here? Is this something we use/will use?

I think we can remove it and add it back later if its deemed necessary. I can make a quick PR


Unicode characters width

Hello,
I'm curious about the following behavior:

This is macOS 10.14.4 running iTerm2 build Build 3.2.9 using Unicode version 9 widths.
As you can see, the two U+E0B8 and U+E0BE symbols don't have the same width.
Is this a thing controlled by the font? Or is the width assign to codepoint ranges by the Unicode standard?
Thanks

This is because these characters are 'ambiguous width', you can adjust how the terminal treats ambiguous width characters: wide or narrow. I'd try wide.

Thanks, I didn't know about character in the private plane having ambiguous width: https://unicode.org/reports/tr11/#Ambiguous

@gpakosz no worries, I didn't know that either at a point. Closing (feel free to re-open if still having issues)


format lists

replace Solidity list[] with Python list()

Per our IRL conversation, we should be fixing the bug where 'Object[]' is generated instead of the actual python type.  This will be resolved in another PR.


Website docsearch according to current language & version

🚀 Motivation
The current state of jest website is that it will only search for english language and latest stable version of docs. I wish to correct it to search according to current chosen language / version
Example:

I am currently on Portugese language but it still search for English documentation. I expect it to search for 'Portugese' documentation

I am currently on version 22.2, when I searched for some docs, I got redirected to latest stable version docs (23.0). I expect it to search for 'version 22.2' documentation

Example
In reason website, it will search for chinese documentation when the current language is chinese

Plan
If everyone agrees that this should be implemented, I will open two pull requests.

Docsearch configuration at https://github.com/algolia/docsearch-configs/blob/master/configs/jest.json
Docusaurus configuration at https://github.com/facebook/jest/blob/master/website/siteConfig.js

Sounds like a cool idea, please go ahead! :)

Sorry @thymikee,
Seems that we can only add correct language search support now. PR #6533
There is a bug in Docusaurus to search according to current version, I've sent a PR for it https://github.com/facebook/Docusaurus/pull/797

I'm on english, but the results are not for english.

@divyanshu013 due to https://github.com/algolia/docsearch-configs/pull/467
Will be fixed when #6533 is merged


Recursive reference

Describe the bug
So... I have this:
class FolderChildren(BaseModel):
    """
    Folder schema to output from GET folders/{folder_id}/children method.
    """

    id: int
    name: str
    n_docs: int
    children: Optional[List["FolderChildren"]] = None

FolderChildren.update_forward_refs()

And the error is:
Warning(s) encountered while generating. Client was generated, but some pieces may be missing

WARNING parsing GET /api/v1/folders/{folder_id}/children/ within hierarchy.

Cannot parse response for status code 200, response will be ommitted from generated client

Reference(ref='#/components/schemas/FolderChildren')

Unable to parse this part of your OpenAPI document:

invalid data in items of array children

Reference(ref='#/components/schemas/FolderChildren')

I believe the problem is the self-reference. Am I wrong?
Expected behavior
Not having the error message.
OpenAPI Spec File
Can't give you this.
Desktop (please complete the following information):

OS: Ubuntu 20.04
Python Version: 3.6.9
openapi-python-client version 0.8.0

Unfortunately recursively defined schemas aren't supported currently. There's a pull request (#329) to add support but we need to take another look at it. There's already a ticket for this (#338) so I'll close this for now - if this is still giving you issues once support is added feel free to reopen.


Make an automatic re-render GHA

I'm lazy and 1) Don't want to re-render everything everytime or have to double check everything.  2) Don't know how to re-render everything. I can set up a GHA and simple docker image to do this for us. Probably not before this year's course though.

I also am unsure what packages or commands I need to re-render things.

I like this idea in general. Yes, we can talk about this in a meeting sometime soon

Agreed this sounds good!

Woo hoo !!! DONE!


Markdown text on wrong attribute

https://github.com/Juniper/terraform-provider-apstra/blob/5b056121cd96462509d2504d365dda597ac8bfe5/apstra/blueprint/datacenter_routing_zone.go#L60C47-L60C77

"required when" should be on name, not blueprint_id


Integrate dummy content store

This integrates the dummy content store (https://github.com/alphagov/govuk-dummy_content_store).
Differences between this and the gem:

It's no longer a gem so we don't have to release a new version for each change and bump the version. This makes it easier for the app on Heroku to keep up to date (the app is deployed from this repo to make sure that the schemas used by the app are always up to date).
By using Sinatra we can drop a lot of the code needed to render responses and render the ERB template. This version is hundreds of lines smaller.
Instead of proxying the content store, this app redirects to the live content store. This removes complexity and is more robust.
Makes sure that items returned have the correct base_path. Applications like government-frontend sometimes look at the base_path to determine if they should redirect to a more canonical URL.

Tested by running ./startup.sh in this repo and then this for government-frontend:
PLEK_SERVICE_CONTENT_STORE_URI=http://localhost:4567/api ./startup.sh --live

After this is merged govuk-dummy_content_store can be archived.

Is there anything we can add to the README to explain how to use this?

@nickcolley turns out there was documentation already, I've updated it. I'm planning to add docs to government-frontend and other apps on how to use it.


jemalloc will fetch backtrace at every malloc

Bug Report
What version of TiKV are you using?
Release v5.0.1
Steps to reproduce

tiup playground v5.0.1 setups a tikv cluster
gdb attachs the running tikv, and set a breakpoint with break uw_frame_state_for
run anything like connecting with mysql
Then the breakpoints hit and the backtrace shows the call stack  is inside the jemalloc

#0  uw_frame_state_for (context=0x7f57853d4390, fs=0x7f57853d4480) at ../../../libgcc/unwind-dw2.c:1256
#1  0x00007f578d6e31b4 in _Unwind_Backtrace (trace=trace@entry=0x55e0ee63da10 <prof_unwind_callback>,
    trace_argument=trace_argument@entry=0x7f57853d4640) at ../../../libgcc/unwind.inc:302
#2  0x000055e0ee648b16 in _rjem_je_prof_backtrace (bt=bt@entry=0x7f57853d4680) at src/prof.c:637
#3  0x000055e0ee5ec5d5 in prof_alloc_prep (update=true, _rjem_je_prof_active=<optimized out>, usize=<optimized out>, tsd=<optimized out>)
    at include/jemalloc/internal/prof_inlines_b.h:158
#4  imalloc_body (tsd=<optimized out>, dopts=<synthetic pointer>, sopts=<synthetic pointer>) at src/jemalloc.c:2116
#5  imalloc (dopts=<synthetic pointer>, sopts=<synthetic pointer>) at src/jemalloc.c:2258
#6  _rjem_je_malloc_default (size=<optimized out>) at src/jemalloc.c:2289
#7  0x000055e0ee9c0c38 in operator new(unsigned long) ()
#8  0x000055e0ee7109f6 in rocksdb::LRUHandleTable::Resize (this=0x7f5783c47a80)
    at /rust/git/checkouts/rust-rocksdb-a9a28e74c6ead8ef/1b3a613/librocksdb_sys/rocksdb/cache/lru_cache.cc:77
#9  0x000055e0ee71157e in rocksdb::LRUCacheShard::LRUCacheShard (this=0x7f5783c47a00, capacity=524288,
    strict_capacity_limit=<optimized out>, high_pri_pool_ratio=<optimized out>, use_adaptive_mutex=<optimized out>)
    at /rust/git/checkouts/rust-rocksdb-a9a28e74c6ead8ef/1b3a613/librocksdb_sys/rocksdb/cache/lru_cache.cc:108
#10 0x000055e0ee7116e1 in rocksdb::LRUCache::LRUCache (this=0x7f5783c21190, capacity=<optimized out>, num_shard_bits=<optimized out>,
    strict_capacity_limit=false, high_pri_pool_ratio=0, allocator=..., use_adaptive_mutex=<optimized out>)
    at /rust/git/checkouts/rust-rocksdb-a9a28e74c6ead8ef/1b3a613/librocksdb_sys/rocksdb/cache/lru_cache.cc:460
#11 0x000055e0ee71185f in __gnu_cxx::new_allocator<rocksdb::LRUCache>::construct<rocksdb::LRUCache, unsigned long&, int&, bool&, double&, std::shared_ptr<rocksdb::MemoryAllocator>, bool&> (__p=0x7f5783c21190, this=<optimized out>)
    at /opt/rh/devtoolset-8/root/usr/include/c++/8/new:169
#12 std::allocator_traits<std::allocator<rocksdb::LRUCache> >::construct<rocksdb::LRUCache, unsigned long&, int&, bool&, double&, std::shared_ptr<rocksdb::MemoryAllocator>, bool&> (__p=0x7f5783c21190, __a=...) at /opt/rh/devtoolset-8/root/usr/include/c++/8/bits/alloc_traits.h:475
#13 std::_Sp_counted_ptr_inplace<rocksdb::LRUCache, std::allocator<rocksdb::LRUCache>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<unsigned long&, int&, bool&, double&, std::shared_ptr<rocksdb::MemoryAllocator>, bool&> (__a=..., this=0x7f5783c21180)
    at /opt/rh/devtoolset-8/root/usr/include/c++/8/bits/shared_ptr_base.h:545

This could be the reason for #10131 . And fetching backtrace all the time will make it impossible to run pprof-rs.
What did you expect?
Don't fetch backtrace all the time :imp:

That's strange as the function will only be called when prof_active is set to true, which can be configured by either environment variables or API in status server.

That's strange as the function will only be called when prof_active is set to true, which can be configured by either environment variables or API in status server.

Yes. In the latest version of tiup, prof_active is set to true, (and that's why I opened this issue, exactly, to talk about whether it should be set to true by default):
https://github.com/pingcap/tiup/blob/52e24c2ee45e6a2acc3bd59990a4f1ebbedcd633/embed/templates/scripts/run_tikv.sh.tpl#L23
export MALLOC_CONF="prof:true,prof_active:true,prof.active:false"

No, it should not.

Instead of removing it completely, better use "prof:true,prof_active:false" to make it possible to profile memory without restarting.

Closed as it was a bug of tiup and it was fixed and released.


Fixed problem with Jinja2 rendering issue in archives.html

Hi!
I fixed the rendering issue of years, months and days in archives.html after Jinja2 "fixed" variable scopes.
Greetings
-Arnulf

Hi @aheimsbakk,
Sorry for the late reply. Thank you for the PR!


unnecessary db called when using with() method

I can't find it is intended behavior, but it seems worth to reporting.
// in my controller
public function index()
{
    // find Users with user's photo.
    // SELECT * FROM users
    // SELECT * FROM photos WHERE user_id IN (?, ?....?)
    $users = User::with('photos');

    // this will execute another db call.
    // SELECT * FROM photos WHERE user_id IN (?, ?....?)
    return responder()->success($users)->with('photos');
}

// UserTransformer

public class UserTransformer extends Transformer
{
    protected $relations = [
        'photos' => PhotoTransformer::class,
    ];

    public function transform(User $user)
    {
        return [
            'id' => $user->id,
            'name' => $user->name,
            //.. and so on
        ];
    }

    // if includeXxxx method exists, eager loaded relation will use it
    // else just call other db call SELECT * FROM photos WHERE user_id IN (?, ?....?)
    public function includePhotos(User $user)
    {
        return $user->photos;
    }
}

Hey! Sorry for the late reply. The package will automatically eager load all relationships provided with the with method. I guess we could add a check if the relations have already been loaded and not run a new query then. What do you think?

would be great 👍

Up for this feature.
When I have an temporary eloquent (through new model()), it can't resolve the relationship. Because the model doesn't have any id yet.


[COMPATIBILITY] with Penomior.

I have to bump this to you because the Evasion skill from Penomior still infects the player regardless.

https://github.com/MrSypz/Penomior/issues/6#issuecomment-2229951991

thanks for pointing that out, I will have a look

you don't need to do it anymore, I already inject my method before callback event happen 👍I forgot fabric have this callback too 🤣

you don't need to do it anymore, I already inject my method before callback event happen 👍I forgot fabric have this callback too 🤣

i still get infected though without taking damage. Are you sure you fixed it? What version did you release it because mine was 0.1.4a

Thanks for the info, I already did a rework of my stuff ;)
Because there is some truth to Contagion being a bit op at times.
In my rework I now inject my stuff into the tryAttack methods, so I can check if the player was actually hurt :)

you don't need to do it anymore, I already inject my method before callback event happen 👍I forgot fabric have this callback too 🤣

you missed out two mobs btw. Drowned and Husk still infects player on evasion attacks.


Record events for workshop/post-analysis

This is for https://github.com/damellis/ESP/issues/246.

The final log will be stored as ESP.app/Contents/Resources/data/ESP-<datetime>.txt.
One example is as follows:
ESP-2016-08-10-22-53-31-663.txt


Feature Request: Custom Audio

Would you be able to implement custom audio to trigger when the alarm goes off. Would be great if we could link to a file path on our PC or web url of an mp3 file.
I like to use the alarm on a scout and would prefer to have that client minimised with the audio triggering if possible.
Either this or my other feature request (notification overrides) would be an awesome addition, either one would provide audio.

I think if adding a sound I would prefer to use one of the existing game assets such as in:
https://github.com/runelite/runelite/blob/master/runelite-client/src/main/java/net/runelite/client/plugins/metronome/MetronomePlugin.java#L87
I haven't checked the notification overrides sound options but that might be the way to go here.

I think a default sound to be played would be a great addition, but the ideal user experience is for users to be able to link a file path to the sound of their choice.
However, this functionality along with more robust notification options was made available in the latest version of Runelite and I believe @DapperMickie has made a PR that makes your plugin compatible with this.

Opted with the route of implementing #28 (ec5ad85)


Include iOS build frameworks instead of using cordova hook

Feature Request
Description
I'm currently using Capacitor + ionic + React and would like to use cordova-plugin-opentok to run opentok in my application.
since @ionic/react does not let you use cordova plugin, I have to follow this Capacitor instruction.
https://capacitor.ionicframework.com/docs/cordova/using-cordova-plugins/
but when I  run npx cap sync, it throws an error
✖ update ios: ENOENT: no such file or directory, stat '/myproject/node_modules/cordova-plugin-opentok/src/ios/OpenTok.framework'

I found that this is due to that this plugin is using cordova hook and capacitor does not support it.
https://github.com/ionic-team/capacitor/issues/1997#issuecomment-536540434
Proposal
Include iOS build frameworks instead of using cordova hook
Links / references
https://capacitor.ionicframework.com/docs/cordova/using-cordova-plugins/
https://github.com/ionic-team/capacitor/issues/1997#issuecomment-536540434

I am having the same issue. I am unable to use OpenTok using capacitor. I am working on a workaround since I have a POC to hand back soon:

I manually downloaded the OpenTok.framework from their AWS: https://s3.amazonaws.com/artifact.tokbox.com/rel/ios-sdk/OpenTok-iOS-2.15.3.tar.bz2

I copied it to node_modules/cordova-plugin-opentok/src/ios

I ran npx cap sync

However, I am now getting this error:
[error] Error running update: Analyzing dependencies Downloading dependencies Installing AppCenter (2.5.3) Installing Capacitor (2.0.1) Installing CapacitorCordova (2.0.1) Installing CordovaPlugins (2.0.0) Installing CordovaPluginsResources (0.0.105) Installing CordovaPluginsStatic (2.0.0) Installing OpenTok (2.16.6) Installing SVProgressHUD (2.2.5) [!] The 'Pods-App' target has frameworks with conflicting names: opentok.framework.
I also saw a comment on your reference where the person suggests to prepare the app with cordova and then copy the .framework afterwards, but I think it will do the same issue. I am trying this now. I will let you know if I can find anything. However, this update is crucial for opentok if they want support on capacitor.

On my side it works well with capacitor 2.1, MacOS 10.15.4, pod 1.9.1, SDK Opentok 2.17.0

Hi guys, do you mind testing https://github.com/opentok/cordova-plugin-opentok/pull/186?

Hi folks, do you mind testing #186?

I will test it today! and update this post when I get a result. Thank you!

@enricop89 I tested, it works !
Thank you !

@KyDenZ Can I ask how you successfully play the opentok with capacitor?

@ramseyfeng Apply the changes of #186 in custom repo or change url in package.json :
"cordova-plugin-opentok": "git+https://github.com/enricop89/cordova-plugin-opentok.git#capacitor-support"

@KyDenZ Many thanks! I'll try it later. 👍

@KyDenZ I have tried your solution, it works fine on android devices, and it has some issue on iPhone device, it throws error like the below:
[error] - %cOpenTok:Publisher:error %conStreamAvailableError OT_NOT_SUPPORTED: A constraint specified is not supported by the browser. (getUserMedia error: NotSupportedError)%c +0ms color: #CC3300 color: inherit color: #CC3300
Do you have any experience with it? Or did you make it work on ios device?

@KyDenZ I have tried your solution, it works fine on android devices, and it has some issue on iPhone device, it throws error like the below:
[error] - %cOpenTok:Publisher:error %conStreamAvailableError OT_NOT_SUPPORTED: A constraint specified is not supported by the browser. (getUserMedia error: NotSupportedError)%c +0ms color: #CC3300 color: inherit color: #CC3300
Do you have any experience with it? Or did you make it work on ios device?

@ramseyfeng My app works with Android & IOS.
Before starting the session, I check if the Camera and Microphone are allowed with cordova diagnostic plugin.

@ramseyfeng My app works with Android & IOS.
Before starting the session, I check if the Camera and Microphone are allowed with cordova diagnostic plugin.

Hi @KyDenZ could you share more light on this?
Are you using this plugin? https://github.com/dpa99c/cordova-diagnostic-plugin#iscamerapresent
what if the camera and microphone are not allowed? how can we turn on both of them?

Hi @KyDenZ could you share more light on this?
Are you using this plugin? https://github.com/dpa99c/cordova-diagnostic-plugin#iscamerapresent
what if the camera and microphone are not allowed? how can we turn on both of them?

@ramseyfeng yes it’s this plugin.
To check if the camera and microphone is allowed, use isCameraAuthorized/isMicrophoneAuthorized.
if allowed, run the session, else use requestMicrophoneAuthorization/requestCameraAuthorization.

@ramseyfeng yes it’s this plugin.
To check if the camera and microphone is allowed, use isCameraAuthorized/isMicrophoneAuthorized.
if allowed, run the session, else use requestMicrophoneAuthorization/requestCameraAuthorization.

@KyDenZ Thanks for continuous help! I'll try it.

@KyDenZ Thanks for continuous help! I'll try it.

Has anyone tested this solution with capacitor 3?

@mklipe Do you mean "cordova-plugin-opentok": "git+https://github.com/enricop89/cordova-plugin-opentok.git#capacitor-support"?
Yes, it can work, although it's very old.
@KyDenZ Are you still use this solution? Or do you have any better option?

@ramseyfeng The project where I was using opentok is currently without updates, it still works fine. I will have to switch to Capacitor 3 but I am disappointed with the Opentok teams who do not validate the pull-requests !

@KyDenZ Thanks for the information!
Let me confirm, you directly use the latest community plugin: https://github.com/opentok/cordova-plugin-opentok/ with Capacitor 3, and it works well.
am I understanding correct?


Update fk-constraints.md

:white_check_mark: Validation status: passed
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.

Thanks!


[ bug Report ] Fast reload causes ChangeStaticRotationOverTimespan issue

TombEngine version
Development Build
Tomb Editor version
Development Build
Describe the bug
When uses LevelFuncs.Engine.Node.ChangeStaticRotationOverTimespan in combination with save & load
the rotated objects does not aligned correctly.
Look into the videos.
This works not (with fast reload):
https://github.com/user-attachments/assets/0dbd0444-9dcd-4950-befb-cb9326586524
Then I put this into the script:
LevelFuncs.OnStart = function()
local settings = Flow.Settings.new()
settings.errorMode = Flow.ErrorMode.WARN
settings.fastReload = false
Flow.SetSettings(settings)
end
then it works:
https://github.com/user-attachments/assets/e9bd5c06-5891-4685-97a1-d013cc474c00
To Reproduce
Look at the videos - I do:

Start Game
Pull the pulley
Save and Reload
Go to Bridge

it is misaligned
To check that it works normally without Reload:
Put this into the script:
LevelFuncs.OnStart = function()
local settings = Flow.Settings.new()
settings.errorMode = Flow.ErrorMode.WARN
settings.fastReload = false
Flow.SetSettings(settings)
end
Then:

Start Game
Pull the pulley
Save and Reload
Go to Bridge

it is aligned
Also it works without Fast Reload when Save & Load
Expected Behaviour
Using LevelFuncs.Engine.Node.ChangeStaticRotationOverTimespan in combination with save & load should work correctly with Fast Reload functionality.
Additional Content
No response
Minimal reproduction project
https://leif.trlevel.de/levels/BUG_FAST_RELOAD.zip

I test it today... and in my case it is sadly not fixed.
I will deactivate fast reload in my level (because without it works normally). Maybe it's some edge case that's causing this in my level.


latest is reactivated on commit

I've disabled the "latest" version. However, every time I push a commit to master, the version is reactivated on RTD. I'd like for the version to stay disabled even on new commits.

I guess this only happens via webhooks, as master is latest, then rtd builds that branch and activates latest.

The code that is changing the active attr is
https://github.com/rtfd/readthedocs.org/blob/35695d170ec7e1dfa2553bf70bc406e7c960409a/readthedocs/core/views/hooks.py#L40-L45
(here slug is master, but it triggers a build to latest)
I'll continue investigating why we are triggering a build to latest there, it may be a bug or some weird design.


"Cancel" modal.hide event.

Is there any way to 'cancel' modal hide event using bindings?
Like:

$('#my-modal').bind('hide', function (e) {
   $.preventDefault(e);
});

or something like that?

Problem fixed. My fault.


feat: support cache jinja2 template response

#87

I look if other responses that are not json can be cached normally

@long2ice
Because the template in starlette is initialized with a local method: url_for, pickle cannot be serialized normally, I have tried changing the url_for method to a class method, but there are still other objects that cannot be serialized, so I cache the rendered content when the response is a template. what do you think？

@long2ice
I found a problem, if you use pikcle to serialize the response object, setting ETag to the response header in the code will fail

If cache response object, Use the following to fix not the same response object issue and ETag invalidation issue.
if ret is not None:
    decode_response = coder.decode(ret)
    # https://github.com/tiangolo/fastapi/issues/2253
    if isinstance(decode_response, Response) and not if_none_match:
        response = decode_response
    if response:
        response.headers["Cache-Control"] = f"max-age={ttl}"
        etag = f"W/{hash(ret)}"
        if if_none_match == etag:
            response.status_code = 304
            return response
        response.headers["ETag"] = etag
    return decode_response

@long2ice
Hi mate, have time to see if these need fixing


However, there is only one process accept request, others will aways idel

I write a simple code to test this, the sleep call block other requests anyway.
if(isset($_REQUEST['sleep'])) sleep($_REQUEST['sleep']);
echo time();

Please, provide more info to reproduce, a start command at least.

Win10 + Nginx
export PHP_HELP_MAX_REQUESTS=1000
./php-cgi-spawner.exe php-cgi.exe 9000 1+6 &

My nginx config
location ~ [^/]\.php(/|$) {
    fastcgi_pass <IP_ADDRESS>:9000;
    fastcgi_index index.php;
    include fastcgi.conf;
  }

I think this is the problem of operation system.
Node.js has this pit too.

This is strange. Did you tried php-cgi-spawner.exe php-cgi.exe 9000 4 not 1+6?

I tried, and the result is the same. All requests must be lined up.

Cannot reproduce.

Why do you think php-fpm doesn't publish a Windows version?

php-fpm based on unix only features, there is no such API in windows os.

So do you think php-cgi-spawner can make up for this?

If possible, it would be done long ago.
However, Windows now have WSL, try it if you need php-fpm.


Add secp256k1 ecdsa recover

Credit goes to @suinuj from Litentry. Thanks a lot!
Related issue: https://github.com/integritee-network/worker/issues/543

I edited the pr message to not close https://github.com/integritee-network/worker/issues/543 until it is integrated in the worker.


Fix crash in connection dialog

Fixes regression from #65062
For some reason there was a leftover method in connection dock that was never called.

Thanks!


Decouple PumpConfigurationAndControl from EmberCompat

This uses the ember internal function instead of the ember compatibility functions override. It is somewhat unclear why we have an override that replaces one method with a single method that is identical except arguments.
clusters implementations are often coupled to ember, however they should not be coupled to ember-compatibility-functions.cpp
We should also figure out if there is some other way updating things as relying that we have a "ember default" is somewhat odd here.

fast tracking after 5 days.


fix(cli): bad state error on no argument

Avoid Bad state: No element when no argument passed to the CLI
Refactor of the code for a cleaner implementation
Add default value to version on getCurrentVersion to avoid LateInitializationError when no package found

:tada: This PR is included in version 1.5.2 :tada:
The release is available on:

v1.5.2
GitHub release

Your semantic-release bot :package::rocket:


doc: Update ACHIEVEMENTS.md generation script for keeping legacy records

Fix #255
This PR adds support for the legacy records added to prs.json in #364. In addition, to ensure that our newest achievements don't get lost amidst older achievements, the PRs are now sorted in descending order by date created.
Here is a sample of the markdown generated for a legacy record (note that the hyperlink to the PR is intentionally broken to not display a useless notification in that PR):
apache/jspwiki#11
This PR was opened at 2019-11-05 11:42:48 and merged at 2019-11-05 19:11:09.
This is a legacy PR made before detailed record-keeping, and so we cannot say if any manual edits have been applied.
It provided the following repairs:

Rule 4973

Number of violations found: 3
Number of violations repaired: 3

@monperrus Here we go with the second PR I mentioned in #364. Merge if you're satisfied, and we should get a PR with the updated ACHIEVEMENTS.md opened by the bot!

Very nice, thanks @slarse


upgraded to recent SNAPSHOT version

Thank you for submitting this pull request
the version shoudl be synced with the recent version of all kie repos

How to retest this PR or trigger a specific build:

a pull request please add comment: Jenkins retest this
a full downstream build please add comment: Jenkins run fdb

Jenkins retest this

jenkins retest this please

Jenkins retest this

this commit 8569cdb should be cherry picked up if we want GA to be working

i thought it is already on main branch, so simple rebase should help not cherry-pick, what do I miss? @Ginxo


Cleanup in Elastic?

I see elastic variables are commented out https://github.com/reportportal/service-jobs/blob/develop/src/main/resources/application.yml#L48, but there are also some logic to cleanup elastic.
Is it not working yet or just not could be changed using environment variables?

After conducting several tests, I discovered that the queue in RabbitMQ is not being consumed by the jobs service unless there is a configuration set for Elasticsearch. This can be verified by referring to the SaveLogMessageJob.java file (see SaveLogMessageJob.java, Line 17).
Therefore, it is crucial to define the necessary environment variables in Docker.
      RP_ELASTICSEARCH_HOST: http://${ELASTIC_HOST}:${ELASTIC_PORT}
      RP_ELASTICSEARCH_USERNAME: ${ELASTIC_USERNAME}
      RP_ELASTICSEARCH_PASSWORD: ${ELASTIC_PASSWORD}

It is also important to note that the names of the Elasticsearch environment variables differ from those used in the API. Specifically, they use the prefix 'RP_ELASTICSEARCHLOGMESSAGE_'. Moreover, the variable 'RP_ELASTICSEARCH_HOST' should be specified in the format of 'scheme://host:port'. This is in contrast to the API configuration, where the host and port are separated into distinct variables.
If not configured correctly, the queue may become overloaded, consuming excessive disk space. Additionally, Elasticsearch indexes will not be created under these circumstances.


U/wmwv/plot ellipse

Add ellipse as a type to plot analogous to circle.
Visually tested.  I did not actually measure the resulting ellipses.
I also added ellipse to tests/test_lines_polynomials.py.  I have visually inspected the plot and the new ellipses and they look right.
But all of the image comparison tests fail for me when I run them locally anyway This was true on the main branch before making any changes.  I probably don't have the exact environment set up to pixel-by-pixel recreate the matplotlib plots.
Resolves #27

Hmmm... just realized that matplotlib patch.Ellipse expects major and minor axis instead of semi-major and semi-minor axis.  Which convention would be less surprising here?

Well, I have to say that specifying circles by radius and ellipses by width/height is strange.  But what do I know?

OK, based on a sample size of 2, let's say that astronomers would find semi-major and semi-minor axes less surprising.

I am concerned that you aren't getting the tests to pass locally.  I have them pass on multiple envs, and the tests should be insulated from any .matplotlibrc that you have.  Can you post one of the failed diffs?  (Maybe on a separate issue).

Posted diff on #29
Will follow-up there.


evm tokens: remove Emerald references

for #305
resync boilerplate with runtime analyzer.
evm tokens analyzer is now split into emerald- and sapphire-specific ones

need to test for regressions on emerald. can't validate on sapphire yet, I don't have an sgx-capable sapphire node to test EVM calls on

no regressions on emerald


Fix errors in Organizing-Build listings with sbt 0.13.8

Hi @vhiairrassary,
Thank you for your contribution! We really value the time you've taken to put this together.
Before we proceed with reviewing this pull request, please sign the Typesafe Contributors License Agreement:
http://www.typesafe.com/contribute/cla


Error adding a new language (tensor size not matched)

Hi Aidan, I love the system!
I had successfully ran the program back when I didn't have a complete lexicon (although it didn't produce a good result...). Now that I have access to the lexicon (which could do with some cleaning) I'm running into problems with training.

I'm getting a RuntimeError: The size of tensor a (66) must match the size of tensor b (67) at non-singleton dimension 1.  I read that this was due to symbols missing, but I think the symbols should all be there... (unless it is due to the lack of cleaning which I will do when I can).
Also I noticed I have a similar problem with https://github.com/roedoejet/FastSpeech2/issues/4#issue-1463589714 where the duration loss is stuck at 0.
What I've done:

Have the .lab and .wav files in raw_data folder
Created a lexicon in IPA using your G2P library.
Run MFA using the raw_data and lexicon (I also noticed when running MFA I was getting messages such as "no files were aligned, this likely indicates serious problems with the aligner." )
Updated the symbols file following https://github.com/roedoejet/FastSpeech2/issues/4#issuecomment-1327102443 (I didn't update the cleaners file since it looks like using your G2P library covers the cleaning since it loops through?)
Run proprocess.py
Run train.py

Do you know a fix for this?
Thanks.

Hi @jzhu709 - thanks for this clear issue report! Unfortunately as I mentioned in the email, I'm now away until the beginning of June, so I won't be able to help out until then. However, if you have double-checked the symbols sets, then my guess is that there are issues in your data around alignment (ie mismatches between the audio and your transcription).
This is kind of hard to diagnose when you don't have an aligner that is working for your language, but I have a couple of suggestions:
First, remove silence in your audio before training the aligner (MFA) and FastSpeech2. You will need to play with this a bit, to make sure it doesn't cut out too much from the recording, but installing SoX and doing the following command sox in.wav out.wav silence 1 0.1 1% -1 0.3 1% on your audio is a good start. What this says is basically is: "at the beginning of words, remove silence at a 1% threshold up to 0.1s before the speech starts, elsewhere, trim silence after 0.3seconds of <1% silence".
Second, for each sample in your data, count the number of words/characters in each sample, and calculate the length of the corresponding audio (after you have removed silence). Then, calculate the mean/standard deviation of this ratio and throw away any outlier data (which can often be a result of the transcription being off, for example it's unlikely a transcription that says a 0.5s audio clip has 20 words in it is correct)
Try running MFA and FS2 again with these potential problem datapoints removed and see if you still have the same issue. As a last resort you could try setting a breakpoint:
try:
     x = x + pitch_embedding
except:
     breakpoint()

and then inspecting the data that caused it to fail for any irregular looking values.
Anyways, I hope this helps, good luck, and I'll check back in in June to see if there are any updates here.

Hi @jzhu709 - any update? If you fixed it, I'll close this, but if you could let me know what the issue was that would be great. Thanks!

Yep we can close the issue! The tensor mismatch was due to MFA generating less textgrids than the input size of the corpus. Making sure the number of files in the raw_data matched the TextGrid folder solved this.
I also played around with the config file to fix the duration loss stuck at 0 issue, by changing decoder_layer to 6, spe_features and use_energy_predictor to true, and depthwise_convolutions to false in model.yaml. I also changed use_spe_features to true in preprocess.yaml and decreased val_size to a much smaller number since I have a low amount of data. (the default value of 512 is so high for us low resourced language users!)
I have no idea what settings I'm playing around with but it seemed to get the job done 😄

Awesome, thanks @jzhu709 !


zephyrCommon: Add Print::write(const uint8_t*, size_t) default implementation

When compile with enabling CONFIG_DEBUG option,
the Print::write virtual function failed to link.
This implementation is usually not used.
Because the override implementation that implements by the subclass will be used.
Signed-off-by: TOKITA Hiroshi<EMAIL_ADDRESS>

@DhruvaG2000

In my opinion this should go into cores/arduino/zephyrSerial.cpp.
The Print class is also used by (TCP) Client class, UDP class, and also user-defined classes via the Stream class.
I think it should not be placed in zephyrSerial because it has no relation to the Serial class.

I rewrited it to splitting into the new file named 'zephyrPrint.cpp'.
Please review it.

I rewrited it to splitting into the new file named 'zephyrPrint.cpp'.

Pardon, I don't see the split, are you missing any other file?

Seems like this file can in future have a similar structure to original Print.cpp
Perhaps we can even consider migrating ZephyrSerial entirely to use this file itself.
@szczys and @alvarowolfx  I would love to hear your thoughts on this

Been too long since approved,  I do not see any nacks, hence merging.


Android and IOS support

Is there a way I can run the executable in android and IOS ?
I tried this in android "pkg -t latest-linux-x64 .", then I copy in android and execute.
It says "not executable: 64-bit ELF file"
Thanks

This is astounding. Are you saying pkg will build native Android and iOS binaries? Why are these platforms not mentioned in the docs?
It would be awesome if there were an option to produce APKs and IPAs!

You can't. An APK needs to be aware of the Java runtime and the Android OS itself, and an IPA needs to be aware of iOS and use its APIs.
As a node app is not a UI app, you have nothing to do with it on iOS, as the apps are UI centric. You can't install a service on iOS either, simply because you don't have the permissions to do so.
On both iOS and Android, if you would try to run the pkg output on a jailbroken device - it might just work as it's a linux underneath. But on the higher level of the OS it just won't work.

That may be true for iOS, but certainly not for Android.
I have deployed Android services bundled with JXCORE that run nodejs modules. These were so successful they were actually pulled from the Play Store, since they used nodejs to implement Torrent swarms.
The "higher level" concerns to be aware of are actually policy concerns around security, not any specific OS, since there is always a path around technology limitations.

Statements like "You cant." and "It just won't work." are meaningless in computer science, unless you are claiming this is an NP-Complete problem and also intractable. If you have proof, I would urge you to claim the $1M bounty.
I have deployed mobile services bundled with JXCORE. These were so successful they were actually pulled from the mobile market, since they used opensource nodejs modules to implement Torrent swarms.
The "higher level" domain to be aware of is actually market policy compliance, not any specific OS, since there is always a path to extend low level OS limitations. The Linux kernels used by mobile OSes like Android and iOS are especially designed to encourage such extensions.

There's no need to be so haughty, it just doesn't get you anywhere.
Okay, so let's be more specific: "The OSes won't let you".
These binaries do not only have to be signed inside a package (APK/IPA), but they have to "talk" to the higher level API, and present some kind of high level component.
Node.js/Pkg do not have any knowledge of these components.
For example - in iOS - when an app loads, it expects a UIWindow to be created.  OR you could register as an extension - i.e. for the keyboard or watch. But again, Node.js does not know how to do that. It has to import iOS libraries to do so.
On the Android, you have to create a service or an activity, or at least an android.app.Application instance.
Again, you could run on both platforms, if you jailbroke them and deployed them manually.
Of course "there is always a path to extend low level OS limitation", but that is not something that pkg will be able to do for you out of the box, and will most probably be meaningless anyway.
As in iOS an app downloaded from the AppStore must present some kind of a UI, even if it's just a keyboard extension, and a Node.js is not a UI framework/client/whatever.
On Android it will make more sense, but will still be tough for people who do not have experience with low level Android apis, and binding NAN/NAPI to Node.js.

None of that has any bearing on on your claim that it cannot be done. Please try to remember there is always someone more clever than yourself.

None of that has any bearing on on your claim that it cannot be done without unauthorised hacks. Please try to remember there is always someone more clever than yourself.

@dcerisano not claiming to be clever, which I can't say about you.
It's more like apples and oranges.
You are looking at "is it scientifically possible/impossible". I'm practical, answering the "is it viable"/"does it make sense". And no, it does not make sense. No, it's not viable, especially not for iOS. As node.js is not a UI framework, there's no point in even going there and trying to make a valid IPA out of it. And in order to make it work as it should - as a background service - you have to do "unauthorised hacks".
There may be some kind of extreme-edge-case where that would make sense, but I can't think of any right now.
I'm sorry that I have to say this, but your attitude is not of someone who's trying to be helpful or even teach someone something useful.  Picking on the letters, whether I can mathematically prove that that's impossible? Are you kidding me?
I mean, really, if you don't have something meaningful to say...

omg, I regret now why started this conversation lol
My only goal with this question is to run pkg inside cordova and run as a background service. There are good plugins now like nodejs-mobile to run node inside mobile app. I was also thinking it's possible for this to work too.
anyway, have a great day guys lol
Thanks

@rlaurente I'm not sure if running node.js inside an already running app is a good idea, as that could consume precious memory not available on a mobile device. But that has to be tested on a real world scenario.
By the way, remember talking about OSes not letting you do stuff? Here you might get into a problem where Apple won't let you do stuff. Apple's guidelines say that you can't bring a JIT compiler to iOS, and node.js is V8. You would have to compile it against JavaScriptCore somehow.
But hey, if there already is a plugin that allows you to run in inside your app, why use pkg? I mean it's a completely different use case to package it as a standalone app, and combining into an existing app that is packaged by Xcode/Gradle.

@danielgindi This is really funny because I even forgot what I'm experimenting that time, that I came up using pkg lol. It was like 8 months ago, and I surprise getting this replies lol

@rlaurente well experimentation with this stuff is always fun :-) I'm not a moderator of this repo but I think that if you don't remember the issue then it's time to close it 😆

The question has not been answered. Solutions involving authorised hacks are untenable.

The question has not been answered. Solutions involving authorised hacks are untenable.

he question has not been answered. Solutions involving unauthorised hacks are untenable.

The question has not been answered. Solutions involving unauthorised hacks are untenable.

The question has not been answered. Solutions involving unauthorised OS hacks are untenable. Hacking the application layer is also not an answer.
Looking for an answer that is mobile market policy compliant without hacks.  iOS market policy does not allow apps to download scripts, so shrink-wrapped node applications are actually required.

@dcerisano In order to get pkg to work on iOS and be approved by Apple, you would have to compile node.js against JavascriptCore (and add a lot of JS polyfills, writing other implementations for native bindings etc.), or use it compiled against a JS interpreter, which apparently nodejs-mobile does (I haven't bumped into it before).
Using it with an interpreter instead of a JIT will make it real slow.
I don't know if you have such a need, or how would you approach this, but as long as we're not using native modules I would write a thin layer that could allow Node.js scripts to work on JavascriptCore and its equivalent in other mobile platforms. It's all about the use case, and there are probably tens of different use cases, but I think that the most important core modules could be faked to with JavascriptCore, and some binding to the platform's native apis like FileManager etc.
Anyway there is a module that already does what he wants, which is nodejs-mobile, although not in the best way.

nodejs-mobile  contains simulator strips will not be accepted on the App Store. Before trying to submit your application, it would be advisable to use the Release-iphoneos/NodeMobile.framework in your submission archive or strip the x64 slices from the universal framework's binaries before submitting.

That also does not answer  this question.
From the docs:

nodejs-mobile  contains simulator strips will not be accepted on the App Store. Before trying to submit your application, it would be advisable to use the Release-iphoneos/NodeMobile.framework in your submission archive or strip the x64 slices from the universal framework's binaries before submitting.

It should also be possible to get pkg shrink-wrapped node applications submitted. Shrink-wrapped means they contain their own JS engine (node), with no external dependencies or further hackery required.
I have published mobile apps based on shrink-wrapped LUA, and the only caveat was they were not allowed to update their scripts at run-time.
So hopefully someone who has actually tried it will reply with their answer, or I shall blaze the trail myself.

That also does not answer  this question.
From the docs:

nodejs-mobile  contains simulator strips will not be accepted on the App Store. Before trying to submit your application, it would be advisable to use the Release-iphoneos/NodeMobile.framework in your submission archive or strip the x64 slices from the universal framework's binaries before submitting.

It should also be possible to get pkg shrink-wrapped node applications submitted. Shrink-wrapped means they contain their own JS engine (node), with no external dependencies or further hackery required.
I have published mobile apps based on shrink-wrapped LUA, and the only caveats were they were not allowed to update their scripts at run-time, and they must run with only user permissions (no root).
So hopefully someone who has actually tried it will reply with their answer, or I shall jump through the fiery hoops myself.

Well up until recently Apple strictly rejected apps that brought a JIT compiler with them. That's the reason that there is no Chrome for iOS. (Well there is, but it's not real Chrome, it's Safari with Chrome's icon and some custom UI around it).
I can't seem to find any mention of it now in the Review Guidelines, so good luck!

Closed - lol.


istio-ingress Intermittent failure and kong accesslog Connection reset by peer

Bug Description
istio ingress Intermittent unavailable,nginx ingress available
it seems envoy close TCP wihtout send FIN pack。

Version
$ istioctl version
client version: 1.10.0
control plane version: 1.10.0
data plane version: 1.10.0 (301 proxies)

$ kubectl version --short
Client Version: v1.20.0
Server Version: v1.20.6

$ helm version --short
v3.4.2+g23dd3af

Additional Information
No response

Is there any log in ingressgateway?

I forgot to submit it
[2022-02-25T08:50:03.274Z] "GET /api/user/common_public_variables?city=&fr= HTTP/1.1" 200 - via_upstream - "-" 0 610 16 15 "<IP_ADDRESS>,<IP_ADDRESS>" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36" "76470639-610b-94e8-a303-07f0d77aff75" "xxx.testing.svc" "<IP_ADDRESS>:13385" outbound|80|v1|xxx.testing.svc.xxxx.cn <IP_ADDRESS>:56514 <IP_ADDRESS>:8080 <IP_ADDRESS>:36370 - -

i will close this issue because  this bug not istio or envoy，it is kube-proxy problem and i will The process of troubleshooting a problem in next

can you update the root cause later, I think it will be very useful to other guys.

I'm still working on it， Now see the host machine tcpdump  find RST  packet. meybe is iptables or conntrack   problem

i find this can fix this bug but incomplete because  There will be more 502
ipvsadm --set 7500 120 300

and we consider k8s-ingress（nginx） keeplive 75s There's reason No 502， i will test envoy timeout  75s


Add documentation

I worked through the logit tutorial and made it more didactic, since I had to make these notes to understand everything anyways.
I wasn't sure if you had experience making documentation for packages in Julia, so I thought getting this set up might be a good value-add for you.
However I did break something. I thought it would be easy to change the file paths so that output files were created in a subfolder, but (as you know) that messes things up. So I will revert some changes.
I also probably messed up the math at some point, particularly formulating the objective function.

There are a lot of diffs to clean up if you actually want to merge this. Let me know and I will clean it up a lot.


Modify the enter-page-animation example, such that it can be a drop-in replacement of standard page route transitions

v

#127

done


Please fix issues reported by adapter checker

❗ [E033] @iobroker/adapter-core 3.0.3 specified. 3.1.4 is required as minimum, 3.1.6 is recommended. Please update dependencies at package.json
❗ [E036] @iobroker/testing 4.1.0 specified. 4.1.3 is required as minimum, 4.1.3 is recommended. Please update devDependencies at package.json
👀 [W028] Minimum node.js version 18 recommended. Please adapt "{'engines' : { 'node' >= '16' } }" at package.json.
👀 [W115] "common.tier" is required in io-package.json. Please check https://github.com/ioBroker/ioBroker.docs/blob/master/docs/en/dev/objectsschema.md#adapter.
👀 [W181] "common.license" in io-package.json is deprecated. Please define object "common.licenseInformation"
👀 [W184] "common.main" is deprecated and ignored. Please remove from io-package.json. Use "main" at package.json instead.
👀 [W184] "common.title" is deprecated and replaced by "common.titleLang". Please remove from io-package.json.

replaced by #13


Setting a Filter with MemoryFilter.MinRelevance value, makes the Az Search request fail.

I don't know if this is something we can do in Az search, but I'd like to get documents with Score/Relevance greater than a given value.
The SearchAsync (and AskAsync) has a Filter parameter, and there there is a MinRelevance property. However, this property is not used later in code, and that generates an Azure Search API request with the Filter parameter empty, so it fails. This snippet fails:
        var data = await _memory.SearchAsync(
            query: _question,
            index: Constants.AzureSearchIndexName,
            filter: new MemoryFilter { MinRelevance = 0.8f }
            limit: 10
        );

I'd like to have that Filter by Score, cos I'm having the following behaviour:
I have indexed just 3 documents, 2 of them are related to Domain Driven Design, and the 3rd one is the wikipedia into about Spiderman. I ask then the following question to the AskAsync method: "When an Entity should be considered an aggregate in DDD"
In the relevant results, I'm getting Citations/Parts from the Spiderman document. Obviously, they are sorted below the ones related with DDD, but as when the Prompt is composed, facts are added depending on the Tokens size, you can end up sending facts from Spiderman document. If we can filter the Search query to say "only search documents having score > 0.8" will avoid sending Spiderman facts to the Prompt.

https://github.com/microsoft/kernel-memory/blob/b275662fdb6d5429f674d0ac8d9fb753054ef000/dotnet/CoreLib/MemoryStorage/AzureCognitiveSearch/AzureCognitiveSearchMemory.cs#L574-L581
As there's no conditions it builds a string of "()". Obviously an invalid OData filter, so the call to ACS fails. It should check whether there's any conditions in the filter and, only then, append to the conditions list.
I'll can create a PR to fix this in a bit unless someone gets to it first.

yeah, but is not just that. The MemoryFilter has a MinRelevance property that is not used at all, and not sure what was the idea behind that property, cos what I'd like to do is to filter my query, so I only get docs with a Relevance greater than a value...

I see what you mean now. Either ISemanticMemoryClient.SearchAsync should expose a minRelevance argument and pass it to SearchAsync or just take the value of MinRelevance from the filter and pass that to SearchAsync. I'd prefer the former as I'm not sure how you could reliably detect the intended min if multiple filters are passed (unless it defaults to the min/max).

yeah, agreed.
Do you know what to do with that value? asking cos as far as I know, Azure Search does not support to filter by Relevance/Score. Current code seems they are using that value to do some evaluation in memory using that value with a Cosine function 😮  ...

I'm pretty sure (as of right now) there's no support for querying and passing a minimum score value. Hopefully this gets added, would be a real neat feature, but unsure how it would work as (especially in hybrid scenarios) there's multiple scores that end up getting calculated. Possibly just a filter on the final, RRF calculated score?
Here's some more info on how the scoring works in case it's helpful for your use case (and why there's a score transformation step to convert back to cosine similarity): https://learn.microsoft.com/en-us/azure/search/hybrid-search-ranking

Thanks for the info. Yeah, I'd be happy if I could just filter by the same Score value that now is returned in the current Az Search request (the search engine is already calculating a Score somehow, so I'd just want to do $filter=score gt 0.8... before the kernel-memory library groups the results by doc_id to return the Citations...)


Random PR

comment

comment 2

should not show

/ci should show

randome comment 1

/ci hello

comment example


[Docs] README update: hugo #1546

This PR is to update the Hugo README to bring it inline with template README.  It addresses issue https://github.com/chainguard-images/images/issues/1546.  As such the only relevant item from the checklist is below.
Documentation - README

[x] A README file has been provided and it follows the README template.

Thank you @gnewson !


Sroberge/bim fixes

fixes: https://github.com/vimaec/vim-webgl-viewer/pull/86
fixes: https://github.com/vimaec/vim-webgl-viewer/issues/87

Sorry the pr is not the best because I split files by class and it obfuscates the fix.


HudButtonComponent doesn't respond to taps

I am not able to get this HudButtonComponent to respond to taps. Here is a reproduction:
import 'package:flutter/material.dart';
import 'package:flame/components.dart';
import 'package:flame/game.dart';
import 'package:flame/input.dart';

Future<void> main() async {
  runApp(MaterialApp(
    title: 'plt',
    theme: ThemeData.dark(),
    home: GameWidget.controlled(
      gameFactory: () => MyGame(),
    ),
  ));
}

class MyGame extends FlameGame with HasTappables, SingleGameInstance {
  MyGame() {
    this.camera.zoom = 40.0;
  }

  late final controller = MobileController();

  @override
  Future<void> onLoad() async {
    await add(controller);
    camera.followComponent(controller);
  }
}

class MobileController extends PositionComponent {
  late final button = HudButtonComponent(
    position: Vector2(1, -1),
    onPressed: () => print('onPressed'),
    onReleased: () => print('onReleased'),
    anchor: Anchor.bottomLeft,
    button: CircleComponent(
      radius: 1,
      paint: Paint()..color = Colors.green,
    ),
    buttonDown: CircleComponent(
      radius: 1,
      paint: Paint()..color = Colors.yellow,
    ),
  );

  @override
  Future<void>? onLoad() {
    add(button);
    return super.onLoad();
  }
}

I am tapping whenever I am hovering in this video
https://user-images.githubusercontent.com/666539/203455325-2ec84db9-ceb2-4692-87ad-2da531bf5a54.mov

In fact, I can't even get this to paint at all.

```dart
import 'package:flutter/material.dart';
import 'package:flame/components.dart';
import 'package:flame/game.dart';
import 'package:flame/input.dart';
Future main() async {
runApp(MaterialApp(
title: 'plt',
theme: ThemeData.dark(),
home: GameWidget.controlled(
gameFactory: () => MyGame(),
),
));
}
class MyGame extends FlameGame with HasTappables, SingleGameInstance {
MyGame() {
this.camera.zoom = 40.0;
}
late final button = HudButtonComponent(
onPressed: () => print('onPressed'),
onReleased: () => print('onReleased'),
button: CircleComponent(
radius: 1,
paint: Paint()..color = Colors.green,
),
buttonDown: CircleComponent(
radius: 1,
paint: Paint()..color = Colors.yellow,
),
);
@override
Future onLoad() async {
await add(button);
camera.followComponent(button);
}
}
</details>

Is there a reason your are not using the Tappable mixin for class MobileController?

The HudMarginComponent needs to be added in the root if I'm not mistaken. It also doesn't work with CameraConponent, but it doesn't seem like you are using that.

The HudMarginComponent needs to be added in the root (as a child directly to the game) if I'm not mistaken. It also doesn't work with CameraConponent, but it doesn't seem like you are using that.

Wrong issue I think?

The HudMarginComponent needs to be added in the root (as a child directly to the game) if I'm not mistaken. It also doesn't work with CameraConponent, but it doesn't seem like you are using that.

Wrong issue I think? Did you mean this for #2181?

No, correct issue, since he wraps the HudButtonComponent in the MobileController here. Wrote the wrong component though.

Is there a reason your are not using the Tappable mixin for class MobileController?

MobileController is intended to be a group of HUDButtonComponents. Not to handle gestures itself.

The HudButtonComponent needs to be added in the root (as a child directly to the game) if I'm not mistaken.

I considered making this a "cannot group HudButtonComponents in another component" issue but wasn't sure if that was the case

I considered making this a "cannot group HudButtonComponents in another component" issue but wasn't sure if that was the case

Fairly sure that is the case, but try. You don't have to create an issue for it since HudButtonComponent will be going away with the new camera system.

Ah it is mentioned on positionType in the docs, so not that easy to find:
https://docs.flame-engine.org/main/flame/components.html#positiontype

Do note that this setting is only respected if the component is added directly to the root FlameGame and not as a child component of another component.

This problem continues and can be seen in the examples as well;
https://examples.flame-engine.org/#/Input_Joystick Advanced
Try to press any of the 5 buttons quickly and you will see they sometimes disappear. And sometimes the onPressed don't work(especially on macOS and iOS)

This problem continues and can be seen in the examples as well; https://examples.flame-engine.org/#/Input_Joystick Advanced Try to press any of the 5 buttons quickly and you will see they sometimes disappear. And sometimes the onPressed don't work(especially on macOS and iOS)

I can't replicate this, are you sure that you aren't on a cached version of the examples page? Try running it in incognito mode.


Email to JOAD is not going to JOAD Instructors

Describe the bug
When sending out an email to the joad group via the registration website, joad instructors are not receiving a copy of the email. Students are, but not instructors.
Expected behavior
Is there an ability to mark instructors as joad instructors? If not, can we add that and can they be included in the emails?

Marked instructors as JOAD students. This should resolve the issue.


[Bug] Re-routing is not triggered, when routing profile is changed

(I discovered this platform a few days ago and directly used it to plan a few routes for the next month.
And it looks very promising. Thanks a lot. While doing to, I detected a few points that could be improved.)
When specified a route (e.g. start and end point), it's not possible to try different routing profiles, because the re-routing is only triggered, if a waypoint of the route is changed.
Proposed change: Re-routing is also triggered, when the routing profile is changed by the user.

This is the intended behavior. When creating a route, it can be useful to switch between multiple activities (or even disable routing) to get the desired output.

Thanks for your reply. I wasn't aware that it is on purpose.


Minor activity log test js cleanup

Minor activity log test js cleanup
Changes

Minor line length cleanup

Review

@virginiacc
@sebworks
@contolini

👍


Integrated Terminal - Windows Bash - Arrow keys not responding

VSCode Version: 1.3.1
OS Version: Windows 10.0.14393

Steps to Reproduce:

Enable user setting "terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\bash.exe"
Open integrated terminal
Try to use arrow keys

@brianblakely Have you installed some packeges on VScode?I don't know why I get error once several packages installed.

The only extension I have installed is ESLint.

I could reproduce this, not sure if it ever worked though?

I could reproduce this.
No history could be fetched with arrow key broken down.Especially use VIM, arrow key can't move.

Duplicate https://github.com/Microsoft/vscode/issues/10163


Moved default subject responsibilities

This fixes #196
I also added the default subject display in the ICFolder

Pull Request Test Coverage Report for Build 843

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 74.447%

Totals

Change from base Build 809:
0.0%

Covered Lines:
1177

Relevant Lines:
1581

💛  - Coveralls


Using ice4j for TURN only, no ICE

If I receive an SDP offer without any ICE candidates from the caller, I
can't use the ICE Agent to perform connectivity checks but I may
sometimes want to use ice4j to setup a TURN relay.  Then I would just
put the TURN server IP into my SDP answer in the "c=" line.
Is this possible with the ice4j API?
Could the Agent.nominate() method be used, or does that require the peer
to be responding to checks?
Could a RelayedCandidate be constructed manually perhaps or should it be
done through the Agent class or some other application-facing API needs to be added for this?

You can use the Agent in trickle mode and postpone connectivity checks until after you have candidates, via your signal channel or however you do it. While my post doesn't answer your question, I hope it helps; also I too am curious about the TURN portion of your inquiry.

Have you found good solution?


Disambiguate 2-n flags in governance new-committee action

Changelog
- description: |
    A number of flags appeared in the parameters of new-committee multiple times, with the same long flag, making the parser break. This PR disambiguates the repeated occurences.
# uncomment types applicable to the change:
  type:
  # - feature        # introduces a new feature
  - breaking       # the API has changed in a breaking way <- Clément: I believe right?
  # - compatible     # the API has changed but is non-breaking
  # - optimisation   # measurable performance improvements
  # - improvement    # QoL changes e.g. refactoring
  # - bugfix         # fixes a defect
  # - test           # fixes/modifies tests
  # - maintenance    # not directly related to the code
  # - release        # related to a new release preparation
  # - documentation  # change in code docs, haddocks...

Context
Contributes to fixing https://github.com/input-output-hk/cardano-cli/issues/300
How to trust this PR
This PR is mostly boilerplate, but there is one thing to make sure of:
When a prefix argument is introduced in a parser, it is used in all branches of the parser. For example in this snippet:
asum [ AnyStakePoolKey <$> pStakePoolVerificationKeyOrHashOrFile prefix
       , AnyStakeKey <$> pStakeVerificationKeyOrHashOrFile prefix
       ]

It is important to pass prefix to every branch of the asum. Otherwise we could create inconsistent parsers. I have made sure this was correct.
Checklist

[X] Commit sequence broadly makes sense and commits have useful messages
[X] The change log section in the PR description has been filled in
[ ] New tests are added if needed and existing tests are updated.  These may include:

golden tests
property tests
round trip tests
integration tests
See Running tests for more details

NA The version bounds in .cabal files are updated
[ ] CI passes. See note on CI.  The following CI checks are required:

[ ] Code is linted with hlint.  See .github/workflows/check-hlint.yml to get the hlint version
[ ] Code is formatted with stylish-haskell.  See .github/workflows/stylish-haskell.yml to get the stylish-haskell version
[ ] Code builds on Linux, MacOS and Windows for ghc-8.10.7 and ghc-9.2.7

[X] The changelog section in the PR is updated to describe the change
[X] Self-reviewed the diff

On the first commit of this PR, the create-new-committee API is now as follows (cc @CarlosLopezDeLara):
Usage: cardano-cli conway governance action create-new-committee
                                                                   ( --mainnet
                                                                   | --testnet
                                                                   )
                                                                   --governance-action-deposit NATURAL
                                                                   ( --stake-pool-verification-key STRING
                                                                   | --cold-verification-key-file FILE
                                                                   | --stake-pool-id STAKE_POOL_ID
                                                                   | --stake-verification-key STRING
                                                                   | --stake-verification-key-file FILE
                                                                   | --stake-key-hash HASH
                                                                   )
                                                                   --proposal-url TEXT
                                                                   ( --proposal-text TEXT
                                                                   | --proposal-file FILE
                                                                   | --proposal-hash HASH
                                                                   )
                                                                   [ --remove-cc-stake-pool-verification-key STRING
                                                                   | --remove-cc-cold-verification-key-file FILE
                                                                   | --remove-cc-stake-pool-id STAKE_POOL_ID
                                                                   | --remove-cc-stake-verification-key STRING
                                                                   | --remove-cc-stake-verification-key-file FILE
                                                                   | --remove-cc-stake-key-hash HASH
                                                                   ]
                                                                   [
                                                                     ( --add-cc-stake-pool-verification-key STRING
                                                                     | --add-cc-cold-verification-key-file FILE
                                                                     | --add-cc-stake-pool-id STAKE_POOL_ID
                                                                     | --add-cc-stake-verification-key STRING
                                                                     | --add-cc-stake-verification-key-file FILE
                                                                     | --add-cc-stake-key-hash HASH
                                                                     )
                                                                     --epoch NATURAL]
                                                                   --quorum RATIONAL
                                                                   [--governance-action-tx-id TXID
                                                                     --governance-action-index WORD32]
                                                                   --out-file FILE

@CarlosLopezDeLara> if I retry your earlier example from Slack, it now fails differently:
> cabal run cardano-cli -- conway governance action create-new-committee --testnet --governance-action-deposit 0 --stake-verification-key-file utxo-keys/stake1.vkey --proposal-url https://tinyurl.com/3wrwb2as --proposal-file proposal.txt --remove-cc-cold-verification-key-file cc/cc-cold.vkey --add-cc-cold-verification-key-file cc/cc-cold1.vkey --epoch 5 --quorum
1/100 --out-file new-cc.action

cardano-cli: proposal.txt: withBinaryFile: does not exist (No such file or directory)

Whereas before this PR, I was reproducing your parsing failure. So I think we're good.

@CarlosLopezDeLara> while doing this PR, I realized we likely have the same kind of problem for create-treasury-withdrawal. This is visible here in this PR: https://github.com/input-output-hk/cardano-cli/blob/smelc/fix-new-committee-parser/cardano-cli/src/Cardano/CLI/EraBased/Options/Governance/Actions.hs#L328 In this position, we should likely pass a prefix, because the pAnyStakeIdentifier parser is used twice, and so is likely ambiguous.

I can confirm that this resolved the parsing issue.

@CarlosLopezDeLara> while doing this PR, I realized we likely have the same kind of problem for create-treasury-withdrawal. This is visible here in this PR: https://github.com/input-output-hk/cardano-cli/blob/smelc/fix-new-committee-parser/cardano-cli/src/Cardano/CLI/EraBased/Options/Governance/Actions.hs#L328 In this position, we should likely pass a prefix, because the pAnyStakeIdentifier parser is used twice, and so is likely ambiguous.

Interestingly enough, it does not complain about this:
$CARDANO_CLI conway governance action create-treasury-withdrawal \
--testnet \
--governance-action-deposit 0 \
--stake-verification-key-file "${UTXO_DIR}/stake1.vkey" \
--proposal-url https://tinyurl.com/3wrwb2as \
--proposal-file  "${ROOT}/govActionJustification.txt" \
--stake-verification-key-file "${UTXO_DIR}/stake1.vkey" \
--transfer "${WITHDRAW_AMOUNT}" \
--out-file "${UTXO_DIR}/treasury.action"

Interestingly enough, it does not complain about this

Weird :face_with_spiral_eyes:


ENH: Adding overleaf link

Did some changes like moving the tex and associated files to the home folder.
And removed usage of dvips  package which is not supported in overleaf.

CC @phcerdan


(PUP-5041) "environment non existent" acceptance tests failing on puppetserver

This change ensures we run the apply, module, config tests on the master
even if the master does not have an agent role.  We removed the agent
role from the master in the puppet tests to decrease testing time at low
risk.
This change also fixes the environment_scenario-bad test which never
would have passed against current puppet nor server due to matching on
output that was fixed.
[skip ci]

@rlinehan @camlow325 fixed.  sorry for the run-around

Maybe could get rid of the path = master.puppet('master')['codedir'] line in environment_scenario-non_existent.rb now if nothing uses the path variable anymore?  Otherwise, looks reasonable to me.  @rlinehan - what do you think?

(doh)  removed that path =

:+1: I think this looks right to me?

@er0ck Do you think somebody else in QA needs to review this, or should we just merge it?

typically platform devs review, but if you guys are cool with it, i think we should just go for it.

Ah, okay.  So maybe @joshcooper or @hlindberg should give a stamp of approval as well?

Merging because I don't want to wait another day to get our tests green. We can always revert it if there are objections but given that the tests currently don't work, trying to make them work seems like an improvement.

@rlinehan sorry missed this, makes sense to merge and it looks like it passed per-commit pipeline in https://jenkins.puppetlabs.com/view/All in One Agent/view/Stable/view/Puppet/job/platform_aio-puppet_intn-sys_stable/186/


CI allows to merge things with Clippy warnings

Really not sure what's going on here...
Some dead code warnings only seem to appear on main and not in the PRs.
For example, right now we have a CI run failing on main, but it obviously passed the PR CI.
Interestingly, I also didn't get this warning emitted locally in VS Code until I changed back to main, so maybe it's not just a CI thing?

Looks like the regression was introduced with #103. My guess is that the branch wasn't updated from main, or the cache was broken somehow.
Either way, this specific error will be fixed by #120. I'll purge the cache, and we'll see if this comes back up in the future.

Cache has been purged. For future reference, I used this snippet to do so:
for i in $(gh cache list --json id --jq '.[].id'); do
    gh cache delete $i
done

There have been 3 PRs merged since Clippy failed on 5cd271951d1908882731b45356410022cd73ea59, and all of them passed (with 80c81b6c9cda23e72138f0e4bd3d6b878046b070 as the latest). I'm going to close this, assuming it has been fixed.