Investigate how documentation tooling treats indents in docstrings

In the formatter, we currently normalize docstring indentation in the same way as black and cpython do. For example this is what cpython does, using str.expandtabs with a fixed width of 8:
>>> exec('def f():\n\t"""Computes the value.\n\tx = 1\n\t\ty = x + 1\n\t"""')
>>> f.__doc__
'Computes the value.\nx = 1\n        y = x + 1\n'

This becomes a problem when using the formatter with tab indentation, esp. with a tab width that is not 8, because we're either inconsistent with tab indentation or mismatch what cpython does. We should investigate how the various docs tools handle docstring indents. If the indent size or kind doesn't matter to them, we have more freedom in e.g. converting to tabs inside docstrings, otherwise we need to know which properties we need to preserve.

Is there any way to suppress formatting of docstrings for now?

You can add # fmt: skip to the end:
def func():
    """abc
def
    ghi
    """  # fmt: skip

But there is no dedicated setting to enforce this globally (and, candidly, I think we're unlikely to add one).

Thanks, but frankly that's just not feasible for any bigger codebase.
I added some examples to #8430 to show what the current behaviour does to our codebase. That just looks wrong, regardless if E101 is activated or not.
If E101 would ignore multiline strings and the formatter would use the value of indent-width then this might be a valid compromise.

Makes sense! I'm sure we'll make some improvements to the tab-in-docstring behavior (hence this issue). It just hasn't been prioritized yet. But I'd rather spend time fixing the root cause than investing in other workarounds.

@konstin I don't see the same behavior as you:
Python 3.11.6 (main, Oct 23 2023, 22:48:54) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exec('def f():\n\t"""Computes the value.\n\tx = 1\n\t\ty = x + 1\n\t"""')
>>> f.__doc__
'Computes the value.\n\tx = 1\n\t\ty = x + 1\n\t'

Sphinx seems to be configurable using the tab-width option.

(As pointed out on Discord, this behavior will be changing in Python 3.13.)

pydoc uses cleandoc, which expands tabs to 8 spaces (source)
pydoc uses getdoc which uses cleandoc (source)
doxygen has a tab size option. But what I understand is that it is only used for code snippets (it uses a DSL for the documentation)
sphinx has a tab width option

I'm closing this issue. Most documentation tools use a version of inspect.cleandoc. I leave a more in depth reply in
https://github.com/astral-sh/ruff/issues/8430


isHidden is not working

Hello.
I'm trying to hide the youtubeVideo by the following code
youtubeVideo.isHidden = true
but is not working.
Any idea?

Hi @kwstasna!
The YouTubePlayerView itself doesn't expose any special property for hiding itself. Are you trying to use the UIView property, hidden? If so, I think in your case you want to say youtubeVideo.hidden = true. Not the difference between isHidden and hidden.
Hope this helps. I'm going to close this since it doesn't seem to be an issue with the library itself.

In swift3 its isHidden !


merge package template from Kronos-Tools/npm-package-template

package.json

chore(engines): update<EMAIL_ADDRESS>from template
docs(package): remove keyword null

.travis.yml

chore(travis): merge from template .travis.yml

Coverage remained the same at 91.667% when pulling b3fde23391a9fc0e11541d84290daf81e1d5beee on template-sync-1 into a1268d5670bed5c34c752f57a84b5fb88989780c on master.

Codecov Report

Merging #84 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master     #84   +/-   ##
======================================
  Coverage    92.3%   92.3%
======================================
  Files           1       1
  Lines          26      26
======================================
  Hits           24      24
  Misses          2       2

Continue to review full report at Codecov.

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


New package: Juqst v0.2.0

Registering package: Juqst
Repository: https://github.com/rharper2/Juqst.jl
Created by: @rharper2
Version: v0.2.0
Commit: 1da25f0e4830b07b3edfb36c415fe9d5d4afe48b
Reviewed by: @rharper2
Reference: https://github.com/rharper2/Juqst.jl/commit/1da25f0e4830b07b3edfb36c415fe9d5d4afe48b#commitcomment-85111926

The software has effectively had this name for 8 years (3 years in its current form - as a module), If at all possible I would prefer not to change its name, short for "JUst another Quantum Software Toolbox". If it can't be done - no worries.


Use ISO8601 for dates, datetimes and durations

I would like to suggest that rather than using a customised data-related object serialisation ecml-tools adopts the ISO8601 standard. There is a really nice python package isodate for handling parsing of these and it makes it much easier to build other tools that can work with the same configuration files etc. Also, it avoids users having to try to understand a new format just to use the package.

As long as the behaviour is the same, no problem.

It would change the functionality in how to provide dates, datetimes and duration. So it depends on what you mean by "behaviour".
From the README on specifying date ranges it currently says:
The following are equivalent way of describing start or end:

    2020 and "2020"
    202306, "202306" and "2023-06"
    20200301, "20200301" and "2020-03-01"

I don't think it is a good idea to support so many variations on how to format dates. For example if someone set start=201009 it would be ambiguous from just reading that input whether this refers to September 2010 or Oct 9th 2020. It is these kind of ambiguities ISO8601 was created to avoid.
Also, having so many variations means that another application needs to implement a lot of logic to be able to support parsing of the config file. I can for example imagine wanting to use these values in javascript (a frontend the visualises data ranges used for a dataset). ISO8601 is supported in many different javascript libraries (for example momentjs)
Finally, I think the current way the start and end can be provided, for example by only giving "2020" (I assume this is the year), implies that the start of the year when used for start, but the end of the year when used for end. Maybe this isn't the current behaviour, but I think we should add to the README if that is how its intended to work.
So what I suggest is that we depreciate the current format and only support strings formatted according to ISO8601. That will mean the README would instead read:
The `start` and `end` arguments for specifying time-spans should be provided as ISO8601 formatted strings, e.g.

    YYYY e.g. "2020" (will imply start of year when used for `start` and end of year when used for `end`)
    YYYY-MM e.g. "2023-06" (will imply start of month when used for `start` and end of month when used for `end`)
    YYYY-MM-DD e.g. "2020-03-01" (will imply start of day when used for `start` and end of day when used for `end`)
    YYYY-MM-DDTHH-MMZ e.g. "2024-01-26T10:32:57Z"

This will also change how frequencies should be given. In the ISO 8601 standard this are done with P-prefix, e.g. PT10H is 10 hours, PT7M is 7 minutes, P7D is 7 days. https://en.wikipedia.org/wiki/ISO_8601#Durations

You are welcome to implement the changes. Just make sure that they are backwards compatible for now, so that our current software stack still works. It is just a matter of accepting both type of input.


Finish physics section 6 CSV

The following CSVs for physics sections are currently incomplete:

[ ] Section 1
[ ] Section 7

The above commit (	7583db4) was a typo. It is meant to say:
Add some of the physics section 2 content

...not section 6


Document possible parameters for options

It can also include 'route', 'location' and helpers are also available on the client. Make note that this list is not complete and can be changed if react router changes its props

@AVVS included info about react-router. route, location, and helpers are among the items in the list.


choice of GPUs

I am using OpenNMT on a 4-gpu machine.
I am running the training with this setting '-gpuid 1'
but the GPU actually used is the 3as shown by "nvidia-smi'
$> nvidia-smi
Tue Apr  4 15:19:06 2017
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 375.39                 Driver Version: 375.39                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  Tesla M60           Off  | 8469:00:00.0     Off |                  Off |
| N/A   59C    P8    16W / 150W |      2MiB /  8123MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   1  Tesla M60           Off  | A740:00:00.0     Off |                  Off |
| N/A   35C    P8    14W / 150W |      2MiB /  8123MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   2  Tesla M60           Off  | A7BC:00:00.0     Off |                  Off |
| N/A   31C    P8    14W / 150W |      2MiB /  8123MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   3  Tesla M60           Off  | AD6B:00:00.0     Off |                  Off |
| N/A   76C    P0   100W / 150W |   3006MiB /  8123MiB |     97%      Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID  Type  Process name                               Usage      |
|=============================================================================|
|    3      2545    C   .../torch/install/bin/luajit  3004MiB |
+-----------------------------------------------------------------------------+
This appears to contradict the documentation
"For example:
th train.lua -data data/demo-train.t7 -save_model demo -gpuid 1,2,4
will use the first, the second and the fourth GPU of the machine."
What does the number specified with gpuid exactly refer to?
And why does it not start from 0?

Maybe we should be more precise. They are "the first, the second and the fourth GPU of the machine" as returned by the CUDA API and not the driver API as used by nvidia-smi. Both IDs can be different.
It is 1-indexed because Lua is 1-indexed.

thanks for the clarification


Webviews can prevent keyboard shortcuts from working in quick picks

VS Code Version: 1.50
OS Version: Windows 10 && Mac OSX Catalina

Steps to Reproduce:

Open a full-editor webview in the main editor area
Open a text file in the editor
Close the text file using a keyboard shortcut (Cmd+W or Ctrl+F4); the full-editor webview should now receive focus
Press Cmd+P to open the quick-pick file selector
Select a file from the quick pick editor; VS Code will jump you to that file
While editing this file, press Cmd+P again to open the quick-pick file selector

Expected Results:

I can use keyboard shortcuts for Cut / Copy / Paste while in the quick pick editor

Actual Results:

All keyboard shortcuts are disabled in this quick pick window.

Root Cause:
During step 5 of the reproduction, VS Code switches focus to the code file you selected from the quick pick.  Additionally, a delayed action fires as the quick pick closes.  The delayed action tells the system to return focus to the element that previously had focus, which was the full-editor webview.
The full-editor webview thinks it has focus, and as a result it absorbs all cut/copy/paste commands that are defined in webview.contribution.ts.

Does this issue occur when all extensions are disabled?: No

Looks like you are on an old VS Code version. Does this reproduce in the latest VS Code insiders build?

@mjbvz I've been working on this in the Facebook build of VS Code, and we're usually a release or two behind.  Prior to submitting this, we tried checking the latest branches to see if there were any changes in the pipeline that would fix it for us.
I tried pulling in this change into my current branch, which seemed very promising:
https://github.com/microsoft/vscode/commit/aa73c2d435d45dcee7f843164a2b7f8a0018e3d6#diff-d290cb6d05c11d900910c208855317e2ba58816f563a4c2a6fd781564381e68e
Unfortunately, this change by itself didn't fix the problem, but it was that change that helped me identify that the root cause was the difference between document.activeElement and webview.isFocused.  @evangrayk and I spent some time reviewing possible fixes before we decided to submit it upstream to you.
Let me know if you'd like me to record a walkthrough on a different build :)

Yes as a starting point, please test using the insiders VS Code release to see if this happens there as well. Then you will know if there are commits or not that would fix this issue for your custom VS Code build

Reverted due to a regression: #117595. Reopening

Thanks for the feedback!  I'll investigate and see what's happening here.

Re-developing a fix for this now.  I think the original idea of "check to see if a webview really has focus" was the wrong approach.  As documented in #117595 there are cases where a webview has focus but there is a DOM tree of elements and it is not always clear whether that indicates a problem.
The next test we are developing involves:

Add blur() method to webviews
When the editor group view service shows an editor, notify the currently active webview (if there is one) that it has lost focus

In testing, this works correctly in the following scenarios:

Focus is currently on a webview, then use a quick-pick to jump to an editor window.  Result: Showing the editor window removes focus from the webview.
Focus is on a webview and you use keyboard navigation to tab through it.  Result: Webview retains focus even when navigating through a tree of elements.

We are going to test this more internally before we submit a second patch.


[Help Wanted]: Extension is freezing when I'm importing a CoreML model

Before Reporting

[X] I have checked FAQ, and there is no solution to my issue
[X] I have searched the existing issues, and there is no existing issue for my issue

Describe your issue
Hey!
First of all, thank you for the work being done here, really useful. It changed my way of working.
I ran into an issue today: when you import a CoreML model, the app is freezing.
I think it probably tries to process the content of it, and since it's big / contains many data, it's stuck.
Maybe should we ignore those files?

What it size of the model file?


Update known-issues-azure-postgresql-online.md

There was a limitation that was called out in this ICM ticket about the number of tables that can handled by one migration activity.
https://portal.microsofticm.com/imp/v3/incidents/details/272764813/home
Hence adding this limitation to the known issues for DMS Postgres

@shriram-muthukrishnan : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#label:"aq-pr-triaged"

@shriram-muthukrishnan : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@ktoliver : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Introduce cooldown period

Dom mentioned there should be a cooldown period between runs, since the BMCs are only really accurate to within 30 seconds.
Ideally we let a node rest for about 30 seconds or so before queuing up the next job so that our time windows don't overlap, which could spoil the energy estimate.

As I doubt there will be a reframe option that will be right for this, one thing we could do is have a @run_before("run") hook which asks the scheduler when the last job on node X finished, and sleeps a given offset before letting reframe continue?

The above wont work since multiple jobs might get queued up to the scheduler simultaneously.
A different fix would be to add a sleep call at the end of each script, and then subtract the same amount from the database query we make?


Add modulr to ES registry

Modular is a bank which is already in other countries' registry, but the spanish branch was missing
It is registered in banco de españa (https://www.bde.es/webbe/en/estadisticas/otras-clasificaciones/clasificacion-entidades/listas-instituciones-financieras/listas-instituciones-financieras-monetarias-pais/lista-mfi-es.html)

For some reason the country looks to be LT rather than ES


SVG preview not working

Microsoft PowerToys version
v0.51.1
Running as admin

[X] Yes

Area(s) with issue?
SVG Preview, SVG Thumbnail
Steps to reproduce
I turned on SVG preview and SVG thumbnails
✔ Expected Behavior
Expected to see SVG images
❌ Actual Behavior
Stayed at Explorer icons even after a reboot
Other Software
Windows 11

Can you see other previews generated by PowerToys? For example, PDF and markdown preview.

Besides, could you attach a full bug report file?
Right-click on the tray icon and click Report Bug. Then drag-and-drop the generated file into the GitHub comment to upload it. Thanks!

Hi @adaptframework
Does the issue occur with files on OneDrive or another provider with files on-demand?
Can you check if thumbnail is created for an SVG on your local drive?

Hello, i have the same issue as the author on date of 02/16/22, but i have comfirmed that the svg preview dosnt work only when files are located in my Onedrive folder, as @davidegiacometti was wondering
the panel preview work, but the icon preview dosnt, is there any way to fix it? i have jundreds of svg, obvioulsy in my work cloud folder, and having to check them one by one to find something is pretty boring and time comsuming
im wondering why Adobe Illustrator dosnt have an integrated icon preview for svg, as there is with other vector files...
Thanks by advance

right-click the SVG icon and select power toy as the default app for viewing. fixed my issue in windows 11 file explorer

For context about the One Drive issue: https://github.com/microsoft/PowerToys/issues/12949

I ALWAYS have problems with SVG files not showing correctly. Why is this app so unstable for these type of files? Also, the .zip files for the bug report say they are generated and on my desktop but they're not.

right-click the SVG icon and select power toy as the default app for viewing. fixed my issue in windows 11 file explorer

There is no option to select powertoys for viewing in windows 11.

Hello, i have the same issue as the author on date of 02/16/22, but i have comfirmed that the svg preview dosnt work only when files are located in my Onedrive folder, as @davidegiacometti was wondering
the panel preview work, but the icon preview dosnt, is there any way to fix it? i have jundreds of svg, obvioulsy in my work cloud folder, and having to check them one by one to find something is pretty boring and time comsuming
im wondering why Adobe Illustrator dosnt have an integrated icon preview for svg, as there is with other vector files...
Thanks by advance

My folders where my .svg files are stored is not in the onedrive folder. I still have issues viewing these file types regardless.

use tibold/svg-explorer-extension instead


Add script to check the example responses match the schema.

(and fix the examples and schema so that it doesn't complain)

LGTM other than that.


rasa init doesn't work

Rasa Open Source version
2.8.6
Rasa SDK version
2.8.2
Rasa X version
None
Python version
3.8
What operating system are you using?
Cloud (AWS / GCP / AZURE)
What happened?
Tries rasa init on a newly created GCP instance (Ubuntu 20.04) and tried to train. An error occurred.
My command history:
   1  sudo apt update
   2  sudo apt install python3-dev python3-pip
   3  python3 -m venv ./venv
   4  pip3 install -U pip
   5  python3 -m venv ./venv
   6  sudo apt install python3.8-venv
   7  python3 -m venv ./venv
   8  source ./venv/bin/activate
   9  pip3 install rasa
  10  mkdir bot
  11  cd bot
  12  rasa --version
  13  rasa init

Command / Request
rasa init

Relevant log output
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
x Rasa Open Source reports anonymous usage telemetry to help improve the product x
x for all its users.                                                             x
x                                                                                x
x If you'd like to opt-out, you can use `rasa telemetry disable`.                x
x To learn more, check out https://rasa.com/docs/rasa/telemetry/telemetry.       x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
Welcome to Rasa! 🤖

To get started quickly, an initial project will be created.
If you need some help, check out the documentation at https://rasa.com/docs/rasa.
Now let's start! 👇🏽

? Please enter a path where the project will be created [default: current directory]
Created project directory at '/home/rumesh_m_s16/bot'.
Finished creating project structure.
? Do you want to train an initial model? 💪🏽 Yes
Training an initial model...
The configuration for pipeline and policies was chosen automatically. It was written into the config file at './config.yml'.
Training NLU model...
/home/rumesh_m_s16/venv/lib/python3.8/site-packages/tensorflow_addons/utils/ensure_tf_install.py:53: UserWarning: Tensorflow Addons supports using Python ops for all Tensorflow versions above or equal to 2.3.0 and strictly below 2.6.0 (nightly versions are not supported).
 The versions of TensorFlow you are currently using is 2.6.0 and is not supported.
Some things might work, some things might not.
If you were to encounter a bug, do not file an issue.
If you want to make sure you're using a tested and supported configuration, either change the TensorFlow version or the TensorFlow Addons's version.
You can find the compatibility matrix in TensorFlow Addon's readme:
https://github.com/tensorflow/addons
  warnings.warn(
Traceback (most recent call last):
  File "/home/rumesh_m_s16/venv/lib/python3.8/site-packages/rasa/utils/common.py", line 296, in run_in_loop
    result = loop.run_until_complete(f)
  File "uvloop/loop.pyx", line 1456, in uvloop.loop.Loop.run_until_complete
  File "/home/rumesh_m_s16/venv/lib/python3.8/site-packages/rasa/model_training.py", line 108, in train_async
    return await _train_async_internal(
  File "/home/rumesh_m_s16/venv/lib/python3.8/site-packages/rasa/model_training.py", line 288, in _train_async_internal
    await _do_training(
  File "/home/rumesh_m_s16/venv/lib/python3.8/site-packages/rasa/model_training.py", line 334, in _do_training
    model_path = await _train_nlu_with_validated_data(
  File "/home/rumesh_m_s16/venv/lib/python3.8/site-packages/rasa/model_training.py", line 758, in _train_nlu_with_validated_data
    await rasa.nlu.train.train(
  File "/home/rumesh_m_s16/venv/lib/python3.8/site-packages/rasa/nlu/train.py", line 96, in train
    trainer = Trainer(
  File "/home/rumesh_m_s16/venv/lib/python3.8/site-packages/rasa/nlu/model.py", line 164, in __init__
    components.validate_requirements(cfg.component_names)
  File "/home/rumesh_m_s16/venv/lib/python3.8/site-packages/rasa/nlu/components.py", line 58, in validate_requirements
    from rasa.nlu import registry
  File "/home/rumesh_m_s16/venv/lib/python3.8/site-packages/rasa/nlu/registry.py", line 12, in <module>
    from rasa.nlu.classifiers.diet_classifier import DIETClassifier
  File "/home/rumesh_m_s16/venv/lib/python3.8/site-packages/rasa/nlu/classifiers/diet_classifier.py", line 24, in <module>
    from rasa.utils.tensorflow.models import RasaModel, TransformerRasaModel
  File "/home/rumesh_m_s16/venv/lib/python3.8/site-packages/rasa/utils/tensorflow/models.py", line 47, in <module>
    from rasa.utils.tensorflow.temp_keras_modules import TmpKerasModel
  File "/home/rumesh_m_s16/venv/lib/python3.8/site-packages/rasa/utils/tensorflow/temp_keras_modules.py", line 26, in <module>
    class TmpKerasModel(tf.keras.models.Model):
  File "/home/rumesh_m_s16/venv/lib/python3.8/site-packages/rasa/utils/tensorflow/temp_keras_modules.py", line 37, in TmpKerasModel
    @training.enable_multi_worker
AttributeError: module 'tensorflow.python.keras.engine.training' has no attribute 'enable_multi_worker'

Thanks for the issue, @kalkbrennerei will get back to you about it soon!
You may find help in the docs and the forum, too 🤗

Hey @rumeshmadhusanka thanks for letting us know! 💯 Since we don't support tensorflow 2.6 yet, pip3 install rasa should install a lower version of tensorflow. We have a PR up to fix this!
You can probably also manually install tensorflow 2.3.4 and it should work

It should work now with rasaos 2.8.7 🎉
I'm closing this issue

Still facing the same problem.
Can't degrade the tensorflow version and rasa in not working with 2.6.0.
RASA current pacakages.
rasa                          0.1.1
rasa-core                     0.8.6
rasa-nlu                      0.11.5


SDL.Dll is missing in Windows binary

How should I get the dll?

libsdl.org has the dlls. You need the 1.2 dll

What bitness? 32 or 64? Thanks!


README: --wsdl-namespace was specified twice

just a small fixup - the second occurance always overwrites the first so I think this is more correct.

thanks by the way :smile:

np, it's not a big fix or anything, just mildly irritating ;)


Support Flavors for MacOs

Is your feature request related to a problem? Please describe.
When creating project with flavors, they configured for Android and OS only. There no MacOS cofiguration in flavorizr.
Describe the solution you'd like
Add MacOS to flavorizr configuration

Planned in version 1.1.1(26)


Can't install additional language packs

Hey,
i downloaded the Azure Data Studio v 1.7.0 on my Linux-PC  (BackBox 5.3) but can't install ANY language pack. Tried Ctrl+Shift+P to change "Language Mode" or "Configure Display Language".
Didn't work yet.
Do you guys have some idea, how to solve this?
greets

This is being tracked in #3727 - closing this one as a duplicate.
@kburtram in case you have any other comments you want to give

I'm working on this today.  The plan is to publish LangPacks to insiders build marketplace this week and to stable feed for June release.


[Enhancement] BE webserver support SSL #22971

Proposed changes
Issue Number: close #22971

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall

@LuGuangming  you need modify cmake files because compile failed.
ninja: error: '/var/local/thirdparty/installed/lib/libevent_openssl.a', needed by 'src/io/fs_benchmark_tool', missing and no known rule to make it
[0/2] Re-checking globbed directories...
ninja: error: '/var/local/thirdparty/installed/lib/libevent_openssl.a', needed by 'test/doris_be_test', missing and no known rule to make it


[BUG-python/deployment] create_default is not shown in python -m argilla users CLI

Describe the bug
A clear and concise description of what the bug is.
Stacktrace and Code to create the bug
Since the migration of python -m argilla server database users and python -m argilla database and python -m argilla users, it seems the available methods are a bit unaligned.
Expected behavior
I would expect to be able to create a default user or have this represented in the developer documentation clearly.

Environment:

Argilla Version [e.g. 1.0.0]: 1.19
ElasticSearch Version [e.g. 7.10.2]: N.A.
Docker Image (optional) [e.g. argilla:v1.0.0]: N.A.

Additional context
N.A.

Hey indeed the create_default is directly creating those in the database so the command is argilla server database users create_default 👍🏻

We should try to align this with the developer docs

Yes, I think we can double-check the CLI commands against the ones documented in the docs and it can align with your efforts w.r.t. reviewing the development documentation

Yes, I think we can double-check the CLI commands against the ones documented in the docs and it can align with your efforts w.r.t. reviewing the development documentation

Right now we have the command @alvarobartt mentioned here https://docs.argilla.io/en/latest/community/developer_docs.html#create-the-default-user
However, I'm getting this error

@ignacioct , what Python version are you using?

@ignacioct , what Python version are you using?

3.9.18


Building app with version 7.2.0 fails with js_default(...) is not a function

When building  a Next.js app with @bugsnag/js 6.5.2 everything works well. But then when I update to 7.2.0, I get this error:
> next build
--
448 |
449 | Creating an optimized production build...
450 | Attention: Next.js now collects completely anonymous telemetry regarding usage.
451 | This information is used to shape Next.js' roadmap and prioritize features.
452 | You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
453 | https://nextjs.org/telemetry
454 |
455 |
456 | Compiled successfully.
457 |
458 | Automatically optimizing pages...
459 | ·[91m
460 | ·[0m·[91m> Build error occurred
461 | ·[0m·[91mTypeError: js_default(...) is not a function
462 | at Module.1TCz (/app/.next/server/static/R0sMxFVhNPx29MuYJo4Mu/pages/_app.js:195:37)
463 | at __webpack_require__ (/app/.next/server/static/R0sMxFVhNPx29MuYJo4Mu/pages/_app.js:23:31)
464 | at Object.0 (/app/.next/server/static/R0sMxFVhNPx29MuYJo4Mu/pages/_app.js:106:18)
465 | at __webpack_require__ (/app/.next/server/static/R0sMxFVhNPx29MuYJo4Mu/pages/_app.js:23:31)
466 | at /app/.next/server/static/R0sMxFVhNPx29MuYJo4Mu/pages/_app.js:91:18
467 | at Object.<anonymous> (/app/.next/server/static/R0sMxFVhNPx29MuYJo4Mu/pages/_app.js:94:10)
468 | at Module._compile (internal/modules/cjs/loader.js:956:30)
469 | at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
470 | at Module.load (internal/modules/cjs/loader.js:812:32)
471 | at Function.Module._load (internal/modules/cjs/loader.js:724:14)
472 | at Module.require (internal/modules/cjs/loader.js:849:19)
473 | at require (internal/modules/cjs/helpers.js:74:18)
474 | at hasCustomGetInitialProps (/app/node_modules/next/dist/build/utils.js:25:1035)
475 | at /app/node_modules/next/dist/build/index.js:13:3616
476 | at processTicksAndRejections (internal/process/task_queues.js:93:5)
477 | at async Promise.all (index 6)
478 | ·[0m·[91mnpm ·[0m·[91mERR! code ELIFECYCLE
479 | npm·[0m·[91m ·[0m·[91mERR!·[0m·[91m ·[0m·[91merrno·[0m·[91m 1
480 | ·[0m·[91mnpm ·[0m·[91mERR<EMAIL_ADDRESS>build: `next build`
481 | ·[0m·[91mnpm·[0m·[91m ·[0m·[91mERR!·[0m·[91m Exit status 1
482 | ·[0m·[91mnpm ·[0m·[91mERR!·[0m·[91m
483 | npm·[0m·[91m ·[0m·[91mERR!·[0m·[91m Failed at the<EMAIL_ADDRESS>build script.
484 | npm·[0m·[91m ERR!·[0m·[91m This is probably not a problem with npm. There is likely additional logging output above.
485 | ·[0m·[91m
486 | npm ERR!·[0m·[91m A complete log of this run can be found in:
487 | npm ERR!     /root/.npm/_logs/2020-07-23T19_32_12_306Z-debug.log
488 | ·[0mThe command '/bin/sh -c npm run build' returned a non-zero code: 1

I'm sticking to 6.5.2 for now, but just wanted to let you know.

Hi @edgarjs,
Thanks for this,
Would you be able to share how you have your Bugsnag configuration set up when this happens? If you are happy to, feel free to do that here otherwise you can write in to<EMAIL_ADDRESS>

Sorry @mattdyoung I missed your previous message. I have an error boundary component where I have all my Bugsnag configuration:
import React from 'react'
import bugsnag from '@bugsnag/js'
import bugsnagReact from '@bugsnag/plugin-react'
import {
  BUGSNAG_KEY,
  APP_VERSION,
  APP_STAGE
} from '../lib/env'
import store from '../lib/redux/store'

let ErrorBoundary = function (props) {
  return props.children
}

if (BUGSNAG_KEY) {
  const bugsnagClient = bugsnag({
    apiKey: BUGSNAG_KEY,
    appType: 'my-app',
    appVersion: APP_VERSION,
    releaseStage: APP_STAGE,
    beforeSend: function (report) {
      const { currentUser } = store.getState()

      report.user = currentUser

      if (/401|4/.test(report.errorMessage)) {
        report.ignore()
      }
    }
  })
  bugsnagClient.use(bugsnagReact, React)

  ErrorBoundary = bugsnagClient.getPlugin('react')
}

export default ErrorBoundary

In env.js I just define the variables:
export const BUGSNAG_KEY = process.env.NEXT_PUBLIC_BUGSNAG_KEY

And that's it. When I run npm run build I get that error but only when using 7.2.0. If I switch to 6.5.2 everything works well.
Thanks!

Hi @edgarjs.
There were a number of breaking changes introduced in v7 so the syntax required to initialise and configure Bugsnag has changed. There is an upgrade guide here describing all the changes.
The full documentation is available for:
v7: https://docs.bugsnag.com/platforms/javascript/react/
v6 and before: https://docs.bugsnag.com/platforms/javascript/legacy/react/
It looks like you are trying to build v7 using v6 syntax so I suspect this is the reason for this error message.
Your Bugsnag specific code should look something like the following for v7:
import Bugsnag from '@bugsnag/js'
import BugsnagPluginReact from '@bugsnag/plugin-react'

if (BUGSNAG_KEY) {
Bugsnag.start({
    apiKey: BUGSNAG_KEY,
    appType: 'my-app',
    appVersion: APP_VERSION
    releaseStage: APP_STAGE
    plugins: [new BugsnagPluginReact()],
    beforeSend: function (report) {
      const { currentUser } = store.getState()

      report.user = currentUser

      if (/401|4/.test(report.errorMessage)) {
        report.ignore()
      }
    }
  })
ErrorBoundary = Bugsnag.getPlugin('react').createErrorBoundary(React)
}

Got it, thank you for clarifying!


some expression found bug

        r, err := govaluate.NewEvaluableExpression("x%10==8")
	if err != nil {
		log.Fatal(err)
		return
	}

	parameters := make(map[string]interface{})
	parameters["x"] = int64(71111112902814738)

	result, err := r.Evaluate(parameters)
	if err != nil {
		log.Fatal(err)
	}

	log.Printf("result is %v", result)

result should be true, but i got false
NEED HELP ~

govaluate treat all numeric value as float64. float64's max safe integer value is<PHONE_NUMBER>740991. Obviously,<PHONE_NUMBER>2814738 is much larger, so it get rounded and become unsafe to compute and compare.
To fix this bug, some check can be added to issue an error before real evaluation, or just add integer type to this library.

We met this bug too. Any plan to fix it?

We met this bug too. Any plan to fix it?


Adds Copy and Clone traits to glib::SignalHandlerId.

I think SignalHandlerId should derive Copy and Clone, since it's just a scalar.

From my point of view, we don't want to allow users to manipulate a same signal handler id multiple times at once. But maybe I'm wrong?
cc @sdroege @EPashkin

Yes, it designed without Copy/Clone specially for that reason

Yes, there should be no Clone/Copy impl for that reason. It's intentionally done like this.
What problems does it cause you right now and in which context?

Closing as it's as intended and there was no response after a month


bug: Ionic React pages that are not children of tabs still show the tabbar

ionic React
There was no way to hide the IonTabBar at the bottom when I entered the secondary page
If IonTabBar is removed, an error will be reported as shown below
Can you add a hidden bottom IonTabBar property?

Thanks for the issue. This looks like a bug in Ionic React.
Typically, if you wanted to hide the tabbar on navigating you should configure your routes such that the page is not child of a tab.
For example, the following configuration would cause the tabbar to appear because the page is a child of a tab:
<Route path="/tabs/tab1/child" component={ChildPage} />

But this configuration would cause the tabbar to transition away because the page is a child of the root routing context, not a tab:
<Route path="/child" component={ChildPage} />

Actually it looks like this is a duplicate of https://github.com/ionic-team/ionic/issues/20753. I am going to close this in favor of the bug I linked.


Alzheimers Disease Prediction using Deep Neural Network

Deep Learning CNN Model To Predict Alzheimer's Disease Using CT Scan of Brain.
In This Model, The Model is Trained Using The CT Scan Image Dataset.

The model accuracy is 99.46%.
Test accuracy is also 99.35897 percent
The Model is not overfit or underfit
I had also added the readme file as well as the dataset and images used.

Issue No. : #396

@srajan-kiyotaka use predefined matrices for accuracy

@Niketkumardheeryan
I had done the changes,
e.g. I had added the accuracy matrix which calculates the test accuracy during each epoch,
while training.


Defaulted parameters are not inferred from GameType

Game has a map of params called defaulted_parameters_, while GameType has also a map of params called parameter_specification which also uses default values.
I find this very confusing. For example, a game may specify which parameters it uses, but then if you call MyGame::GetParameters(), you do not get the defaulted values, unless the game uses the T Game::ParameterValue method call (and to add to the confusion, that call can also provide another defaulted value). I stumbled upon this in universal_poker.
I'd like to suggest that there should be only the (immutable) GameType.parameter_specification. The Game receives a set of parameters and makes a union of them and GameType.parameter_specification in the constructor, and saves it into its internal immutable map of game_parameters_. These will be then accessible to DerivedGame and can use ParameterValue in their constructors as to avoid string lookups in the param map, and these saved members should be typically marked as const.
WDYT?

Yeah I think this is generally a good idea, and I've thought about it myself a few times too. It's a huge change to make now, though.. are you sure you're up to it?
I remember when @elkhrt added the ParameterValue member functions, wondering why we didn't make the change at that point. I expect there was a technical reason that made sense.. Ed, do you remember? Seems like something we would have changed when we were doing those early sweeps through all the games.
The problem is now there's a lot more built on top: game parameters are now serialized, so we'd have to make sure that all still works... and we have python games. I'm thinking there might just be something preventing this from being possible or easy, and I'd only like to make the change if we can do it properly without leaving something broken (that currently works).
So I'm in favor, but would like Ed's thoughts. Maybe wait a day or two until he responds before working on this.

Makes sense. It is not high priority -- I might get to it some time (but not soon). I will make a comment when I do. If anyone wants to change it in the meantime, feel free, and please leave a comment :)


Update schema so that failon and expects use arrays

The previous schema has objects for the failon and expect error
parameters but jq could not translate these object for the shell.
These should instead each accept an array of error codes.

This change should have the added benefit of passing our schema validation as well.


Qe sso 7.4 5

Closing this. Please reopen when it's ready.

Thank you for the pointers @tristantarrant I will reopen once it's ready!


Add verified checkmark in notifications

There is 1 small thing that is missing, User Verified Checkmark in Notifications.
I added that, Thanks to @AdityaChaudhary0005 for the suggestion :)

The  amount of PR you are doing the core devs should pay you lol :)

If you could fix the horizontal alignment I think I like this change. Will ask for input from @lazynina before approving

I did vertical alignment top, should I make it to the center?

Yes, center would be apt

Fixed

Awesome ! The amount of PR and merge you are doing the core devs should at least verify you and maybe pay you too lol :) 😛

Thank you, for support

All Done


Update terminology SDK->library

See https://github.com/MicrosoftDocs/msteams-docs/pull/7306 for more info

Learn Build status updates of commit 566137d:
:warning: Validation status: warnings

File
Status
Preview URL
Details

nodejs/teams-1121/overview/msteams-client.md
:warning:Warning

Details

nodejs/overview/msteams-client.md
:white_check_mark:Succeeded

nodejs/teams-1121/overview/msteams-client.md

Line 13, Column 263: [Warning: hard-coded-locale - See documentation] Link 'https://docs.microsoft.com/en-us/microsoftteams/platform/overview' contains locale code 'en-us'. For localizability, remove 'en-us' from links to most Microsoft sites.
Line 13, Column 263: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/en-us/microsoftteams/platform/overview' will be broken in isolated environments. Replace with a relative link.
Line 60, Column 3: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/javascript/api/%40microsoft/teams-js/' will be broken in isolated environments. Replace with a relative link.
Line 62, Column 19: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/microsoftteams/platform' will be broken in isolated environments. Replace with a relative link.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Learn Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel

Learn Build status updates of commit 8d81af6:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

nodejs/overview/msteams-client.md
:white_check_mark:Succeeded

nodejs/teams-1121/overview/msteams-client.md
:white_check_mark:Succeeded

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


Azure says it is still in private preview

Bicep version
v0.28.1
Describe the bug
I tried to create a very simple app registration but the deployment in azure fails saying it is in private preview
EDIT
I tested it using the Azure CLI and that works - This happens when i use VS code Bicep extension to deploy
To Reproduce
Add the experimentalFeature

Add the application resource

Deploy it and see error details

There is an error message that says CLI is the only supportable way right now


Advanced chat: custom messages and client hooks

Mod changes: https://github.com/R2Northstar/NorthstarMods/pull/217
Features:

Server mods can now send chat messages outside of just intercepting incoming ones: this includes impersonating players, sender-less "announcement"/anonymous style messages, and whisper versions of both.
The client can intercept incoming chat messages. Client-side chat formatting has been completely replaced by script to open up customisation options.
Client mods can display custom announcement messages in the local player's chat.
Anonymous messages all support ANSI escape codes for colours, so servers and mods can do fun things like this:

Awesome stuff man.
Gonna look into how to make this compatible with commands and mods and stuff ^^

@GeckoEidechse Currently working on a general API cleanup of the PR and fixing some small issues. Should be ready for 1.5.x

Should be ready to go for real now.

Awesome, i'll put it on the list for 1.6.0

Just an update on this, we're currently holding out on merging until Emma's improved Squirrel interop is merged.

Improved Squirrel interop is in now so this is good to be merged (once bob’s formatting is fixed ofc).

https://github.com/R2Northstar/NorthstarLauncher/blob/main/NorthstarDLL/localchatwriter.cpp#L19-L21

// yes these are swapped from the Source 2013 code, who knows why
void(__fastcall* InsertStringWide)(vgui_BaseRichText* self, const wchar_t* wszText);
void(__fastcall* InsertStringAnsi)(vgui_BaseRichText* self, const char* text);

Answer: MSVC retardation, they swap order of same-named virtual funcs https://twitter.com/p0358/status/1482414127549198338
found the comment when randomly reading code and decided to answer lol


Update packages, bug fixes, heartbeat check

Hi @noliar , I am thinking of using  your GUI to one of my projects. I am wondering how active you are and what is your vision on this project of yours. I will play around with it a for a while and if I decide to use it I'll start contributing.

https://github.com/noliar/DevZH.UI/commit/43122e62e61ee94980be9dce489530f61f3fe14c


Clone on start optimization

gh-816
When closeOnStart = true and .git directory already exists then do not clone remote repo and open a connection to an existing one. Otherwise, clone on start as usual

Closing due to inactivity


cross compile issue2

protoc -Ithird_party/protobuf/src -I. --cpp_out=/home/wzj/openwrt/sdk_x1000/depends/grpcgit/gens src/proto/grpc/reflection/v1alpha/reflection.proto mkdir -p dirname /home/wzj/openwrt/sdk_x1000/depends/grpcgit/gens/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.ccprotoc -Ithird_party/protobuf/src -I. --grpc_out=/home/wzj/openwrt/sdk_x1000/depends/grpcgit/gens --plugin=protoc-gen-grpc=/usr/local/bin/grpc_cpp_plugin src/proto/grpc/reflection/v1alpha/reflection.proto mkdir -pdirname /home/wzj/openwrt/sdk_x1000/depends/grpcgit/objs/opt/src/cpp/ext/proto_server_reflection.o/home/wzj/openwrt/sdk_x1000/toolchain/bin/mips-linux-gnu-g++ -Ithird_party/protobuf/src -Ithird_party/googletest/include -Ithird_party/boringssl/include -g -Wall -Wextra -Werror -Wno-long-long -Wno-unused-parameter -O2 -fPIC -I. -Iinclude -I/home/wzj/openwrt/sdk_x1000/depends/grpcgit/gens -DNDEBUG -DINSTALL_PREFIX=\"/home/wzj/openwrt/sdk_x1000/sys_root\"   -std=c++11   -MMD -MF /home/wzj/openwrt/sdk_x1000/depends/grpcgit/objs/opt/src/cpp/ext/proto_server_reflection.dep -c -o /home/wzj/openwrt/sdk_x1000/depends/grpcgit/objs/opt/src/cpp/ext/proto_server_reflection.o src/cpp/ext/proto_server_reflection.cc In file included from ./src/cpp/ext/proto_server_reflection.h:41:0,                  from src/cpp/ext/proto_server_reflection.cc:39: /home/wzj/openwrt/sdk_x1000/depends/grpcgit/gens/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h:62:24: error: variable 'grpc::reflection::v1alpha::ServerReflection grpc::reflection::v1alpha::GRPC_FINAL' has initializer but incomplete type /home/wzj/openwrt/sdk_x1000/depends/grpcgit/gens/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h:63:2: error: expected primary-expression before 'public' /home/wzj/openwrt/sdk_x1000/depends/grpcgit/gens/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h:63:2: error: expected '}' before 'public' /home/wzj/openwrt/sdk_x1000/depends/grpcgit/gens/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h:63:2: error: expected ',' or ';' before 'public' src/cpp/ext/proto_server_reflection.cc:227:1: error: expected '}' at end of input src/cpp/ext/proto_server_reflection.cc:227:1: error: expected '}' at end of input src/cpp/ext/proto_server_reflection.cc:227:1: error: expected '}' at end of input make: *** [/home/wzj/openwrt/sdk_x1000/depends/grpcgit/objs/opt/src/cpp/ext/proto_server_reflection.o] Error 1 wzj@mylab:~/openwrt/sdk_x1000/depends$

Hi, can I ask you rebuild and reinstall the protoc plugins? It looks like you're using old protoc plugins (that say things like GRPC_FINAL) which we've since deprecated at master. Please let me know what happens after that.

@vjpai I have pulled the new source. compile again show the error:

/home/wzj/openwrt/sdk_x1000/depends/grpcgit/gens/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h:62:24: error: variable 'grpc::reflection::v1alpha::ServerReflection grpc::reflection::v1alpha::GRPC_FINAL' has initializer but incomplete type
/home/wzj/openwrt/sdk_x1000/depends/grpcgit/gens/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h:63:2: error: expected primary-expression before 'public'
/home/wzj/openwrt/sdk_x1000/depends/grpcgit/gens/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h:63:2: error: expected '}' before 'public'
/home/wzj/openwrt/sdk_x1000/depends/grpcgit/gens/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h:63:2: error: expected ',' or ';' before 'public'
src/cpp/ext/proto_server_reflection.cc:227:1: error: expected '}' at end of input
src/cpp/ext/proto_server_reflection.cc:227:1: error: expected '}' at end of input
src/cpp/ext/proto_server_reflection.cc:227:1: error: expected '}' at end of input
make: *** [/home/wzj/openwrt/sdk_x1000/depends/grpcgit/objs/opt/src/cpp/ext/proto_server_reflection.o] Error 1

@vjpai
I check the source files. And add the codes to the config.h:
#define GRPC_OVERRIDE override #define GRPC_FINAL final
Thus, compile successfully. The codes are still there on 1.0.1, Why do the newest not contains ?

We have switched to true C++11. The issue in your case is that your
installed protoc plugins are outdated relative to your gRPC version. I
would recommend re-installing gRPC from source (rather than just
rebuilding). I am going to leave this open to decide if we should consider
continuing to support those older macros for users that might have older
versions of the plugins installed.
On Tue, Nov 15, 2016 at 10:28 PM wang zijiao<EMAIL_ADDRESS>wrote:

@vjpai https://github.com/vjpai
I check the source files. And add the codes to the config.h:
#define GRPC_OVERRIDE override
#define GRPC_FINAL final
Thus, compile successfully. The codes are still there on 1.0.1, Why do the
newest not contains ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/grpc/grpc/issues/8754#issuecomment-260865025, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AIdEkDmCSDREyGPNjizVZnGpWFfxJTWqks5q-qJwgaJpZM4KyZYt
.

@vjpai , Thank you, I have tried reinstalled. Finally, successfully cross compile the grpc. The issue can be closed.

@enjoydiy: Is it possible to build only the CPP flavor of GRPC ? I'm also trying to cross compile for OpenWRT. Do you have a makefile you can share with me ? Thanks!


Palindrome Linked List

🚀 Feature
(A clear and concise description of what the feature is.)
This will enable us to check if a given linked list is a palindrome using Java.
Have you read the Contributing Guidelines on Pull Requests?
(Write your answer here.)
Yes, I have read it thoroughly.
Motivation
(Please outline the motivation for the proposal.)
I would like to contribute to this project as a participant at GSSoC'21.
Pitch
(Please explain why this feature should be implemented and how it would be used.)
This feature should be implemented because it is necessary to know how to identify whether the given singly linked list is a palindrome or not.

I have made a PR for the same. Kindly merge it. #2891

Greetings sir/Mam,
I would like to contribute the code for Bubble Sort Algorithm #933 in C++/CPP.
The code is ready. I have added the code , along with proper explanation of the algorithm , test cases , time complexity and space complexity of the same, as per the guidelines.
Kindly assign it to me.
This is regarding GSSOC'21.
Regards,
Hitain Kakkar


Add UUID form to the Web IDE

Because each ESP provides its services and characteristics, user shall specify them with UUIDs.

I removed the web IDE project files due to heroku. (To upload a node project on a heroku repository, the project files must be in the root directory of the repository. ) So, I close this issue.


Unable to Set 'Add to Target' to 'None' for Swift OpenAPI Generator Package in Xcode

Environment:

Xcode Version: 15.1 (15C65)
Swift OpenAPI Generator Version: [Specify the version, if known]

Issue Description:
I am attempting to add the Swift OpenAPI Generator package to my Xcode project following the instructions provided in the documentation. However, I'm facing an issue at the step where I need to ensure that the 'Add to Target' value is set to 'None' for the Swift OpenAPI Generator build plugin.
According to the instructions, since this package is a build plugin, it should not be added to a specific target at this stage. Instead, it will be integrated into the build process later. However, in the Xcode UI, I cannot proceed without selecting a target—the 'Add Package' button becomes greyed out when I set the project to 'None'.
Steps to Reproduce:

Open the Xcode project and navigate to 'Package Dependencies'.
Click the plus button to add a new package dependency.
Type the repo url in the search field and select the package
On the 'Choose Package Products' screen, attempt to set 'Add to Target' to 'None'.

Expected Behavior:
I should be able to set 'Add to Target' to 'None' for the Swift OpenAPI Generator package and proceed with the integration.
Actual Behavior:
The 'Add Package' button is greyed out when 'Add to Target' is set to 'None', preventing me from adding the package without associating it with a target.

Could anyone provide guidance on how to correctly add the Swift OpenAPI Generator as a build plugin without setting a target?
I would appreciate any help or insights the community can offer on this matter. Thank you in advance!

It's okay to set "Add to Project" to your project. The "Add to Target" picker is later, after you click "Add Package".

It's okay to set "Add to Project" to your project. The "Add to Target" picker is later, after you click "Add Package".

Ah, duh 🤦♂
Thank you!


uCDR and IDL: remove field ordering, causing improper serialization/deserializarion

Solves https://github.com/PX4/px4_ros_com/issues/12.
Test data / coverage
Example output from listener vehicle_gps_position:
pxh> listener vehicle_gps_position

TOPIC: vehicle_gps_position instance 0 #1
 vehicle_gps_position_s
	timestamp: 134492000  (0.112000 seconds ago)
	time_utc_usec: 0
	lat: 473977506
	lon: 85456072
	alt: 488102
	alt_ellipsoid: 0
	s_variance_m_s: 0.2500
	c_variance_rad: 0.0000
	eph: 1.0000
	epv: 1.0000
	hdop: 0.0000
	vdop: 0.0000
	noise_per_ms: 0
	jamming_indicator: 0
	vel_m_s: 0.0000
	vel_n_m_s: 0.0100
	vel_e_m_s: 0.0000
	vel_d_m_s: -0.0100
	cog_rad: 0.3826
	timestamp_time_relative: 0
	heading: nan
	heading_offset: nan
	fix_type: 3
	vel_ned_valid: False
	satellites_used: 10

Example output from a ROS 2 listener for the same message being propagated in a uRTPS UDP link: (still has problems in some enum fields, but at least the message is usable)
RECEIVED DATA ON VEHICLE GPS POSITION
================================
ts: 186892000
lat: 473977506
lon: 85456072
alt: 488089
alt_ellipsoid: 0
s_variance_m_s: 0.25
c_variance_rad: 0
fix_type:
eph: 1
epv: 1
hdop: 0
vdop: 0
noise_per_ms: 0
vel_m_s: 0
vel_n_m_s: 0
vel_e_m_s: 0.01
vel_d_m_s: 0.02
cog_rad: 1.70147
vel_ned_valid: 0
timestamp_time_relative: 0
time_utc_usec: 0
satellites_used:

heading: nan
heading_offset: nan

Describe problem solved by the proposed pull request
While running an instance of a Fast-CDR deserialisation in a micro-RTPS bridge, the following error was triggered:
terminate called after throwing an instance of 'eprosima::fastcdr::exception::BadParamException'
  what():  Unexpected byte value in Cdr::deserialize(bool), expected 0 or 1
Aborted (core dumped)

Further debug using gdb allowed to verify which msgs where triggering this error, and which specific fields. It turns out that the message fields where not being properly initialised because they were sorted before being serialized but then the deserialization was not considering the sorting of the fields, which resulted in wrong deserialization of the fields.
Describe your preferred solution
There's not obvious advantage on sorting the fields before serialization and when building the IDL file, so that sorting was removed and the problem was solved.
Describe possible alternatives
We can consider sorting in both sides of serialization and deserialization (ROS2 agent side), but no obvious advantage on that.

@jkflying FYI.


Remove unused Swift declarations in tools/generator/...

This was found with SwiftLint's upcoming improved dead code analysis.
Surely some of the stuff that I'm removing here would be useful to keep around for future use, so please feel free to let me know what you'd like to keep.

Thanks!


Can I send POJO over Sharethem ??

Is there anyway to send Pojo via Sharethem ?

may you can try to send POJO class in text file, otherwise i don't think it is possible directly.


Serialize concrete acset schemas

Currently, we have the ability to serialize the abstract acset schemas and concrete acset instances.
For example, we can define and serialize this abstract schema:
@present SchFriends(FreeSchema) begin
  (Person,Friendship)::Ob
  (friender,friendee)::Hom(Friendship,Person)
  (Name, Age)::AttrType
  name::Attr(Person,Name)
  age::Attr(Person,Age)
end

write_json_acset_schema(SchFriends, "SchFriends.json")

And we can define and serialize this concrete instance:
@acset_type Friends(SchFriends, index=[:friender,:friendee])

friends = @acset Friends{String,Int} begin
    Person = 3
    Friendship = 3
    friender = [1,2,2]
    friendee = [2,1,3]
    name = ["Alice", "Bob", "Carol"]
    age = [20, 30, 40]
end

write_json_acset(friends, "friends.json")

However, even when taking both of them together, there is some type information missing. Specifically, what is currently missing is a way to serialize the concrete schema (i.e. Friends{String,Int}) for a given acset instance. The information is only implicitly/dynamically available in the JSON, which only works for the primitive types natively supported by JSON.
What I would like is an overload like this:
write_json_acset_schema(friends, "SchFriends.json")

Which will output the same as the abstract schema, except it will also include the concrete type substituted in the friends instance for each of the the AttrTypes, i.e. it would produce something like:
{
  "version": { "ACSets": "0.0.0", "ACSetSchema": "0.0.1" },
  "Ob": [{ "name": "Person" }, { "name": "Friendship" }],
  "Hom": [
    { "name": "friender", "codom": "Person", "dom": "Friendship" },
    { "name": "friendee", "codom": "Person", "dom": "Friendship" }
  ],
  "AttrType": [
    { "name": "Name", "type": "String" },
    { "name": "Age", "type": "Int" }
  ],
  "Attr": [
    { "name": "name", "codom": "Name", "dom": "Person" },
    { "name": "age", "codom": "Age", "dom": "Person" }
  ]
}

This is related to issue: https://github.com/AlgebraicJulia/ACSets.jl/issues/45

Copying this from #45 :
New comments from Daniel today:
The real problem is that we have our schema in Catlab and it's generic over the actual types populating the AttrTypes to create a concrete acset type. Thus we'd like to serialize a schema with fixed AttrTypes, probably both on its own and along with the serialization of an instance. We mainly just need primitive types.

This is definitely being worked on via InterTypes #76


Update tproxy and lanif

merge commit has messed up this commit history, need to close and create a new one.


TypeError: backend.cast is not a function

Issue Description
Exception received when calling faceapi.detectAllFaces() with @tensorflow/tfjs-node:
TypeError: backend.cast is not a function
Steps to Reproduce

Creating working code without @tensorflow/tfjs-node
Added require ('@tensorflow/tfjs-node') at start of code after installing @tensorflow/tfjs-node

Expected Behavior
Faster response for detectAllFaces()
**Environment
Debian 11
Node 16.15
@tensorflow/tfjs-node 3.18.0

Module version?
Built-in demo or custom code?
Custom. Code snippet

const faceapi = require('face-api.js')
require('@tensorflow/tfjs-node')
...
await detectFace(LocalImage, new faceapi.SsdMobilenetv1Options())

async function detectFace(img, FaceDetector) {
  const detections = await faceapi.detectAllFaces(img, FaceDetector)
}

Type of module used (e.g. js, esm, esm-nobundle)?
js

Browser or NodeJS and version (e.g. NodeJS 14.15 or Chrome 89)?
nodejs

OS and Hardware platform (e.g. Windows 10, Ubuntu Linux on x64, Android 10)?
VM

Packager (if any) (e.g, webpack, rollup, parcel, esbuild, etc.)?
none

Additional
error stack
/home/jhfoo/smartmirror/server/node_modules/@tensorflow/tfjs-core/dist/ops/array_ops.js:473
    return engine_1.ENGINE.runKernelFunc(function (backend) { return backend.cast($x, dtype); }, { x: $x }, grad, 'Cast', attrs);
                                                                             ^

TypeError: backend.cast is not a function
    at engine_1.ENGINE.runKernelFunc.x (/home/jhfoo/smartmirror/server/node_modules/@tensorflow/tfjs-core/dist/ops/array_ops.js:473:78)
    at /home/jhfoo/smartmirror/server/node_modules/@tensorflow/tfjs-core/dist/engine.js:528:55
    at /home/jhfoo/smartmirror/server/node_modules/@tensorflow/tfjs-core/dist/engine.js:388:22
    at Engine.scopedRun (/home/jhfoo/smartmirror/server/node_modules/@tensorflow/tfjs-core/dist/engine.js:398:23)
    at Engine.tidy (/home/jhfoo/smartmirror/server/node_modules/@tensorflow/tfjs-core/dist/engine.js:387:21)
    at kernelFunc (/home/jhfoo/smartmirror/server/node_modules/@tensorflow/tfjs-core/dist/engine.js:528:29)
    at /home/jhfoo/smartmirror/server/node_modules/@tensorflow/tfjs-core/dist/engine.js:539:27
    at Engine.scopedRun (/home/jhfoo/smartmirror/server/node_modules/@tensorflow/tfjs-core/dist/engine.js:398:23)
    at Engine.runKernelFunc (/home/jhfoo/smartmirror/server/node_modules/@tensorflow/tfjs-core/dist/engine.js:537:14)
    at cast_ (/home/jhfoo/smartmirror/server/node_modules/@tensorflow/tfjs-core/dist/ops/array_ops.js:473:28)

For installation or startup issues include your package.json
For usage issues, it is recommended to post your code as gist

If I change the lines to:
require('@tensorflow/tfjs-node')
const faceapi = require('face-api.js')

Where tfjs-node is loaded before face-api I get a different error:
/home/jhfoo/smartmirror/server/node_modules/@tensorflow/tfjs/node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js:4625
                out = _this.tidy(function () { return forwardFunc_1(_this.backend, saveFunc_1); });
                                                      ^

TypeError: forwardFunc_1 is not a function
    at /home/jhfoo/smartmirror/server/node_modules/@tensorflow/tfjs/node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js:4625:55
    at /home/jhfoo/smartmirror/server/node_modules/@tensorflow/tfjs/node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js:4441:22
    at Engine.scopedRun (/home/jhfoo/smartmirror/server/node_modules/@tensorflow/tfjs/node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js:4451:23)
    at Engine.tidy (/home/jhfoo/smartmirror/server/node_modules/@tensorflow/tfjs/node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js:4440:21)
    at kernelFunc (/home/jhfoo/smartmirror/server/node_modules/@tensorflow/tfjs/node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js:4625:29)
    at /home/jhfoo/smartmirror/server/node_modules/@tensorflow/tfjs/node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js:4646:27
    at Engine.scopedRun (/home/jhfoo/smartmirror/server/node_modules/@tensorflow/tfjs/node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js:4451:23)
    at Engine.runKernelFunc (/home/jhfoo/smartmirror/server/node_modules/@tensorflow/tfjs/node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js:4642:14)
    at mul_ (/home/jhfoo/smartmirror/server/node_modules/@tensorflow/tfjs-core/dist/ops/binary_ops.js:327:28)
    at Object.mul (/home/jhfoo/smartmirror/server/node_modules/@tensorflow/tfjs-core/dist/ops/operation.js:46:29)

in line const faceapi = require('face-api.js'), what exactly is face-api.js?

Thank you for the super prompt response!
Your analysis was spot-on: I switched the load order and used your repo's version of face-api.node.js, and my code worked! It's my mistake not recognizing there's actually 2 repos for face-api:

https://github.com/vladmandic/face-api (yours)
https://github.com/justadudewhohacks/face-api.js

Thank you for continuing this work!
This is my final code
require('@tensorflow/tfjs-node')
// copied from dist/
const faceapi = require('./lib/face-api.node')


Proper bulking of ops not using FCompute

Description
PR #13890 made bulking of ops more performant in the hybridized models with static_alloc=True. However, it was limited to ops using FCompute function (and so not FComputeEx nor the operator class). This PR changes that.
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[x] Changes are complete (i.e. I finished coding on this PR)
[x] All changes have test coverage:
[x] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

LGTM.


Merge changes from v2.7.3-next.1 into main

Merge changes from v2.7.3-next.1 into main.
Details regarding the included changes are provided in the release notes and the CHANGELOG.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Pubsub router integration

[x] Topic routing via PubSubRouter
[x] RPC routing via PubSubRouter
[x] Write docs

@gittix09 if you want take a look of pubsub router feature and change will must applied when it will be released.
After the merge of this i will start tagging and following semantic versionning (http://semver.org) so this merge will breack your current application.
I'm waiting for comment before merge.

Upgrade Guide
###Overview

Add routing configuration in config.yml
Refactor RPC class
Refactor Topic class
Create routing definition

Bundle configuration
You MUST create a routing a YAML file, let it empty for now, I'll show later in this upgrade guide how fill it.
# Gos Web Socket Bundle
gos_web_socket:
    server:
        router:
            resources:
                - @AcmeBundke/Resources/config/pubsub/routing.yml

Remote Procedure Call (RPC)
Before :
public function addFunc(Conn $conn, $params)

After :
use Gos\Bundle\WebSocketBundle\Router\WampRequest;
public function addFunc(ConnectionInterface $connection, WampRequest $request, $params)

Before :
public function getPrefix()
{
    return 'sample';
}

After :
public function getName()
{
    return 'acme.rpc'; //Name used in the routing file to point this service
}

Topic
Before :
public function onSubscribe(ConnectionInterface $connection, Topic $topic)

After :
use Gos\Bundle\WebSocketBundle\Router\WampRequest;
public function onSubscribe(ConnectionInterface $connection, Topic $topic, WampRequest $request)

Before :
public function onUnSubscribe(ConnectionInterface $connection, Topic $topic)

After :
use Gos\Bundle\WebSocketBundle\Router\WampRequest;
public function onUnSubscribe(ConnectionInterface $connection, Topic $topic, WampRequest $request)

Before :
public function onPublish(ConnectionInterface $connection, Topic $topic, $event, array $exclude, array $eligible)

After :
use Gos\Bundle\WebSocketBundle\Router\WampRequest;
public function onPublish(ConnectionInterface $connection, Topic $topic, WampRequest $request, $event, array $exclude, array $eligible)

Before :
public function getPrefix()

After :
public function getName()
{
    return 'acme.topic'; //Name used in the routing file to point this service
}

Routing definition
Create new Yaml file if it's not already done. (AcmeBundke/Resources/config/pubsub/routing.yml for example)
The routing definition is very closer from symfony routing definition.
user:
    channel: notification/user/{username}
    handler:
        callback: 'acme.topic' #will point on your class where getName() return 'acme.rpc' Note : topic allow to pass an array of callback, One channel can be handled by mutiple topic class.
    requirements:
        username:
            pattern: "[a-zA-Z0-9]+" #accept all valid regex, don't put regex delimite (like symfony router)
            wildcard: true #see below for more details

notification_rpc:
    channel: notification/procedure/{method}
    handler:
        callback: 'acme.rpc' #will point on your class where getName() return 'acme.rpc'
    requirements:
        method:
            pattern: "[a-z_]+"

Wildcarding argument :
Wildcard mean you allow * and all values, then notification/user/* match route named user. In some case it can be usefull.
Each parameters are captured and available through WampRequest::getAttributes which return ['username' => 'acme_username'] for example. Look at WampRequest class to see all available options.

Awesome!! It looks very good.
I will test it as soon as I can.
P.s. You are going at lightning speed =)


Missing Information.

How do you enable the Design Tabs Button ? I do not have that option or the tab selection section in the configure production floor execution page.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 44378fdb-8720-b289-06e7-80b2b8ab446b
Version Independent ID: cd88f6f2-0558-9ed5-e83c-2db55030f135
Content: Design the production floor execution interface - Supply Chain Management | Dynamics 365
Content Source: articles/supply-chain/production-control/production-floor-execution-tabs.md
Service: dynamics-ax-applications
Product: ****
Technology: ****
GitHub Login: @johanhoffmann
Microsoft Alias: johanho

@kamaybac, please review.


feat(client): add origin config to client builder

Took an attempt to provide a solution for #2178 .
I went with the assumption that we'd only want to set when Hyper is used as a Http client.
The Client::Builder now has an additional config to accept a value for setting the Origin header. Once configured it gets added for every request made.
let client = Client::builder()
            .add_origin("http://secret-mission".parse().unwrap())
            .build()

Let me know if you think this makes sense. Can iterate on it as required.

Thanks for the PR!
The issue #2178 may not have been super clear. It was meant that we should provide some hyper::service::AddOrigin middleware. Something that looks like this (I'm going to skip some imports and things):
pub struct AddOrigin<S> {
    scheme: http::uri::Scheme,
    auth: http::uri::Authority,
    service: S,
}

impl<Req, S: Service<Req> Service<Req> for AddOrigin {
    // ...
}

It's similar to what was done in this commit: https://github.com/tower-rs/tower-http/commit/51cef91f758c1aae672876c2ac1dde93e47e63aa
cc @LucioFranco

Ah okay. I misunderstood that. So the intention is to provide a AddOrigin middleware agnostic of whether the library is used as a client or server.
Thanks for the reference, let me update this PR.

I'm going to close this PR for now, but feel free to open if you want to make the changes!

Fair enough. Will raise a PR once I am done with the changes.


is the training data available?

thank you for the great work. Is the fine-tuning data available?

Hey! All of the dataset scripts are included and were run as-is.
e.g. https://github.com/sshh12/multi_token/blob/main/scripts/xclip_build_finetune_dataset.py


taggable service doesn't work with one-count array tag

Taggable services are useful in the container but run into an exception when the tagged service attribute is a one-count array definition.
Example:
$rade->tag(HelloWorld:class, [['foo', 'bar']]);

Unfortunately, I don't support that this is a bug. Just like how service definition belongs to a unique id which can be aliased. The same rule applies to taggable services.
The example giveb should be written as such:
$rade->tag(HelloWorld:class, ['foo', 'bar']);

This means the HelloWorld class belongs to tags of foo and bar.


Make host name configurable / change "localhost" occurances in SPFx modules

Category

[x] Question
[ ] Typo
[x] Bug
[x] Enhancement / Suggestion
[ ] Additional article idea

Expected or Desired Behavior
I tried to deploy the workbench to a Docker container on Azure but it fails to work properly. Technically it was running correctly but I spotted some issues in the SharePoint Framework.
The scenario for this is to allow customer to preview web parts and test the behaviour before the web part will be deployed to any tenant.
In addition this scenario allows enhance and improve cross browser testing as well es automated front end testing
It would be great to make hostname configurable vie serve.json.
Observed Behavior
Currently the workbench cannot run on any other host name than localhost. This is because inside the framework the "localhost" string is exposed in many different source files in the node modules. Overall the treatment of the host name is inconsistent in many ways.
serve.json allows to set ports and an initial start page, even if another host name is defined there the all requests will be redirected to localhost.

@iclanton - FYI

Sounds like a good idea to me. I'll create a work item for it.

Fixed.

@amishra0909 Is this fixed version currently available?

"Fixed" is not a valid reason to close an issue.
@iclanton Can you please provide some more information because @amishra0909 won't respond for some reason?
Thank you in advance.

Hi @StfBauer, @amishra0909 is not from Microsoft, so will now re-open this to be able to follow up on the actual request. Actual request does make lot of sense.

Thank you @VesaJuvonen !


add support for base64 embeddings

Resolves #189

Considerations:

Instead of using a generic could copy pasta the whole response struct for Base64 embeddings. This was less code, but leaks some implementation details out of the crate.
Left the debug assert in - lmk if you want it removed
Open to any other suggestions :)

Thank you for the  PR!
Looking at the spec doesn't distinguishes base64 response - it opens up implementation details - which you have done nicely!
I'll leave the comments about your considerations separately.

@64bit Sorry about the delay. I think this is ready for another review now! Let me know what you think :)


Export histogram metadata

It would be useful if there was a way to dump histogram (and book ?) configuration to, say, JSON and to have an ability to recreate the empty histogram from it.

okay, will do

I'm working with @lukasheinrich to make histbook work with pyhf (analysis-quality fitting). The JSON format will be closely related to the pyhf JSON format.
But looking at the spec right now, I see that it doesn't say anything about how the histograms are binned, so I'll have to invent that part. From the fitter's point of view, it doesn't matter what the histogram low and high edges are (for example) because it just uses each bin content and error as an independent observable. It needs to know how many bins there are, though I don't see that in the JSON spec. (Perhaps that comes from following the "name" to a ROOT histogram and looking at its number of bins.)
So the histogram JSON spec will go beyond the fitting JSON spec, just as the fitting JSON spec goes beyond the histogram one (with information about how to normalize several histograms in a fit, etc.). Both JSON specs will therefore have optional members for compatibility— for instance to make a round trip from a fitting spec to a set of histograms and back. I wonder if JSONSchema allows us to define a union schema from which histbook_spec.json and pyhf_spec.json are derived?

Yes I think the view of a union schema is correct. For the fitting we really just need an array of numbers, everything else is optional metadata. Im the current schema the data is nested into all other data. As we discussed offline, the schema could be adapted to flatten the structure, where all histograms are stored in some toplevel structure (like a serialized Book) and we use a referencing mechanism (like JSONPointer or some other higher-level references resolved using custom software) to refer to these histograms in the nested fitting spec
data:
  ... serialized book
channels:
- name: channel1
   samples:
   - name: sample1
      data: {$ref: /data/some/pointer/into/the/book}

I need to learn JSONSchemas. For now, I'm going to do it the way I've always done it, with a manual .tojson and .fromjson method on each serialized class. That will be a first draft we can use to design the union schema.
@imandr: I'll have the JSON serialization done sooner, but it won't be a stable schema. We'll need to make changes. Hence, the early versions can be used for RPC but not for archiving.

JSON schemas do not do JSON-to-Object mapping (for this one has a Object-Document mappers like marshmallow https://github.com/marshmallow-code/marshmallow) but just validate a JSON Document structure against a schema -- so I think the .tojson .fromjson methods need to be present anyways (unless you want to use ODMs)

Okay, then I'll implement it the old fashioned way (no marshmallow) and we can later define it formally in a schema. Then, at least, the implementation can be checked.

This commit (on the "feature-booking-for-pyhf" branch) allows Hist (tested) and Book (untested) objects to be serialized to and from JSON. The original request was just asking for histogram metadata (everything except _content), but you can just h.cleared() to get a copy of the histogram without contents and serialize that.
The JSON format sacrifices performance for human-readability.


@adity2911  Bro for running my code you need to setup github auth in firebase and add   your url to authorized domains ,then run it on local and you can check my deployed url it contains buttons and tell me which buttons are creating   ,you can check my deployed url by adding buttons ,there is no problem in my  website   ,please merge it And FIRST OF ALL FIX YOUR MAIN WEBSITE ,because it has firebase quota reached  and no user can now see your buttons.

          @adity2911  Bro for running my code you need to setup github auth in firebase and add   your url to authorized domains ,then run it on local and you can check my deployed url it contains buttons and tell me which buttons are creating   ,you can check my deployed url by adding buttons ,there is no problem in my  website   ,please merge it And FIRST OF ALL FIX YOUR MAIN WEBSITE ,because it has firebase quota reached  and no user can now see your buttons.

This is url:https://animating-buttons-silk.vercel.app/
Originally posted by @Nishitbaria in https://github.com/Spyware007/Animating-Buttons/issues/1659#issuecomment-1612050934
I checked your website.
can't use the download button there.

@


Set StoriesProgressView Used in BaseAdapter Class java.lang.ArrayIndexOutOfBoundsException error occure

Set StoriesProgressView Used in BaseAdapter Class this time java.lang.ArrayIndexOutOfBoundsException: length=7; index=7 error Occure

You're assigning to an item that does not exist. Your array does not have an object at index 7.


point select issues

http://jsfiddle.net/kdragon/1d4sz5xs/5/
click on points and point labels, notice that point select sometimes happens to the wrong point.
here are specific steps to make it happen, but lots of other ways too: run the fiddle, click 111 label, click 222 label -> point 111 is selected instead of point 222
also, notice some weird point fillColor. sometimes the fillColor is the series color, other times it's the point's manually assigned color. sometimes this is when selected, sometimes when not selected. keep clicking on the same point to see this. this only happens when the draggable.js is included
comment out the draggable.js and notice how this works correctly. seems like it is similar to this other issue that i reported that was corrected: https://github.com/highcharts/draggable-points/issues/43
in my actual app, the issue is, points that i am selecting become unselected. but just when i click on their labels. something is firing after i select the point.
chrome on windows 7 64
Thanks
Keith

Thanks for reporting, I fixed it by adding a new option, dragSensitivity, that defaults to 1. It prevents drag/drop from happening when clicking points.


Help: How to keep the size of the picture remains the same for different browser sizes

Hi, i have a pathology image scanned at 20X magnification. I found  when the browser size changed, the image size also changed.
I use autoResize and preserveImageSizeOnResize to keep image size unchanged.
But if i smaller the browser ,  reload the web, the image size smaller too.
I want to keep the image size unchanged no matter the browser size .
eg:
Full screen: every image size is  331:

Smaller the browser , reload it, it changed to 316.

Thanks.

I found out the openseadragon uses 1x image size as base.
It means openseadragon will enlarge the image according to the browser size.
eg:
I have one big image make up of 16 small image(44, and every image size is 256256), which width is 1024px.
But when I show it by openseadragon, the width becomes to bigger than 1024px.
I know i can limit the divs width to 1024px.
`
But i don`t want to do that as i have more images, which i can show it from 1x to 40x.  As it uses 1x as the base and enlarge it to the full browser. When i change to 40x, it also bigger than i hoped.

https://github.com/openseadragon/openseadragon/issues/1462
Same with this issue.
If u want to zoom to 20x, u should first calculate it to viewportZoom. Then zoomTo(viewportZoom)


Allows use on systems with nmcli where iwlist is not present

Changed dependency on module node-wifiscanner to node-wifiscanner2 to allow this module to work on linux systems with nmcli rather than iwlist.

@HowWeRollingham Please don't bump the version number. Can I get you to update the pull request without this change?
Btw, it's sad to see that someone had to fork node-wifiscanner instead of working together with pull requests. Do you know why?

No idea.  I was late to the party on this one.

@HowWeRollingham thanks 😃 I've published on npm as v1.1.2


Changing columns or rows count issue

Problem1: Increment columns/rows count via setItemCount(int x, int y) has no effect to UI so a user can not scrolls to new items
Problem2: Decrement columns/rows count via setItemCount(int x, int y) leads to repeating items

Added support for changing dimensions and properties during runtime along with possibility to do programmatically refresh. Please check version 0.7.


lZero doesn't keep leading zeros

Expected behavior
When typing a leading zero in a numeric field (like a zip code), I expect the leading zero to stay after the field looses focus.
Actual behavior
If I click or hover over the text field, or if I click elsewhere on the form, the input is reformatted without the leading zero.
Steps to reproduce the problem

Using autoNumeric 2.0.10 and the browser FireFox version 52 or the browser Chrome version 56 on Windows 8.1,
I used the options lZero: 'keep', aSep: '', vMax: '99999', mDec: '0', aPad: 'false', and
Initialized my AutoNumeric object with the call $('#q5').autoNumeric({lZero: 'keep', aSep: '', vMax: '99999', mDec: '0', aPad: 'false'});
I entered the zip code "01234".   The leading zero stays in while I'm focused on the input, But after the input looses focus, the leading zero disappears.  Also, if I type 012345, it removes the leading zero (the maxlength of the input is 5).

Link to live example (ie. Codepen)
https://jsfiddle.net/a1sye06f/

Hi @jarodljohnson, thank you for reporting a bug.
Unfortunately, I cannot reproduce the bug which drops the leading zeros, under Firefox 45.8.0 nor 54.0a2. I'm on Linux though.
@BobKnothe can you?
I also cannot in your jsfiddle enter 012345.
On Chrome 57 though, I experience the bug you are describing.
The exact step to reproduce it are:

Enter 01234 inside the input
Focus out by clicking outside of it (at that point, the input value is still 01234)
mouseover the input, and its value is wrongly changed to 1234

Note; under Chrome if you enter 01234|, then 5, the result is 12345|, which is normal.

Note to self ; the behavior when entering 00123|, then other numbers is different between Firefox and Chrome ; it should not.
I'll create another issue about this when this bug is closed.

For info, the options can be written this way now:
new AutoNumeric('#issue_423', {
        leadingZero: AutoNumeric.options.leadingZero.keep,
        digitGroupSeparator: AutoNumeric.options.digitGroupSeparator.noSeparator,
        maximumValue: '99999',
        decimalPlacesOverride: 0,
        allowDecimalPadding: AutoNumeric.options.allowDecimalPadding.noPadding,
});


Custom key doesn't work with create or update, only with fetch

I use a custom key "uuid" instead of "id", like this:
reduxCrud.List.reducersFor('permissions', {key: 'uuid'});
It works with fetchSuccess(data), but I get this error when I want to update with updateSuccess(data), or create with createSuccess(data):
Uncaught (in promise) Error: Expected record.id in updateSuccess
I don't understand, because my data has a "uuid" key.
Maybe the custom key is not implemented into create or update action ?
Thanks

You need not only to pass your custom key to the reducersFor function but also to the actionCreatorsFor function.
For example:
reduxCrud.actionCreatorsFor(resource.path, {key: 'uuid'});

Thanks !
This was not specified in doc, so I added it

@hwaterke 	thanks for answering issues, really appreciate it


[VL] Managed memory leak in imported Spark UTs

Errors with "Managed memory leak detected" are being reported from the import Spark UTs.
The errors were ignored since we set "spark.unsafe.exceptionOnMemoryLeak=false" in tests.
We should deal with all of the current reported leak issues then finally set "spark.unsafe.exceptionOnMemoryLeak=true".

Tracking:
531 / 6341 UT cases are now leaking
https://gist.github.com/zhztheplayer/40cbdd0be9502fa01d8397eaa087e74a

Fix https://github.com/oap-project/gluten/pull/1079 submitted for leak caused by iterator unconsumed data

Using debugging PR https://github.com/oap-project/gluten/pull/1033 to count on leaked test cases

Tracking:
531 / 6341 UT cases are leaking within #1079
Although #1079 fixes leak from some corner cases (e.g. TestOperator.scala which is out of this tracking)
https://gist.github.com/zhztheplayer/9baf7566bd03d570286b9281be567043

Fix https://github.com/oap-project/gluten/pull/1084 submitted for leak caused by Java side complex Arrow vector creation

Tracking:
0 / 6341 UT cases are leaking within https://github.com/oap-project/gluten/pull/1084
https://gist.github.com/zhztheplayer/b61fbf71af47d114eacb365ca7e33332

https://github.com/oap-project/gluten/pull/1087 submitted to enable leak error reporting (which was previously warning) in Spark UT

Closing as resolved.


^compile does not resolve internal dependsOn project dependency

steps
Given a project definition which includes both an sbt plugin and a non-plugin project that the sbt plugin depends on:
inThisBuild(
  Seq(
    organization := "com.example",
    version := "0.1"
  )
)

lazy val root = (project in file("."))
  .aggregate(library, plugin)
  .enablePlugins(CrossPerProjectPlugin)

val library = (project in file("library"))
  .settings(
    scalaVersion := "2.10.6",
    crossScalaVersions := Seq("2.10.6", "2.12.3")
  )

val plugin = (project in file("plugin"))
  .settings(
    sbtPlugin := true,
    crossSbtVersions := Seq("0.13.16", "1.0.0-RC3")
  )
  .dependsOn(library)

problem
When attempting to cross-compile the plugin for the given sbt versions, the following error occurs during dependency resolution:
> ^compile
[info] Setting `sbtVersion in pluginCrossBuild` to 0.13.16
[info] Set current project to plugin (in build file:/Users/jeffo/Projects/jvm/sbt-issue/)
[success] Total time: 0 s, completed Jul 31, 2017 9:58:42 AM
[info] Setting `sbtVersion in pluginCrossBuild` to 1.0.0-RC3
[info] Set current project to plugin (in build file:/Users/jeffo/Projects/jvm/sbt-issue/)
[info] Resolving com.example#library_2.12;0.1 ...
[warn] 	module not found: com.example#library_2.12;0.1
[logging elided] ...
[info] Resolving jline#jline;2.14.3 ...
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[warn] 	::          UNRESOLVED DEPENDENCIES         ::
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[warn] 	:: com.example#library_2.12;0.1: not found
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] 	Note: Unresolved dependencies path:
[warn] 		com.example:library_2.12:0.1
[warn] 		  +- com.example:plugin:0.1 (scalaVersion=2.12, sbtVersion=1.0)
[trace] Stack trace suppressed: run last plugin/*:update for the full output.
[error] (plugin/*:update) sbt.ResolveException: unresolved dependency: com.example#library_2.12;0.1: not found

expectation
I would expect that when issuing ^compile, the internal projects that my plugin depends on would be available to it without have to do a publishLocal or +publishLocal.
notes
The ^compile task succeeds if I manually issue +publishLocal from the library project before attempting ^compile.
sbt version: 0.13.16, cross building for 0.13.16 and 1.0.0-RC3

Strange. This should've been solved in #3356.

Oh! Cos #3356 only changes ^^ (aka pluginSwitch) and not ^/pluginCross.

No it's not that. Even the setting of scalaVersion in ^^ is too shallow: it only sets the scalaVersion in the Global scope and the current project scope, which is insufficient for the setup in your repro.
I refer to my notes here about how existing functionality (++ and set every) works.

So is the current functionality the desired functionality for sbt?

Not in my book - given that there's a possible manual translation to make that legitimate build work for sbt 1, ^ and ^^ should work as you expected it to.
If your question is because you're stuck, then there are ways to avoid the problem. I haven't hit this particular bug because I set my scalaVersion in terms of sbtVersion in pluginCrossBuild: https://github.com/dwijnand/sbt-project-graph/blob/v0.2.1/build.sbt#L16-L20

Nope, not stuck, just curious. Used the same workaround, but I think I sourced it from something else of yours (maybe another open issue or a different plugin).

To avoid adding scalaVersion at the project level by default, in #3356 I started appending scalaVersion at the project level only for the current subproject. In the hindsight I was walking into the situation like this whenever there's a plugin that depends on other subprojects.
We could try issuing ++2.x.y inside ^^ command as fix.

@eed3si9n I had tried that, but unfortunately I ran into another issue which forced me to reinstate the scalaVersion on the subprojects. I am still trying to track down exactly what is the cause of this other issue, but it's something like:
- projectA is a plugin
- projectB is a plugin
- projectA and projectB both cross build for 0.13 and 1.0
- projectA and projectB do not set scalaVersion
- projectA and projectB both use scripted
- projectB depends on projectA using `dependsOn`

When running ^compile for projectB, I would get:
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[warn] 	::          UNRESOLVED DEPENDENCIES         ::
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[warn] 	:: org.scala-sbt#scripted-sbt_2.10;1.0.0-RC3: not found
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] 	Note: Unresolved dependencies path:
[warn] 		org.scala-sbt:scripted-sbt_2.10:1.0.0-RC3 ((sbt.ScriptedPlugin) ScriptedPlugin.scala#L104)
[warn] 		  +- com.example:project-a:0.1.0 (scalaVersion=2.10, sbtVersion=1.0)

The way I worked around this was not using dependsOn, but just adding a libraryDependency (and issuing publishLocal) to projectA on projectB like I did for the library and plugin dependsOn issue above.
I believe this only happens when I have the scripted dependency, so maybe I should be doing something different in my plugins.sbt when attempting to cross-build for 0.13 and 0.1. Currently, my plugins.sbt has the standard:
libraryDependencies += "org.scala-sbt" % "scripted-plugin" % sbtVersion.value

I'm trying to get a simpler repro, but I seem to be hitting either this or something that looks similar with a Scala JS build.
Any dependsOn that I add also show up as unresolved until I do a publishLocal on the specific sub-project.


⚠ Bofrost.at has degraded performance

In 0ee76f6, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1929 ms

Resolved: Bofrost.at performance has improved in 66401fb.


How to align two charts horizontally

Hi,
how do i align two charts horizontally?
I have two separate Charts with different y-axis. They are misaligned. Is there an option to set a fixed width for the y-Axis ticks?
sample image
I have a fiddle for you to play:
fiddle

Duplicate of #4340


[Bug]: Deployments don't start anymore

Error Message and Logs
Our Coolify deployment consists of 4 servers total. The Coolify admin host, a build server & two hosts to deploy on with two separate subdomains. Everything worked fine until a few days ago.
When we try to deploy an app (with custom Dockerfile or Nixpacks, with or without build server - doesn't matter) the deployment gets added to the queue and sits there forever. Pressing the "force start" changes the state to "processing", but nothing happens either. No messages, no logs in the build window, nothing. Sometimes restarting the whole admin host gets it working again, but only for a short amount of time. But this "workaround" seems to have stopped working for us now too leaving us unable to deploy anything.
As soon as I press cancel a message pops up with an error:

instant_remote_process(): Argument #2 ($server) must be of type App\Models\Server, null given, called in /var/www/html/app/Livewire/Project/Application/DeploymentNavbar.php on line 80

The proxy has logged some network errors this morning, but they are probably related to #4483 - an Issue we also had a couple of times.

2024-12-11T09:49:58.385076078Z 2024-12-11T09:49:58Z ERR error="accept tcp [::]:80: use of closed network connection" entryPointName=http
2024-12-11T09:49:58.385157225Z 2024-12-11T09:49:58Z ERR Error while starting server error="accept tcp [::]:80: use of closed network connection" entryPointName=http
2024-12-11T09:49:58.385163785Z 2024-12-11T09:49:58Z ERR error="accept tcp [::]:443: use of closed network connection" entryPointName=https
2024-12-11T09:49:58.385169456Z 2024-12-11T09:49:58Z ERR Error while starting server error="accept tcp [::]:443: use of closed network connection" entryPointName=https
2024-12-11T09:50:08.381943611Z 2024-12-11T09:50:08Z ERR Failed to list containers for docker error="Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json": context canceled" providerName=docker
2024-12-11T10:08:28.719311029Z 2024-12-11T10:08:28Z ERR error="accept tcp [::]:80: use of closed network connection" entryPointName=http
2024-12-11T10:08:28.721598935Z 2024-12-11T10:08:28Z ERR error="accept tcp [::]:443: use of closed network connection" entryPointName=https
2024-12-11T10:08:28.725836095Z 2024-12-11T10:08:28Z ERR error="close tcp [::]:80: use of closed network connection" entryPointName=http
2024-12-11T10:08:28.760504931Z 2024-12-11T10:08:28Z ERR error="close tcp [::]:443: use of closed network connection" entryPointName=https

Steps to Reproduce
I'm not sure how to reproduce this. I just updated my private Coolify instance to v4.0.0-beta.376 to compare it with our business instance, but deployments there still work (only 1 host & no build server).
Example Repository URL
No response
Coolify Version
v4.0.0-beta.376
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
Ubuntu 22.04
Additional Information
We use shared servers from Hetzner Cloud for Coolify.
Edit:
Our Shard Host 1 was at 100% cpu usage. After I restarted it usage went back down to like 50%. After that deployments in Coolify started working again. But why should the Admin Panel & deployments on Host 2 be affected by the cpu usage at host 1? Maybe just a coincidence.

Same issue here.

I have a similar issue with current Coolify cloud.

+1 one to this. Just started happening to me today

+1 same to me

+1 same here

+1


[Speculative Decoding] Test refactor

Refactor Speculative Decoding tests to remove AsyncLLMEngine. Related to #8126.

/ready

for the test failure I disabled, to reproduce and investigate, run the following in L4 machines:
docker run -it --gpus all --ipc=host -e HF_TOKEN -v ~/.cache/huggingface:/root/.cache/huggingface public.ecr.aws/q9t5s3a7/vllm-ci-test-repo:f3d79ad8513645851909fc9ea217a9ad0c413427
pytest -v -s tests/spec_decode/e2e/test_multistep_correctness.py -k "test_spec_decode_e2e_greedy_correctness_tiny_model_bs1 or test_spec_decode_e2e_with_detokenization"

I find the problem is the spec decode metrics are not collected.
https://github.com/vllm-project/vllm/blob/7015417fd4910a47263ea34c79c2cdb2ff314fdf/vllm/engine/llm_engine.py#L1900-L1905
after these lines, spec_decode_metrics is None.
cc @comaniac if you have bandwidth to investigate in the future.