Scala 3: ClassCastException on deserializing an Array of intersection types

Search before asking

[X] I had searched in the issues and found no similar issues.

Version
0.7.0
Linux
Java 22
Component(s)
Java, Other
Minimal reproduce step
Please see: https://github.com/yoohaemin/fury-bugreport/blob/b4800828e98d605ab76155505b70b7f36f0b02d5/src/main/scala/Main2.scala
What did you expect to see?
Deserialization success
What did you see instead?
Exception in thread "main" java.lang.ClassCastException: class [Ljava.io.Serializable; cannot be cast to class [Lscala.deriving.Mirror$Singleton; ([Ljava.io.Serializable; is in module java.base of loader 'bootstrap'; [Lscala.deriving.Mirror$Singleton; is in unnamed module of loader 'app')
  at test2.Main$.main(Main2.scala:43)
  at test2.Main.main(Main2.scala)

Anything Else?
No response
Are you willing to submit a PR?

[ ] I'm willing to submit a PR!

@yoohaemin Seems it didn't go to fury code path

I'm starting to think this is a Scala compiler issue, sorry for the trouble.


Tabs

We have a rudimentary tabs in Angular. This task is to add it in other framework and utilize it in the showcase for the top hero getting started framework guides.

Tabs Vue
Showcase
Angular refactoring once made to look nice for showcase
React
Svelte

This is pretty much implemented less an a11y arrow navigation phone which I'm going to track separately￼


Enhance shopping cart

Hi, I would like to enhance the shopping cart functionality because it looks empty
best regards

Could you explain your approach on this?


Allow native errors from exit codes to throw properly

Modify the native error parameter in the _WriteErrorSkipAllowCheck() method to allow native errors to throw properly

Closing in favour of contributing the commit directly to the PR branch


Return data from selecting multiple overlapping images

Hi~
I'm creating a new plugin to merge the two images based on this nice UI, but I'm having some problems.
My plugin is defined as follows:
class Fusing(IFieldsPlugin):
    @property
    def settings(self) -> IPluginSettings:
        return IPluginSettings(
            ...
            ),
        )

    async def process(self, data: ISocketRequest) -> List[Image.Image]:
        url_nodes = self.filter(data.nodeDataList, SingleNodeType.IMAGE)
        img_url0 = url_nodes[0].src
        img_url1 = url_nodes[1].src
        img0 = Image.open(BytesIO(requests.get(img_url0).content))
        img1 = Image.open(BytesIO(requests.get(img_url1).content))
        ...
        return img_fused

class ImagesFollowers(IPluginGroup):
    @property
    def settings(self) -> IPluginSettings:
        return IPluginSettings(
            ...
            nodeConstraintRules=NodeConstraintRules(
                exactly=[NodeConstraints.IMAGE, NodeConstraints.IMAGE]
            ),
            ...
            pluginInfo=IPluginGroupInfo(
                ...
                plugins={
                    "fusing": Fusing,
                },
            ),
        )

However, when I selected A and B in the drawboard (B covers A), I only get the full B and the part A that overlaps B.

If I expect to get more intuitive results full A, full B, and part B. Where can I modify the logic here?
This seems to involve React development, but I'm not familiar with it. :face_with_spiral_eyes:
Would you please give me some advice, thank you!

Ah, this is a good feature that is currently lack of, I'll develop it today and let you know once it is done!

Here's my plan: you can specify an argument in IPluginSettings, with which I'll return the full images to you. Currently, I'll use the largest image as a 'canvas' and 'crop' those images, which is useful for outpainting features.

And in case you don't know: I implemented an internal method for all plugins to download images, so maybe you can try:
img0 = await self.load_image(img_url0)
img1 = await self.load_image(img_url1)

To simplify your implementations!

btw, before that, if you want to try the fusing algorithm anyway, you can try these settings:
class Fusing(IFieldsPlugin):
    @property
    def settings(self) -> IPluginSettings:
        return IPluginSettings(
            ...,
            pluginInfo=IFieldsPluginInfo(
                definitions=dict(
                    url0=IImageField(label="Image 0"),
                    url1=IImageField(label="Image 1"),
                    # Your original definitions, leave it blank if there weren't any!
                    ...
                ),
            ),
        )

    async def process(self, data: ISocketRequest) -> List[Image.Image]:
        img_url0 = data.extraData["url0"]
        img_url1 = data.extraData["url1"]
        img0 = await self.load_image(img_url0)
        img1 = await self.load_image(img_url1)
        ...
        return img_fused

class ImagesFollowers(IPluginGroup):
    @property
    def settings(self) -> IPluginSettings:
        return IPluginSettings(
            ...
            nodeConstraintRules=None,
            ...
            pluginInfo=IPluginGroupInfo(
                ...
                plugins={
                    "fusing": Fusing,
                },
            ),
        )

By using IImageField, you can see a nice 'image picker' in the plugin, where you can pick up the images on the drawboard, and the selected ones will be placed first!

I've pushed some codes and now you can do something like this:
class Fusing(IFieldsPlugin):
    @property
    def settings(self) -> IPluginSettings:
        return IPluginSettings(
            ...,
            pluginInfo=IFieldsPluginInfo(
                # add this line!
                exportFullImages=True,
                ...
            ),
        )

    ...

By specifying exportFullImages=True, the images will be exported as-is!

However some cutting edge features are being pushed as well so it might be buggy 🤣

btw, before that, if you want to try the fusing algorithm anyway, you can try these settings:
class Fusing(IFieldsPlugin):
    @property
    def settings(self) -> IPluginSettings:
        return IPluginSettings(
            ...,
            pluginInfo=IFieldsPluginInfo(
                definitions=dict(
                    url0=IImageField(label="Image 0"),
                    url1=IImageField(label="Image 1"),
                    # Your original definitions, leave it blank if there weren't any!
                    ...
                ),
            ),
        )

    async def process(self, data: ISocketRequest) -> List[Image.Image]:
        img_url0 = data.extraData["url0"]
        img_url1 = data.extraData["url1"]
        img0 = await self.load_image(img_url0)
        img1 = await self.load_image(img_url1)
        ...
        return img_fused

class ImagesFollowers(IPluginGroup):
    @property
    def settings(self) -> IPluginSettings:
        return IPluginSettings(
            ...,
            # this modified line means the plugin will always be displayed
            nodeConstraintRules=None,
            ...,
            pluginInfo=IPluginGroupInfo(
                ...
                plugins={
                    "fusing": Fusing,
                },
            ),
        )

By using IImageField, you should be able to see the nice 'image picker's in the plugin, where you can pick up the images on the drawboard, and the selected ones will be placed at first!

Very useful feature! Thanks for these tips! :star_struck:

For exportFullImages=True, I found that it seems to return only two raw images (without the user's transformation on the UI), and no intersection between these two.
But anyway, I'm surprised that you directly helped me develop this feature, so thank you very much. :wink: :+1:

I just found that the returned <SingleNodeType.IMAGE> provides quite a lot of properties, which can be used to customize the various operations I need.

Maybe, we don't need to add this new feature exportFullImages=True, in order to avoid a series of bugs :fearful: (e.g. in drawing masks for inpainting)

Ah! You discovered something I missed: I've put the original (raw) image url in the meta -> data -> url field!
But this is not something very stable... So I'll keep the exportFullImages feature if only somebody needs it. 😉

You've mentioned 'a series of bugs', theoretically everything should be the same when exportFullImages=False, but yes, if exportFullImages=True & you try to send masks / blank nodes, it might be buggy. What situation are you in?

And, you've mentioned you want the user's transformation on the UI - this has a stable solution: there's a transform property in the nodeData, with which you can use cv2 to transform the image if you need!
 It is a little complicated though. 😵💫

Embarrassingly, I couldn't reproduce those bugs, which may be caused by something else instead of this new feature. :rofl:
And yes, it is very convenient to use PIL or OpenCV to implement various pre-processing, which is exactly what I am doing.
Thank you for all your help! :beers:


Update README file

README.md includes:
key features
Future features
setups
Git account
Linkedin URL
Repository URL

may you please highlights all white lines you are meaning


Update homework_4.sql

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
What did you learn from the changes you have made?
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
How were these changes tested?
A reference to a related issue in your repository (if applicable)
Checklist

[ x] I can confirm that my changes are working as intended

I added my homework4 solution as a .zip file to the attachment. Thanks.

From HW4, Union query is missing.

Hi,
I updated HW4 and pulled a request again. I don’t see #String Manipulations and #Union part in .sql file, that is the reason I missed those two parts. Please check the new request.
Thanks,
Shaohe Wang

2024年5月25日 16:15，SidraBushra @.***> 写道：
From HW4, Union query is missing.
—
Reply to this email directly, view it on GitHub https://github.com/lllllwang1/sql/pull/8#issuecomment-2131425832, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3XQOKB42IWQ7ICMOSZIPVDZEDWOVAVCNFSM6AAAAABIGWMRWWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZRGQZDKOBTGI.
You are receiving this because you authored the thread.


adding all logging context data to worker and saga log entries

Coverage increased (+0.2%) to 76.3% when pulling b3bce330383d2bf973e2bb3be13616e8607bec00 on logging into 657037d64dbd8835df1fffbad32c08edcc6c997a on v1.x.

Closes #217


docs: Improves the frontend documentation on announcements

Summary of Changes

Added default value for announcements.enabled to custom config to increase verbosity
Fixed wrong object name (typo) in the documentation
Added information about config-default.ts file to docs
Added information about announcement_client.md README

Tests
I've checked that announcements are disabled when the variable added to custom-config.ts is set to false and that setting it to true enables the feature. No new automated tests are needed IMO.
Documentation
Described above
CheckList
Make sure you have checked all steps below to ensure a timely review.

[X] PR title addresses the issue accurately and concisely. Example: "Updates the version of Flask to v1.0.2"

In case you are adding a dependency, check if the license complies with the ASF 3rd Party License Policy.

[X] PR includes a summary of changes.
[X] PR adds unit tests, updates existing unit tests, OR documents why no test additions or modifications are needed.
[X] In case of new functionality, my PR adds documentation that describes how to use it.

@Golodhros could you merge it or do we need seccond approval? I have insufficient permissions to merge.


Debug in Chrome causes UI to become unresponsive in Android

First, I'd like to say that this is a great project. Really well executed
However, I've got a little bug. I think it's to do with RNMK and not React Native itself as I've only seen this behaviour in projects using RNMK.
If I have RNMK components in my view and enable Debug in Chrome in Android, the UI becomes unresponsive. If I console.log the results of onPress, I will often get the results of the first press – but all subsequent animations freeze and the UI is unresponsive until I Reload JS.
I'm using 0.2.4 of RNMK on RN 0.1.7 on Android 5.1.
My app is pretty simple at the moment – it's here.
FWIW, the packager also seems to freeze when this happens – the screenshot below shows white lines with successful loads of the JS package – and the bottom line is what happened when I've tried to debug in Chrome – it seems to be hung waiting for the JS package.

Hi @shankiesan, thanks for reporting.
Unfortunately, don't have any idea so far. Will keep trying.
How does it work on iOS?

Hi @xinthink thanks for getting back to me.
Infuriatingly, since I posted this issue it's starting working again. I'll close the issue for now, but if I encounter it again I'll test the failing code on iOS and report back to this issue.
Cheers

This is currently an issue for me, it works fine on iOS though. I'm using RN 0.20

I'm seeing this, too (RN 25.1).  But I'm not using material kit, so it's likely a core react native issue.

I figured out why this was happening to in my case.  I had left my genymotion instance running for a while and the clock had skewed horribly.  React Native use a native poly fill for timers (RCTimer) which attempts to compensate for delays in the javascript-to-native bridge.  When debugging in Chrome, the javascript engine's current time is the host systems, but the timer code doing the compensation is running in the emulator.  This causes huge compensation times that result in all timed functions (via setTimeout, setInterval) never firing.
Maybe this isn't the issue here, but since I ended up here due to this, perhaps others will too.
Otherwise, sorry dredge up an old issue :)

@johnwayner so are you saying that you simply resolved the issue by restarting genymotion? I am indeed using setTimeout and setInterval quite a lot in my app

After a discussion with Genymotion, we came to the conclusion that while my laptop was asleep the emulator was losing time.  This caused the emulator's time to be way off.  If your emulator's time is not different than your computer's, you have a different issue, unfortunately.
However, if they are different (even just a little), you should be able to reset the time manually or by restarting the emulator (I may have had to totally reset the emulator...I can't recall right now).
Once the clocks are in sync, the compensation time calculation should work properly and your callbacks will be called.  Unless you have a different issue.

Thanks, I'll try that next time it doesn't work. Seems to be working now, and it didn't at various times in the past, so your clock sync issue certainly is plausible!


Cleanup named ".cleanup.sh" and oodle_helper placed in / instead of working directory

When I manually execute run.sh the cleanup happens without problems on Ctrl+C.
When started as a systemd service, the following happens:

Cleanup script named <stdin>.cleanup.sh
Cleanup not happening on service stop request leaving rules in iptables
oodle_helper generated in / instead of WorkingDirectory

I can only assume the lack of cleanup is due to a name mismatch but I don't quite get why oodle_helper is placed in /. This happens if I manually execute run.sh and if I manually pipe the curl output in python. It should be mentioned that I'm running this in a live CD, similarly to how Arch is run the documentation example. I did install and use this script on a normal Debian installation in the past so I know that it works for sure on Debian.

OS: Finnix (Debian) 5.16.0-4-amd64
Python 3.9.19

root@0:~# ls
 definitions.json   ffxiv.exe   run.sh  '<stdin>.cleanup.sh'

[Unit]
Description=XivAlexander script

[Service]
Type=simple
User=root
WorkingDirectory=/root
ExecStart=/bin/bash run.sh
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target

#!/bin/bash

curl https://raw.githubusercontent.com/Soreepeong/XivMitmLatencyMitigator/main/mitigate.py | python3

https://github.com/Soreepeong/XivMitmLatencyMitigator/blob/a32f36233077da9bcff51e9f6101c915fb954664/mitigate.py#L817-L832
In fact, if mitigate.py has been run via pipe, then __file__ would be empty, and this oodle_helper_path would end up becoming /oodle_helper. This path probably can just be os.path.join(os.getcwd(), "oodle_helper") instead.

I replaced os.path.join() both for cleanup.sh and oodle_helper and they are correctly placed in the working directory but the PREROUTING tables are still there after the service stops meaning the cleanup script isn't being run
root@0:~# iptables -t nat -F PREROUTING
root@0:~# iptables -t nat -L PREROUTING
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
root@0:~# service xivalexander start
root@0:~# ls -A xivalexander/
.cleanup.sh  definitions.json  ffxiv.exe  oodle_helper  run.sh
root@0:~# service xivalexander stop
root@0:~# iptables -t nat -L PREROUTING
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
REDIRECT   tcp  --  anywhere             <IP_ADDRESS>/16        multiport dports tcpmux:65535 redir ports 45244
REDIRECT   tcp  --  anywhere             <IP_ADDRESS>/24       multiport dports 1025:65535 redir ports 45244
REDIRECT   tcp  --  anywhere             <IP_ADDRESS>/16        multiport dports tcpmux:65535 redir ports 45244
REDIRECT   tcp  --  anywhere             80-239-145-0.teliacarrier-cust.com/24  multiport dports 1025:65535 redir ports 45244
REDIRECT   tcp  --  anywhere             <IP_ADDRESS>/24      multiport dports 1025:65535 redir ports 45244
REDIRECT   tcp  --  anywhere             <IP_ADDRESS>/24       multiport dports 1025:65535 redir ports 45244
REDIRECT   tcp  --  anywhere             <IP_ADDRESS>/24     multiport dports 1025:65535 redir ports 45244
REDIRECT   tcp  --  anywhere             <IP_ADDRESS>/16       multiport dports tcpmux:65535 redir ports 45244
REDIRECT   tcp  --  anywhere             <IP_ADDRESS>/24     multiport dports 1025:65535 redir ports 45244
REDIRECT   tcp  --  anywhere             <IP_ADDRESS>/16        multiport dports tcpmux:65535 redir ports 45244

As a workaround I added ExecStop=/bin/bash .cleanup.sh to my service but the file keeps staying in the working directory even when mitigate.py isn't running
https://github.com/Soreepeong/XivMitmLatencyMitigator/blob/a32f36233077da9bcff51e9f6101c915fb954664/mitigate.py#L1657

This issue has been resolved thanks to https://github.com/Soreepeong/XivMitmLatencyMitigator/issues/66#issuecomment-1287760129 since .cleanup.sh is being now named properly and oodle_helper is being placed in the working directory so I'll just close this issue and maybe open a new one for the systemd problem.


Document thread pool tuning in JDBCDbClientProvider

Environment Details

Helidon Version: all
Helidon SE

Problem Description
There is currently no documentation that describes how to tune the thread pool for JDBCDbClientProvider. Currently, the pool defaults to the following values: 10 default core pool size, 50 max pool siz, and 0 pool growth rate of 0. Because of this, the ceiling for the # of threads will stop at 10. There may be situations where jdbc client provider will be exposed to highly intensive usage  where 10 threads would not be enough and will eventually cause thread starvation. The following are examples of how the ThreadExecutor can be configured to grow more and allow for more threads to service more JDBC connection :

Using growth-rate (although this is still experimental)db:
  executor-service:
    growth-rate: 10

Using core-pool-size and max-pool-sizedb:
  executor-service:
     core-pool-size: 100
     max-pool-size: 100

Or combination of bothdb:
  executor-service:
     core-pool-size: 100
     max-pool-size: 100
     growth-rate: 10

Has this information been reviewed? Is it ready to be added to the doc or do you want to wait until its no longer experimental? We have added notes to the doc before when the code is still in pre-production phase (experimental).

Thanks Lisa for looking into this. Joe wanted this to be like a general thread-pool tuning guide for all components in Helidon. I was only familiar with DbClient and have not really explored other components using this. When I get a chance, I will look more into other components and add information here.

Just FYI, that this is forked from https://github.com/helidon-io/helidon/issues/2484


Mention importance of closing handles in 5to6

#1536

Personally, I wouldn't mention the LEAVE phaser here. If someone's reading 5to6 docs, it'd be unfamiliar territory, and LEAVE has caveats, such as still being called even when a routine is called with wrong args.
Perhaps the prose here should just refer to https://docs.perl6.org/type/IO::Handle#routine_close for various ways of closing handles?

Just putting C is enough?

Just putting C is enough?

C<> just styles it as code. You need L<close> to make it a link to close routine.

👍 Thanks!


Rename target "atom" to "electron"

Thanks for all the awesome work on webpack! :tada:
It would be great to rename the target option atom to electron to avoid confusion between the two (since one is the runtime, and the other is an app that happens to be built on the runtime).

As from what I get, you can already use electron :
https://github.com/webpack/webpack/blob/v1.12.10/lib/WebpackOptionsApply.js
I think it is a fallback and a legacy key

Ah okay, in that case it would be good to just update the docs (they still use atom)

@mnquintana If you have time, free free to modify the docs directly.

Added in https://github.com/webpack/docs/wiki/configuration/e31fd1a0faeda7317720bed4dc66c59a184eb8fb

@mnquintana Great! Thanks.
 Some of those other documentation issues might be doable as well.

@bebraw Sure! I'll take a look at those.
Btw, how often are the docs at http://webpack.github.io/docs regenerated?

@mnquintana By the looks of it, the site was updated three months ago...
@sokra Do you have some cronjob for updating the docs?


Updated handler to have no host module enabled messages

Description
This changes the upgrade handler to have no allowed_messages for the ICA's host module. This will allow ICA accounts to be created on Provenance, but won't be able to do anything at the moment. In the future, we can add more allowed messages as we define the Provenance ICA API.
closes: #1023

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

[ ] Targeted PR against correct branch (see CONTRIBUTING.md)
[ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
[ ] Wrote unit and integration tests
[ ] Updated relevant documentation (docs/) or specification (x/<module>/spec/)
[ ] Added relevant godoc comments.
[ ] Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
[ ] Re-reviewed Files changed in the Github PR explorer
[ ] Review Codecov Report in the comment section below once CI passes

For future reference... The migration was tested locally.
10:50AM INF applying upgrade "ochre-rc1" at height: 650
10:50AM INF Initializing ICA
10:50AM INF created new capability module=ibc name=ports/icahost
10:50AM INF port binded module=x/ibc/port port=icahost
10:50AM INF claimed capability capability=2 module=icahost name=ports/icahost
10:50AM INF Finished initializing ICA

*[taztingo/1023-update-host-module-messages][~/work/provenance]$ ./build/provenanced -t --home ./build/run/provenanced q interchain-accounts host params
allow_messages: []
host_enabled: true


Fix for Adopt API release version query

Add insecure option to curl command  to avoid failures due to Let's
Encrypt DST Root CA X3 Expiration(Sept 2021) on systems with older root
certificate.
Signed-off-by: Violeta Sebe<EMAIL_ADDRESS>

Comment is updated.


Direct3D11 How can i rotate a image?

Hello could someone please tell me where sprite in Direct3D11?
i have am currently rendering an image, i am can move it but i cant figure how i can rotate it and i cant find a solution anywhere.
This is the code i am using:
                       Sprite NewSprite = Component as Sprite;                         Bitmap Texture = Game.bitmapManager.GetTexture(NewSprite.texture.TexturePath);                         RawRectangleF PositionRectangle = new Rectangle(new Point(gameObject.transform.Position), new Size(NewSprite.texture.TextureSize * Zoom)).ToRawRectangleF();                         float Transparency = NewSprite.Transparency;                         RawRectangleF ImageRectangle = new Rectangle(new Point(0,0), new Size(NewSprite.texture.TextureSize * Zoom)).ToRawRectangleF();                         renderTarget.DrawBitmap(Texture, PositionRectangle, Transparency,BitmapInterpolationMode.NearestNeighbor, ImageRectangle);
Sprite, Rectangle, Point and Size custom classes i made

Since you're using Sprite and stuff I assume you're using Direct2D to draw your image. If so, then you should check out this MSDN documentation. Basically you have to apply the transformation in form of a Matrix before you render your image.

@Skyppid it is now working thank-you the documentation was very helpful.


Supernote A6X2 requires port 8089 for screen mirroring

It would be great if the port number could be added to the settings.
Currently, port 8080 is hardcoded in the script for the connection. For A6X2 connection failed for that reason.

Hrm, are you certain? On my A5X 8089 is for "Browse & Access" and 8080 is for "Screen Mirroring". Can you please confirm what the Browse and Access port is then?

You are right. Today I got aware about the two different features.
I apologize for my superficial assertion that led to the ticket.


calibre: 5.17.0 -> 5.24.0

No need to pin zeroconf to older version.
Override apsw to compile with load_extension support. [1]

[1] https://bugs.launchpad.net/calibre/+bug/1935747
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Relase notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 132238 at 598266b3 run on x86_64-linux 1

1 package built successfully:

calibre

1 suggestion:

warning: unused-argument
Unused argument: fetchFromGitHub.
Near pkgs/applications/misc/calibre/default.nix:4:3:
  |
4 | , fetchFromGitHub
  |   ^


Notifications

This PR is more of a proposal than actual functionality.
The first commit shows the improved notification for the permission create API. If createNotification is set to true, it would create an entry in a Bazaar notification table for the recipient of the permission. We can then show these notifications on the Bazaar dashboard. This is basically what we discussed on the last call.
Given that we need such a notification table, I proposed a notification API in the second commit that allows for creating, handling, and listing notifications directly. I dont know if it is a good idea as I have trouble gauging its usefulness and am unsure if we could open the door for notification spamming. What do you think, @paddyohanlon @alevy?

Ok, as discussed, I made the notifications API private alpha to discourage usage until we have tested it further.


askthecode doesn't work

No matter what I say or what question I ask, "askthecode" clearly doesn't connect, and it keeps repeating nonsense. I am a paid user, and it used to work fine before. However, for the past month, I have been facing this issue, and I still can't use it. Is there an issue with your server?
It always say like this：It seems that I have not yet received the response containing the repository structure or relevant information. I will proceed with fetching the structure to gain more insights into the repository. I'll update you with the results as soon as possible.
Please bear with me for a moment.
It seems that I have not yet received the response containing the repository structure or relevant information. I will proceed with checking the structure to gather more details before continuing.
Let me go ahead and request the structure for you now.
It seems that I have not yet received the response containing the repository structure or relevant information. I will proceed with checking the structure to gather more details before continuing.
Let me go ahead and request the structure for a deeper analysis.
It seems that I have not yet received the response containing the repository structure or relevant information. I will proceed with checking the structure to gather more details before continuing.
Let me go ahead and request the structure for a deeper analysis.
It seems that I have not yet received the response containing the repository structure or relevant file data. I will proceed to request more information about the repository structure.
Let me continue retrieving additional repository structure information for you. Please stay tuned.
I like askthecode in the past but now it makes me sad.

Hi @cfmcyl1024,
I'm sorry to hear that you're experiencing issues with AskTheCode. To assist you better, could you please either share the email associated with your subscription here or send it to me at<EMAIL_ADDRESS>This information will help me locate the specific issue you're encountering in the logs.
In the meantime, I will investigate the problem further to understand what might be causing the behavior you're describing.
Thank you!

It seems it can't access the private repo and only has access to template or default project

@nathan-jobrain Thank you for providing additional details!
Based on the logs, it appears that for some users, AskTheCode fails to retrieve GitHub tokens from PluginLabs. This results in only public repositories being accessible. Unfortunately, I am unable to reproduce the issue on my end, as I can successfully query my private repositories.
Could you please try re-logging in to confirm this assumption? If re-logging in resolves the issue for you, I will coordinate with the team at PluginLabs to investigate further.
The reason re-logging in might help is that the token may have expired on their side. Re-logging in would simply recreate the token and potentially resolve the issue.

Thanks for getting back to me, I thought so. Let me retry and I will let
you know.
Thanks 😊
On Sun, Dec 1, 2024, 12:30 Denis Somok @.***> wrote:

@nathan-jobrain https://github.com/nathan-jobrain Thank you for
providing additional details!
Based on the logs, it appears that for some users, AskTheCode fails to
retrieve GitHub tokens from PluginLabs. This results in only public
repositories being accessible. Unfortunately, I am unable to reproduce the
issue on my end, as I can successfully query my private repositories.
Could you please try re-logging in
https://docs.askthecode.ai/authentication/#subscription-quota-not-applied
to confirm this assumption? If re-logging in resolves the issue for you, I
will coordinate with the team at PluginLabs to investigate further.
The reason re-logging in might help is that the token may have expired on
their side. Re-logging in would simply recreate the token and potentially
resolve the issue.
—
Reply to this email directly, view it on GitHub
https://github.com/askthecode/documentation/issues/48#issuecomment-2510239157,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGDUQDRDGQGWB7G5TRAY2J32DNWXBAVCNFSM6AAAAABSY6WI7GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJQGIZTSMJVG4
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hi @dsomok i tried multiple times, i check network since i thought it could be something related to network didn't work.
Cleared the cookies, retried logging in and out in chat - open ai and using the Log out / Login for Ask code upon manual({Privacy Setting > Connected Accounts > Logout } :

One more detail, it acts like that even if you Log out:

Wow, thanks for sharing, that looks very strange - it is actually not sending any requests to the backend API at all!
Could you please share some sample prompt you are using?
When I try it even with the simplest prompt, it seems to make API calls, I've highlighted with red the indication of API request:

Another question is if you are using any custom instructions or not?

Interesting after our conversation now i see this permission button, it wasn't there before:

After clicking on it it worked.
@dsomok answering on your question, yes "I use custom instructions" its quite detailed as well and there are git links included, that could be the reason, just mark as possibility. Hope that helps.

Custom Instructions
I would like to be a successful person. I want to build a machine learning for my Software Recruitment business. It is fun and I am enjoying it, please give me the best options that you can think of, as if you care about me, and wish me the best approach, calculate, think of the way out, be creative and kind.
Teach me things I may be missing.
Right now I am working on Next.js with the Next13 version and React18 for the website. Please help me customize it to suit the platform.
Please follow the latest trends and best guide you can find on the internet related to that version.
And consider this when you write a response:

We use Next 14 with the /app directory instead of pages for Next.js.

When we work on the backend, we want to use:
AWS Step Functions Lambda Orchestration

"How would you like ChatGPT to respond?"
I would like to receive best practices regarding how to write the code, all related topics with the back-end, and when asked to work on the code, please refer to the version we are building. In my case, it is the latest Next13 version with the /app directory and React18 version.
We are using the shadcn framework.
Please help me write the best components for the website using the best information and practices you can find.
To eliminate my time on searching the internet and so you and I can learn and improve together:

For each instruction toward code, keep the original template and analyze how we can rewrite it. Instead, provide detailed instructions on how to rewrite it:

For each line: what to replace.
For each logic: what to use instead.
Which variables to replace.
Which library to import, and so on.

For every function, please write TSDoc comments or similar comments before each function.

After each fix or commit, when it is done, provide a commit summary so I can copy-paste it according to semantic versioning.

When you give a semantic version commit message, never use the BREAKING CHANGE tag.

Oh cool, happy to hear that it works for you now.
And thanks for sharing your custom instructions, I cannot see anything that could interfere with the way GPTs work.
Sometimes issues like this happen just because of the new releases in ChatGPT itself. This can also explain why the GPT can work for people in certain regions and be broken in another regions.

@dsomok Actually that makes a lot of sense, i noticed that ChatGPT capabilities for reading zip files, has been instructed to answer that it can't do that anymore, so most likely some changes in recent release could have indeed be responsible, good thing Ask The Code is working, thanks for helping out.
Happy Coding!
https://www.linkedin.com/in/nathansinelnikov/

Interesting:

@dsomok whenever you have time, idk if it will keep happening or what caused it, i want to know, and if there others who have similar problem, @cfmcyl1024 what's your status?

Can you access a specific chat or I have to share it first? In recent days I had a long chat where severals thing don;t work systematically. Here is the summary of only one of the problems:

Initial Attempt to Commit a File
Action: You requested me to commit refined_specification_of_phase_5.md to your GitHub repository.
Result: The commit failed with an error indicating the provided repository URL wasn’t recognized as valid.

Debugging and Further Attempts
Action: You expressed that this issue might be related to a bug in the system, as you had experienced similar problems earlier.
Result: Subsequent attempts to commit the file also failed with a similar error, despite the repository URL being valid.

Testing with a Different Repository
Action: I tested committing to a different repository (not owned by you) to check whether the issue was specific to your repository or a broader problem.
Result: The commit failed in the other repository as well. The error related to a confirmation token issue indicated a systemic problem with the commit functionality.

Outcome
The root issue seems to be related to the GitHub commit functionality not working correctly in the current environment.
You successfully highlighted the issue as a recurring bug.

@jsbien Interesting, thanks for sharing. 👍

Also for all those who are reading, it stopped glitching when instead of "Always" allow option for privacy, i set to ask everytime.

@jsbien Thanks for sharing! I'll try to reproduce the issue on my side. I can see that it mentions the confirmation token. Let me explain a bit about how the commit functionality currently works.
Since committing changes can corrupt the files in the repository, I was trying to reduce unintentional or unvalidated commits as much as possible. The current flow looks similar to this:

GPT makes a request to the backend to commit some changes (create, update, or delete the file).
The backend responds that GPT should present the changes to the user and explicitly ask for confirmation. Additionally, the backend includes the confirmation token in the response and asks GPT to provide it back with the next request once the user explicitly confirms the changes.
Once the changes are reviewed and confirmed again, the new request is sent to the backend, this time including the confirmation token as well.
The changes are propagated to the repository.

I'll test committing the changes on my side and will get back to you.
@nathan-jobrain Thanks for letting me know that those issues stopped reproducing for you. Most likely, the issue was on the OpenAI side.

Sorry for the late reply. I’ve been really busy these days, working more than ten hours a day, and often don’t even have time to eat. Once I finish the tasks at hand, I’ll email you and discuss the issues I’ve encountered in detail. I really want to continue using AskTheCode, and if this GPT service is no longer available, it will be something I can hardly accept or adjust to. Thank you for your response.

@cfmcyl1024 Sure, please reach out once you will have a time to and I will be happy to help


magnav - Navigational Compass

Compensates for tilt and roll and gives a surprisingly stable heading as long as calibration is diligent. The standard compass could easily be updated with the compensation routine however, I am not sure if the calibration data would be sufficiently robust to let it work.
One possibility is a calibration app as even though the data probably differs a lot between Bangles, it seems to remain stable for at least a few days.
An improvement in this app would be some way of giving the users some feedback on the quality of calibration and even a buzz when sufficient waving about had been done:)

That's great - thanks! Really nice to have the calibration data saved.


nix-shell to respect system's overlays

It seems like sharedOverlays and overlaysBuilder are only applied as argument to import <channel> { overlays = ... } instantiation; This makes nix-shell not see those overlays, and therefore neither packages and overrides set on them, to appear and be available in dev environments.
Is there a way to make nix-shell (and maybe other tools which deal with channels and nixpkgs) to see "materialized" versions of nixpkgs (or current, system, or other channels) including overlays set system-wide?

I am not quite sure what you mean. You are able to access pkgs with overlays from self.pkgs. Here is an example:
❯ repl
nix-repl> flake.pkgs.x86_64-linux.nixpkgs.g-firefox.pname
"firefox"

I personally use custom repl which is committed in to this repository but there should be no difference between repl's. Probably what you are looking for is using self.pkgs.<system>.<channel>.<your package from overlay> from within nix develop

Maybe an example will make it easier to explain:
Imagine you have an overlay, adding a new packageA to nixpkgs input/channel, and both nix.generateNixPathFromInputs = true; and nix.generateRegistryFromInputs = true;
When using nixpkgs (or pkgs) in a host inside mkFlake, you can reference and use packageA: this is possible because nixpkgs is imported with { overlay }
If you try to use the nixpkgs channel somehow else, e.g. nix-shell -p packageA or nix-build '<nixpkgs> -A packageA, it instantiates the channel from the linked source in store, and therefore does NOT include the overlay.
I'm not sure if there's a way to materialize in store a channels-compatible source which would be the same (including overlay and config) from what the instance look to modules inside mkFlake.

yes, it is possible to do this kind of thing:
nix shell /etc/nixos#pkgs.x86_64-linux.nixpkgs.g-firefox
nix build /etc/nixos#pkgs.x86_64-linux.nixpkgs.g-firefox

However may I recommend writing some bash helper for this to avoid verbosity
I generally don't need what you described but you might find this function helpful:
nix-cd () {
	cd $(nix eval --expr "(builtins.getFlake "flake:self").outputs.pkgs.x86_64-linux.nixpkgs.$1.outPath" --impure --raw)
}

This function changes directory to the package of my machine in case I need to inspect it. Works with overlays
Can we close this issue?

Yes, we can close the issue. Sure, you can use flakes since output exposes the nixpkgs instance already with overlay applied, and this is the more modern solution; just the channels links don't, but I'd say that is already deprecated in this world of flakes.
Thank you.


Testing best practice

What is the best practice to test graphql-yoga server ?  I'd like to use chai testing like in express for instance. Is it possible ?

@Edweis Do you by any chance have an example of how to do a mutation with data?

@Edweis Do you by any chance have an example of how to do a mutation with data?
Instead of: .send({ query: '{ feed { id }}' }); use: .send({ query:  `mutation { ${mutation} }` })

Hey @Edweis @dunatron @Knautiluz  we @the-guild-org are the new maintainers for this project. We are working actively on v2 to address all the issues. Testing is a critical part of software development and the new Yoga Server comes with built in way to test https://www.graphql-yoga.com/docs/testing. You can try out the beta release @graphql-yoga/node@beta and give us feedback. Thanks!


dyld: Library not loaded: /System/Library/Frameworks/MetalKit.framework/MetalKit

I have added framework to the target,but only run the framework on 8.1 simulators ,it doesn't work, the error is this:
dyld: Library not loaded: /System/Library/Frameworks/MetalKit.framework/MetalKit
Referenced from: /private/var/mobile/Containers/Bundle/Application/8454DA05-F872-497A-A44A-F6261169E57B/EUCIMManager.app/Frameworks/WebRTC.framework/WebRTC
Reason: image not found

add copy files  of this framework   will do!


fix(flow): Arrange get range with batch unaligned

I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
What's changed and what's your intention?
Fix arrangement's batches's interaction with get by range unaligned with batch boundaries. Related tests are added and commented in details.
Checklist

[ ]  I have written the necessary rustdoc comments.
[ ]  I have added the necessary unit tests and integration tests.
[x]  This PR does not require documentation updates.

rest LGTM

Forget to send them...


wamrc: Add --stack-usage option

@wenyongh i updated after your feedback. thank you.

I am all OK with the code.
I am just curious about how to use it, May I have a quick show on it?

I am all OK with the code.
I am just curious about how to use it, May I have a quick show on it?

spacetanuki% ~/git/wasm-micro-runtime/wamr-compiler/b2/wamrc -o toywasm.aot --stack-usage=toywasm.su toywasm
Create AoT compiler with:
  target:        x86_64
  target cpu:    skylake
  cpu features:
  opt level:     3
  size level:    1
  output format: AoT file
Compile success, file toywasm.aot was generated.
spacetanuki% head toywasm.su
WASM Module:aot_func#0  0       static
WASM Module:aot_func#1  0       static
WASM Module:aot_func#2  8       static
WASM Module:aot_func#3  40      static
WASM Module:aot_func#4  8       static
WASM Module:aot_func#5  104     static
WASM Module:aot_func#6  72      static
WASM Module:aot_func#7  72      static
WASM Module:aot_func#8  40      static
WASM Module:aot_func#9  72      static
spacetanuki%


Maximum size of action server goal (guestimate)?

(this is more a Q&A than an actual issue, but Discussions are not enabled, so my apologies for posting it as an issue)
Would you happen to know, off the top of your head, what the maximum size would be for an action goal to still make it to a Client, via an Agent? I'm specifically referring to an action goal here, but as that's transmitted via services, that'd also be OK I believe.
This is related to #217 and #247, as while we've been able to get everything to work with your advice, we're trying to determine the limits to various things, and notice action goals for which the Micro-ROS Agent prints [==>> DDS <<==] [...] len: 67776 [...] don't make it to the Client (a FollowJointTrajectory action goal in this specific case).
There is no warning or error printed AFAICT, the messages just seem to vanish. No traffic to the Client either (Wireshark).
Before diving into the various packages, I thought I'd ask, as you may already be able to point us in a certain direction.
Context: UDPv4 Client, UCLIENT_TWEAK_XRCE_WRITE_LIMIT=OFF, UCLIENT_UDP_TRANSPORT_MTU=2048, RMW_UXRCE_MAX_HISTORY=4 and RMW_UXRCE_STREAM_HISTORY=32.
thanks

Edit: the Client application should have been given ample space to receive the goal (by configuring a micro_ros_utilities_memory_conf_t with values for size higher than the goal being sent uses/needs).

Some details about DDS-XRCE.
DATA sub-messages are exchanged between the client and the agent in order to transmit DDS payloads from the client to the agent (in publishers, requesters, and repliers) or from the agent to the client (when dealing with subscriptions, requesters, and repliers).
This DDS-XRCE DATA sub-message has a lenght field in its subheader of 16 bits, that means that the maximum payload will be about 65 kB (with an MTU that allows that).
When dealing with fragmentation, the same happens because the whole DDS-XRCE DATA sub-message (subheader + payload) will be chopped into smaller fragments. That means that the maximum payload is still about 65 kB even if the fragmentation is used.
What happens when a micro-ROS client tries to publish a big message? It depends:

If size < MTU it fits in an XRCE message and will be sent as it
If size > MTU && size < (MTU*UXRCE_OUTPUT_STREAM_HISTORY), the message will be chopped into fragments and each fragment will be allocated in a different XRCE message and the whole buffer (all XRCE messages) will be flushed to the agent and the agent will reconstruct the original DATA submessage from the FRAG submessages.
If size > MTU && size > (MTU*UXRCE_OUTPUT_STREAM_HISTORY) && size < 2^16 B the message will be chopped into fragments but the fragments do not fit in the buffer so, fragments will be prepared, the serializer will start serializing data and every time the XRCE output buffer is full the FRAG messages will be flushed to the agent. The agent will know when it should stop saving fragments and should regenerate the DATA message from FRAGs because the final frag has a bit enabled in its header. This is known as continuous serialization mode, and you can see the implementation here and here. Agent will know that the regenerated DATA submessage will be ok if all the FRAG payloads matches the DATA length in the DATA subheader.
If size > MTU && size > (MTU*UXRCE_OUTPUT_STREAM_HISTORY) && size > 2^16 B Same as above but the DATA length is set to 0, so the agent needs to rely on receiving all fragments correctly (and this should be like this because XRCE reliability) and will assume that the regenerated DATA submessage is correct. The final FRAG will have the last_fragment_bit enabled. This is the UCLIENT_TWEAK_XRCE_WRITE_LIMIT, and it is off-standart.

What happens when a micro-ROS Agent tries to send a DATA payload to micro-ROS client:

If size < MTU it fits in an XRCE message and will be sent as it.
If size > MTU && size < (MTU*UXRCE_INPUT_STREAM_HISTORY), the message will be chopped into fragments and each fragment will be allocated in a different XRCE message and the whole buffer (all XRCE messages) will be flushed to the client and the client will reconstruct the original DATA submessage from the FRAG submessages.
If size > MTU && size > (MTU*UXRCE_INPUT_STREAM_HISTORY), same as above but the client will fill its buffers with the first UXRCE_INPUT_STREAM_HISTORY FRAGs and the FRAG number UXRCE_INPUT_STREAM_HISTORY+1 will be never acknowledged because it does not fit in the client's memory. So the agent will be trying to retrieve the client's acknowledge of the FRAG UXRCE_INPUT_STREAM_HISTORY+1 but it will never be received.

Headers are not taken into account in the above formulas, so they are not literal. Just a reference.
As we can see there is a couple of problems here:

The client does not have dynamic memory so it won't be able to accept DATA messages split in more FRAG than UXRCE_INPUT_STREAM_HISTORY
If the agent tries to send more FRAGs than UXRCE_INPUT_STREAM_HISTORY the client buffer will be blocked. @Acuadros95 we should take a look on that.

Answering your question @gavanderhoorn, the agent won't send a DATA payload (fragmented or not) to the client if it greater than 2^16 B because of standard limitation.

Thanks for the extensive info @pablogs9.
I'd understood max payload is 64K, also based on our use of UDPv4 in the client.
But the intricacies of how MTU and the other variables interact were beyond my current understanding.
Thanks again

2. If the agent tries to send more FRAGs than UXRCE_INPUT_STREAM_HISTORY the client buffer will be blocked. @Acuadros95 we should take a look on that.

will you open an issue for this, or would you want me to open one?

The client does not have dynamic memory so it won't be able to accept DATA messages split in more FRAG than UXRCE_INPUT_STREAM_HISTORY

This may be something we could change (ie: enable dynamic memory). But for something like a FollowJointTrajectory goal, it will essentially mean we can accept goals up-to a size which would fit in memory.
Would something like the continuous publication, but then for subscription be possible? Deserialisation would perhaps be difficult to implement, and not all messages would be compatible (dependencies between fields), but it could help overcome these problems.

will you open an issue for this, or would you want me to open one?

Feel free to open an issue.

Would something like the continuous publication, but then for subscription be possible? Deserialisation would perhaps be difficult to implement, and not all messages would be compatible (dependencies between fields), but it could help overcome these problems.

This solution may be possible, but currently, there are no plans for implementing any solution in that sense.

will you open an issue for this, or would you want me to open one?

Feel free to open an issue.

which tracker should I open this issue on? The Micro-ROS-Agent repository?
I believe you have a better insight into what the actual issue is.
I'd be willing to open one, but my summary of the issue would probably be "messages larger than a certain size seem to 'disappear'".

I'd be willing to open one, but my summary of the issue would probably be "messages larger than a certain size seem to 'disappear'".

That's enough
micro-ROS Agent is a good place.
Thanks!

I've opened https://github.com/micro-ROS/micro-ROS-Agent/issues/143.

Can we close this in favor of the new one @gavanderhoorn ?

Yep.
thanks for the guidance.


ws4sqlite does not listen on IPv6 socket even when started with an IPv6 address

$ ws4sqlite --bind-host '[::]' --mem-db mem1 &
ws4sqlite 0.11.1
- Serving database 'mem1' from :memory:?_journal=WAL
  + No config file loaded, using defaults
  + Using WAL
- Web Service listening on [::]:12321

$ curl https://[::1]:12321
curl: (7) Failed to connect to ::1 port 12321: Connection refused

$ netstat -l -n -p | grep 12321
tcp        0      0 <IP_ADDRESS>:12321           <IP_ADDRESS>:*               LISTEN      4060941/ws4sqlite

Thank you for reporting the issue. I will look into it during the weekend; it must be some misconfiguration of the underlying Fiber stack.

In the meanwhile, please note that https is not directly supported (it's in your curl connection string), see here.

@Chaz6 I think I found the issue. If I publish the fix in the develop branch, are you able to compile it and test? If not, you could tell me which OS/arch your system is and I can provide a binary. Of course, if you'll be so kind to beta-test it; if not I'll try some more and publish it in due time.
Also, connecting to https://... hangs curl, so be sure to use http://.

Closed in 0.11.2

That works, thanks!
$ netstat -l -n -p | grep 12321
tcp6       0      0 :::12321                :::*                    LISTEN      225268/ws4sqlite


Default lunch command

This closes #1 and #16
This is still a draft pr

Should probably add whisper/single person reply to this before merging.

Should probably add whisper/single person reply to this before merging.

This functionality is called ephemeral messages, and has been added.

I feel the default should be sending the current day to the user issuing the command rather than the week. But if you feel differently we'll go for that.

Should probably add whisper/single person reply to this before merging.

This functionality is called ephemeral messages, and has been added.
Should probably rename some of the variables and structs used, MenuItem contains multiple dishes not a single dish as the name implies.
This would look something like this, feels less readable, but at the same time the resulting code would clearer.
#[derive(Deserialize, Debug)]
#[serde(rename_all = "PascalCase")]
pub struct SomeBetterNameThanMenuItem {
  date: String,
  #[serde(rename= "Title")]
  main_course: String,
  #[serde(rename= "VeganMenu")]
  vegan_course: String,
  soup_of_the_day: String,
}

This looks way better, will implement

I feel the default should be sending the current day to the user issuing the command rather than the week. But if you feel differently we'll go for that.

I'm both ways, personally I'd use more /lunch week if that were the case, rather than the day. For the daily cron job on the other hand, that should only be the day imo.

Fair, I'll revert this change

I feel the default should be sending the current day to the user issuing the command rather than the week. But if you feel differently we'll go for that.

I'm both ways, personally I'd use more /lunch week if that were the case, rather than the day. For the daily cron job on the other hand, that should only be the day imo.

I implemented actually the opposite, it is more for testing purposes. I'm thinking if we want this command to have an argument at all. i.e. /lunch will give you the week and the daily reminder will give you the day.

I feel the default should be sending the current day to the user issuing the command rather than the week. But if you feel differently we'll go for that.

I'm both ways, personally I'd use more /lunch week if that were the case, rather than the day. For the daily cron job on the other hand, that should only be the day imo.

I implemented actually the opposite, it is more for testing purposes. I'm thinking, do we want this command to have an argument at all. I.e. /lunch is a stand alone that only gives you the week and the daily reminder will give you the day?

After giving this some thought I think this is the most sensible solution.

LGTM :100:


Fullscreen while video is not playing

Can we open a video in fullscreen, while it is not playing?
Thank you and great work!

It play because call startButton.performClick().
You open fullscreen and not call startButton.performClick().


Add PremiumV2 sku to geo-regions enum

This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information

[x] The title of the PR is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
[x] Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
[x] If applicable, the PR references the bug/issue that it fixes.
[x] Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

[x] I have read the contribution guidelines.
[x] My spec meets the review criteria:

[ ] The spec conforms to the Swagger 2.0 specification.
[ ] The spec follows the guidelines described in the Swagger checklist document.
[ ] Validation tools were run on swagger spec(s) and have all been fixed in this PR.

@LukaszStem,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

No modification for AutorestCI/azure-sdk-for-node

 https://github.com/Azure/azure-sdk-for-ruby/pull/993

No modification for AutorestCI/azure-sdk-for-node

 https://github.com/Azure/azure-sdk-for-python/pull/1729


Minimal code refactoring

Hey, I tried to make some code refactoring... hope you need this.

P.S. I'm not english, so there could be some language errors in the comments of the file

Oh, before I forget it, there is a small bug, I think, on the blankGrid() function, because if you try to create the array with let #name = new Array(4) ... the program does not work as it should

(this I noticed on a WINDOWS computer)


When open camera surface in RedMi 10T 5G app crashes🐛

What were you trying to do?
@ChristophGr  When open camera for recording video in RedMi 10T 5G device it crashes generating a huge bug report
The Bug report is given below & my simple coding is below
const devices = useCameraDevices();  const [isFont, setIsFont] = useState(true); let deviceId = isFont == true ? devices.back : devices.front //checking for camera and microphone permission if (device == null) {         return <ActivityIndicator size={20} color={'red'} />;       } return(  <View style={{ height: height}}>                 <Camera                     ref={camera}                     style={StyleSheet.absoluteFill}                     isActive={isRecording}                     video={true}                     audio={true}                     device={deviceId}                 />             </View> );
Reproduceable Code
No response
What happened instead?
java.lang.IllegalStateException: Surface was requested when the Recorder had encountered error androidx.camera.video.internal.ResourceCreationException: androidx.camera.video.internal.encoder.InvalidConfigException: Encoder cannot created: null
at androidx.camera.video.Recorder.onSurfaceRequested(Recorder.java:406)
at androidx.camera.video.VideoCapture.createPipeline(VideoCapture.java:416)
at androidx.camera.video.VideoCapture.resetPipeline(VideoCapture.java:482)
at androidx.camera.video.VideoCapture.lambda$createPipeline$0$androidx-camera-video-VideoCapture(VideoCapture.java:433)
at androidx.camera.video.VideoCapture$$ExternalSyntheticLambda0.onError(Unknown Source:10)
at androidx.camera.camera2.internal.Camera2CameraImpl.lambda$postSurfaceClosedError$14(Camera2CameraImpl.java:1175)
at androidx.camera.camera2.internal.Camera2CameraImpl$$ExternalSyntheticLambda7.run(Unknown Source:4)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:210)
at android.os.Looper.loop(Looper.java:299)
at android.app.ActivityThread.main(ActivityThread.java:8306)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:576)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1073)
Relevant log output
No response
Device
RedMI 10T 5G
VisionCamera Version
2.15.4
Additional information

[ ] I am using Expo
[X] I have read the Troubleshooting Guide
[X] I agree to follow this project's Code of Conduct
[X] I searched for similar issues in this repository and found none.

I am also having this issue in my app.
some specific devices throw this error when opening the camera, all of them in android 12.
POCO camellian, Redmi lancelot, Redmi miel.
this is the logcat for the issue:
Exception java.lang.IllegalStateException: Surface was requested when the Recorder had encountered error androidx.camera.video.internal.ResourceCreationException: androidx.camera.video.internal.encoder.InvalidConfigException: Encoder cannot created: null
  at androidx.camera.video.Recorder.onSurfaceRequested (Recorder.java:406)
  at androidx.camera.video.VideoCapture.createPipeline (VideoCapture.java:416)
  at androidx.camera.video.VideoCapture.resetPipeline (VideoCapture.java:482)
  at androidx.camera.video.VideoCapture.lambda$createPipeline$0$androidx-camera-video-VideoCapture (VideoCapture.java:433)
  at androidx.camera.video.VideoCapture$$ExternalSyntheticLambda0.onError
  at androidx.camera.camera2.internal.Camera2CameraImpl.lambda$postSurfaceClosedError$14 (Camera2CameraImpl.java:1175)
  at androidx.camera.camera2.internal.Camera2CameraImpl$$ExternalSyntheticLambda13.run
  at android.os.Handler.handleCallback (Handler.java:938)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loopOnce (Looper.java:211)
  at android.os.Looper.loop (Looper.java:300)
  at android.app.ActivityThread.main (ActivityThread.java:8282)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:576)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1074)

i am using react-native-vision-camera v2.15.4

    implementation "androidx.camera:camera-core:1.2.0-beta02"
    implementation "androidx.camera:camera-camera2:1.2.0-beta02"
    implementation "androidx.camera:camera-lifecycle:1.2.0-beta02"
    implementation "androidx.camera:camera-video:1.2.0-beta02"
    implementation "androidx.camera:camera-view:1.2.0-beta02"
    implementation "androidx.camera:camera-extensions:1.2.0-beta02"

place this inside your android/app/build.gradle inside dependencies prop.

Closing as this is a stale issue - this might have been fixed with the full rewrite in VisionCamera V3 (🥳) - if not, please create a new issue.
If your issue has been fixed, consider sponsoring me on GitHub to say thanks 💖


refactor: use tap_core::tap_eip712_domain

Solve for issue: https://github.com/graphprotocol/indexer-rs/issues/115

@gusinacio
Would appreciate your review.

Hello @Yashbit, thank you for the contribution. It looks good to me, could you check our CI jobs, there are a few failing.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>8
Details

5 of 9 (55.56%)  changed or added relevant lines in 3 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+0.02%) to 70.555%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

common/src/indexer_service/http/indexer_service.rs
0
4
0.0%

Files with Coverage Reduction
New Missed Lines
%

common/src/tap/checks/deny_list_check.rs
1
98.21%

Totals

Change from base Build<PHONE_NUMBER>8:
0.02%

Covered Lines:
4488

Relevant Lines:
6361

💛  - Coveralls

Hey @YashBit, It looks like Clippy is still failing. Try running it with cargo clippy --all-targets --all-features.

@gusinacio Done. If PR works, please do assign me the feature issue that I have requested.

Hey, @YashBit, it's still failing

could you rebase and fix the conflict? I cannot run the CI without it.

@gusinacio There seems to be some problem with the CI checks.
Please could you suggest the best course of action?
I apologize, but I have run all the commands from my end, and resolved all errors.

So, I recommend you performing:
git remote add graph git@github.com:graphprotocol/indexer-rs.git
git pull graph main --rebase

Try to solve conflicts that may emerge using git tool.
After that, you probably need to run:
cargo clippy --all-targets --all-features

And fix them one by one until it's not showing any errors. Let me know how that goes.

Also, our CI uses Rust 1.80.
Maybe you need to set your rust version to it:
rustup install 1.80
rustup override set 1.80
cargo version

@gusinacio Sorry about that. It was all in the rustc version.
Thanks for your help. Will it be possible for us to hop on a short call online? I have talked to some people at The Graph. Would love to draft a plan of contributions.


Choose column name for state

It would be nice if the column name matched the name given when calling
state_machine :altenative_name

How can you make use of multiple state machines on a single object if you can't specify the column name?


add leader selection 2.2

https://github.com/open-cluster-management/backlog/issues/10163
Signed-off-by: Dominique Vernier<EMAIL_ADDRESS>

/lgtm


Reset does not clear char buffer

After resetting and/or loading in a new program, pushing the char buffer will show what was in it previously

This is fixed in the latest build. Not yet released though.


Update README with new device codes values

Issue

Link: https://github.com/NebraLtd/helium-miner-software/issues/892
Summary: Updated the README to reflect the new steps for retrieving a docker-compose respective to the owned device.

How
Updated the README, please let me know if anything else should be added or removed.
Checklist

[x] Documentation added

@shawaj When you have the chance let me know if all of this seems accurate. Thank you!


ng-grid 2x version

how to achieve $scope.gridApi.core.refresh();
actually my aim is to refresh the column heared once the new header is populated.
in ng-grid 2x version

I'm not sure that it's necessary to call refresh in 2.x.  What specifically are you trying to achieve?

Actually I want to push data from server into the already existing columndef,I am able to push some dummy  local (defined locally) objects into it but the server objects are also pushed in to it but the grid column is not rendered again. I follow https://github.com/angular-ui/ng-grid/issues/128 issue but it holds good for local data I am unable to work it out for server data.


[WIP] Add Rtls abstraction

Q
A

Bug fix?
yes/no

New feature?
yes/no

Doc update?
yes/no

BC breaks?
yes/no

Deprecations?
yes/no

Relative Issues
#

This is left here just for reference until we finish the proper one.

This is obsoleted by #113


How can I select multiple statuses?

I'd like to see all issues that neither DONE nor REJECTED e.g.
jira issue list -s~"Done" -s~"Rejected" -a$(jira me)

But this doesn't work -- it always takes just the last filter. I can't see this anywhere in the documentation but I think this is a common scenario. If there isn't a way to do this, I'll open a feature request.

Hi @emmanuelnk, -s option only takes a single value at the moment so the command above won't work. You can do something like below to filter issues in multiple statuses.
jira issue list -q"status not in (Done, 'To Do')"

Thank you that works! Closing

Doesn't seem to be working with --show-all-issues and sprint list:
jira sprint list 14581 -q"status in (To Do, Open)" --show-all-issues


Issue in VespaDocker deployment

Hi I am new to Vespa.
I am using pyvespa 0.34.0 on ubuntu 22.04 through jupyter notebook.
I have docker desktop installed and running.
I am getting PermissionError on running below command
from vespa.package import ApplicationPackage
app_package = ApplicationPackage(name="textsearch")
from vespa.package import Field

app_package.schema.add_fields(
    Field(name = "id",    type = "string", indexing = ["attribute", "summary"]),
    Field(name = "title", type = "string", indexing = ["index", "summary"], index = "enable-bm25"),
    Field(name = "body",  type = "string", indexing = ["index", "summary"], index = "enable-bm25")
)
from vespa.package import FieldSet
app_package.schema.add_field_set(
    FieldSet(name = "default", fields = ["title", "body"])
)
from vespa.package import RankProfile

app_package.schema.add_rank_profile(
    RankProfile(name = "bm25", first_phase = "bm25(title) + bm25(body)")
)
app_package.schema.add_rank_profile(
    RankProfile(name = "native_rank", first_phase = "nativeRank(title, body)")
)
import os
from vespa.deployment import VespaDocker
vespa_docker = VespaDocker()
app = vespa_docker.deploy(application_package=app_package)

Now in the last step, I am getting following error:
PermissionError                           Traceback (most recent call last)
File ~/anaconda3/envs/openAI/lib/python3.9/site-packages/urllib3/connectionpool.py:703, in HTTPConnectionPool.urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
    702 # Make the request on the httplib connection object.
--> 703 httplib_response = self._make_request(
    704     conn,
    705     method,
    706     url,
    707     timeout=timeout_obj,
    708     body=body,
    709     headers=headers,
    710     chunked=chunked,
    711 )
    713 # If we're going to release the connection in ``finally:``, then
    714 # the response doesn't need to know about the connection. Otherwise
    715 # it will also try to release it and we'll have a double-release
    716 # mess.

File ~/anaconda3/envs/openAI/lib/python3.9/site-packages/urllib3/connectionpool.py:398, in HTTPConnectionPool._make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
    397     else:
--> 398         conn.request(method, url, **httplib_request_kw)
    400 # We are swallowing BrokenPipeError (errno.EPIPE) since the server is
    401 # legitimately able to close the connection after sending a valid response.
    402 # With this behaviour, the received response is still readable.

File ~/anaconda3/envs/openAI/lib/python3.9/site-packages/urllib3/connection.py:244, in HTTPConnection.request(self, method, url, body, headers)
    243     headers["User-Agent"] = _get_default_user_agent()
--> 244 super(HTTPConnection, self).request(method, url, body=body, headers=headers)

File ~/anaconda3/envs/openAI/lib/python3.9/http/client.py:1285, in HTTPConnection.request(self, method, url, body, headers, encode_chunked)
   1284 """Send a complete request to the server."""
-> 1285 self._send_request(method, url, body, headers, encode_chunked)

File ~/anaconda3/envs/openAI/lib/python3.9/http/client.py:1331, in HTTPConnection._send_request(self, method, url, body, headers, encode_chunked)
   1330     body = _encode(body, 'body')
-> 1331 self.endheaders(body, encode_chunked=encode_chunked)

File ~/anaconda3/envs/openAI/lib/python3.9/http/client.py:1280, in HTTPConnection.endheaders(self, message_body, encode_chunked)
   1279     raise CannotSendHeader()
-> 1280 self._send_output(message_body, encode_chunked=encode_chunked)

File ~/anaconda3/envs/openAI/lib/python3.9/http/client.py:1040, in HTTPConnection._send_output(self, message_body, encode_chunked)
   1039 del self._buffer[:]
-> 1040 self.send(msg)
   1042 if message_body is not None:
   1043
   1044     # create a consistent interface to message_body

File ~/anaconda3/envs/openAI/lib/python3.9/http/client.py:980, in HTTPConnection.send(self, data)
    979 if self.auto_open:
--> 980     self.connect()
    981 else:

File ~/anaconda3/envs/openAI/lib/python3.9/site-packages/docker/transport/unixconn.py:27, in UnixHTTPConnection.connect(self)
     26 sock.settimeout(self.timeout)
---> 27 sock.connect(self.unix_socket)
     28 self.sock = sock

PermissionError: [Errno 13] Permission denied

During handling of the above exception, another exception occurred:

ProtocolError                             Traceback (most recent call last)
File ~/anaconda3/envs/openAI/lib/python3.9/site-packages/requests/adapters.py:489, in HTTPAdapter.send(self, request, stream, timeout, verify, cert, proxies)
    488 if not chunked:
--> 489     resp = conn.urlopen(
    490         method=request.method,
    491         url=url,
    492         body=request.body,
    493         headers=request.headers,
    494         redirect=False,
    495         assert_same_host=False,
    496         preload_content=False,
    497         decode_content=False,
    498         retries=self.max_retries,
    499         timeout=timeout,
    500     )
    502 # Send the request.
    503 else:

File ~/anaconda3/envs/openAI/lib/python3.9/site-packages/urllib3/connectionpool.py:787, in HTTPConnectionPool.urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
    785     e = ProtocolError("Connection aborted.", e)
--> 787 retries = retries.increment(
    788     method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
    789 )
    790 retries.sleep()

File ~/anaconda3/envs/openAI/lib/python3.9/site-packages/urllib3/util/retry.py:550, in Retry.increment(self, method, url, response, error, _pool, _stacktrace)
    549 if read is False or not self._is_method_retryable(method):
--> 550     raise six.reraise(type(error), error, _stacktrace)
    551 elif read is not None:

File ~/anaconda3/envs/openAI/lib/python3.9/site-packages/urllib3/packages/six.py:769, in reraise(tp, value, tb)
    768 if value.__traceback__ is not tb:
--> 769     raise value.with_traceback(tb)
    770 raise value

File ~/anaconda3/envs/openAI/lib/python3.9/site-packages/urllib3/connectionpool.py:703, in HTTPConnectionPool.urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
    702 # Make the request on the httplib connection object.
--> 703 httplib_response = self._make_request(
    704     conn,
    705     method,
    706     url,
    707     timeout=timeout_obj,
    708     body=body,
    709     headers=headers,
    710     chunked=chunked,
    711 )
    713 # If we're going to release the connection in ``finally:``, then
    714 # the response doesn't need to know about the connection. Otherwise
    715 # it will also try to release it and we'll have a double-release
    716 # mess.

File ~/anaconda3/envs/openAI/lib/python3.9/site-packages/urllib3/connectionpool.py:398, in HTTPConnectionPool._make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
    397     else:
--> 398         conn.request(method, url, **httplib_request_kw)
    400 # We are swallowing BrokenPipeError (errno.EPIPE) since the server is
    401 # legitimately able to close the connection after sending a valid response.
    402 # With this behaviour, the received response is still readable.

File ~/anaconda3/envs/openAI/lib/python3.9/site-packages/urllib3/connection.py:244, in HTTPConnection.request(self, method, url, body, headers)
    243     headers["User-Agent"] = _get_default_user_agent()
--> 244 super(HTTPConnection, self).request(method, url, body=body, headers=headers)

File ~/anaconda3/envs/openAI/lib/python3.9/http/client.py:1285, in HTTPConnection.request(self, method, url, body, headers, encode_chunked)
   1284 """Send a complete request to the server."""
-> 1285 self._send_request(method, url, body, headers, encode_chunked)

File ~/anaconda3/envs/openAI/lib/python3.9/http/client.py:1331, in HTTPConnection._send_request(self, method, url, body, headers, encode_chunked)
   1330     body = _encode(body, 'body')
-> 1331 self.endheaders(body, encode_chunked=encode_chunked)

File ~/anaconda3/envs/openAI/lib/python3.9/http/client.py:1280, in HTTPConnection.endheaders(self, message_body, encode_chunked)
   1279     raise CannotSendHeader()
-> 1280 self._send_output(message_body, encode_chunked=encode_chunked)

File ~/anaconda3/envs/openAI/lib/python3.9/http/client.py:1040, in HTTPConnection._send_output(self, message_body, encode_chunked)
   1039 del self._buffer[:]
-> 1040 self.send(msg)
   1042 if message_body is not None:
   1043
   1044     # create a consistent interface to message_body

File ~/anaconda3/envs/openAI/lib/python3.9/http/client.py:980, in HTTPConnection.send(self, data)
    979 if self.auto_open:
--> 980     self.connect()
    981 else:

File ~/anaconda3/envs/openAI/lib/python3.9/site-packages/docker/transport/unixconn.py:27, in UnixHTTPConnection.connect(self)
     26 sock.settimeout(self.timeout)
---> 27 sock.connect(self.unix_socket)
     28 self.sock = sock

ProtocolError: ('Connection aborted.', PermissionError(13, 'Permission denied'))

During handling of the above exception, another exception occurred:

ConnectionError                           Traceback (most recent call last)
File ~/anaconda3/envs/openAI/lib/python3.9/site-packages/docker/api/client.py:214, in APIClient._retrieve_server_version(self)
    213 try:
--> 214     return self.version(api_version=False)["ApiVersion"]
    215 except KeyError:

File ~/anaconda3/envs/openAI/lib/python3.9/site-packages/docker/api/daemon.py:181, in DaemonApiMixin.version(self, api_version)
    180 url = self._url("/version", versioned_api=api_version)
--> 181 return self._result(self._get(url), json=True)

File ~/anaconda3/envs/openAI/lib/python3.9/site-packages/docker/utils/decorators.py:46, in update_headers.<locals>.inner(self, *args, **kwargs)
     45         kwargs['headers'].update(self._general_configs['HttpHeaders'])
---> 46 return f(self, *args, **kwargs)

File ~/anaconda3/envs/openAI/lib/python3.9/site-packages/docker/api/client.py:237, in APIClient._get(self, url, **kwargs)
    235 @update_headers
    236 def _get(self, url, **kwargs):
--> 237     return self.get(url, **self._set_request_timeout(kwargs))

File ~/anaconda3/envs/openAI/lib/python3.9/site-packages/requests/sessions.py:600, in Session.get(self, url, **kwargs)
    599 kwargs.setdefault("allow_redirects", True)
--> 600 return self.request("GET", url, **kwargs)

File ~/anaconda3/envs/openAI/lib/python3.9/site-packages/requests/sessions.py:587, in Session.request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
    586 send_kwargs.update(settings)
--> 587 resp = self.send(prep, **send_kwargs)
    589 return resp

File ~/anaconda3/envs/openAI/lib/python3.9/site-packages/requests/sessions.py:701, in Session.send(self, request, **kwargs)
    700 # Send the request
--> 701 r = adapter.send(request, **kwargs)
    703 # Total elapsed time of the request (approximately)

File ~/anaconda3/envs/openAI/lib/python3.9/site-packages/requests/adapters.py:547, in HTTPAdapter.send(self, request, stream, timeout, verify, cert, proxies)
    546 except (ProtocolError, OSError) as err:
--> 547     raise ConnectionError(err, request=request)
    549 except MaxRetryError as e:

ConnectionError: ('Connection aborted.', PermissionError(13, 'Permission denied'))

During handling of the above exception, another exception occurred:

DockerException                           Traceback (most recent call last)
Cell In[10], line 1
----> 1 app = vespa_docker.deploy(application_package=app_package)

File ~/anaconda3/envs/openAI/lib/python3.9/site-packages/vespa/deployment.py:203, in VespaDocker.deploy(self, application_package, debug)
    192 def deploy(
    193     self,
    194     application_package: ApplicationPackage,
    195     debug: bool = False,
    196 ) -> Vespa:
    197     """
    198     Deploy the application package into a Vespa container.
    199     :param application_package: ApplicationPackage to be deployed.
    200     :param debug: Add the configured debug_port to the docker port mapping.
    201     :return: a Vespa connection instance.
    202     """
--> 203     return self._deploy_data(application_package, application_package.to_zip(), debug)

File ~/anaconda3/envs/openAI/lib/python3.9/site-packages/vespa/deployment.py:238, in VespaDocker._deploy_data(self, application, data, debug)
    230 def _deploy_data(self, application: ApplicationPackage, data, debug: bool) -> Vespa:
    231     """
    232     Deploys an Application Package as zipped data
    233
   (...)
    236     :return: A Vespa connection instance
    237     """
--> 238     self._run_vespa_engine_container(
    239         application_name=application.name, container_memory=self.container_memory, debug=debug
    240     )
    241     self.wait_for_config_server_start(max_wait=CFG_SERVER_START_TIMEOUT)
    243     r = requests.post(
    244         "http://localhost:{}/application/v2/tenant/default/prepareandactivate".format(
    245             self.cfgsrv_port
   (...)
    249         verify=False,
    250     )

File ~/anaconda3/envs/openAI/lib/python3.9/site-packages/vespa/deployment.py:107, in VespaDocker._run_vespa_engine_container(self, application_name, container_memory, debug)
    101 def _run_vespa_engine_container(
    102     self,
    103     application_name: str,
    104     container_memory: str,
    105     debug: bool,
    106 ) -> None:
--> 107     client = docker.from_env(timeout=DOCKER_TIMEOUT)
    108     if self.container is None:
    109         try:

File ~/anaconda3/envs/openAI/lib/python3.9/site-packages/docker/client.py:96, in DockerClient.from_env(cls, **kwargs)
     94 version = kwargs.pop('version', None)
     95 use_ssh_client = kwargs.pop('use_ssh_client', False)
---> 96 return cls(
     97     timeout=timeout,
     98     max_pool_size=max_pool_size,
     99     version=version,
    100     use_ssh_client=use_ssh_client,
    101     **kwargs_from_env(**kwargs)
    102 )

File ~/anaconda3/envs/openAI/lib/python3.9/site-packages/docker/client.py:45, in DockerClient.__init__(self, *args, **kwargs)
     44 def __init__(self, *args, **kwargs):
---> 45     self.api = APIClient(*args, **kwargs)

File ~/anaconda3/envs/openAI/lib/python3.9/site-packages/docker/api/client.py:197, in APIClient.__init__(self, base_url, version, timeout, tls, user_agent, num_pools, credstore_env, use_ssh_client, max_pool_size)
    192 # version detection needs to be after unix adapter mounting
    193 if version is None or (isinstance(
    194                         version,
    195                         str
    196                         ) and version.lower() == 'auto'):
--> 197     self._version = self._retrieve_server_version()
    198 else:
    199     self._version = version

File ~/anaconda3/envs/openAI/lib/python3.9/site-packages/docker/api/client.py:221, in APIClient._retrieve_server_version(self)
    216     raise DockerException(
    217         'Invalid response from docker daemon: key "ApiVersion"'
    218         ' is missing.'
    219     )
    220 except Exception as e:
--> 221     raise DockerException(
    222         f'Error while fetching server API version: {e}'
    223     )

DockerException: Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied'))

I am not able to find any solution for this. Could someone please help me out?

Should be asked in pyvespa. Apologies!

It seems like pyvespa is not allowed to connect to the Vespa instance inside the Docker container? I am not familiar with running this notebook on ubuntu - I would verify that the port forwards are correctly set up on 19071 and 8080, and that you can access these from a terminal


Cannot change the kind of metrics due to metric kind mismatch

What did you do?
Originally, my application exposed a counter metric of some name.
I changed it to a gauge metric of the same name.
What did you expect to see?
The metric continues to work.
What did you see instead? Under which circumstances?
The logs of the prometheus pod show:
caller=queue_manager.go:568 component=remote msg="Unrecoverable error sending samples to remote storage" err="rpc error: code = InvalidArgument desc = One or more TimeSeries could not be written: Metric kind for metric external.googleapis.com/prometheus/my_metric must be CUMULATIVE, but is GAUGE.: timeSeries[10]"

The metric no longer receives any data.
Environment
GKE cluster.
Solution

Used projects.metricDescriptors/delete API to delete the existing metric (I'm not sure if these step was needed)

Restarted the stackdriver-prometheus application in every cluster

Hi Jimmy, thanks for reporting! Using projects.metricDescriptors/delete API to delete the existing metric was the right fix. Restarting stackdriver-prometheus shouldn't be necessary.
Having to update the metric descriptor this way is a product decision by Stackdriver, to prevent accidentally losing data due to writes with incompatible descriptors. We realize this behavior is different from Prometheus.
I'll update our FAQ at https://cloud.google.com/monitoring/kubernetes-engine/prometheus soon.


Add missing quotes in SolutionGenerationHook.cs

Add missing quotes in SolutionGenerationHook.cs to determine the assembly name in the .sln file.
When we find already added projects in AddProjectToSolution() content.Contains("" + projectName + "") can return "true" if we have several projects and one of them contains the name of the project in its path.

Indeed. Thanks


Update README.md

Updated the usage example for es6, we are not exporting default icons object but these are named exports

fixed in new version


Hybrid Cloud

This Epic encompasses all Multi-Environment Istio capabilities. (see vocabulary: https://goo.gl/An5Qg2)
Among others:

Istio running in Raw VM that join a cluster (implemented - v0.2)
Istio running in a "cluster" entirely composed of Raw VMs
Istio running on multiple K8s clusters from same Environment
Istio running on multiple K8s clusters in multiple Environments

environments tag already existed with 9 tasks so deleting the "new" one to have only one
not sure if prefixing labels with istio- inside the istio repo makes sense?

I just tried to access the vocabulary document above and access seems to be restricted.
I requested access. However as I already requested access to other design documents with no response yet I thought I'd ask here as well.

Are you a member of<EMAIL_ADDRESS>? All docs are in the community drive, accesible to istio-dev.

No, I wasn't. Thanks.

All issues resolved, no updates for 1year, closing


Accessory bug

It appears there may be a potential accessory bug in your simulator. They will always fail.

Thanks for letting me know,
Will roll out fix in a bit.

Should be fixed with https://github.com/kodycode/Black-Desert-Enhancement-Simulator/pull/14


for loop using a function throws error

index.vto:
{{ for await member in getMembers() }}
        <p>{{ member.followers_url.length }}</p>
{{ /for }}

xodium.index.ts:
export function getMembers(): Promise<unknown[]> {
  return GithubService.getData("members");
}

is how i import it. i thought first it was because the script got imported at the end of the file but moving it up doesnt work either.
i have no clue what iam doing wrong, this is the error message:
Caused by: Error: Invalid for loop: for await member in getMembers()

For loops syntax is for ... of, not for ... in.

iam sorry iam really blind, it litterly shows so in the documentation

okay i fixed that but now it doesnt recognize my function from my imported script?
Caused by: TypeError: it.getMembers is not a function

you can export this function from a _data.ts file so it's available in vento:
// _data.ts

export function getMembers() {
 ...
}

ooo so thats what the data file is for, okay noted, thank you greatly.
another thing, which i came to stumble upon, is that when i have this:
// _data.ts
import { GithubService } from "xodium/utils/github";

export function getMembers(): Promise<unknown[]> {
    return GithubService.getData("members");
}

i come to a point where for example githubservice uses my localstorageservice which uses build-in localStorage from \asset\lib.deno.window.d.ts:
  static getItem(key: string): string | number | boolean | object | null {
    const itemStr = localStorage.getItem(key);
    if (!itemStr) return null;
    try {
      const item: StoredItem = JSON.parse(itemStr);
      if (item.expiry && Date.now() > item.expiry) {
        localStorage.removeItem(key);
        return null;
      }
      return item.value;
    } catch (e) {
      console.error("Error parsing stored item", e);
      return null;
    }
  }

however i get this message:
error: Uncaught (in worker "") (in promise) ReferenceError: localStorage is not defined
const itemStr = localStorage.getItem(key);
is it because i dont have it defined in my _data? because using this with .js code works perfectly fine.

Mmmm, Lume builds the site in a Worker, but looks like localStorage object is not available from workers.
Is localStorage access required? I don't know if there's a way to emulate it.

I kinda need it to store some data otherwise I will get over my GitHub api rate limit, would be wasteful to not reuse it as long as nothing changes

Yk what I can temporarily disable this for dev purposes and enable it when i push it to production as it seems that building it with lume works fine.

Yes, only the serve task is run in a Worker context.
But this is a unfortunate limitation. I'll look into it.

@illyrius666 I just implemented localStorage support in server mode. Can you confirm if it works fine?
You have to upgrade Lume to the latest development version (deno task lume upgrade --dev). If it works fine, I'll release a new stable version.

@oscarotero log:
 *  Executing task: deno task serve

Task serve deno task lume -s
Task lume echo "import 'lume/cli.ts'" | deno run -A - "-s"
Loading config file file:///workspaces/IllyrionWebsite/_config.ts
Download ⣾ [00:05] 222/225
error: Uncaught (in worker "") (in promise) Error: The service was stopped
      if (error) return callback(new Error(error), null);
                                 ^
    at https://deno.land/x/esbuild@v0.24.0/mod.js:943:34
    at Object.responseCallbacks.<computed> (https://deno.land/x/esbuild@v0.24.0/mod.js:597:9)
    at afterClose (https://deno.land/x/esbuild@v0.24.0/mod.js:588:28)
    at https://deno.land/x/esbuild@v0.24.0/mod.js:1788:11
    at eventLoopTick (ext:core/01_core.js:175:7)
error: Uncaught (in promise) Error: Unhandled error in child worker.
    at Worker.#pollControl (ext:runtime/11_workers.js:204:19)
    at eventLoopTick (ext:core/01_core.js:175:7)

 *  The terminal process "/usr/bin/zsh '-c', 'deno task serve'" terminated with exit code: 1.
 *  Terminal will be reused by tasks, press any key to close it.

do you have a repo where I can reproduce this?

do you have a repo where I can reproduce this?

https://github.com/XodiumSoftware/XodiumSoftware.github.io
its the repo for my website, and its public, you have my permission to use it to reproduce the error. use branch: v2.0.2

Thanks!
It was a bug. It should work fine now.
Can you upgrade Lume again (deno task lume upgrade --dev) and confirm if it's work fine?


audio metadata issue

Checklist

[ ] I'm asking a question
[ ] I've looked through the README and FAQ for similar questions
[ ] I've searched the bugtracker for similar questions including closed ones

Question

WRITE QUESTION HERE
Hello everyone,
I was hoping i could get help with wv downloader
I keep getting this error:
ERROR - client - Could not find audio metadata
ERROR - client - cannot auto select audio language
How can i fix this?
Thank you

Wait this is closed?

why?

this is an issue tracker for youtube-dl, not WV Downloader.


Fix Windows builds for R; update OSs for Ubuntu 18 deprecation

Fix installation of rspm CLI on Windows, correcting the URL to specify an ?os=[linux|windows] query
Use new --succeed-on-existing flag for rspm add commands, as the previous || echo "already uploaded" was suppressing the Windows CLI errors
Replace GHA-deprecated Ubuntu 18 with Ubuntu 22
Add R 4.2 to build matrix

So the --succeed-on-existing flag didn't work, I think because the new package actually has a different checksum (build date) than the existing one, and --succeed-on-existing only covers the identical checksum case:
Error: Error: error installing package: Package 'packageManagerDemo' with version '1.0.1' is identical to an existing package.

I'm looking into this more, but we'll probably have to switch back to the || echo method.


fix macos gcc build by removing unneeded obj-c deps

MacOS build breaks when building with gnu tools via:
CC=gcc-8 CXX=g++-8 cmake ..

Apple builds currently require clang due to Objective-C deps. Turns out gcc support for modern obj-c 2.0 is not trivial without a rabbit hole of GNUstep and what not.  Apple specific use of obj-c was isolated to sx_os_numcores and a bit of NSLog, both of which can be replaced with simpler solutions without such heavy handed os deps.
This pull request allows mac builds with gcc, opening potential use with such things as gcc LTO.  clang still works, only diff being lighter-weight binaries.  I have not tested impact with iOS targets.

@septag, done & done


client.scheduleCompaction should handle not creating duplicate keys for compaction requested

In a scenario when schedule compaction is invoked one after another, it is possible to get the same timestamp for multiple compaction invocations.

@bvaradar

already fixed on master..


Code smell- Unnecessary imports should be removed

Why the issue is relevant?
The unused/ unnecessary imports should be removed as it distracts the developer and also makes the code hard to read and maintain.

2)How do you address this issue and why do you think your solution solves the problem?
We have removed the import statement since it is unused from the java file (line 28) :
**

import static org.apache.commons.io.IOUtils.closeQuietly;

**
Removing these unnecessary imports can improve the readability of the code and also makes it easier while maintenance.

The change looks ok, but your pull request contains also many other unrelated changes in the code, hence rejected.


fixes #149 - Updated ignored classes for default orders to solve pote…

Updated ignored classes for default orders to solve potential issues with character movement

Thanks for the PR!


Add examples on how to pass custom JAVA variables to Azure Functions.

It would good to include details on how to pass variables to the Java runtime.
For example: how do I pass -Djava.net.preferIPv4Stack=true to my Java function?

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

ID: e656bde5-b5d8-8d80-b7b3-ab430e57613e
Version Independent ID: 329eb12f-7302-4ecf-c1bf-a50ba3f34bdf
Content: Create your first function in Azure with Java and Maven
Content Source: articles/azure-functions/functions-create-first-java-maven.md
Service: azure-functions
GitHub Login: @rloutlaw
Microsoft Alias: routlaw, glenga

Hi @kaushalp Thank you for your feedback! We will review and update as appropriate.

@kaushalp  This has been tracked here : https://github.com/Azure/azure-functions-java-worker/issues/171
The option you are referring to is already part of the default JVM options we use. Please see : https://github.com/Azure/azure-functions-java-worker/blob/dev/worker.config.json#L7 for the complete list of JVM options.
We have recently fixed typo for IPv4Stack and fix will be released by end of this month. For now, you can set the option explicitly by adding an App Setting as shown below:

APP SETTING NAME
VALUE

languageWorkers:java:arguments
-Djava.net.preferIPv4Stack=true

@KetanChawda-MSFT Thanks. I am aware of the thread and Pragna has responded to me. My ask is that we include this in the documentation so that it can be easily found.

@kaushalp I have assigned the issue to the content author to evaluate and update as appropriate.

@kaushalp We will now proceed to close this thread as the issue is being handled through above-referenced items. If there are further questions regarding this matter, please comment and we will gladly continue the discussion.


skip traversing branches without the "word"

inspired by #58.
running the benchmark against jquery:
before:

  $ for i in {1..5}; do node detect.js; done
  118
  115
  117
  111
  112

after:

  $ for i in {1..5}; do node detect.js; done
  98
  94
  96
  100
  94

I hate san francisco. I miss new york. I'm bored at home on halloween.


Why do we need Context as a struct/class?

Pls let me know if this is right place to post this sort of comment.
Refer to:
let trainingContext = Context(learningPhase: .training)
let untrainedLogits = model.applied(to: firstTrainFeatures, in: trainingContext)

Wondering why we need a whole class or struct "Context". It looks like the single piece of external info is ".training"? So why can't this be an enum. I may be asking something naive here though. But this looks simpler:
let untrainedLogits = model.applied(to: firstTrainFeatures, withContext: .training)

This is a design question we are actively exploring. Ideally we don’t want the user to pass this argument at all in their implementation of ‘applied(to:in:)’ method because it’s just boilerplatey. Follow our mailing list and we’ll have many discussions about this topic soon!

Thanks. Can you pls kindly point out what mailing list this is, I can join it.
If there's someway to infer the context without explicit needing to pass, then that will be great.

Hi @kechan,
Here's the Swift for TensorFlow mailing list, and here's the original thread/proposal PR introducing the Context class.
You can search for "context" to find previous discussion about the Context design - more discussions coming soon!

The in: context parameter has been removed in the latest design. The new design is now easier to use when combined with Layer being a callable object:
let untrainedLogits = model(firstTrainFeatures)

This will be released in Swift for TensorFlow v0.3.