Message serializers

We need a serialization abstraction for messaging.

I am assuming serialization here implies to/from universal "wire" format such as byte[]. Correct?
I want to make sure that there is a distinction between general type conversion (i.e., payload conversion to a type requested by a handler)

Serialization is the conversion of a payload to/from the type requested by the handler.
I don't think we need to have a universal wire format to do this (eg, one messaging provider may provide payloads as bytes, another as strings, and another as a JSON like tree structure), we may want to make the serializer abstraction flexible enough to support whatever the underlying messaging provider can or does offer. Obviously bytes will be common, but the problem with bytes is that some messaging providers support string, and a string can't be represented as bytes along, it can only be represented as bytes + charset, so it would be better to offer direct deserialization from/serialization to strings and allow the messaging provider to handle encoding to bytes however it wants.

James, IMHO there is a clear distinction between type serialization and type conversion. While they may look alike, semantically they are radically different. (De)Serialization implies reading from or writing to some type of storage or transport format which can only be byte[]. Even the systems you are referring to that deal with Strings simply means they have some internal mechanism to deal with byte[]. But they are also responsible to infer the charset.
On the other hand type conversion simply means transform payload of a message from whatever it currently is to whatever type required by a handler operation (i.e., from Foo to Bar). Sure, the same converters can deal with converting to/from wire format, but that is implementation detail. All I want to communicate is that I personally draw a clear distinction between SerDe and type conversion.

Ok, so if we're talking about type conversion, would should we name the type converters? Are there examples of APIs that we can model the naming off?

Yes, just as an example,  in Spring we have MessageConverter abstraction. Yes we do use it for both cases (to/from byte[] as well as other types), but that is the implementation detail.
Semantically when I hear serialization I hear storage and/or transport and personally I would love to see the distinction to be more clear.
public interface MessageSerializer {

	byte[] fromMessage(Message<?> message);

	<T> Message<T> toMessage(byte[] rawData);
}

You can also see similar approach in Kafka with the exception that they've separated Serializer and Deserializer

Thanks for the links. I like the shape of the MessageConverter API, I was thinking something with the same method signatures.
Do you have any thoughts on separating the two directions? My thought on this is if you are only consuming a message of a certain type, and not producing it, then there's no need to write the conversion for both directions (of course, for the most part it'll be handled automatically, in the MicroProfile case by JSON-B by default, but even for other formats, eg protobuf, it can be defined generically and so doesn't need users to implement their own converters, rather they can just reference out of the box or converters provided by third party libraries). If we were to separating them, then the name Converter probably won't work, since it doesn't imply a direction and doesn't have an opposite. In that case, perhaps marshall/unmarshall? This is consistent with JAXB terminology. bind/unbind could also be used, but that usually implies some existing object/tree structure like JSON that you're binding your objects to/from, which in some cases might be the case, but in most cases, there's going to be a parse/format stage before binding/unbinding is done.
On the difference between type conversion and serialization, in your example code above, it looks like message headers etc are included in the output bytes/parsed from the input bytes, is that right? Because if that's the case then Kafka's serializers are actually type converters that just happen to always work with byte[], because they don't expect you to parse/format the headers onto the wire.
Last thing, any opinion on byte[] vs ByteBuffer? The latter has optimizations over byte[] and offers a small amount of extra safety in that it can be read only.

"doesn't need users to implement their own converters. . ." - that is pretty much the thinking. Also with Java 8  default it would be easy to NOT force user to implement what doesn't have to be implemented.
With regard to separating serializer vs type-converters . . . let's just say that Serializers are specialized type-converters that always deal with to/from byte[] type, so there may be some API simplifications.
And yes Kafka would be a good analogy of type-converters that always deal with to/from byte[]. Yes Kafka now provides native support for headers. In previous versions of Kafka we've implemented our own way of embedding headers, which users/systems can choose to implement. But the idea is that headers should be simple key/values or primitive types, thus easily embeddable and extracted into a Message by the serializers.
With regard to byte[] vs ByteBuffer I am ok with ByteBuffer primarily for 'read only' reasons.

Migrated to https://github.com/eclipse/microprofile-reactive-messaging/issues/6.


feat: port Analysis.Complex.UpperHalfPlane.Manifold

Also define UpperHalfPlane.coe so that type synonym doesn't leak through API.

bors merge


depth sensing issues

issues:AttributeError: type object 'pyzed.sl.Translation' has no attribute 'dot_translation'

Hi,
This sample use the latest 3.3.1 release of the Python wrapper.
wrapper: https://github.com/stereolabs/zed-python-api
ZED SDK: https://www.stereolabs.com/developers/release/

I'm confused about the previous reply.
I just downloaded the latest release (3.3.1) and am having the same problem:
(after running ZED_SDK_Ubuntu18_full_cuda10.2_v3.3.1.run)
(base) adam@dual-18:/usr/local/zed$ python get_python_api.py
CUDA 10.2
Platform ubuntu18
ZED 3.3
Python 3.8
Downloading python package from https://download.stereolabs.com/zedsdk/3.3/ubuntu18/cu102/py38 ...

-> Please make sure numpy is installed
 python3 -m pip install cython
 python3 -m pip install numpy
File saved into pyzed-3.3-cp38-cp38-linux_x86_64.whl
To install it run :
 python3 -m pip install pyzed-3.3-cp38-cp38-linux_x86_64.whl
(base) adam@dual-18:/usr/local/zed$ python3 -m pip install pyzed-3.3-cp38-cp38-linux_x86_64.whl
Processing ./pyzed-3.3-cp38-cp38-linux_x86_64.whl
Installing collected packages: pyzed
Successfully installed pyzed-3.3
(base) adam@dual-18:/usr/local/zed$ cd samples/depth\ sensing/
(base) adam@dual-18:/usr/local/zed/samples/depth sensing$ cd python/
(base) adam@dual-18:/usr/local/zed/samples/depth sensing/python$ python depth_sensing.py
Running Depth Sensing sample ... Press 'Esc' to quit
CAMERA STREAM FAILED TO START
...

[ I had to unplug the camera from the front USB 3.0 port to the rear USB 3.0 port--odd ]

...
(base) adam@dual-18:/usr/local/zed/samples/depth sensing/python$ python depth_sensing.py
Running Depth Sensing sample ... Press 'Esc' to quit
[ZED][Init] No calibration file found for SN24925386. Downloading...
[ZED][Init] Calibration file downloaded.
Traceback (most recent call last):
  File "depth_sensing.py", line 49, in <module>
    viewer = gl.GLViewer()
  File "/usr/local/zed/samples/depth sensing/python/ogl_viewer/viewer.py", line 218, in __init__
    self.camera = CameraGL()
  File "/usr/local/zed/samples/depth sensing/python/ogl_viewer/viewer.py", line 459, in __init__
    self.setDirection(tmp, tmp2)
  File "/usr/local/zed/samples/depth sensing/python/ogl_viewer/viewer.py", line 513, in setDirection
    if(sl.Translation.dot_translation(self.vertical_, self.up_) < 0.):
AttributeError: type object 'pyzed.sl.Translation' has no attribute 'dot_translation'

I have the same issue. The C++ api seems to define a function called dot, but it looks like the python API has no such function (or any function called dot_translation.

specifically, I had to implement:
  37   │ def dot_translation(t1, t2):
  38   │     return np.dot(t1.get(), t2.get())
  39   │

Worth noting that while this made the example no longer crash, the example does not display anything but text (no opengl window is opened).

On that note, the C++ version doesn't work either. It just fires up a blank Qt screen with a frustum/FOV widget:

It is connecting to the camera, as the blue LED lights up next to the ZED logo when I fire up ZED_Depth_Sensing
Running Ubuntu 18.04, CUDA 10.2

Hi,
There was indeed an issue while trying to install the latest 3.3.1 release of the Python API.
It has been fixed and you can now download it properly from our website (https://www.stereolabs.com/developers/release/, SDK Downloads section). This should resolve the error on the missing dot_translation function.
@mklingen-bd Is PyOpenGL installed on your PC ?
@madasebrof Could you try running other samples from our repository using OpenGL to see if the same thing happens ?

@qt-truong Looks like the SDK ZED_SDK_Ubuntu18_full_cuda11.1_v3.3.1.run hasn't changed from yesterday... (Same checksum)
Looks like the fix was made pyzed pyzed-3.3-cp38-cp38-linux_x86_64.whl, even though the build numbers didn't change.
I had to run:
python /usr/local/zed/get_python_api.py
python3 -m pip install --ignore-installed pyzed-3.3-cp38-cp38-linux_x86_64.whl

to overwrite the old pyzed wheel.
Now the python depth sample is working well :) The C++ still doesn't work for depth (just shows an empty frame with a FOV widget).
ps, I had to make a slight modification to get_python_api.py, as it wasn't getting the CUDA version number properly. (Note: in CUDA 11.1, the file "/usr/local/cuda/version.txt" is no longer created.)
except FileNotFoundError:
        # Version.txt doesn't exist, check the var itself
        # temp = re.findall(r'\d+', cuda_path_version)
        # CUDA_MAJOR = int(temp[0])
        # CUDA_MINOR = int(temp[1])
        CUDA_MAJOR = "11"
        CUDA_MINOR = "1"
        print("CUDA " + str(CUDA_MAJOR) + "." + str(CUDA_MINOR))
        CUDA_STR = "cu" + str(CUDA_MAJOR) + str(CUDA_MINOR)

A better way to find the CUDA version on Linux is maybe running nvcc --version?
$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2020 NVIDIA Corporation
Built on Mon_Oct_12_20:09:46_PDT_2020
Cuda compilation tools, release 11.1, V11.1.105
Build cuda_11.1.TC455_06.29190527_0

Also, other samples ran fine, both python and C++ (e.g. Object Detection -> Birds Eye View)

@madasebrof Thank you, we'll make the appropriate changes in the setup scripts.
At the moment we don't have an explanation for the depth-sensing sample issue, we'll look into it. Is Depth Viewer (the tool) working correctly? It's very similar to this sample

I am getting the same issue on the Jetson Xavier AGX device.
On running the sample program it throws this error:
ZED/zed-examples-master/positional-tracking/python/positional_tracking.py
Traceback (most recent call last):
File "/home/shishir/ZED/zed-examples-master/positional-tracking/python/positional_tracking.py", line 50, in
viewer = gl.GLViewer()
File "/home/shishir/ZED/zed-examples-master/positional-tracking/python/ogl_viewer/tracking_viewer.py", line 162, in init
self.camera = CameraGL()
File "/home/shishir/ZED/zed-examples-master/positional-tracking/python/ogl_viewer/tracking_viewer.py", line 476, in init
self.setDirection(tmp, tmp2)
File "/home/shishir/ZED/zed-examples-master/positional-tracking/python/ogl_viewer/tracking_viewer.py", line 528, in setDirection
if(sl.Translation.dot_translation(self.vertical_, self.up_) < 0.):
AttributeError: type object 'pyzed.sl.Translation' has no attribute 'dot_translation'
Jetpack version is 4.4 and the sdk version is 3.3.3.
How to solve the error?

I am getting the same issue on the Jetson Xavier AGX device.
On running the sample program it throws this error:
ZED/zed-examples-master/positional-tracking/python/positional_tracking.py
Traceback (most recent call last):
File "/home/shishir/ZED/zed-examples-master/positional-tracking/python/positional_tracking.py", line 50, in
viewer = gl.GLViewer()
File "/home/shishir/ZED/zed-examples-master/positional-tracking/python/ogl_viewer/tracking_viewer.py", line 162, in init
self.camera = CameraGL()
File "/home/shishir/ZED/zed-examples-master/positional-tracking/python/ogl_viewer/tracking_viewer.py", line 476, in init
self.setDirection(tmp, tmp2)
File "/home/shishir/ZED/zed-examples-master/positional-tracking/python/ogl_viewer/tracking_viewer.py", line 528, in setDirection
if(sl.Translation.dot_translation(self.vertical_, self.up_) < 0.):
AttributeError: type object 'pyzed.sl.Translation' has no attribute 'dot_translation'
Jetpack version is 4.4 and the sdk version is 3.3.3.
How to solve the error?


[add-resource] New Plugin: Responsive Images

I would like to add my new plugin/theme to the Grav Repository. Here are the project details: https://github.com/OliverO2/grav-plugin-responsive-images
Some remarks:

The plugin was successfully tested with Grav v1.2.4.
Grav's latest development version (commit 82f2232) seems to break something, it looks like onOutputGenerated() does not get called.
If at some point you would like to integrate the plugin's (simple) functionality into Grav, it would be most welcome, especially with regard to

automatically picking up images pre-rendered at different sizes and generating a srcset attribute for those,
a more readable way to specify a sizes attribute for responsive images,
working around the Microsoft Edge srcset bug.

Added to GPM. Cheers.

Thanks!


About Pinot's develop plans and timelines

Hi, I would like to know about the feature plans and ETA/timelines of Pinot.
We need to upgrade our realtime analyzing system and have done a lot of investigations on deferent kinds of system. Pinot is great and looks pretty suitable for us. But currently it do lack some query features we really need. They are:

Calculation on dimensions and aggregated metrics. e.g. select (dimA / 100) as dimB, (sum(metricA) + sum(metricB)) as metricC from table group by dimB order by metricC.
Not only the topN, but the real & completed order by support. e.g. select dimA, sum(metricA), sum(metricB) from table group by dimA order by sum(metricA) desc, sum(metricB) asc offset 10, 20
Having clause.

Hey there @flowbehappy,
All of it is on our roadmap, but I don't have a good ETA for this. It's very unlikely that all of these would be supported by the end of December, though. Are there things that are higher priority among all of these features?

@jfim I'm very glad to hear that :smile:
The first two are very urgent for us so they get the higher priority. Having clause is better to have.

Besides, when should I expect the next stable release, and the new features it will contains?

Hi Flowyi,
The first two should be available by end of this year. Having clause is
something we are not sure if/when we would add.
thanks
Kishore
On Tue, Oct 27, 2015 at 7:48 PM, Flowyi<EMAIL_ADDRESS>wrote:

Besides, when should I expect the next stable release, and the new
features it will contains?
—
Reply to this email directly or view it on GitHub
https://github.com/linkedin/pinot/issues/58#issuecomment-151705985.


cannot send attachment

Hello
nothing in the docs for attachments, but the field exist in the email record
cannot find a way to specify attachment file
thanks

@blset I realise you are probably not expecting an answer after so long but I still give one.
The attachments field was added to support them in the future but that feature hasn't been implemented yet.


Deprecate HTTPretty in Tests in Favor of Response

HTTPretty is preventing us from upgrading Request which blocks #32 and #47. We're going to rewrite our tests use the Response package instead.

Ok I was able to get a working version of this going pretty easily:
https://github.com/TerbiumLabs/python-matchlightsdk/pull/75/files
There's a lot to be changed but it should be pretty repetitive:
grep -Iirnc 'httpretty.register_uri' tests/
tests//test_utils.py:0
tests//conftest.py:0
tests//test_record.py:2
tests//test_feed.py:13
tests//test_connection.py:0
tests//test_alert.py:15
tests//fixtures/pii_records_raw.json:0
tests//test_project.py:9


Provide a way to adjust positions of icons

It's really valuable when icons are visually not centered. For more information you can read: https://medium.com/@lukejones/optical-adjustment-b55492a1165c
The proposed implementation should be relatively simple:

Add var imageInsets = UIEdgeInsets() and var highlightedImageInsets = UIEdgeInsets() in SwipeAciton.swift
https://github.com/SwipeCellKit/SwipeCellKit/blob/6544ff983800051c3b0a4a8638cd62f60bdc5063/Source/SwipeAction.swift#L54-L62

Use imageInsets and highlightedImageInsets to adjust the rect of the image in SwipeActionButton.swift based on isHighlighted property of the button
https://github.com/SwipeCellKit/SwipeCellKit/blob/6544ff983800051c3b0a4a8638cd62f60bdc5063/Source/SwipeActionButton.swift#L84-L88

Override isHighlighted property of SwipeActionButton and force the button to call imageRect

I agree with the need, and there are 2 ways you can solve this:

Provide a image that is already inset that makes it visually centered
You can get access to the underlying action UIButton via the transitionDelegate

While both are not the cleanest of solution. I plan on exposing the UIButton for needs like yours and others.


Dcmaw 9802 error or value

DCMAW-XXXX
What changed

Why did it change

Checklists

[ ] There is a ticket raised for this PR that is present in the branch name
[ ] No PII data logged. See guidance here
[ ] Demo to a BA, TA, and the team.
[ ] Update README with any new instructions or tasks

I general I like the naming.
return error('foo');
Does this make it seem like we're returning an actual Error object? The thought has likely come from the fact it used to be called errorResponse.
Not against this at all, just wanted thoughts.

In general I like the naming.
return error('foo');
Does this make it seem like we're returning an actual Error object? The thought has likely come from the fact it used to be called errorResponse.
Not against this at all, just wanted thoughts.

yep I'm thinking about errorResult()


show pretty react raise on start up

What Does This PR Do?
Show a rendered figlet of 'react-raise'
Description Of Task To Be Completed
Use figlet and chalk to show a pretty 'React Raise'
Any Background Context You Want To Provide?
N/A
How can this be manually tested?
N/A
Screenshot(s)

What are the relevant github issues?
#17

Coverage increased (+0.2%) to 99.174% when pulling dc1940a2985ac5c7a324c917a8687c7040718f74 on ft-clui-react-raise-17 into daab417373c258511f7aa4561377d80534b80df4 on develop.


Add option to show src code for uncovered statements

User should be able to view statements uncovered by tests to aid in increasing code coverage. This should be configured via a flag or arg.

Fixed


Zombie in GPUImageVideoCamera.m file

I have found zombie in the GPUImageVideoCamera.m on line 52.
You have allocated AVCaptureDeviceInput object and have sent autorelease method to the object. But in the dealloc method you are releasing this object later.
I have tried to repair it removing autorelease call. In the simulator and instruments it seems fine but on the device it is still crashing when trying to release  GPUImageVideoCamera object.

Thanks for catching the bad copy and paste there. I removed the autorelease. The crash you were still seeing may have been due to dangling targets, so I now clear those out on deallocation of the camera. Seems to deallocate cleanly now on my devices here, so I'll close this issue for now.


Arrow function when using legacy bundles

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Current behavior 😯
https://mui.com/material-ui/guides/minimizing-bundle-size/#legacy-bundle
it seems that some legacy modules reference the mordern @mui/utils.
As a result, the arrow functions are included in the bundle file.
Expected behavior 🤔
{
  resolve: {
    alias: {
      '@mui/base': '@mui/base/legacy',
      '@mui/lab': '@mui/lab/legacy',
      '@mui/material': '@mui/material/legacy',
      '@mui/styled-engine': '@mui/styled-engine/legacy',
      '@mui/system': '@mui/system/legacy',
+     '@mui/utils': '@mui/utils/legacy',
    }
  }
}

Steps to reproduce 🕹
No response
Context 🔦
No response
Your environment 🌎
No response

Thanks, would you like to create a PR?


Loop through specs to build dependency graph

Once the list of specs is available (#5), create a tool that loops through these specs and apply the right references extractor (#1, #2, #6) to create the graph of dependencies in some JSON structure.

one thing to watch out: at least for the HTML spec (but maybe others?), we need to apply the extractors on the "single page" version.

Or apply the extractors to the right page. For instance, The IDL appears twice in HTML5: in the main body of the spec and as an appendix. That appendix is also a separate page.
For references, same thing for CSS2.1, SMIL, although I'm not sure there are many APIs that are multi-page documents on top of HTML5.

Closing this issue as the crawler has been in place for a few commits now.


Patch Method - NI Advanced HTTP Client support - Assert IsFile fix

[Feature #24] Rebuilt against NI Advanced HTTP Client
[Fix #25] Assert_isFile fixed
[Feature #27] Updated the client to use NI Advanced HTTP Client and added the PATCH method
jki_lib_rest_client-<IP_ADDRESS>.vip.zip
I made the NI Advanced HTTP Client an internal dependency. A rebuild is needed to depend on the community-available package instead.

@francois-normandin I think your pull request is broken. When I install your zip file it is linking against the adv http client that points to the following dll:
C:\Program Files (x86)\National Instruments\LabVIEW 2020\vi.lib\NI\Advanced HTTP Client\lvwebclient_32.dll
even though I had installed version <IP_ADDRESS> to 64 bit labview. Oh wow... and for whatever reasons the rest api vis are located at: C:\Program Files\National Instruments\LabVIEW 2020\vi.lib\addons_JKI.lib_REST Client_internal_deps\
So stuff is majorly broken.

@ChrisCilinoGC the location in the internal dependencies is expected because I deleted the dependency on the external package (easier to install offline when not dependent on external packages... Although with two DLLs as part of the package, it seems to break!).
I had not tested it on a 64-bit LabVIEW installation and judging from what you're describing, I'll have to rebuild using external dependencies, otherwise VIPM will build only with the dll being used during the build process, which was lv32-bit when I did it. Pretty sure this is the only change required to resolve it.
Good catch.

@ChrisCilinoGC Can you try this one?
jki_lib_rest_client-<IP_ADDRESS>.zip

Ship it! Thank you @francois-normandin !!!


support Lemmy

Background:

https://join-lemmy.org/
https://join-lemmy.org/docs/en/administration/federation_getting_started.html
https://socialhub.activitypub.rocks/t/help-improving-federation-between-lemmy-and-other-projects/2308

I tried federating this like to this post on lemmy.ml (running BE 0.16.7) just now, and the AP inbox delivery to https://lemmy.ml/u/OptimusPrime/inbox returned 400 with invalid type: map, expected a string representing an URL at line 1 column 218. Bridgy Fed log here. Full AS2 object below.
Lemmy's design looks like Reddit, with up/downvotes instead of likes, so I don't know that it actually supports likes, but the error message sounds unrelated to that, more like maybe it can only handle string URLs for actors instead of compound objects.
{
  "published": "2023-01-17T13:03:52-08:00",
  "content": "likes [lemmy.ml](http://lemmy.ml/)",
  "url": "https://fed.brid.gy/r/https://snarfed.org/2023-01-17_lemmy-ml",
  "actor": {
    "url": "https://fed.brid.gy/r/https://snarfed.org/",
    "image": {
      "url": "https://secure.gravatar.com/avatar/947b5f3f323da0ef785b6f02d9c265d6?s=96&d=blank&r=g",
      "type": "Image"
    },
    "type": "Person",
    "name": "Ryan Barrett",
    "icon": {
      "url": "https://secure.gravatar.com/avatar/947b5f3f323da0ef785b6f02d9c265d6?s=96&d=blank&r=g",
      "type": "Image"
    },
    "id": "https://fed.brid.gy/snarfed.org",
    "preferredUsername": "[snarfed.org](http://snarfed.org/)"
  },
  "@context": "https://www.w3.org/ns/activitystreams",
  "type": "Like",
  "object": "https://lemmy.ml/post/713841",
  "id": "https://fed.brid.gy/r/https://snarfed.org/2023-01-17_lemmy-ml",
  "cc": [
    "https://lemmy.ml/u/OptimusPrime",
    "https://lemmy.ml/c/privacy",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ]
}

From https://socialhub.activitypub.rocks/t/help-improving-federation-between-lemmy-and-other-projects/2308/22 :

You are right this isnt complicated, in fact we are already doing the same thing in some other places. Unfortunately I dont have time to work on this, but if you want to make a contribution I would gladly guide you through the code.

Progress is a new error message. After #442, we're now getting HTTP 400 data did not match any variant of untagged enum PersonOrGroup on this Like:
{
  "published": "2023-10-11T21:12:28-07:00",
  "content": "Likes https://lemmy.world/post/6663494;..\n
\nA meme for math people – Lemmy.world\n
",
  "url": "https://fed.brid.gy/r/https://snarfed.org/2023-10-11_a-meme-for-math-people-lemmy-world",
  "actor": "https://fed.brid.gy/snarfed.org",
  "id": "https://fed.brid.gy/r/https://snarfed.org/2023-10-11_a-meme-for-math-people-lemmy-world",
  "@context": "https://www.w3.org/ns/activitystreams",
  "type": "Like",
  "object": "https://lemmy.world/post/6663494",
  "cc": [
    "https://lemmy.ml/c/memes",
    "https://lemmy.world/u/hypertown",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ]
}

And for this reply, 400 Client Error: Bad Request for url: https://lemmy.world/u/hypertown/inbox ; deserializing body: ...
{
  "id": "https://fed.brid.gy/r/https://snarfed.org/2023-10-11_a-meme-for-math-people-lemmy-world-3#bridgy-fed-create",
  "actor": "https://fed.brid.gy/snarfed.org",
  "published": "2023-10-12T04:17:52.463875+00:00",
  "@context": "https://www.w3.org/ns/activitystreams",
  "type": "Create",
  "object": {
    "published": "2023-10-11T21:17:47-07:00",
    "content": "\n
\nnice\n
",
    "url": "https://fed.brid.gy/r/https://snarfed.org/2023-10-11_a-meme-for-math-people-lemmy-world-3",
    "id": "https://fed.brid.gy/r/https://snarfed.org/2023-10-11_a-meme-for-math-people-lemmy-world-3",
    "type": "Note",
    "attributedTo": "https://fed.brid.gy/snarfed.org",
    "inReplyTo": "https://lemmy.world/post/6663494",
    "cc": [
      "https://lemmy.ml/c/memes",
      "https://lemmy.world/u/hypertown",
      "https://www.w3.org/ns/activitystreams#Public"
    ],
    "tag": [
      {
        "type": "Mention",
        "href": "https://lemmy.world/u/hypertown"
      }
    ],
    "to": [
      "https://www.w3.org/ns/activitystreams#Public"
    ]
  },
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ]
}

Progress is a new error message. After #442, we're now getting HTTP 400 data did not match any variant of untagged enum PersonOrGroup on this Like:

This also happens on follows.

More on this error:

https://socialhub.activitypub.rocks/t/we-have-created-documentation-on-how-exactly-lemmy-federation-works/1085/46?u=snarfed
https://github.com/LemmyNet/Lemmy/issues/2756

Is there any progress on this at all? The recent lemmy update made some heavy changes and improved the API significantly.

Exciting! Last I checked, we were blocked on Lemmy errors, details above. Feel free to test again and see if anything has changed!

Lemmy maintainer here, just came across this. I threw this activity into Lemmy tests, and it fails because the Create activity is missing cc field. You need to copy that from the inner Note.
By the way, Lemmy users view Bridgy Fed generally positively, as they consider all posts to be public anyway. So theres no need for complicated opt-in solutions in case of Lemmy. Here you can see the discussion.

@snarfed This sound's actionable (or possibly even solved? I think something similar came up regarding another software), so I'm removing the blocked label since we should at least re-test if the same snag is being hit.

Yes! We now duplicate to and cc between object and activity, so this might now work. Worth re-testing!


bubble sort .cpp

@zahinekbal  mam please review !!

Please add your image in image folder nd update readme.md file it is all for contributors
do this .....
Check this
#90 (comment)


[Task]: Responsive PAGINATION_CONTROL

Is there an existing issue for this?

[X] I have searched the existing issues

SubTasks
No response
Design
https://zpl.io/RMjYwZE

Working fine on the DP url, tested it on different browsers.


Patch 1

Finished week 3 in one night! Ed you are amazing!

!!! No YOU are amazing for contributing this! Thank you so much!


Size limit for uplading allowed files to favicon

Currenty we don't have any size limit for uploading files to favicon and it looks like that file is uploading onto server and only then we receive a message that the file is not supported.
Potentially such abuse could overload the server, so i propose to create a limit (up to 3MB) on the frontend, which will be checking the file's size before uploading it into the sever.

Answer: TBD


Different evaluation results

你好，问您一下，为什么在评测分支下，用您这边提供的DISC-lawLLM测评 评测集的结果与仓库底下评测的结果略有差距呢？
是跟解码方式有关么，另外，咱们的外挂知识库，代码里有用到么。谢谢

The eval branch is not finalized yet, and our evaluation does not include the retrieval module.

The eval branch is not finalized yet, and our evaluation does not include the retrieval module.

Thank you for your reply, and I'd like to ask you when our final review branch will be available

I'm sorry but this is not something I can decide. Perhaps @yueshengbin would be able to give an approximate release date.

I'm sorry but this is not something I can decide. Perhaps @yueshengbin would be able to give an approximate release date.

谢谢您的回复。如果您@yueshengbin 这边后续有完善评价分支的话，可以回复告诉我一下么。谢谢您

还有个问题，想问一下。咱们在评测的过程中，generate的decode配置参数是什么，可以提供么。是用的贪心策略么还是其他的。@yueshengbin @Charlie-XIAO


alexa-home-conf:c05e67ac.2ebed8] Error: connect ECONNREFUSED <IP_ADDRESS>:8883

Tried to use your service, but when I configure the node, it constantly disconnects.
node-red log shows:
alexa-home-conf:c05e67ac.2ebed8] Error: connect ECONNREFUSED <IP_ADDRESS>:8883

The usual reason for it connecting then disconnecting repeatedly is that you have multiple config nodes. You should only have one shared between each device.
The other option is that you have more than one Node-RED instance trying to use the same username/password.
You can ignore the error

Thanks for the fast response!
Neither is the case, nor does it work.
Though I have migrated my node-red from one machine to another. Not sure if that causes the old machine to still be registered?

Never mind, solved by creating a new account and recreating the devices.

That is not the right approach.
You said you had moved the setup from one machine to another, did you stop the Node-RED instance on the old machine? If not did you make sure you removed the config node from flow the old version as well as the actual device nodes?
Also what is the old username?
I'm on holiday at the moment but I'll and find time to look at the logsf.

Yeah - the old instance has been shut down.
i searched the new instance and it only shows a single config node.
Can I send you a PM with my old username and you just delete it?
Or is there a link on your page to get rid of the old one?

Just post the username here

"till"

I have looked at the logs and you definitely had 2 instance connected using the username "till" (and still have one connected along side the new "till-shuttle1" user.)
So there is either more than one config node or more than one Node-RED instance running

thanks for the feedback. Let me check that.
On Mon, Jun 3, 2019 at 5:28 PM Ben Hardill<EMAIL_ADDRESS>wrote:

I have looked at the logs and you definitely had 2 instance connected
using the username "till" (and still have one connected along side the new
"till-shuttle1" user.)
So there is either more than one config node or more than one Node-RED
instance running
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/hardillb/node-red-contrib-alexa-home-skill/issues/63?email_source=notifications&email_token=ACWLIKM7H67YS3BHXLSTFXTPYU2CBA5CNFSM4HSDMSC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWZYUHI#issuecomment-498305565,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACWLIKLCYHLAMFPDVK4XW5DPYU2CBANCNFSM4HSDMSCQ
.

You have proven right. I indeed had a node-red instance with a left-over config node.
thanks for your support!

17.09.2019, 00:28:08node: e6ce427b.3ff61
msg : error
"Error: connect ECONNREFUSED <IP_ADDRESS>:8883"
username: chadua1
Help whenever possible. thank you

@chadua This issue has been closed since June and you obviously haven't read it before posting.
If you are only seeing this in the debug sidebar once you should ignore it. If you are seeing it multiple times at regular intervals (not just when you deploy) then you need to make sure you only have just 1 config node that all the device nodes should point to it.

@chadua I obviously wasn't clear earlier. Do not post to closed issues


add aria-checked for clrInput checkbox

Summary
Add aria-checked for checkbox's.
Use case
Provide some specific details about how this change would improve your application and use case.
Examples
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/checkbox_role

Hi @KANekT, the need for aria-checked is only necessary on elements that aren't default HTML elements. Aria doesn't need to be put onto standard elements so long as they are used as expected, and since a checkbox already has the checkbox role, it comes for free.
I'm going to close this as not an issue, unless you have more context or details to share about the request here.

@gnomeontherun how can the reader know that the checkbox is selected if not add aria-checked?


update dev tunnel instruction

@anujb-msft
IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@anujb-msft , can u help me review this short pr?

#sign-off

@anujb-msft
Can you review this old PR and determine whether it needs to be closed or merged?

PR review team emailed the author today

@jutik0
Can you review the proposed changes?
Important: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@jutik0
Can you review this old PR and determine whether it needs to be closed or merged?

Sent email to @anujb-msft today.

I sent an email to @jutik0 today.

@williamzhao87 - I see that you have recently modified this file. Can you review this PR and sign off if you approve?

I sent email to @williamzhao87 today.
@MicrosoftDocs/public-repo-pr-review-team

@yyw-msft
It looks like you have access to the private repo azure-docs-pr where you can sign off on your own PRs. If this content change is still needed, can you close this PR and open a new one in the private repo?
Thanks
@MicrosoftDocs/public-repo-pr-review-team


3D Tiles Next Metadata Compatibility Matrix

There are several different metadata capabilities in 3D Tiles Next and several possible methods
of accessing the metadata (mainly custom shaders, picking, and styling). It's admittedly confusing what is supported where, so we thought it would be helpful to make a table.
Key:
:green_circle: - currently implemented (sometimes with limitations)
:red_circle: - not yet implemented.

Custom Shader
Picking
Styling

3D Tiles 1.1 / 3DTILES_metadata(legacy extension)

Tileset Metadata
:red_circle:
:green_circle:1
:green_circle:1

Group Metadata
:red_circle:
:green_circle:1
:green_circle:1

Tile Metadata
:red_circle:
:green_circle:1
:green_circle:1

Content Metadata
:red_circle:
:green_circle:1
:green_circle:1

EXT_mesh_features / EXT_instance_features

feature ID attributes
:green_circle:
:green_circle:2
:green_circle:2

feature ID textures
:green_circle:
:green_circle:2
:green_circle:2

default feature IDs
:green_circle:
:green_circle:2
:green_circle:2

Feature IDs without property table
:green_circle:
:red_circle:3
:red_circle:3

EXT_structural_metadata

property textures
:green_circle:4
:red_circle:5
:red_circle:5

property tables
:red_circle:
:green_circle:
:green_circle:

property attributes
:green_circle:
:red_circle:
:red_circle:

Footnotes:

These can be accessed through a picked object, see Cesium3DTileFeature.getPropertyInherited. This has some limitations, see https://github.com/CesiumGS/cesium/issues/10015
Only one set of feature IDs can be used at a time for picking/styling. This is selected with the featureIdLabel/instanceFeatureIdLabel properties of a tileset/model
Though the spec allows arbitrary feature ID values not tied to a feature table, this will require significant refactoring of CesiumJS' picking system, see https://github.com/CesiumGS/cesium/issues/9884
The implementation only supports UINT8 (both normalized and unnormalized) values, as these are the most common types to read from a texture. See https://github.com/CesiumGS/cesium/issues/10248
Picking/styling property textures will require significant refactoring of CesiumJS' picking system. See also https://github.com/CesiumGS/cesium/issues/9852

@ptrgags
What are the differences between A and B ?

I couldn't  get feature after picking.
Could you help me solve my problem?
How to get featureId in EXT_mesh_features
Thanks.

can you tell me where the featureId come form ,and whether it is possible to distinch each building
https://sandcastle.cesium.com/?src=3D Tiles Feature Picking.html&label=3D Tiles
i notice some building share the same featureId


DefaultHttpHeaders AsciiString.toLowerCase is warm

Looking at profiles, I found an anomaly where setting header values in the server is a bit warm due to calls to AsciiString.toLowerCase. The call was added in #426 to make the headers better interoperate between HTTP/1 and HTTP/2. But for cases where the headers are known to always be lowercase, it seems to add reasonable overhead (removing the call increased my standard gRPC empty benchmark ~2%). It's common for RPC servers to know whether their header names are guaranteed to be lowercase.
Wondering about

Add AbstractHttpHeaders with most of the logic in there
Add LowercaseHttpHeaders which assumes users only give it lowercase names

#1112 might also be related, I've always wanted an HttpHeaders implementation that wraps netty's Http2Headers.
Any thoughts on what might be a good way to tweak these?

I've always wanted an HttpHeaders implementation that wraps netty's Http2Headers.

This sounds like a way to go.


add proxy

Could you add proxy setting item ?

zookeeper 有proxy的设置？ 之前我没接触过

Hello,
What is needed is to configure proxy on the connection page.
We need that to connect to a zookeeper that is behind a proxy.
It's also possible that you use the windows proxy config,
or the http_proxy system variables.
Thanks


noise on the specific frequency band when do synthesis

Hi,
I have trained the model on a Mandarin dataset. Currently it achieved the coverage and get a linear alignment. But I found there are noises on the specific frequency band, such as 5.5khz, 2.75khz, 8.5khz. The following is the synthesis spectrogram. When listen the generated audio samples, the sound is not clean enough. Could anyone share your opinion about the problem? Why my spectrogram looks like that?
Thanks a lot!

Did you train waveglow on your Mandarin dataset?

Hi Rafael,
Thanks a lot for your reply. I trained the tacotron2 on my Mandarin dataset, and finetuning the waveglow  model on the same Mandarin dataset. During the synthesis procedure, the mel spectrograms of each step are the followings:
The inferenced melspec of tacotron2:

Then the audio was generated by my waveglow model. The following is the melspec of the generated audio. It seems that there are horizontal lines in this melspec. And the voice is not clean.

The audio parameters of tacotron2 and waveglow are same. The figures were ploted by the code of this project. The loss of waveglow is about -5.4 and the loss of tacotron2 is 0.26.
Could you please share your views on my problem? Is the herizontal lines in the final melspec is normal?  Should I continue to train the waveglow to get a better convergence? What should I do to improve the audio quality based on my dataset?
Thanks a lot!

The horizontal lines are waveglow's bias. They should go away as the likelihood improves.
A quick hack is to subtract the noise bias from the noisy audio on the frequency domain. Here's an notebook example, where noise.wav is a slice of audio with waveglow bias noise only and noisy_audio is some other audio generated with waveglow.
%matplotlib inline
import IPython.display as ipd
import matplotlib
import matplotlib.pylab as plt
import torch
from torch.autograd import Variable
import librosa
from layers import STFT

stft = STFT(filter_length=2048, hop_length=1024, win_length=2048)
noise, sr_noise = librosa.load("/home/scratch.adlr-gcf/rafaelvalle/noise.wav", sr=None)
audio, sr_audio = librosa.load("/home/scratch.adlr-gcf/rafaelvalle/noisy_audio.wav", sr=None)

noise_t = torch.autograd.Variable(torch.from_numpy(noise))[None, :]
audio_t = torch.autograd.Variable(torch.from_numpy(audio))[None, :]

noise_spec, noise_angles = stft.transform(noise_t)
audio_spec, audio_angles = stft.transform(audio_t)

scale = 2.5
sub_frames = noise_spec[:, :, 0][:, :, None] * scale
audio_spec_denoised = torch.clamp(audio_spec - sub_frames, 0.0)
audio_denoised = stft.inverse(audio_spec_denoised, audio_angles)

fig, axes = plt.subplots(4, 1, figsize=(16, 12))
axes[0].imshow(librosa.core.amplitude_to_db(noise_spec[0].data.cpu().numpy()), aspect='auto', interpolation='none', origin='bottom')
axes[1].imshow(librosa.core.amplitude_to_db(audio_spec[0].data.cpu().numpy()), aspect='auto', interpolation='none', origin='bottom')
axes[2].imshow(librosa.core.amplitude_to_db(audio_spec_denoised[0].data.cpu().numpy()), aspect='auto', interpolation='none', origin='bottom')
axes[3].imshow(librosa.core.amplitude_to_db(sub_frames[0].data.cpu().numpy()), aspect='auto', interpolation='none', origin='bottom')
plt.tight_layout()
ipd.Audio(audio, rate=sr_audio)
ipd.Audio(audio_denoised[0].data.cpu().numpy(), rate=sr_audio)

You can improve Tacotron2 validation loss by annealing the learning rate and training longer.

The method of subtraction the noise bias from my generated audio improves my audio quality.
I will try to improve Tacotron2 validation.
Thank you very much.

stft = STFT(filter_length=filter_length, hop_length=hop_length, win_length=win_length)
noise, sr_noise = librosa.load("noise.wav", sr=None)
audio, sr_audio = librosa.load("noisy_audio.wav", sr=None)
noise_spec, noise_angles = stft.transform(torch.autograd.Variable(torch.from_numpy(noise))[None, :])
audio_spec, audio_angles = stft.transform(torch.autograd.Variable(torch.from_numpy(audio))[None, :])
strength = 16
sub_frames = noise_spec[:, :, 0][:, :, None] * strength
audio_spec_denoised = torch.clamp(audio_spec - sub_frames, 0.0)
audio_denoised = stft.inverse(audio_spec_denoised, audio_angles)

@rafaelvalle Is there a better way to get rid of the horizontal lines during training rather than doing post processing like this?

Hi @hubeibei007
As mentioned below in your response, how did you generate the noise.wav file?

The method of subtraction the noise bias from my generated audio improves my audio quality.
I will try to improve Tacotron2 validation.
Thank you very much.

Hi @anupam456
I chose some non voice segments from the generated audio as the noise input.

The code to remove the model bias, aka line noise, has been added here:
https://github.com/NVIDIA/tacotron2/blob/master/inference.ipynb

The code to remove the model bias, aka line noise, has been added here:
https://github.com/NVIDIA/tacotron2/blob/master/inference.ipynb
It only requires the waveglow model: not need to save an audio file with the model bias/noise

I just tried but could not find the denoiser module.

Try updating the submodule:
git submodule update --remote --merge


Add validation schema

Closes #222

Good stuff, added a task to review this and will let you know.

Thanks @gruckionvit !
After this PR I've done some changes to the schema. The tip of master is the place to review.

@juanjoDiaz I still got the unrecognized property 'warmup' issue on version 4.9 with latest Serverless 2.14. Shouldn't that be on you master branch now?

Yes.
4.9 was before the fix was merged so it still doesn't have the schema.
Releases have been blocked by #224 and I've been pushing changes for v5.
In the upcoming days, I'll be moving the repo, resetting the CI/CD pipeline and publishing v5 which will include the schema definition.

Cheers for the heads up, this is still on my back log to catch up on. I will put it of until I see version 5.

Cheers for the heads up, this is still on my back log to catch up on. I will put it of until I see version 5.


Stop() doesn't clean up the current line

After upgrading to the latest version (from 1.13.0) flushing stopped working for me on Ubuntu.
Here is an example:
package main

import (
	"fmt"
	"time"

	"github.com/briandowns/spinner"
)

func main() {
	s := spinner.New(spinner.CharSets[9], 100*time.Millisecond)  // Build our new spinner
	s.Prefix = "prefixed: " // Prefix text before the spinner
	s.Suffix = "  :appended" // Append text after the spinner
	s.Start()                                                    // Start the spinner
	time.Sleep(4 * time.Second)                                  // Run for some time to simulate work
	s.Stop()
	fmt.Println("test")
}

Outputs in v1.16.0 and in v1.14.0 (doesn't erase the previous message):
prefixed: \  :appended test

Outputs in v1.15.0 (still incorrect, but moves the cursor to the beginning of the line):
testixed: \  :appended

Output in v1.13.0:
test

Can confirm!

same here

can use fmt.Printf("\r") befor stop().

Hi, I get the same issue, any updates?

Not to shill my own CLi spinner project, but my project was inspired by this one and I've been going through some of the issues here to see if mine has the same limitations. I wasn't able to reproduce this issue on mine, and wanted to see if anyone who was having this issue would be willing to give mine a go and raise an issue if you run into similar problems: https://github.com/theckman/yacspin


DOC: Clarify Authentication Parameters for auth=None in Neo4jGraph

URL
https://python.langchain.com/api_reference/community/graphs/langchain_community.graphs.neo4j_graph.Neo4jGraph.html#langchain_community.graphs.neo4j_graph.Neo4jGraph
Checklist

[X] I added a very descriptive title to this issue.
[X] I included a link to the documentation page I am referring to (if applicable).

Issue with current documentation:
When using the Neo4jGraph class with NEO4J_AUTH=none, the current implementation requires setting user="" and password="", which is not intuitive. At the very least, it is problematic that users cannot be aware of this specification without checking the source code.
Idea or request for content:
The expected behavior is either:
(1) user and password are not required and auth=None is automatically set when the default values user=None and password=None are used.
(2) The documentation clearly states that user="" and password="" are required when NEO4J_AUTH=none.

Hi can I work on this issue? I should be able to get a PR by early November.
Thanks

If it needs to be fixed, I would like to create a PR.


fix docker-cli-to-kubectl.md

The catalog of docker-cli-to-kubectl.md has three dot.
All fourth layer Topics are modified to second layer.

My CLA is granted.


[Bug]: Using Groq integration for structured output tries to calls tools

Bug Description
Trying to extract metadata from a resume using Groq api

RESUME_EXTRACTION_PROMPT = """
Extract structured information from the candidate's resume.
Focus on providing accurate, relevant details across key areas:
- Personal information
- Professional experience
- Skills
- Education

Be precise, using None or empty lists if information is not clearly present.

Resume of the candidate:
{text}

Provide the extracted information in a structured format that captures the key professional details.
"""

llm = Groq(model="llama-3.1-8b-instant") # llama-3.1-8b-instant

prompt_template = PromptTemplate(RESUME_EXTRACTION_PROMPT)

metadata = await llm.astructured_predict(
    RobustResumeMetadata,
    prompt_template,
    text=resume_text,
)

ERROR
BadRequestError                           Traceback (most recent call last)
Cell In[75], [line 27](vscode-notebook-cell:?execution_count=75&line=27)
     [21](vscode-notebook-cell:?execution_count=75&line=21) prompt_template = PromptTemplate(RESUME_EXTRACTION_PROMPT)
     [23](vscode-notebook-cell:?execution_count=75&line=23) # llm_kwargs = {
     [24](vscode-notebook-cell:?execution_count=75&line=24) #     "tool_choice": "auto",  # Instead of "required"
     [25](vscode-notebook-cell:?execution_count=75&line=25) #     # Other potential configurations
     [26](vscode-notebook-cell:?execution_count=75&line=26) # }
---> [27](vscode-notebook-cell:?execution_count=75&line=27) metadata = await llm.astructured_predict(
     [28](vscode-notebook-cell:?execution_count=75&line=28)     RobustResumeMetadata,
     [29](vscode-notebook-cell:?execution_count=75&line=29)     prompt_template,
     [30](vscode-notebook-cell:?execution_count=75&line=30)     text=resume_text,
     [31](vscode-notebook-cell:?execution_count=75&line=31)     # llm_kwargs={"tool_choice": 'none'}
     [32](vscode-notebook-cell:?execution_count=75&line=32) )
     [34](vscode-notebook-cell:?execution_count=75&line=34) # Confidence check
     [35](vscode-notebook-cell:?execution_count=75&line=35) if metadata.extract_confidence() > 0.5:
     [36](vscode-notebook-cell:?execution_count=75&line=36)     # Process the resume

File /home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/llama_index/core/instrumentation/dispatcher.py:357, in Dispatcher.span.<locals>.async_wrapper(func, instance, args, kwargs)
    [349](https://vscode-remote+vscode-002d01jayyptng4qtts2e0swcxqgxm-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/llama_index/core/instrumentation/dispatcher.py:349) self.span_enter(
    [350](https://vscode-remote+vscode-002d01jayyptng4qtts2e0swcxqgxm-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/llama_index/core/instrumentation/dispatcher.py:350)     id_=id_,
    [351](https://vscode-remote+vscode-002d01jayyptng4qtts2e0swcxqgxm-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/llama_index/core/instrumentation/dispatcher.py:351)     bound_args=bound_args,
   (...)
    [354](https://vscode-remote+vscode-002d01jayyptng4qtts2e0swcxqgxm-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/llama_index/core/instrumentation/dispatcher.py:354)     tags=tags,
    [355](https://vscode-remote+vscode-002d01jayyptng4qtts2e0swcxqgxm-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/llama_index/core/instrumentation/dispatcher.py:355) )
    [356](https://vscode-remote+vscode-002d01jayyptng4qtts2e0swcxqgxm-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/llama_index/core/instrumentation/dispatcher.py:356) try:
--> [357](https://vscode-remote+vscode-002d01jayyptng4qtts2e0swcxqgxm-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/llama_index/core/instrumentation/dispatcher.py:357)     result = await func(*args, **kwargs)
    [358](https://vscode-remote+vscode-002d01jayyptng4qtts2e0swcxqgxm-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/llama_index/core/instrumentation/dispatcher.py:358) except BaseException as e:
    [359](https://vscode-remote+vscode-002d01jayyptng4qtts2e0swcxqgxm-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/llama_index/core/instrumentation/dispatcher.py:359)     self.event(SpanDropEvent(span_id=id_, err_str=str(e)))

Cell In[71], [line 36](vscode-notebook-cell:?execution_count=71&line=36)
     [33](vscode-notebook-cell:?execution_count=71&line=33) llm_kwargs = llm_kwargs or {}
     [34](vscode-notebook-cell:?execution_count=71&line=34) # Skipping one base class (OpenAI) since that's what we're trying to fix
     [35](vscode-notebook-cell:?execution_count=71&line=35) # TODO consider monkey patching as it might be more "pythonic"
---> [36](vscode-notebook-cell:?execution_count=71&line=36) return await super().astructured_predict(*args, llm_kwargs=llm_kwargs, **kwargs)

File /home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/llama_index/core/instrumentation/dispatcher.py:357, in Dispatcher.span.<locals>.async_wrapper(func, instance, args, kwargs)
    [349](https://vscode-remote+vscode-002d01jayyptng4qtts2e0swcxqgxm-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/llama_index/core/instrumentation/dispatcher.py:349) self.span_enter(
    [350](https://vscode-remote+vscode-002d01jayyptng4qtts2e0swcxqgxm-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/llama_index/core/instrumentation/dispatcher.py:350)     id_=id_,
    [351](https://vscode-remote+vscode-002d01jayyptng4qtts2e0swcxqgxm-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/llama_index/core/instrumentation/dispatcher.py:351)     bound_args=bound_args,
   (...)
    [354](https://vscode-remote+vscode-002d01jayyptng4qtts2e0swcxqgxm-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/llama_index/core/instrumentation/dispatcher.py:354)     tags=tags,
    [355](https://vscode-remote+vscode-002d01jayyptng4qtts2e0swcxqgxm-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/llama_index/core/instrumentation/dispatcher.py:355) )
    [356](https://vscode-remote+vscode-002d01jayyptng4qtts2e0swcxqgxm-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/llama_index/core/instrumentation/dispatcher.py:356) try:
--> [357](https://vscode-remote+vscode-002d01jayyptng4qtts2e0swcxqgxm-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/llama_index/core/instrumentation/dispatcher.py:357)     result = await func(*args, **kwargs)
    [358](https://vscode-remote+vscode-002d01jayyptng4qtts2e0swcxqgxm-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/llama_index/core/instrumentation/dispatcher.py:358) except BaseException as e:
    [359](https://vscode-remote+vscode-002d01jayyptng4qtts2e0swcxqgxm-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/llama_index/core/instrumentation/dispatcher.py:359)     self.event(SpanDropEvent(span_id=id_, err_str=str(e)))

File /home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/llama_index/llms/openai/base.py:947, in OpenAI.astructured_predict(self, llm_kwargs, *args, **kwargs)
    [942](https://vscode-remote+vscode-002d01jayyptng4qtts2e0swcxqgxm-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/llama_index/llms/openai/base.py:942) llm_kwargs["tool_choice"] = (
    [943](https://vscode-remote+vscode-002d01jayyptng4qtts2e0swcxqgxm-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/llama_index/llms/openai/base.py:943)     "required" if "tool_choice" not in llm_kwargs else llm_kwargs["tool_choice"]
    [944](https://vscode-remote+vscode-002d01jayyptng4qtts2e0swcxqgxm-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/llama_index/llms/openai/base.py:944) )
    [945](https://vscode-remote+vscode-002d01jayyptng4qtts2e0swcxqgxm-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/llama_index/llms/openai/base.py:945) # by default structured prediction uses function calling to extract structured outputs
    [946](https://vscode-remote+vscode-002d01jayyptng4qtts2e0swcxqgxm-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/llama_index/llms/openai/base.py:946) # here we force tool_choice to be required
--> [947](https://vscode-remote+vscode-002d01jayyptng4qtts2e0swcxqgxm-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/llama_index/llms/openai/base.py:947) return await super().astructured_predict(*args, llm_kwargs=llm_kwargs, **kwargs)
...
   (...)
   [1641](https://vscode-remote+vscode-002d01jayyptng4qtts2e0swcxqgxm-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/openai/_base_client.py:1641)     retries_taken=retries_taken,
   [1642](https://vscode-remote+vscode-002d01jayyptng4qtts2e0swcxqgxm-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/openai/_base_client.py:1642) )

BadRequestError: Error code: 400 - {'error': {'message': "Failed to call a function. Please adjust your prompt. See 'failed_generation' for more details.", 'type': 'invalid_request_error', 'code': 'tool_use_failed', 'failed_generation': 'RobustResumeMetadata>{"full_name": "EQUIPMENT ENGINEERING TECHNICIAN", "professional_experience": [{"title": "Equipment Engineering Technician", "company": "Company Name", "location": "City, State", "dates": "05/2014 - Current", "responsibilities": ["designing/selecting robotic systems", "run simulation", "implementation", "commission and programming", "troubleshooting difficult breakdowns and chronic equipment failures", "installation of factory automation and electrical control systems", "effective direction, coaching, and OJT to fellow employees", "plan and organize between shift and weekend work", "assist the Supervisor in developing PMs and procedures", "provide shift- to-shift communication", "set an example, and ensure that all associates comply with safety regulations"]}, {"title": "Mechanical Technician", "company": "Company Name", "location": "City, State", "dates": "04/2013 - 05/2014", "responsibilities": ["implement repair services on all production equipment", "provide reliable, high quality customer support", "ensure conveyor belts working effectively"]}, {"title": "Operating Engineer / Test Technician", "company": "Company Name", "location": "City, State", "dates": "11/2007 - 06/2012", "responsibilities": ["operates, repair and maintain Facility/Plant Machinery", "constructs, modifies, maintains and services wind and propulsion tunnel research facilities", "installs and aligns mechanical hydraulic and pneumatic test equipment", "inspects test setup and operates equipment to detect and correct malfunctions", "maintains instrumentation equipment and accessories", "confers with engineering and other personnel during testing", "inspect, test, and install fire sprinkler systems", "perform inspections, test and repair/replace fire hoses and fire hydrants"]}, {"title": "Logistics Coordinator / Sr. Lab technician", "company": "Company Name", "location": "City, State", "dates": "10/2006 - 11/2007", "responsibilities": ["coordinates all incoming and outgoing shipments of solar arrays", "interfaces with Metrology personnel to ensure calibrated equipment needs are prioritized", "supports work in progress, troubleshoots manufacturing problems caused by test equipment", "coordinates proof loading and non-destructive testing of lifting fixtures and handling equipment", "maintains inventory of industrial supplies", "disposes of hazardous materials and coordinates area compliance"]}, {"title": "Production Control Analyst", "company": "Company Name", "location": "City, State", "dates": "11/2004 - 05/2006", "responsibilities": ["expedites materials through production processes", "coordinates actions with other departments", "verifies kit hardware completeness and configuration", "requests drawings and materials to be issued from stores", "resolves aging work orders, generates Non-conforming Material Reports (NCMR\'s)", "interfaces with process engineers, manufacturing operators and supervisors", "resolves complex constraints for any WIP that may cause schedule delays", "perform internal and external expediting of critical parts and initiate and process scrap tags"]}, {"title": "Material/Production Planner", "company": "Company Name", "location": "City, State", "dates": "07/2001 - 02/2004", "responsibilities": ["expedites materials through production processes", "coordinates actions with other departments", "verifies kit hardware completeness and configuration", "requests drawings and materials to be issued from stores", "resolves aging work orders, generates Non-conforming Material Reports (NCMR\'s)", "generates shipping packing lists and invoice documents", "responsible for scheduling, releasing, updating, and closing work orders in a timely manner"]}], "skills": ["20 years of Material Management experience", "13 years of Law Enforcement experience", "Knowledge of mechanical test equipment", "Work from written/verbal instructions, schematics, rough sketches, troubleshooting diagrams, layouts and plans", "Proficient in the use of PC\'s, MS office, 10key by touch and Customer Service skills", "Forklift and Crane Certified", "Self motivated to Lead and Achieve Company goals with excellence, integrity and efficiency", "NDT Level II", "Knowledge on mechanical, pneumatic and hydraulic theory and principles", "automation, closing, coaching, oral, hardware, customer support, designing, direction, hand tools, inventory, ISO 9001, Machinery, materials, mechanical, personnel, processes, Procurement, programming, progress, quality, Quality Control, Receiving, repairs, repairing, research, robotic systems, safety, scheduling, shipping, simulation, Supervisor, Test Equipment, Troubleshooting, written, articles"], "education": [{"title": "General Courses", "institution": "Monterey Peninsula College", "location": "City, State"}, {"title": "Technical Diploma", "institution": "San Francisco Police Academy", "location": "City, State"}]}/function>'}}```

**As you can see the extraction actually proceed but the llamaindex seems to try to automatically extract a function call from it here:**

BadRequestError: Error code: 400 - {'error': {'message': "Failed to call a function. Please adjust your prompt. See 'failed_generation' for more details.", 'type': 'invalid_request_error', 'code': 'tool_use_failed'

I tried [this](https://github.com/run-llama/llama_index/issues/17050#issuecomment-2496116603)  by  @xucian  but it doesn't work

### Version

Version: 0.11.20

### Steps to Reproduce

see description

### Relevant Logs/Tracbacks

_No response_

This isn't really a problem with llamaindex right? Groq uses open source llms, and their tool calling ability isn't always perfect compared to openai or anthropic
You can try setting the pydantic_program_mode="llm" in the llm constructor to skip function calling and try use response parsing, but that can also be difficult


kpt live apply: "Multiple ResourceGroup objects found"

I'm iterating on a few packages locally and trying to use kpt live apply (because kubectl apply doesn't ignore local-config annotations, also pruning is nice)
However, when I nest packages and try to apply a "parent" package, I get:
Error: Multiple ResourceGroup objects found. Please make sure at most one ResourceGroup object exists within the package.
That makes sense, but there doesn't appear a workaround (that I found).
I would expect kpt live apply to either apply a set of ResourceGroups or restrict to the "top" ResourceGroup (and not recurse down)

I wonder how the ResourceGroup sharding feature (https://github.com/GoogleContainerTools/kpt/pull/3430) would impact this.

My understanding of the kpt deployment feature is that

a KRM object should only be managed by a single ResourceGroup.
one package can have at most one ResourceGroup (that's also the original resource group is placed inside the Kptfile)
Assuming users know what they are doing, they can force a KRM resource to belong to another ResourceGroup.

For nested packages, the workaround or the user-aware approach will be to specifically delete ResourceGroups in sub-packages, and force the root package to adopt all resources.
+cc @mortent

@janetkuo The sharding should not be impacted by this feature request to support nested sub-packages (ie. nested ResourceGroup objects, assuming that we don't want to use the workaround provided by @yuwenma where the parent ResourceGroup owns all sub-packages' resources).
Sharding of resources only occurs on the live cluster due to etcd limitations. The local ResourceGroup object is not split up.


Analog Clock

Analog Clock using HTML, CSS, JS
I have quite some knowledge required to do this project. Sir, please assign this issue under SSOC 2.0

I want to work on this issue, I'm already created an analog clock in 2022, please assign me this issue

I can make an Analog Clock using HTML,CSS,JS. If I will get the opportunity,I will do my best to make it.Thank you.

Hey I am Samrat Ghosh,
Can I be added in this project. I am excited to become a part of it, Thank you.

@SwapnilGanguly Project already exists


feat(sync): add setKey action for category-sync

Summary
PR adds setKey update action for category-sync
resolves #263

Coverage remained the same at 97.657% when pulling 80eafe4bdfe621e6409ebda82edc413ddf935eac on 263-add-setKey-update-action-for-category-sync into 57cb8f4269491387074b2e6b98ea33aed70a5131 on master.


Allow specifying flag writes for float comparisons

Hey!
I've been doing some work on the x86 Architecture module, notably on the flag lifting. I need to be able to specify some flag writes for FP comparison instructions in order to modify this PR as suggested by @rssor.
Instead of directly lifting the flags for UCOMISD and al. as done originally in the PR, @rssor suggested to use the GetFlagWriteLowLevelIL and use IL_FLAGWRITE_ALL in an instruction without side effect. A good candidate would be to try with LLIL_FCMP_UO.
And in order to do so, I need to be able to specify the flags writes for these IL instructions :)

In this case I think it would be better to stick with using LLIL_FSUB, since flag roles will already do what you expect when using that op instead of assigning flag writes to FCMP operations.

The issue with LLIL_FSUB is that it is already used by FCOMI/FUCOMI/... (here). They have slightly different semantics, and I don't think I would be able to differentiate them in the callback.

The callback receives both the llil operation and the flag write type, so you can differentiate by a unique flag write for the new ops.

This is currently blocked on us adding a bunch of things to the core.

So I think I addressed this by refactoring the x86 code in https://github.com/Vector35/arch-x86/commit/5b134ac7da45c009094faf654f613a9ecd11cae8 to use our semantic flag system for a variety of floating point ops instead, instead of making use of the explicit writes to flags.
Generally speaking we convey the meaning of the flag write at the write location, and then in the observing condition it'll resolve most appropriately based on the instruction responsible for generating flags.
I think some of the confusion is because there are other blocked-by-core situations we need to be able to handle eventually, like saturating flags or flags that indirectly depend on other flags. But this particular issue is best addressed by using the existing semantic flags system.
The main limitation of the current system is that we look, once, at all flags that get observed, then at the places that should have generated those flags, and then generate the flag IL once. If, in the process of doing that, we realize we need to generate even more IL for flag operations we have bumped into the limits of the current system.


Added advised height of the camera and display

Added advised height of the camera and display based on The Hive guidance.

@dstrome PR has been copyedited and is ready for final review, could you please check and merge? Thanks!

We don't know customers' room and furniture dimensions so best to leave guidance more generic.


Inputs other than text

Support for non-text inputs needs to be significantly improved. All checkboxes are hidden by default, radio buttons take up 50% width, etc. That's not to mention they aren't styled at all.

Status of Development;

[x] Checkboxes
[ ] Radio Buttons
[x] Labels
[x] Navbar Issue
[x] Width 90% Issue

Coming in Legacy 4.0.1

Shouldn't it be 4.1? New features should come in a minor release, not a bugfix.

Oh yes, sorry about that. I meant to say 4.1.


c8y-configuration-plugin: should not send anything to c8y if configuration is requested locally

Describe the bug
If the confiiguration is requested from anywhere else than from c8y the c8y-configuration-plugin still sends the operation status to c8y.
To Reproduce
Send a dummy response:
mosquitto_pub -t tedge/{child-id}/commands/res/config_snapshot -m '{"type": "myconfig"}'
The c8y-configuration-plugin will then send
c8y/s/us/{child-id} 501,c8y_UploadConfigFile
c8y/s/us/{child-id} 502,c8y_UploadConfigFile,"Failed to parse response from child device with: missing field `path` at line 1 column 21"

to cumulocity whether the request comes from cumulocity or not.
Expected behavior
c8y-configuration-plugin does nothing if no request from cumulocity is pending or if the payload does not match the expected one.
Environment (please complete the following information):

OS [incl. version]
Hardware [incl. revision]
System-Architecture [e.g. result of "uname -a"]
thin-edge.io version [e.g. 0.1.0]

@toewsar Technically the c8y-configuration-plugin is only for Cumulocity based configuration file operations, hence why it is also sending some c8y related commands (as that is part of the Cumulocity interface when handling such operations).
However I believe what you're asking for is that the c8y-configuration-plugin should be changed to tedge-configuration-plugin and use a generic operation model which is then translated into cloud messages by the cloud mapper (rather than then configuration plugin directly(similar to thetedge/measurement` format, but for operations). This is indeed our goal, however we need a more detailed design into just a topic, and to see how feasible it would be for cloud mappers to adjust to different mechanisms which might or might not exist on each cloud interface (e.g. one mechanism that comes to mind is the file uploaded, some cloud providers might not even support this out of the box).

@toewsar ah ok. Technically sending the operation update commands to c8y (e.g. 501, 502, 503) will not cause any harm if you don't have any pending operations on the cloud side...however semantically it does seem strange updating a non-existent cloud operation.
Though we're looking at transitioning from the id-less operation handling to using operation id (https://github.com/thin-edge/thin-edge.io/issues/1718), which would then enable this use-case very easily...For example, we could only send the operation status updates back to the cloud if there is in-fact an operation id, otherwise we could add a new fragment which indicates that the operation should not send status updates to the cloud.

@reubenmiller or you skip updating the operation, if the res does not match
{
    "status": "executing",
    "type": "{config-type}",
    "path": "/child/local/fs/path"
}

or just misses the path  or status fragment.

@toewsar, this is now possible in thin-edge.io 0.13.0 using the new more generic components (e.g. tedge-configuration-plugin) and the utilization of the new MQTT v1 api.
You can read about the new command api to better understand the mechanics.
However here is a short example how to locally request a config_snapshot using the command line:

In console 1, subscribe to the local command requests
tedge mqtt sub 'te/device/main///cmd/config_snapshot/+'

In console 2, request the snapshot using the new thin-edge.io te/ topics using a retained message
tedge mqtt pub -r \
    te/device/main///cmd/config_snapshot/local-1 \
    '{"status":"init","tedgeUrl":"http://<IP_ADDRESS>:8000/tedge/file-transfer/main/config_snapshot/local-1111","type":"tedge-configuration-plugin"}'

The last part local-1 can be anything unique for the topic. Convention is to use a known prefix to distinguish it from other mappers.

View the mqtt messages received in console 1
[te/device/main///cmd/config_snapshot/local-1] {"status":"init","tedgeUrl":"http://<IP_ADDRESS>:8000/tedge/file-transfer/main/config_snapshot/local-1111","type":"tedge-configuration-plugin"}
[te/device/main///cmd/config_snapshot/local-1] {"status":"executing","tedgeUrl":"http://<IP_ADDRESS>:8000/tedge/file-transfer/main/config_snapshot/local-1111","type":"tedge-configuration-plugin"}
[te/device/main///cmd/config_snapshot/local-1] {"status":"successful","tedgeUrl":"http://<IP_ADDRESS>:8000/tedge/file-transfer/main/config_snapshot/local-1111","type":"tedge-configuration-plugin","path":"/etc/tedge/plugins/tedge-configuration-plugin.toml"}

4.In console 1, read the message where the status is successful and request the file contents of the file from the tedgeUrl
```
curl http://<IP_ADDRESS>:8000/tedge/file-transfer/main/config_snapshot/local-1111
```

Acknowledge the response of the command by publishing an empty retained message to the same topic. It should only be done by the requestor
tedge mqtt pub -r 'te/device/main///cmd/config_snapshot/local-1' ''


I want to know how to recognize self is leader when storage apply log

I want to do some thing when leader commit and apply to StateMachine , could some one teach me how to impl such feature

/help

@drmingdrmer  help! 可以解答一下这个问题吗，谢谢🙏

I use a global raft var solve this

Since a RaftStorage implementation stores the Vote via save_vote():
https://github.com/datafuselabs/openraft/blob/3111e7e6c8649f7068f959bc58e484f3b95732bb/memstore/src/lib.rs#L248-L254
The storage implementation can get the saved vote when applying a log. The structure of Vote looks like the following, and the value of the vote defines the server-state of the raft node:
pub struct Vote<NID: NodeId> {
    pub term: u64,
    pub node_id: NID,
    pub committed: bool,
}

Vote.node_id == self.id:  candidate or leader

Vote.node_id == self.id && Vote.committed == true:  leader
Vote.node_id == self.id && Vote.committed == false:  candidate

Otherwise, it is a follower or a learner.

You can find how to determine the server-state by vote here:
https://github.com/datafuselabs/openraft/blob/e4036a0fc6e8b80f62580b42eb349da8d1055f96/openraft/src/engine/engine_impl.rs#L1153-L1171
And it's a good question. I should add it to the doc:)
Thank you!

thanks for you patient reply, It really help. it is very usefull framework


MS-CHAP v2

What would be solution for the use of MS-CHAP v2?

We currently have no plans for implementing MS-CHAPv2 for our usage but we will certainly look at pull requests.


Added more specs to SCSS

I added a list of key features of SCSS. I also fixed a spelling error in "preprocessor" in the intro section.

[X] I have read freeCodeCamp's contribution guidelines.
[ X] My pull request has a descriptive title (not a vague title like Update index.md)
[X ] My pull request targets the master branch of freeCodeCamp.
[X ] None of my changes are plagiarized from another source without proper attribution.
[ X] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 🎉


ModuleNotFoundError: No module named 'azure.mgmt.redhatopenshift.operations'

Describe the bug
I have created PR https://github.com/Azure/azure-cli/pull/14535 to enhance our latest updates to the aro module.  I have passed all module tests with azdev test aro.
The CI is failing with the following error message:
Verifying profile: 2017-03-09-profile
Loading all commands, arguments, and help...
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.6.11/x64/bin/azdev", line 11, in <module>
    load_entry_point('azure-cli-dev-tools', 'console_scripts', 'azdev')()
  File "/home/vsts/work/1/s/tools/automation/__main__.py", line 25, in main
    args.func(args)
  File "/home/vsts/work/1/s/tools/automation/verify/verify_load_all.py", line 27, in verify_load_all
    create_invoker_and_load_cmds_and_args(az_cli)
  File "/opt/hostedtoolcache/Python/3.6.11/x64/lib/python3.6/site-packages/azure/cli/core/file_util.py", line 76, in create_invoker_and_load_cmds_and_args
    invoker.commands_loader.load_arguments()
  File "/opt/hostedtoolcache/Python/3.6.11/x64/lib/python3.6/site-packages/azure/cli/core/__init__.py", line 454, in load_arguments
    cmd.load_arguments()  # this loads the arguments via reflection
  File "/opt/hostedtoolcache/Python/3.6.11/x64/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 310, in load_arguments
    super(AzCliCommand, self).load_arguments()
  File "/opt/hostedtoolcache/Python/3.6.11/x64/lib/python3.6/site-packages/knack/commands.py", line 106, in load_arguments
    cmd_args = self.arguments_loader()
  File "/opt/hostedtoolcache/Python/3.6.11/x64/lib/python3.6/site-packages/azure/cli/core/commands/arm.py", line 597, in generic_wait_arguments_loader
    cmd_args = get_arguments_loader(context, getter_op, operation_group=kwargs.get('operation_group'))
  File "/opt/hostedtoolcache/Python/3.6.11/x64/lib/python3.6/site-packages/azure/cli/core/commands/arm.py", line 402, in get_arguments_loader
    getter_args = dict(extract_args_from_signature(context.get_op_handler(getter_op, operation_group=operation_group),
  File "/opt/hostedtoolcache/Python/3.6.11/x64/lib/python3.6/site-packages/azure/cli/core/__init__.py", line 808, in get_op_handler
    op = import_module(mod_to_import)
  File "/opt/hostedtoolcache/Python/3.6.11/x64/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'azure.mgmt.redhatopenshift.operations'

To Reproduce
The CI run is reproducing this every time.
Expected behavior
Pass the CI tests.
Environment summary

git clone azure-cli
python3 -m venv env
source ./env/bin/activate
pip install azdev
azdev setup -c
azdev test aro
Additional context

When calling the ./scripts/ci/test_profile_integration.sh script locally, this fails with:
...
pkg_resources.VersionConflict: (azure-cli 2.10.0.dev20200731183502 (/home/kwoodson/git/azure-cli/src/azure-cli), Requirement.parse('azure-cli==2.10.0'))
...
pkg_resources.DistributionNotFound: The 'azure-cli==2.10.0' distribution was not found and is required by the application

The CI fails on the test_profile_integration.sh script specifically on the 2017-03-09-profile.  It does pass on the latest.
Any assistance would be great, thanks!

add to S174

@kwoodson You could checkout azure-mgmt-openshift 0.1.0, I believe there is no operation module inside azure/mgmt/redhatopenshift/. There might be some bugs while releasing this package.
Please verify.

https://github.com/Azure/azure-cli/pull/14535/files?file-filters[]=.py#r463926021

cc @fengzhou-msft since it's openshift modules

Adding back in the resource_type statement fixed the error.


Add non-versioned symlinks for ART-1349

Examples:
openshift-client-linux-4.1.9.tar.gz
openshift-client-linux.tar.gz -> openshift-client-linux-4.1.9.tar.gz
openshift-client-mac-4.1.9.tar.gz
openshift-client-mac.tar.gz -> openshift-client-mac-4.1.9.tar.gz
openshift-client-windows-4.1.9.zip
openshift-client-windows.zip -> openshift-client-windows-4.1.9.zip
openshift-install-linux-4.1.9.tar.gz
openshift-install-linux.tar.gz -> openshift-install-linux-4.1.9.tar.gz
openshift-install-mac-4.1.9.tar.gz
openshift-install-mac-4.3.0-0.nightly-s390x-2020-01-06-081137.tar.gz
openshift-install-mac.tar.gz -> openshift-install-mac-4.3.0-0.nightly-s390x-2020-01-06-081137.tar.gz

I'm not thrilled with this approach since it obscures what people are actually downloading, but it's expedient and we can improve later if it's worth it.


fix(client): fix dynamic wasm imports for Next.js Middlewares / Vercel Edge in @prisma/client

This PR impacts how the Wasm Query Engine is loaded with @prisma/client's conditional import maps.
In particular, this PR:

Replaces the dynamic Wasm import with a static one. This was necessary because @prisma/client is a CommonJS package - so no top-level await is available
Updates how getQueryEngineWasmModule resolves the Wasm modules, using a sequence of awaits to avoid the infamous "TypeError: WebAssembly.Instance(): Argument 0 must be a WebAssembly.Module" error
Fixes https://github.com/prisma/prisma/issues/23929, https://github.com/prisma/prisma/issues/23600, https://github.com/prisma/prisma/issues/23500

/integration

Note: there are currently some ecosystem-tests failures, notably in the *-vercel-nextjs-edgemw.
Looking e.g. at https://e2e-driver-adapters-neon-http-vercel-nextjs-edgemw-gmu6iti7n.vercel.app, it seems that the test app works, but some test assertions fail.

ecosytem-tests failure could be a flake, although i haven't seen this one before. Restarted the test for now.

Note: the failures look unrelated to this PR because the default branch shows the same failures
https://github.com/prisma/ecosystem-tests/actions/runs/9286333431


Fix dependency

While yes this is an issue in the code, it should be noted that this project has been bootstrap with yarn (see: yarn.lock file) and this is exclusively a problem with NPM v7, not with Yarn v1. Furthermore, the fix is listed right in your screenshot:


Feature/parse more values

parse condition numbers and Mulliken charges from CP2K output

based on the PR #24


[ enhancement ] - Enhance button component sizing: font size adjustments needed

Description
The current implementation of the Button component in the Go UI components library lacks consistent font size adjustments based on the button size variant.
Issue Details:

The getSizeClasses function defines different height and padding for the button sizes (small, large, and icon). However, it does not adjust the font size according to the specified button size.
Currently, all button sizes default to text-base for font size, regardless of whether the size is set to lg, sm, or other variants. This can lead to a lack of visual distinction between button sizes and may not align with user expectations.

Proposed Changes:

Default Size: Maintain text-base for the default button size.
Large Size: Change font size to text-lg for the large button size.
Small Size: Change font size to text-sm for the small button size.
This enhancement will improve usability and accessibility, providing a clearer visual hierarchy among button sizes.

Example Adjustment:
func getSizeClasses(size ButtonSize) string {
	switch size {
	case Sm:
		return "h-9 px-3 rounded-md text-sm" // Small size with small font
	case Lg:
		return "h-11 px-8 rounded-md text-lg" // Large size with large font
	case ButtonIcon:
		return "h-10 w-10" // Icon size
	default:
		return "h-10 px-4 py-2 rounded-md text-base" // Default size with base font
	}
}

Thank you for your feedback. These buttons were developed according to ui.shadcn.com. I have never heard anyone complain about the text sizes not changing!
Do you really think this is a problem? I look forward to your reply!

It's more like a suggestion rather than a bug, I think changing the size of a button should slightly change the `font size (font size needs to look decent based on the size of a button)

Got it, thanks for your suggestion. I think I'll leave it as is for now.


Add Iranian messengers

Dear developer(s)
"Bale" and "Eitaa" messengers are widely used in Iran and I want you to add them to this app
Thank you for making this app

@vraravam Hi, I fix the version.

@xmha97 - please see the error shown by the CI run and fix it. Thanks for your contribution!

@xmha97 - please see the error shown by the CI run and fix it. Thanks for your contribution!

@vraravam - I think the error is fixed now.

Thanks for your contribution @xmha97
@all-contributors please add @xmha97 for code


[UIMA-6126] Add .gitignore file to trunk

Ignore files that should not go into the repo

https://issues.apache.org/jira/browse/UIMA-6126

Jenkins, can you test this please?

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Apache UIMA Java SDK (GitHub PR)/1/

I noticed this change was for trunk, which has been now renamed to master.  The "trunk" branch will be deleted, as soon as INFRA changes the default to "master".  Can you update this or redo it to go against "master" branch?

Other gitignore candidates include: api-change-report and issuesFixed.

The target branch can be changed via the "Edit" button on the top of the PR. I'll change it.


error refreshing page with local storage

Hi, In my app I have a service that prepare the request option adding jwt tokens to request calls this way
    public get jwt(): RequestOptions {
        var authHeader = new Headers();
        var token = localStorage.getItem('access_token');
        authHeader.append('Authorization', 'Bearer ' + token);
        authHeader.append('Content-Type', 'application/json');
        return new RequestOptions({ headers: authHeader });
    }

it works normally, but if during navigation I press F5 to and refresh, I obtain this error message
Exception: Call to Node module failed with error: ReferenceError: localStorage is not defined
at RequestOptionsService.Object.defineProperty.get [as jwt] (D:\Sorgenti\Interno\MyCrm\src\CrmApp\ClientApp\dist\main-server.js:20252:26)
at CampagnaService.aperteSimpleList (D:\Sorgenti\Interno\MyCrm\src\CrmApp\ClientApp\dist\main-server.js:20666:59)

Am I missing somthing?

When you're refreshing the App is being first rendered by the server again. You'll need to use dependency injection to provide a StorageService for both the Client (which will use regular localStorage) & the Server (to use Redis, in-memory variable storage, whatever you choose).
These kinds of situations aren't easy when dealing with universal/isomorphic apps, but it gets easier with time!
Basically you want to create a Browser class around localStorage, and maybe on the server, you just do nothing.
export class BrowserStorage {
    getItem (key: string) {
        return localStorage.getItem(key);
    }
    /* setItem , clear etc if you want */
}

export class ServerStorage {
    getItem (key: string) {
        return '';
    }
    /* setItem , clear etc if you want */
}

Then you want your abstraction Class.
export class StorageService {
    abstract getItem (key:string) {}
    abstract setItem (key:string, val: any) {}
}

Then in your app.module file, under providers add:
import { isBrowser } from 'angular2-universal';

{ provide : StorageService, useClass: isBrowser ? BrowserStorage : ServerStorage }

I hope that helps get you going in the right direction!

Thanks for the answer, @MarkPieszak!

thanks, I tried , added the code and I think this steps works, but now I have this error
Exception: Call to Node module failed with error: Error: This method is not implemented in Parse5DomAdapter: Parse5DomAdapter#getCookie
at _notImplemented (D:\Sorgenti\Interno\MyCrm\src\CrmApp\ClientApp\dist\vendor.js:79077:13)
at Parse5DomAdapter.getCookie (D:\Sorgenti\Interno\MyCrm\src\CrmApp\ClientApp\dist\vendor.js:79696:16)
at CookieXSRFStrategy.configureRequest (D:\Sorgenti\Interno\MyCrm\src\CrmApp\ClientApp\dist\vendor.js:52197:93)
at XHRBackend.createConnection (D:\Sorgenti\Interno\MyCrm\src\CrmApp\ClientApp\dist\vendor.js:52237:33)
at httpRequest (D:\Sorgenti\Interno\MyCrm\src\CrmApp\ClientApp\dist\vendor.js:52575:25)
at Http.get (D:\Sorgenti\Interno\MyCrm\src\CrmApp\ClientApp\dist\vendor.js:52686:21)
at CampagnaService.aperteSimpleList (D:\Sorgenti\Interno\MyCrm\src\CrmApp\ClientApp\dist\main-server.js:20647:27)
at CampagneAperteComponent.ngOnInit (D:\Sorgenti\Interno\MyCrm\src\CrmApp\ClientApp\dist\main-server.js:21435:23)
at AppView._View_CampagneAperteComponent_Host0.detectChangesInternal (CampagneAperteComponent_Host.ngfactory.js:28:92)
at AppView.detectChanges (D:\Sorgenti\Interno\MyCrm\src\CrmApp\ClientApp\dist\vendor.js:12652:19)

but I think this happens when the get call is done, but I don't use cookies in this services.
    public aperteSimpleList(): Observable<CampagnaVm[]> {
        var apiPath = this.basePath + 'Aperte/';
        return this.http.get(apiPath, this.requestOptions.jwt)
            .map(response => this.extractData(response));
    }

beside this , I have 2 more questions:

where can I find any reference on how to create a polyfiller for the storage service? I'm evaluting how much may be impacting for me and my customers to support server side rendering, and developer polyfillers in node for people with a C# background can be problematic.
how they works these two services when I'll do the authentication? When I do login (not actually implemented in this program) I do a server call to the authentication service that returns the token but, if I understand well, at this point I have to set the token key in both the services manually or angular make this automatically?

if possible another question @SteveSandersonMS.
I see that sometimes error handling is not consistent: some js errors are reported on screen using that error message, sometimes js fails and I have to check in the console. Sometimes a few errors seems that stop webpack reloading and I have to stop and rerun the project from Vs.
Is this by design or has to be reported?

where can I find any reference on how to create a polyfiller for the storage service? ... develop polyfillers in node for people with a C# background could be problematic

That's a general TypeScript/Node question so I'd recommend searching for general resources relating to those. If your team is going to build a nontrivial Angular/React/etc application, then regardless of whether you're building polyfills for server-side rendering in Node or not, your team will certainly have to get good at writing TypeScript and understanding how a JavaScript runtime environment works - you can't really avoid that I'm afraid!

how they works these two services when I'll do the authentication?

If your server-side .NET code has authentication information, you can pass information such as the user's authentication token into your boot-server.ts code (e.g., see docs here: https://github.com/aspnet/JavaScriptServices/tree/dev/src/Microsoft.AspNetCore.SpaServices#3-supplying-javascript-code-to-perform-prerendering). Then your JS code can set up Angular in whatever way you want so it passes it on to any APIs that it calls. The exact details of working with Angular are best discussed with the Angular community itself.

I see that sometimes error handling is not consistent: some js errors are reported on screen using that error message, sometimes js fails and I have to check in the console.

There may be inconsistencies; I'm not sure. As far as I know, there are reasons why errors that occur at different phases (e.g., during build, or during .NET app startup, or on the server while handling a request, or on the client) get presented in different ways. If you think you have a specific scenario where it's not behaving sensibly, could you please file a separate issue with repro steps?

There's are just different situations where errors can occur, as Steve was just saying.
JS client-side errors will be in the browser console.
If you refresh the page, and the error screen with Node information appears (that's an error that occured during the server-side rendering).
Then there's the regular .NET error page of course.
Nothing to worry about :)
When developing front-end applications, I'd suggest locking those devtools open permanently :smile:


Crash on switching btw BottomBar tabs

A crash can happen when you switch btw button-bar tabs several times.
here is a StackTrace:
Process: ir.composenews, PID: 8708
retrofit2.HttpException: HTTP 429
at retrofit2.KotlinExtensions$await$2$2.onResponse(KotlinExtensions.kt:53)
at retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:161)
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
at java.lang.Thread.run(Thread.java:1012)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@4ef69d2, Dispatchers.Main.immediate]```

Hey @jalalaghazadeh , Thanks a lot for reporting!
Are you willing to working on this issue?

Hey @jalalaghazadeh , Thanks a lot for reporting!
Are you willing to working on this issue?

Hey @Kaaveh , that would be my pleasure. I'll send a MR asap.

@jalalaghazadeh Awesome! I'll assign this issue to you! 🙌🏻

Hey @jalalaghazadeh
Do you have any updates on this task?


Reinstate submodule

Graphmetrics submodule was removed inadvertently in a previous commit.  This commit reinstates it and removes the files that should be in the submodule.

aha. LGTM


Datatracker not tracking "misc stats" correctly over network.

Played as client over network.
Longest distance walked by emil:<PHONE_NUMBER>M is not correct.

Fix for this issue will be included in U530/T667.
When I moved some event emissions out of ReceiverBase.h and rewrote some parameters I accidentally changed distanceWalked from a float to an int.

Fixed in #609


WinDivert farms bitcoins

I tryed to move the folder to different place after launching this program and closing it. It didn't allow me, because WinDivert was still running. There also was shown some URL and then "Bitcoin: %random letters and numbers looking like a bitcoin wallet code%".
No, it doesn't farm bitcoins. Why would you think that? It just has developer's bitcoin wallet in the driver description. You can't move the driver because, well, it's running.

lol, for what reason it can have developers bitcoin app?

It has developer's bitcoin address (wallet) for donations.

and what is the normal way (instead of finding that it has bitcoin wallet while trying to move the file) to lookup this wallet through this file?

Right-click on the driver and check its description and other metadata.

ok, thanks, seems legit


Dynamically look up the global defaultColor

This allows the colour to be programmatically changed. Additionally, this change ensures that helpers.valueOrDefault is used inside each element.
Resolves #4299
This PR: https://codepen.io/anon/pen/vvgPPp
This PR with global element setting: https://codepen.io/anon/pen/VqpMvg
v2.7.3: https://codepen.io/anon/pen/pqRYBM

@etimberg this change will have to be rebased

@etimberg this PR will need to be rebased again

I took a new approach on this. I removed the element level fallbacks entirely and updated the resolve step of the controllers to fallback to global.defaults.defaultColor during that process.
I removed a few tests that explicitly tested that behaviour. I had to do a lot of updates to the line element tests that use the fake canvas. I think all of that code is tested via the image based tests but I didn't want to expand the scope of this PR to handle that. I'll look into that in a separate PR.

@etimberg this PR will need to be rebased

@etimberg do you plan to come back to this PR? I'm wondering if we should close it for the time being until you get a chance to take another look so that we keep the review queue clean

I tried to rebase this, but so much has changed that it was getting pretty complicated. I'm going to close it for now and we can always come back to it


testDependency jars are improperly tagged when downloaded via curl

We see testDependency/llib/*.jars pre-exists and found jar files are tagged as IBM-1047 T=on. Due to this tagging ant compilation for Java21 fails.
We would like to remove testDependency/lib on all z/OS machines and make BINARY tagging to jars.
For more details refer : openj9-openjdk-jdk21-zos/issues/281

Modified getDependencies.pl to tag jars as binary. Verifying the changes.

@AdamBrousseau Could you please remove testDependency directory on all 2.5 and 3.1 z/OS machines. Thank you.

Could you please remove testDependency directory on all 2.5 and 3.1 z/OS machines.

Done on hyc jenkins


Compact works fine with GHC-8.4. Update base dependency accordingly.

This fixes issue #5

Thanks!

I've pushed a revision to Hackage bumping the bound.


Version 1.13 and 1.12 point to the same commit

Seeems version 1.12 commit/tag is wrong, as it require go 1.9.x to compile

Yeah there is something weird with these two releases. Especially since I indeed authored the change that is mentioned in 1.12 but have not done a release myself, nor committed something new.
@jay0lee : Do you know why this has happened?

Yes, there's no changes to the connector source between these releases. The changes were to the msys2 Windows build environment (cairo dll in particular) and the Golang compiler which are local to the build system.

please note 1.12 say to be 1.8 compatible, but it give me a compilator error.