Raspberry pi ARM compilation

It compiles fine on my x86_64 .
On my raspberry pi 4  running Debian Bookworm (Linux RPi4 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux), I needed to add a include  into passwd_extract.cpp
diff --git a/passwd_extract.cpp b/passwd_extract.cpp
index e61e5d9..532cfcb 100644
--- a/passwd_extract.cpp
+++ b/passwd_extract.cpp
@@ -6,6 +6,7 @@
 #include <cstdio>
 #include <cstring>
 #include <algorithm>
+#include <memory>
 #include <minizip/unzip.h>
 #include <openssl/conf.h>
 #include <openssl/evp.h>

I did not create a pull request as I do not know what you want to do with it.
Edit: The RPi4 version works fine as well. I already tried it on a 7870 firmware (MKD 7870_UI2_2000x1200_国外付费语音_20240124_lzp.zip)

The proposed change committed. Thx!


Fix small typo

Proposed changes in this pull request
Fix small typo
Checklist

[ ] New tests have been added
[ ] npm test passes successfully
[ ] Documentation has been updated

@amir20 to review

Thanks!


Adding MA support

Adding power arch to travis
ensuring go-bindata generates via go get

What does this PR do?
Attempts to add support for power arch
Motivation
Making this work for non-intel arch
More

[ ] Added/updated tests
[ ] Added/updated documentation

Additional Notes

Hello,
Travis is not used to running tests or to build binaries.
We only used Travis to build the documentation.
Thanks anyway.
Duplicate of https://github.com/traefik/traefik/pull/7212#issuecomment-680060568

@ldez - thanks for the info about travis,yml update , but what about exp.Dockerfile file changes in this PR , this change was needed to create traefik docker image on non-intel platforms as this binary - https://github.com/containous/go-bindata/releases is not supported on non-intel.  wdyt ?

The docker images are not created from these Dockerfile.
This Dockerfile is used only to create some experimental images.

Guess this is the official traefik image's dockerfile repo - https://github.com/containous/traefik-library-image - ? and there could be an option of adding power support here - https://github.com/containous/traefik-library-image/blob/master/alpine/Dockerfile ? is that correct , just confirming my understanding - @ldez  ?

The Dockerfiles used to create the official image are is this repo https://github.com/containous/traefik-library-image
There are several files: tmplv1.Dockerfile, tmplv2.Dockerfile


Vendorization 2022-07-30

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
26 unchanged lines in 6 files lost coverage.
Overall coverage decreased (-0.5%) to 81.89%

Files with Coverage Reduction
New Missed Lines
%

src/main/python/pybuilder/plugins/python/coverage_plugin.py
1
53.05%

src/main/python/pybuilder/plugins/python/_coverage_util.py
1
9.89%

src/main/python/pybuilder/remote/init.py
1
75.87%

src/main/python/pybuilder/reactor.py
4
91.36%

src/main/python/pybuilder/utils.py
6
80.19%

src/main/python/pybuilder/python_env.py
13
69.04%

Totals

Change from base Build<PHONE_NUMBER>:
-0.5%

Covered Lines:
5062

Relevant Lines:
6139

💛  - Coveralls


Publish Helm Chart as OCI Registry

Helm supports OCI based registries for a while now. https://helm.sh/docs/topics/registries/
It would be nice if we could publish the helm chart in an OCI registry aswell (i.e. on dockerhub or GHCR). This would allow users to cache the images in their own infrastructure.
Other organizations like Bitnami (Dockerhub) or prometheus (GHCR) do this and there are GitHub actions available.

Welcome to send PRs for this!


Overriding responseObjectForResponse in an AFJSONResponseSerializer subclass incorrectly populates error object on request success.

I'm using Xcode 7, Swift 2, AFNetworking 2.6.1.
I have an AFJSONResponseSerializer subclass in which I'd like to override responseObjectForResponse so that I can parse out response body data into an error object upon request failure.
When I override this method with a simple call to super like so:
    override func responseObjectForResponse(response: NSURLResponse?, data: NSData?) throws -> AnyObject
    {
        return try super.responseObjectForResponse(response, data: data)
    }

and the request receives a successful HTTP status code, this method is called and subsequently the serializationError object is incorrectly populated by the superclass. In other words the task's completionHandler always receives an error, even when the request was successful.
If I comment out my method override all works as expected. Based on this post and the answer mentioning using the NS_SWIFT_NOTHROW macro, it seems like something is amiss when Swift 2's new error handling is in the mix.
Adding NS_SWIFT_NOTHROW to the objc method signature fixes the issue. But seems like a hacky resolution. Any other ideas?

I believe this is the same issue as #2810?

@kcharwood seems like they're both caused by a similar oddity with Swift 2's throws behavior. But symptoms / use cases are a little different.
The user who reported that issue is seeing failed requests report as success when using the AFHTTPRequestOperation APIs and overriding responseObjectForResponse.
Whereas I'm seeing successful requests report as failures when using the AFURLSessionManager APIs and overriding responseObjectForResponse.
So I guess they are the same issue since they both are triggered by overriding responseObjectForResponse :cake:

https://github.com/AFNetworking/AFNetworking/pull/3130 addresses this.
Thanks!
:beers:


[Feature Request] Remove promoted "trend" from What's happening panel?

So recently (within the past two weeks?) a change was made that shoved advertising into the "What's happening" panel. I noticed it because I have that panel set to Japan, and suddenly was inundated with English-language content and film advertisements. Would it be possible to remove the advertisements while leaving the actual algorithmic content?

Well, looks like this request is moot because Musk went and replaced the whole freaking Trending panel with an "Explore" ad space.

Reopening as the "Explore" ad space was reverted, but then despite a few brief wonderful days of the old trending panel coming back, the changes written about in the original issue have been reinstated.


hide scrollbars on pinned columns

Not really reviewing this--I thought I'd only blocked in the pinned case on purpose but I'm sure you have a reason for removing that. I'll make you a contrib, good idea, or you guys can fork. Either way :)


adds commas into input boxes within thead

Hi  - best solution I've found yet to the debacle which is FF dropping table scrolling in 4+.  However, there seems to be an issue when you have input fields in any of the  tags when the table is contained within a form. When i submit the form (back to the same page), your jquery is populating (somewhat randomly) commas into the input text fields I have in the second row of my two row header. Has this been encountered before and/or work around been achieved yet?

Hi Ed
To be honest I haven't tested the plugin on tables with input elements in the header, but I think I know why it's causing problems: The plugin works by making a hidden copy of the header which is made sticky using position fixed and only shown when the original header is moved out of the viewport. This means that your form will have two input fields with the same name. My guess is that the value of these may be concatenated using a comma on some platforms.
I don't have a workaround at hand, but I suppose you could use javascript to ensure the two sets of input elements always are "in sync" (onkeyup), and that only one of them is sent to the server on submit.
If you come up with a solution I'd love to see it :)
Hope it helps
Jonas


Fix: p2p suggestions

Some suggested changes to P2P after a discussion

Let's get this merged, as soon as possible, please.

I think this is ready, are you guys OK with squash-merging this into master?

I think this is ready, are you guys OK with squash-merging this into master?

Quite frankly, I don't care, squash or not. Let's see if someone else has a different opinion. We talk latest about this during the daily.


edited markdown and removed final inference section

Description

I edited the markdown in the 01 notebook and removed the last section which inference on the generated model. this will be moved to the 00 in another PR

Related Issues

Checklist:

[x] I have followed the contribution guidelines and code style for this project.
[x] I have added tests covering my contributions.
[x] I have updated the documentation accordingly.
[x] This PR is being made to staging and not master
[x] I will squash merge this PR into staging

Discussed feedback during brief call.

For the display for loop, which i removed but am now adding back, it was originally inferencing on the 8s video.


Name gets new value just on "Enter" not selecting with mouse

The name of the option selected is just visible after "ENTER" click ... is it possible to show the selected value on mouse click instead "Enter" click?

I just realize that the click with mouse works just if the click is above the name ... if you click in any component space else, it doesnt work


[Feature]: Login and register API

Contact Details
No response
What feature are you requesting?
This is a sub issue of #138
Login and register API ,  simple one should work , no need to change the data structure of current account , there are already user management API in backend , update them to support anonymous user

The route /api/auth/signin asks both username and email to login, which in most applications there's only one field called account..Is it really necessary?

The route /api/auth/signin asks both username and email to login, which in most applications there's only one field called account..Is it really necessary?

Forget the email in login,  it's totally not necessary and I'm going to remove email in login


Fix texture is not released issue.

If tbm_surface is not valid, we need release tbm_surface, when
flutter engine acquire external texture. if tbm_surface is not
released, the next frame cannot be rendered.

Can't DestructionTbmSurface be reused in PopulateTextureWithIdentifier and ~ExternalTextureGL as the code all look similar?

Can't DestructionTbmSurface be reused in PopulateTextureWithIdentifier and ~ExternalTextureGL as the code all look similar?
Good suggestion,Thank you~


Missing Element Desktop client

Describe the bug
When I want to accept the invite and continue further in Element Desktop, it just opens the web based Element not the Desktop app. There is no way to select Element Desktop.
To Reproduce
Steps to reproduce the behaviour:

matrix.to invite link
(enable experimental clients)
No link to open Element Desktop client?

Expected behaviour
The link should trigger the browser to open a locally installed application in this case Element app.
Desktop (please complete the following information):

OS: Linux
Browser: Firefox

Take an example of how Telegram does it correctly, eg: https://t.me/lbryofficial

matrix.to also gives a element:// protocol, e.g.: element://vector/webapp/#/user/@fossdd:matrix.org. On a brand-new-installed firefox: it works. Which version to you use?

I think the devs solved it..? Because before I always was redirected to the web version...

So does this work on your side and this issue can be closed?

Yes, it works on my side! Thanks


Vi shortcut keys

Would love if we could set it to use vi key shortcuts!
This is a super cool project! Have always wanted to use my keyboard to control the mouse!!!

The Mac OS text editing shortcuts and the Emacs ones require modifiers to be held down to activate, which has the benefit of not conflicting with the character sequences (regardless of whether you're in element-based nav mode, or grid-based nav mode).
To support vi bindings, we'll either need a way to enter a special mode that disables sequence entry, or alternatively (my preference, I think) we could add a new way to invoke Scoot. Currently we have these global shortcuts for activating Scoot:

⇧⌘J: Use element-based navigation (bring Scoot to foreground)
⇧⌘K: Use grid-based navigation (bring Scoot to foreground)

We could add something like:

⇧⌘L: Bring Scoot to foreground (without activating any navigation mode)

When Scoot is invoked this way, we wouldn't need to worry about any bindings conflicts. (What should this mode be called? Manual mode? Headless mode? Naming things is hard...)
[Sidenote: all these global keyboard shortcuts really need to be customizable. That's being tracked in #7.]
As for the vi shortcuts themselves, I'm not familiar with the bindings (apart from a passive understanding of what hjkl does). What should all the bindings be (and are there any special expectations around how they should compose together?). It would be really helpful if you (or another interested user) could augment these tables with the equivalent (or equivalent-ish) vi bindings:
Cursor Movement

System
Emacs
Description

↑
C-p
Move cursor up (partial step)

↓
C-n
Move cursor down (partial step)

←
C-b
Move cursor left (partial step)

→
C-f
Move cursor right (partial step)

⌥↑
M-a
Move cursor up (full step)

⌥↓
M-e
Move cursor down (full step)

⌥←
M-b
Move cursor left (full step)

⌥→
M-f
Move cursor right (full step)

⌘↑
M-<
Move cursor to top edge of screen

⌘↓
M->
Move cursor to bottom edge of screen

⌘←
C-a
Move cursor to left edge of screen

⌘→
C-e
Move cursor to right edge of screen

⌃L
C-l
Move cursor to center, and (on repeat) cycle around corners

Clicking

Shortcut
Description

↵
Click left mouse button (at current cursor location)

⌘↵
Press and hold left mouse button (once activated, type ⌘↵ again to release)

⇧↵
Double-click left mouse button (at current cursor location)

Scrolling

System
Alt
Description

⇧↑
⇧-p
Scroll up (at current cursor location)

⇧↓
⇧-n
Scroll down (at current cursor location)

⇧←
⇧-b
Scroll left (at current cursor location)

⇧→
⇧-f
Scroll right (at current cursor location)

(p.s. thank you for the kind words about the project!)

I think adding a way to get into Scoot without entering into one of the 'jump to' functionalities would be nice in general. I know there is a way to hide the grid when in grid view but would be nice to be able to immediately jump into a view that is not cluttered by that.
Perhaps a Normal mode, at least that would be reminiscent of "vi-world", since that is the mode in which you would typically navigate using vi.

[ ] Would need to change up the way that the grid/element shortcuts are generated to not include the bound keys 'hjkl'. In vi ; is commonly used at the start of shortcuts when letters run out.

Below you can find what I think would make the most sense based on typical vi defaults. Another potential consideration might be to use the leader flow, which is common in vi as well. Most commands could then be prefixed with the assigned leader key, which would then indicate that a command is coming soon.
Cursor Movement

System
Emacs
Vi
Description

↑
C-p
j
Move cursor up (partial step)

↓
C-n
k
Move cursor down (partial step)

←
C-b
h
Move cursor left (partial step)

→
C-f
l
Move cursor right (partial step)

⌥↑
M-a
C-j
Move cursor up (full step)

⌥↓
M-e
C-k
Move cursor down (full step)

⌥←
M-b
C-h
Move cursor left (full step)

⌥→
M-f
C-l
Move cursor right (full step)

⌘↑
M-<
⇧-j
Move cursor to top edge of screen

⌘↓
M->
⇧-k
Move cursor to bottom edge of screen

⌘←
C-a
⇧-h
Move cursor to left edge of screen

⌘→
C-e
⇧-l
Move cursor to right edge of screen

⌃L
C-l
⇧-m
Move cursor to center, and (on repeat) cycle around corners

Clicking

Don't think this needs to be changed.

Shortcut
Description

↵
Click left mouse button (at current cursor location)

⌘↵
Press and hold left mouse button (once activated, type ⌘↵ again to release)

⇧↵
Double-click left mouse button (at current cursor location)

Scrolling

System
Alt
Vi
Description

⇧↑
⇧-p
C-b
Scroll up (at current cursor location)

⇧↓
⇧-n
C-f
Scroll down (at current cursor location)

⇧←
⇧-b
C-i
Scroll left (at current cursor location)

⇧→
⇧-f
C-a
Scroll right (at current cursor location)

I would attempt to help develop but I currently don't have the time to and don't have a very good grasp on Swift.

@mjrusso I tried to sponsor you on GitHub but saw you didn't have that set up yet - would love to see vi bindings/shortcuts here too.

change up the way that the grid/element shortcuts are generated to not include the bound keys 'hjkl'. In vi ; is commonly used at the start of shortcuts when letters run out.

Ah. This approach didn't occur to me before, but it definitely seems like an elegant way to also get vi support in to the element-based nav and grid-based nav modes.
For this, though, I'd definitely only want it enabled for users that explicitly want to opt in to vi bindings.
So: sounds like adding an explicit setting for enabling/disable vi support is the way to go.

@mjrusso I tried to sponsor you on GitHub but saw you didn't have that set up yet - would love to see vi bindings/shortcuts here too.

Thanks @niftylettuce :) I'm not planning on setting up sponsorship at the moment, but I appreciate the sentiment!

Yeah. I would probably have an option for either/or. I think most users who would choose to use vi shortcuts would prefer not messing with eMacs at all and probably vice versa.

This is shaping up pretty nicely. Major outstanding work is updating the documentation (for both the vi bindings and freestyle mode); once that's ready I'll cut a release.
(I punted the settings UI, as that's a can of worms I'm not ready to open right now. For now, you'll need to do a defaults write to turn on vi bindings.)

Docs are updated, and I've landed the changes. (I'll close this issue when I cut a new release.)

New release is out! Give it a shot and let me know what you think: https://github.com/mjrusso/scoot/releases/tag/v0.8


Fix ":" appears twice .

Fix ":" appears twice.
The image of ":" appears twice

In Chinese (zh_cn.json) the "Mod Menu Options" , all ":" appears twice .
I just want fix this.


Notebook asks to restart kernel after running all and scrolling up

Environment data
VS Code Environment:
Version: 1.72.0-insider
Commit: b9f7f85e90b4d51b38fcbf4232801ab04bd659cb
Date: 2022-09-23T08:15:07.186Z
Electron: 19.0.17
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: <IP_ADDRESS>-electron.0
OS: Darwin arm64 21.6.0
Sandboxed: Yes
VS Code Extensions
Jupyter Extension: v2022.9.1002681037 Pre-Release
Python Extension: v2022.15.12631011 Pre-Release
Azure Machine Learning - Remote: v0.19.2022092309 Pre-Release
Azure Data Lake Tools: v0.2.15
Python Environment
Conda: 4.13.0
Python: 3.9.13
Type of virtual environment: Conda + IPyKernel
.net Environment
.net: 6.0.401
Operating System
macOS Monterrey 12.6
Macbook Air (M1, 2020)
Expected behaviour
Scroll up without messages
Actual behaviour
After doing Run All if I go to the bottom of the notebook and then scroll up rapidly it triggers a message asking me if I want to restart the kernel.
Steps to reproduce:

Create a notebook with multiple cells
Run all the cells
Scroll to the bottom of the notebook
Scroll up

@iemejia

After doing Run All if I go to the bottom of the notebook and then scroll up rapidly it triggers a message asking me if I want to restart the kernel.

How are you scrolling, are you using the track pad, mouse or a keyboard shortcut.
I'm on a Mac M1 my self and am unable to repro this issue.
Please could you enable logging as follows:

Open settings & go into Jupyter->Logging
Change the value to verbose
Reload VS Code,
Attempt to repro the issue & then copy the output from the Jupyter output panel.

@DonJayamanne Hi, sorry for the delay. I was traveling last week.
I think I found what is going on. When you execute a long running notebook by clicking on the Run All button and you want to jump to the current executing cell you click multiple times the Go To button, but when the execution is finished the area where the 'Go To' button suddenly becomes the Restart button.
Curiously if you press the Interrupt button (the previously called Run All), the Go To button is still visible but disabled. I wonder if to avoid the confusion we should let the Go To button at all times to make it less error-prone.

@iemejia thanks for providing the details
Not sure if we can do anything here, but I'd defer to @roblourens 's expertise in this area.

I don't understand- your gif doesn't show anything about clicking in the toolbar. But if that's the issue, yeah, we can't necessarily solve it by showing the Go To button all the time because other buttons like RunAll/Interrupt are showing/hiding anyway. I'd rather keep the current behavior and save the toolbar space in most cases.


Context menu jumps away on hover

🐛 Bug report
Looks like something broke with @zag-js/menu in 0.13.0 (see screen capture). 0.12.0 works perfectly fine, but as soon as I upgrade to 0.13.0 or higher the context menu jumps to top-0 / left-0 as soon as the cursor hovers over the menu.
https://github.com/chakra-ui/zag/assets/2703233/fa7a4e9c-abab-4ef0-b767-89c51b96b0a9
💥 Steps to reproduce
See above.
💻 Link to reproduction
Code of my ContextMenu Vue component (basically the same as the example from the docs):

<template>

      <slot />

            <Icon :name="item.icon" />

          {{ item.label }}

</template>

🧐 Expected behavior
Should work like in v0.12.0 and below.
🌍 System information

Software
Version(s)

Zag Version
0.13.x +

Browser
Chrome

Operating System
OSX

📝 Additional information

Thanks for reporting this @toniengelhardt.
It was related to the timings and how Vue updates the style attributes. I've pushed a fix using a more explicit approach.
The regression should be gone in the next release.


PowerApps grid control customizer column filters problem

          Hello everyone, I am having a problem with the controlcustomizer and the column filters. I explain... When I filter some of the columns, sometimes, many times, the funnel icon and the option to clean filters, disappear from the column header. And the times that they don't disappear, when I clean filters, all the results are not shown again. In other words, it is as if I only get the filter the first time and the grid remains with that filter until I refresh the page.

Any help on this would be very welcome. This problem is driving me crazy and is going to force me to remove a control that has taken me many hours of development.
Thanks.
Originally posted by @mianfriH in https://github.com/microsoft/PowerApps-Samples/issues/381#issuecomment-1608931511

Hi @mianfriH ,
What type of column have you implemented with the customizer control?
Does this happen an all columns? Even the ones you don't change with the customizer control?

hi. Some types of columns, lookup, persona, two options and optionsset. The control are customizing around 9 or 10 columns in diferents grids in diferent entities.
Yes, this behaviour are in all columns of the grid, not only the customized columns.
I'm refering to the column filter, but when the problem occurs, it's affecting to de "Edit filter funcionality" When i clean the filters, nothing nothing happens. The appliend filters persist until the page reload.
Do you think that the customization of a lot of column in the same grid, could be the problem?
I am really saddened by this behaviour, because it will throw away many hours of cutomisation work.

On my environment I can reproduce that:

the issue happens also when there is no customizer registered, so standard Power Apps
The issue happens only for some filter criteria:

it works on string columns for every filter criteria
for columns like Optionset, boolean, lookup, the condition like "Contains", "Does not contain", "Begins with", "Does not begin with", "Ends with", "Does not end with" will filter the data, but when we use "Clear filter" after that, the data stays filtered (and the option"clear filter" dissapears. Sometimes we can use the "Edit filters" near the search box to remove the condition, sometimes that also doesn't work .

@mianfriH & @brasov2de
This is a forum for issues related to the sample code stored in this repo.
Is there an issue with one of the samples?
This issue is already a couple months old, so I'm going to close it with the expectation that you have moved on to other things.
If there is something that we can address in the sample code, please comment.


Nonbreaking whitespace corrupts En-Fr and Ro-En vocabulary

FYI, there are non-breaking space characters in some of the Ro-En and En-Fr training files, which causes the nonbreaking whitespace character to be interpreted as a vocabulary word. For instance, we see this in train/roen.lc.plustest.src.vcb:

41390 doliu 10
41391   38
41392 sogor 1

One offending file, for instance, is train/Romanian-English/training/Newspapers/2002.10.02.english.98880.0977.e:

"status seeking    phenomenon in politics"

I fixed this problem by sending the training sentences through sed 's/\xC2\xA0/ /g' (source: https://rmoff.net/2019/01/21/replacing-utf8-non-breaking-space-with-bash/sed-on-the-mac/)
This should perhaps be added to your preprocessing pipeline, since I think the chances of the source published in 2003 being changed are low :)

@kellymarchisio Thanks for the suggestion.
I created a PR https://github.com/lilt/alignment-scripts/pull/8. Somehow I only found non breaking spaces in the Ro>En training data when using sed 's/\xC2\xA0/ /g' and diffing the output with the original file. If you have an example for En>Fr that I missed or feedback on the PR give me a heads up. Otherwise I'll merge it on Friday.

@thomasZen - Sorry about that - En-Fr also broke so I assumed it was the same issue.  Issue there was actually because of these lines in scripts/fast_align.sh
paste -d "~" ${source_path} ${target_path} | sed 's/~/ ||| /g' > ${source_name}_${target_name}
paste -d "~" ${target_path} ${source_path} | sed 's/~/ ||| /g' > ${target_name}_${source_name}

The En-Fr training data contains a legitimate ~ so one line was converted to 1220 ||| 0.1 ||| 220 because ".1~220" is on the French side.  You can just use this instead:
paste ${source_path} ${target_path} | sed -E 's/\t/ ||| /g' > ${source_name}_${target_name}
paste ${target_path} ${source_path} | sed -E 's/\t/ ||| /g' > ${target_name}_${source_name}

Oh, I missed that. I updated the fastAlign scripts in https://github.com/lilt/alignment-scripts/pull/8/commits/e13f3d688f1d3579d55e69f046d54b522eb1ae76.
If you happen to run the complete fastAlign or Giza pipeline again feel free to update the results in a PR.
And thanks for the improvements!


Cannot update positions

Hello,
Here is the context. I have some categories and subCategories. each subCategories are embeded in a category, it gives
{     "_id" : ObjectId("1"),     "name" : "Category 1",     "subCategories" : [          {             "nom" : "subCat 1",             "position" : 1,             "_id" : ObjectId("2")         },                  {             "nom" : "subCat 2",             "position" : 2,             "_id" : ObjectId("3")         },          {             "nom" : "subCat 3",             "position" : 3,             "_id" : ObjectId("3")         }     ] }
I just want to reorder with a drag and drop all subCategories by updating the position.
with laravel I can update the position with a :
$subcat->update(['position' => $position]);
the update in the database is done but the render does not change.
I think that I have to change the order in the json...
if I want to have subCat 2 in position 1 in the render, I have to have subCat 2 in first position in the json.
I have found that peace of mongodb code (executed directly in the console of robo 3T):
db.getCollection("categories").update(    { _id: ObjectId("1") },    {      $push: {        subCategories: {          $each: [],          $sort: { position: 1 }        }      }    } )
It seems to work fine after the update in laravel but I don't find anything to run that peace of code in laravel.
Could you help (@jenssegers ) ?
Many Thanks

Hello,
Could you please try using raw expression?
Something like this, just and idea, haven't tested.
Product::raw(function($collection) {

 return $collection->update(

    ['_id' => '1'],

    [
        '$push' => [

            'subCategories' => [

                '$each' => [],

                '$sort' => ['position' => 1]

            ]

        ]

    ]);
}

Hello,
with the request you gave me I have an error :
call_user_func_array() expects parameter 1 to be a valid callback, class 'MongoDB\Collection' does not have a method 'update'
I've tried with :
DB::connection('mongodb')->collection('categories', function($collection) use($categoryId)
            {
                $collection->push(
                    ['_id' => $categoryId],
                    [
                        'sections' => [
                            '$each' => [],
                            '$sort' => ['position' => 1]
                        ]
                    ]);
            });`

but nothing is updated

Sorry, change update to findOneAndUpdate

no errors but still nothing :(

you need to cast the categoryId with
Questionnaire::raw(function($collection) use($questionnaireId)
        {
            $collection->findOneAndUpdate(
            ['_id' => new ObjectId($questionnaireId)], // and not just ['_id' => $categoryId]
            [
                '$push' => [
                    'sections' => [
                        '$each' => [],
                        '$sort' => ['position' => 1]
                    ]
                ]
            ]);
        });


x-ms-skip-url-encoding not respected in generated code

Some parameters have "x-ms-skip-url-encoding": true specified in their spec, but the generated client code still wraps the parameter and in a EscapeDataString(...) call, which potentially calls issues when on the server.
For example, the Test-AzResource cmdlet has a -ResourceId parameter, which allows the user to see if the resource with the given id presently exists. Passing in a value for this parameters results in a bad request since all / characters are converted to %2F.
If a parameter has "x-ms-skip-url-encoding": true, we should remove the wrapper EscapeDataString(...) call in the corresponding client.

Fix is in autorest.powershell 2.0.600

Verified that this has been fixed.


Check for reorgs based on block before initial one

Closes #20
Please help me with better names for the exception and improvement of the logging information. :expressionless:

@schmir
Yes, this is such scenario. I guess he tries to find the parent for the genesis block here. So I take your suggestion and parametrize it.
I agree that the run method is kinda messy. But I thought handling the exception here makes sense, cause the self._running variable is here and allows a better overview of the workflow. To improve this, I'm want to make sure to understand you correctly. With I'd rather not do it at all or... you mean just throwing an exception that get not caught and terminate the service by this?
Oh, the restart problem is a very important point!! :expressionless:

With I'd rather not do it at all or... you mean just throwing an exception that get not caught and terminate the service by this?

yes, we do this for every other exception as well (i.e. if parity goes down). I'd rather have cleaner code in the run method and 'messy' exception reporting than the opposite. We can cleanup the exception handling later.

Do you think I should add another error message where the exception is thrown? Or should I replace it? Because I think the information that a block before the initial one is fetched does not tell users enough. :thinking:

I guess he tries to find the parent for the genesis block here

My guess was wrong. It does not work, cause due to the fetch_forward_sync_target makes the service to sync forwards the second time the fetcher is called. This lead to the same problem of the fork, but is not handled. I'm a bit confused why it starts with backward syncing and then go for forward syncing afterwards. I mean this is related to the awkward test scenario of a pretty log max_reorg_depth and a high number of new generation blocks.
So at this point I'm not sure if this isn't actually already the correct error message for this scenario. The other part of this PR is to avoid backward syncing to the genesis block. Syncing forward on a new fork is already handled by this part of the implementation.

I guess he tries to find the parent for the genesis block here.

I analyzed your scenario @schmir and my guess was wrong.
A lot of new blocks get sealed, which are unknown by the monitoring service and must be fetched. Due to the low max_reorg_depth value that is used for the tests, the fetcher switch to sync forward until the last safe block. This fails, because we have a new fork. But since we are in forward sync mode, it gets not detected by this PR.
I think this is a different scenario which is actually already caught by exactly the error message you received. Your sync forward on a fork and that becomes recognized. This happens due to the bad configuration. The purpose of the PR in my thoughts is to avoid the backward syncing to the genesis block.

I think this is a different scenario which is actually already caught by exactly the error message you received. Your sync forward on a fork and that becomes recognized. This happens due to the bad configuration. The purpose of the PR in my thoughts is to avoid the backward syncing to the genesis block.

Does syncing bail out with the same error message if we don't have a fork? If it does, it's a new bug. If it does not, we fail to detect the fork over the initial block, which is what we're trying to do in this PR.

Does syncing bail out with the same error message if we don't have a fork?

I don't see when this should ever happen else. It is exactly the scenario for a reorg an on a block before the initial one. Else the the parent hash is known known for each new fork. As last option the implementation of the syncing could be incorrect. This are the options I see when this error can occur. So actually this scenario was already solved before the PR.

If it does not, we fail to detect the fork over the initial block, ...

As I said in fact it is already what we need to detect reorgs when the monitoring service decides to sync forward (e.g. after stopped and restarted after a long pause) as well as when backward (which is the new stuff).
Having this said, I would say we should think about how to refactor both exception messages. Possibly think about a new shared exception type?

Note:
@schmir and I agreed, that the current exception on forward syncing is not specific enough and that additional checks in this scenario must make sure that we really have a fork here.
Furthermore should both scenarios (backward and forward) raise the same type of exception. This allows to combine both scenarios into one test case scenario with a lot of parametrization.

I adjusted the code related to our recent meetings how to handle recognized forks on backward and forward synchronization. I extended the test cases agreed and hope the documentation is enough for this complex situations. Please let me know if the changes are satisfying.
@jannikluhn I removed the obsolete function _should_sync_forwards. It wasn't used anywhere. assuming it has been just forgot about, I deleted it. Tests are still running as well.

@schmir I have done so and also added a test case for that. All other block resolvers seem to be safe. I'm not sure if having a safe ResolveBlockByNumber safe as well (fall back to genesis or latest block) is better What do you think?

I'm not sure if having a safe ResolveBlockByNumber safe as well (fall back to genesis or latest block) is better What do you think?

I'm not sure what you mean here.

Just something like blocknr = min(blocknr, web3.eth.blockNumber). But thinking about it twice, I think aborting is the better solution to make the user clear that this does not exist, instead of just selecting any other block.

I've pushed another change, which doesn't change the behaviour much, but makes the code a bit cleaner.
Otherwise I'm now fine with the current state, though I do have to admit that I didn't look into the latest tests.
Please review.
I've said it to andreas yesterday and I'll repeat it here: I would have solved that in like 15 minutes and another 15 minutes if I accidentally introduced a bug some years ago when we didn't have this whole code review process in place.


wfastcgi3.0.0 + django 2.1.8 + IIS, WSGI_HANDLER not set

I followed the instructions exactly on the microsoft docs, as well as some youtube videos.
Here is my error and my config
Error occurred while reading WSGI handler:

Traceback (most recent call last):
  File "c:\python\lib\site-packages\wfastcgi.py", line 791, in main
    env, handler = read_wsgi_handler(response.physical_path)
  File "c:\python\lib\site-packages\wfastcgi.py", line 633, in read_wsgi_handler
    handler = get_wsgi_handler(os.getenv("WSGI_HANDLER"))
  File "c:\python\lib\site-packages\wfastcgi.py", line 586, in get_wsgi_handler
    raise Exception('WSGI_HANDLER env var must be set')
Exception: WSGI_HANDLER env var must be set

StdOut:

StdErr:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
    <handlers>
      <add name="Python FastCGI" path="*" verb="*" modules="FastCgiModule" scriptProcessor="C:\python\python.exe|c:\python\lib\site-packages\wfastcgi.py" resourceType="Unspecified" requireAccess="Script" />
    </handlers>
    <httpErrors errorMode="Detailed" />
    <asp scriptErrorSentToBrowser="true" />
  </system.webServer>
  <system.web>
    <customErrors mode="Off" />
    <compilation debug="true" />
  </system.web>
  <appSettings>
      <add key="PYTHONPATH" value="c:\inetpub\wwwroot\project" />
      <add key="WSGI_HANDLER" value="project.wsgi.application" />
      <add key="DJANGO_SETTINGS_MODULE" value="project.settings" />
  </appSettings>
</configuration>

There's nothing that jumps out as being wrong, it's the first time I see a report of that particular error. There may be something about the IIS configuration that is not applying those keys as environment variables? I remember reading about some people have permissions not set correctly that affected usage of wfastcgi, but I'm searching online and not finding it anymore.

I worked around this by manually setting the environment variables needed inside wfastcgi.py, unfortunately this means I will have to do this manually on several django projects. I have not found where my permissions might be wrong.
Thanks regardless!

@wdifruscio
Hello!
I got the same problem. Do You know any solution?
What you changed in Your projects?
Thanks in advance!

I was able to find a setting in the FASTCGI Module to add environment variables 🗡

I solved the issue with same solution.
Thank You!

May I know what should I set that variable into?

your project will need a wsgi handler from what I know! I am not sure how django handles it behind the scenes - I hope you figured this out


Fixed typos in development website page

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Just fixed a few typos as mentioned in the issue #126
Fixes issue #126
Type of change
Please delete options that are not relevant.

[  ] Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
As this was a Typo fix it will not break any part of the code

[ ] Test A
[ ] Test B

Test Configuration:

Firmware version:
Hardware:
Toolchain:
SDK:

Checklist:

[  ] My code follows the style guidelines of this project
[  ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[  ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

Though I am merging it, but it may be considered as invalid PR for Hacktoberfest, because its just a typo. So make sure, you contribute in good way to the repo.

Sure👍. Actually wanted to understand the Code base and Project structure so that I can contribute to this repo

I got it, we have just updated the codebase understanding file here
https://github.com/Ninja-Developers/Tech_Phantoms_website/blob/development/projectStructure.md


Allow to define labels to docker swarm nodes

This feature allows to define labels for swarm nodes [1]
[1]. https://docs.docker.com/engine/reference/commandline/node_update

Ehi @SergK, thank you very much (again) for your PR.
Apparently the CI now breaks in the "Get list of labels" tasks.
Can you please check it out?

@atosatto sure, thank you I will check

That's because of docker usage as a test platform (with unpredictable hostname), e.g.
ID                           HOSTNAME      STATUS  AVAILABILITY  MANAGER STATUS
8g3qnyqy4frvb51o8224ebqf8    2adf83ba733c  Ready   Active        Reachable
dejn1rkz181uz1fdwlj5n66mx *  0431e2052176  Ready   Active        Leader
r5r1psng666t0nn2qujphgvmp    d790ff684ff8  Ready   Active

but we are expecting {{ inventory_hostname }}, ok will try to find some workaround

I suggest you to use the ansible_hostname variable instead of inventory_hostname.

@atosatto If you don't have objections I can provide tests in separate PR

@SergK LGTM! Fine to me to add more tests in a separate PT. Thank you!


Rhmap 12410 12411

Motivation
Revert merges which had shrinkwrap errors
bump version of request in fh-messaging and fh-metrics
reshrinkwrap correctly

Changes were tested locally.
Merging changes


config(prow/config): add ti-community-autoresponder external plugin on pingcap/*

The autoresponder plugin will reply comments on pull requests or issues when new comments matched.
I will use it to guide reviewer to use /approve command when received /merge comments.
Also update approve flow link for tikv ORG(not migrated)

/approve
I tested the GitOps and it passed:
flux  build kustomization prow-configs --path prow/config/ --kustomization-file ../../pingcap-qe/ee-ops/apps/gcp/prow/pre/prow-configs.yaml


Optimize buffer handling

For large data streams, the fastest approach available is asynchronous direct I/O.  This requires manual buffer management, which needs to be optimized.  Furthermore, one can parse and serialize much faster into large buffers than small ones, as many bounds checks can be skipped.
I suggest providing APIs that take what is effectively some sort of chunk iterator.

I think I would prefer not to build this into serde. But I would be interested to hear if you pursue this in a different Rust serialization library.

I think I would prefer not to build this into serde. But I would be interested to hear if you pursue this in a different Rust serialization library.

Why is this?  Serde’s main advantage is the huge number of codecs that are compatible with it, and building my own library would lose that advantage.  I also do not have the time to build one myself.
“I don’t have time,” and ”I don’t want to,” are very much valid responses, but I am curious if there are technical reasons why this would be a poor fit for Serde, and if so, what those reasons are.  That might inform me of something I missed when creating this issue.


Use describe in tests to group test suites

You can wrap your tests in a describe("suite that tests basic stuff", () => {}) which will group things together. Not sure if this makes your 01, 02, etc numbering better

The numbering is a bit yuck, I should read up more about this

completed, thanks for the suggestion


Support route patterns

Why doesn't connect support regexp definitions for routes?
For example: app.use(/\/path[1234]/, handler)
I really like the lightweight, low dependency nature of connect, but find myself writing lots of boilerplate logic to handle different route selects that I could avoid with routes as regular expressions instead of straight strings.
If the idea is of interest, I'm happy to create a pull request that adds the feature.

Hi @sz-cgt the reason it doesn't is because that's what keep it lightweight -- by excluding features. You really have three methods (though I'm sure there are many more) to get this:

Use a more full-features framework like Express. This would assume your definition of "lightweight" means less direct dependencies for you.
Use connect in conjunction with a router that supports the added feature you need. For example the router module.
Create a helper glue that does just want you wait and use that (so like a subset of the router module).

I hope that helps!


Dark mode feature request.

And Thanks for the amazing nobelium blog.

It should have dark mode already included. Have you changed blog.config.js/appearance?


Fix error when get version using Wget

GitHub now returns lowercase:
wget -SqO /dev/null https://github.com/rancher/k3s/releases/latest |& grep -i location
location: https://github.com/rancher/k3s/releases/tag/v1.17.3+k3s1

Thanks @hvnsweeting!

https://github.com/rancher/k3s/issues/1751


Port documentation over from Google Code wiki

Copy the documentation from the Google Code wiki so that it is part of the project.
Translate into Markdown
Repair formatting
Format code examples
Replaced the placeholder readme with the wiki home page

I haven't ported over the links to individual source files, as they are easy enough to find by name.

I know there is an actively maintained 2.x fork of this project, but at my company, we still have lots of projects which use the 1.x version, so having the documentation would be really useful.


feat: delete a policy from a flow in policy studio

Issue
https://gravitee.atlassian.net/browse/APIM-1559
Description
Provide the user the ability to delete a policy from a flow

🧪  Gravitee.io Automatic Prerelease @gravitee/ui-policy-studio-angular
npm install<EMAIL_ADDRESS>
yarn add<EMAIL_ADDRESS>

🧪  Gravitee.io Automatic Prerelease @gravitee/ui-particles-angular
npm install<EMAIL_ADDRESS>
yarn add<EMAIL_ADDRESS>

📚  View the storybook of this branch here

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

npm package (@latest dist-tag)
npm package (@latest dist-tag)
npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Reinstalling doesn't allow me to change the install path

I had the program installed before on my hard drive which died recently, now i cant install it again because it wants to install on the drive that is missing and complains that it cant find the path

this


Add postLaunchTask for Task Execution After Successful Debugger Connection

I want to request adding a 'postLaunchTask' feature in the launch.json file for executing tasks after a successful debugger connection.

This feature was previously discussed a while ago on an old issue but hasn't been implemented yet it seems.

This was discussed quite a lot in https://github.com/microsoft/vscode/issues/2405
If you think it should be reopened, I have the same questions as originally raised- what use cases are needed that aren't served by serverReadyAction and how exactly to define this state

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


BUG: Categorical doesn't show tzinfo properly

Closes #10713.

[x] Check timedelta
[x] Refactor not to import DatetimeIndex and PeriodIndex if possible.
[x] Fix categories line break location
[x] Check Categorical Series formatting
[x] Check Categorical DataFrame formatting
[x] Fix CategoricalIndex formatting

CategoricalIndex problem (befor this PR)
import pandas as pd
idx = pd.period_range('2011-01-01 09:00', freq='H', periods=5)
idx = pd.Index(pd.Categorical(idx))
idx
# CategoricalIndex([359409, 359410, 359411, 359412, 359413], categories=[2011-01-01 09:00, 2011-01-01 10:00, 2011-01-01 11:00, 2011-01-01 12:00, 2011-01-01 13:00], ordered=False, dtype='category')

Format differences (after this PR)
I left ordered category representation of CategoricalIndex as below because it has ordered repr separately.
pd.Categorical([1, 2, 3], ordered=True)
# [1, 2, 3]
# Categories (3, int64): [1 < 2 < 3]

pd.Series(pd.Categorical([1, 2, 3], ordered=True))
# 0    1
# 1    2
# 2    3
# dtype: category
# Categories (3, int64): [1 < 2 < 3]

pd.CategoricalIndex([1, 2, 3], ordered=True)
# CategoricalIndex([1, 2, 3], categories=[1, 2, 3], ordered=True, dtype='category')

@jreback Thanks, fixed your points and it's ready for review. Checked Categorical, Index, Series and DataFrame outputs.

Thanks for comments. Added CategoricalArrayFormatter as CategoricalFormatter is already occupied, and also added PeriodArrayFormatter which doesn't exist. Pls check whether it meets your suggestion.

minor comments
looks good
merge when ready


cdn.fluidplayer.com lacks IPv6 support

cdn.fluidplayer.com lacks IPv6 addresses and thus resources (JavaScript) from it can't be received using IPv6.
Since the CDN seems to be served by Stackpath, which has great IPv6 support, it should hopefully be a simple fix by asking Stackpath support to enable IPv6.
Thank you.

We will request IPv6 be enabled.

IPv6 is enabled now.


Figure out image tags/versions

Currently we are modeling our images based on the official buildpack samples. However tagging and versioning are a little confusing in this model.
For example, all of the "stack" images are named faas-stack-* where * is base|build|run and the tags are the language. For example, to use the Node.js run image, you would use quay.io/boson/faas-stack-run:nodejs. This is clean looking but implies a floating tag. Should we also be tagging specific version numbers? E.g. quay.io/boson/faas-stack-run:nodejs-1.0.0.
The actual buildpack images are slightly different than the stack images. For the buildpack images, we are creating for example quay.io/boson/faas-nodejs-bp. The image itself distinguishes it as a Node.js buildpack. Currently there is nothing but a latest tag on the buildpack images. We should determine how we want to version these.

/cc @boson-project/core

Adding an additional tag with the version suffix is a good option, because we then let the user decide which suits their situation better.

Closing as this has been addressed in multiple PRs and automated CI/publication of images.


Remove scrollbar from lists

When clicking into a specific list, a scrollbar appears where they have more than a certain number of projects.  Let's remove that scrollbar and expand the view to fit all the projects when scrolling the main page.  Let's keep the scrollbars in the Edit Distribution and Add To Ballot modals as they are necessary there.

I'm not sure how ideal the proposed UI/UX would look, the scroll bar only appears when there are a couple of projects in there. Are u suggesting the component keeps growing indefinitely in height depending on the number of projects(which could be a lot) unless the edit modal is opened? I'm not sure it would look great when there are 20-30 projects in there, or we don't expect it to be that much?

Maybe it's personal preference.  I really don't like scrollable areas nested inside other scrollable areas.

I think this was also in the Figma design we made use off


Github Actions

Codecov Report

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

@@           Coverage Diff           @@
##           master       #1   +/-   ##
=======================================
  Coverage   82.02%   82.02%
=======================================
  Files           7        7
  Lines        1602     1602
=======================================
  Hits         1314     1314
  Misses        288      288

Continue to review full report at Codecov.

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


const-extern-fn feature still requires nightly, but appears to be available >= 1.40

In build.rs the check if !is_nightly || rustc_minor_ver < 40 will always fail if not using a nightly compiler. It appears this should be able to be enabled on stable at this point. Is this a bug in the conditional logic?

const_extern_fn isn't stabilized and it's added in 1.40. This condition will trigger a panic if rustc isn't nightly (because it's unstable) or is less than 1.40 (because the compiler doesn't know that feature). Note that nightly compilers also have minor versions, e.g. 1.40.0-nightly. So it is correct for me.
cc @Aaron1011

I'm going to close this assuming my understanding is correct. Feel free to correct me and re-open this issue :)


Missing Requires

I am trying to install json extension for php on centos7 and the result I get is this:
google-compute-engine-2.7.6-1.el7.noarch has missing requires of python-google-compute-engine = ('0', '2.7.6', None)
google-compute-engine-2.8.2-1.el7.noarch is a duplicate with google-compute-engine-2.7.6-1.el7.noarch.
How do I resolve this?

Solved. All I needed was "yum install php71u-json".


Lighthouse has "chr" chairs

Description
Lighthouse has "chr" chairs. No idea what is causing those, normal chairs with normal name are seen there too.
Reproduction

Load Lighthouse, look around

Screenshots

All maps have these and it's intended.

#8674


Replace "Getting Started" copy on Docs Landing page

Start building on Bitcoin Layers
Integrate Stacks and Ordinals in your application with Hiro’s tools. Explore API references, feature guides and tutorials.
Notes in notion

@elenananana are you working on this? Also from the linked Notion page it wasn't clear if there's an agreed upon set of changes.
At the very least I'd like to tweak the language and links so the page is accurate and high impact. I can take a crack at that, but wanted to check with you first.

ive added this as a task item to https://github.com/hirosystems/docs/issues/487


update self-monitor to prometheus 2.53.1

Description
Changes proposed in this pull request:

update to latest patch version of prometheus LTS release
...
...

Related issue(s)

blocked by https://github.com/kyma-project/third-party-images/pull/449


java.lang.OutOfMemoryError when inserting dataframe to dynamo db

Hello,
I am using spark-dynamodb to insert a dataframe into a dynamodb table. The lib is working fine on small dataframes, but when I try to insert a huge dataframe (65 millions row), I hit the following exception:
java.lang.OutOfMemoryError 	at java.io.ByteArrayOutputStream.hugeCapacity(ByteArrayOutputStream.java:123) 	at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:117) 	at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93) 	at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:153) 	at org.apache.spark.util.ByteBufferOutputStream.write(ByteBufferOutputStream.scala:41) 	at java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1877) 	at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(ObjectOutputStream.java:1786) 	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1189) 	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) 	at org.apache.spark.serializer.JavaSerializationStream.writeObject(JavaSerializer.scala:43) 	at org.apache.spark.serializer.JavaSerializerInstance.serialize(JavaSerializer.scala:100) 	at org.apache.spark.util.ClosureCleaner$.ensureSerializable(ClosureCleaner.scala:295) 	at org.apache.spark.util.ClosureCleaner$.org$apache$spark$util$ClosureCleaner$$clean(ClosureCleaner.scala:288) 	at org.apache.spark.util.ClosureCleaner$.clean(ClosureCleaner.scala:108) 	at org.apache.spark.SparkContext.clean(SparkContext.scala:2287) 	at org.apache.spark.rdd.RDD$$anonfun$mapPartitionsWithIndex$1.apply(RDD.scala:841) 	at org.apache.spark.rdd.RDD$$anonfun$mapPartitionsWithIndex$1.apply(RDD.scala:840) 	at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151) 	at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:112) 	at org.apache.spark.rdd.RDD.withScope(RDD.scala:362) 	at org.apache.spark.rdd.RDD.mapPartitionsWithIndex(RDD.scala:840) 	at org.apache.spark.sql.execution.WholeStageCodegenExec.doExecute(WholeStageCodegenExec.scala:389) 	at org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:117) 	at org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:117) 	at org.apache.spark.sql.execution.SparkPlan$$anonfun$executeQuery$1.apply(SparkPlan.scala:138) 	at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151) 	at org.apache.spark.sql.execution.SparkPlan.executeQuery(SparkPlan.scala:135) 	at org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:116) 	at org.apache.spark.sql.execution.exchange.ShuffleExchange.prepareShuffleDependency(ShuffleExchange.scala:88) 	at org.apache.spark.sql.execution.exchange.ShuffleExchange$$anonfun$doExecute$1.apply(ShuffleExchange.scala:124) 	at org.apache.spark.sql.execution.exchange.ShuffleExchange$$anonfun$doExecute$1.apply(ShuffleExchange.scala:115) 	at org.apache.spark.sql.catalyst.errors.package$.attachTree(package.scala:52) 	at org.apache.spark.sql.execution.exchange.ShuffleExchange.doExecute(ShuffleExchange.scala:115) 	at org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:117) 	at org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:117) 	at org.apache.spark.sql.execution.SparkPlan$$anonfun$executeQuery$1.apply(SparkPlan.scala:138) 	at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151) 	at org.apache.spark.sql.execution.SparkPlan.executeQuery(SparkPlan.scala:135) 	at org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:116) 	at org.apache.spark.sql.execution.InputAdapter.inputRDDs(WholeStageCodegenExec.scala:252) 	at org.apache.spark.sql.execution.aggregate.HashAggregateExec.inputRDDs(HashAggregateExec.scala:141) 	at org.apache.spark.sql.execution.WholeStageCodegenExec.doExecute(WholeStageCodegenExec.scala:386) 	at org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:117) 	at org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:117) 	at org.apache.spark.sql.execution.SparkPlan$$anonfun$executeQuery$1.apply(SparkPlan.scala:138) 	at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151) 	at org.apache.spark.sql.execution.SparkPlan.executeQuery(SparkPlan.scala:135) 	at org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:116) 	at org.apache.spark.sql.execution.exchange.ShuffleExchange.prepareShuffleDependency(ShuffleExchange.scala:88) 	at org.apache.spark.sql.execution.exchange.ShuffleExchange$$anonfun$doExecute$1.apply(ShuffleExchange.scala:124) 	at org.apache.spark.sql.execution.exchange.ShuffleExchange$$anonfun$doExecute$1.apply(ShuffleExchange.scala:115) 	at org.apache.spark.sql.catalyst.errors.package$.attachTree(package.scala:52) 	at org.apache.spark.sql.execution.exchange.ShuffleExchange.doExecute(ShuffleExchange.scala:115) 	at org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:117) 	at org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:117) 	at org.apache.spark.sql.execution.SparkPlan$$anonfun$executeQuery$1.apply(SparkPlan.scala:138) 	at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151) 	at org.apache.spark.sql.execution.SparkPlan.executeQuery(SparkPlan.scala:135) 	at org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:116) 	at org.apache.spark.sql.execution.DeserializeToObjectExec.doExecute(objects.scala:95) 	at org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:117) 	at org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:117) 	at org.apache.spark.sql.execution.SparkPlan$$anonfun$executeQuery$1.apply(SparkPlan.scala:138) 	at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151) 	at org.apache.spark.sql.execution.SparkPlan.executeQuery(SparkPlan.scala:135) 	at org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:116) 	at org.apache.spark.sql.execution.QueryExecution.toRdd$lzycompute(QueryExecution.scala:92) 	at org.apache.spark.sql.execution.QueryExecution.toRdd(QueryExecution.scala:92) 	at org.apache.spark.sql.Dataset.rdd$lzycompute(Dataset.scala:2581) 	at org.apache.spark.sql.Dataset.rdd(Dataset.scala:2578) 	at com.audienceproject.spark.dynamodb.rdd.DynamoWriteRelation.<init>(DynamoWriteRelation.scala:36) 	at com.audienceproject.spark.dynamodb.DefaultSource.createRelation(DefaultSource.scala:57) 	at org.apache.spark.sql.execution.datasources.DataSource.write(DataSource.scala:472) 	at org.apache.spark.sql.execution.datasources.SaveIntoDataSourceCommand.run(SaveIntoDataSourceCommand.scala:48) 	at org.apache.spark.sql.execution.command.ExecutedCommandExec.sideEffectResult$lzycompute(commands.scala:58) 	at org.apache.spark.sql.execution.command.ExecutedCommandExec.sideEffectResult(commands.scala:56) 	at org.apache.spark.sql.execution.command.ExecutedCommandExec.doExecute(commands.scala:74) 	at org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:117) 	at org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:117) 	at org.apache.spark.sql.execution.SparkPlan$$anonfun$executeQuery$1.apply(SparkPlan.scala:138) 	at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151) 	at org.apache.spark.sql.execution.SparkPlan.executeQuery(SparkPlan.scala:135) 	at org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:116) 	at org.apache.spark.sql.execution.QueryExecution.toRdd$lzycompute(QueryExecution.scala:92) 	at org.apache.spark.sql.execution.QueryExecution.toRdd(QueryExecution.scala:92) 	at org.apache.spark.sql.DataFrameWriter.runCommand(DataFrameWriter.scala:610) 	at org.apache.spark.sql.DataFrameWriter.save(DataFrameWriter.scala:233) 	at com.audienceproject.spark.dynamodb.implicits$DynamoDBDataFrameWriter.dynamodb(implicits.scala:73) 	at io.voodoo.ads.data.DataIndexer$.insertIndexes(DataIndexer.scala:74) 	at io.voodoo.ads.data.DataIndexer$.indexData(DataIndexer.scala:23) 	at io.voodoo.ads.Application$.main(Application.scala:27) 	at io.voodoo.ads.Application.main(Application.scala) 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 	at java.lang.reflect.Method.invoke(Method.java:498) 	at org.apache.spark.deploy.yarn.ApplicationMaster$$anon$2.run(ApplicationMaster.scala:635)
I am running this code on EMR with a total cluster memory of 2TB, my executors and the driver have about 200GB of memory each. Do you have any idea why I am hitting a memory issue even though my configuration has enough memory?
Thanks

Hi mhajlaoui
The error seems to occur on the driver as it attempts to serialize the putItems closure. This operation is not supposed to require much memory, and it shouldn't matter how many rows the dataframe has.
Can you check again your driver memory configuration? spark.driver.memory and spark.driver.memoryOverhead
Regards,
Jacob

[The documentation(https://spark.apache.org/docs/latest/configuration.html#application-properties) says that having unlimited maxResultSize can cause out of memory errors on the driver. Maybe try a hard limit?
It is also an inordinate amount of memory you are requesting. Out of curiosity, what kind of machines are you running on?

Ok I will try to put a proper maxResult and let you know.
I am using an r4.8xlarge (244 GiB of RAM) as master and 6 r4.16xlarge (488 GiB of RAM) as nodes. I started with small servers but since I kept hitting out of memory error I kept upgrading the instances. I have currently 2TB of RAM in my cluster that's why I know it is not a memory issue but rather a configuration issue.
Thanks

I got this exception at maxResultSize=1g
ERROR ApplicationMaster: User class threw exception: org.apache.spark.SparkException: Job aborted due to stage failure: Total size of serialized results of 19 tasks (1025.7 MB) is bigger than spark.driver.maxResultSize (1024.0 MB)
I am trying with 5g

I know this is not much help but I think you may have an error in your Spark code. That exception seems to occur when Spark tries to collect too much data from the executors and send it all to the driver (StackOverflow on this)

This is my code where Spark crashes:
dataFrame.write.option("region", region).dynamodb(tableName)

The error could be due to any other line in the program. The spark query merely executes at that line but I suspect the error is with the query itself and not this lib.
You can try to write as parquet to somewhere on S3 instead, and see if it still fails. That way we can see if it's the lib or not :)

Hi Med
I would assume that you have a call to collect() (see docs here) somewhere in your code. This operation won't work on a large dataset.
I can also advise you that 2TB of memory is way too much for any normal-sized task. I would scale down those clusters. 65M rows is normal sized. You will need a lot of write capacity on DynamoDB however.
Closing the issue since it's not related to the lib.
Regards,
Jacob


Add BACnet southbound interface

BACnet supports discovery so would be a good addition.

This is implemented as a PoC but only works when running UA Edge Translator outside of a container as BACnet uses UDP messages that are not forwarded to the Docker network.

code is here: https://github.com/OPCFoundation/UA-EdgeTranslator/blob/main/BACNetClient.cs


SAMZA-2493: Keep checkpoint manager consumer open for repeated polling

Feature: Allow control of whether the underlying consumer backing a checkpoint manager will be left open (until stopped), or closed after the initial read of checkpoints
Changes: Introduces an internal config, injected by SamzaContainer, that is injected dependent on whether the container is standby or not, to control whether the container's checkpoint manager should have it's underlying consumer stopped after initial read or not.
Tests: Added a unit test each for the config set to true / false
API Changes: None
Upgrade Instructions: None
Usage Instructions: None

@bharathkk @xinyuiscool can you take a look over this?

Do you plan to add tests? I noticed TBD in the description.

Do you plan to add tests? I noticed TBD in the description.

@mynameborat yeah, added them


Move constant CSS from js to css

These 2 CSS declarations float: right; and right: 0; are actually constant and can be moved to the css file.
Tested on my dev instance.
Code cosmetic:

0 times whatever is 0, so we may omit "px"
Remove trailing white space (sorry, done automatically by my editor)

Was there a problem before with the constant CSS in JS?

No problem.
It seems more efficient to have these 2 directives once in CSS, rather than to keep overwriting via JS them without any actual change, as the map adjusts its size due to browser changing window size. Up to you, maybe the "more readable" code argument will win.

Can we keep it as it is? I do not see an advantage and as the properties belong to each other the JS way is slightly more expressive.

That's fine, if it's your preference.


how can i soilve it

The chatrooms are for solving problems with your code. Bug reporting is for problems with the freecodecamp workings.
It so happens that your code is wrong. You need to remove all the parts of what once were comment tags ie
Please close this issue, and if this is not enough help, check one of the chatrooms.

Hi @silenteye,
The issue tracker is for reporting bugs only. Please use the help chat room or try looking through the forum for help with a specific challenge.
@spieg thanks for commenting!
Happy Coding.


Change "on_strike" message

I think it's a bit more professional to just say there's a strike without referring to the strikers themselves as 'feckers'. I know it's probably tongue-in-cheek, but still.

It's a bit more professional, but the app is just for a laugh anyway. Reviews on the Play Store and elsewhere on the internet people liked the sense of humour (and the Irish tone to it) so I'll keep it that way.
I'm not saying I don't agree with the strikes, but when 100,000's of people are left struggling to get to work etc. I think a sense of humour might be needed :)


DOC: Update README re: bioRxiv link/citation #169

Codecov Report

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

@@           Coverage Diff           @@
##           master     #259   +/-   ##
=======================================
  Coverage   95.28%   95.28%
=======================================
  Files          19       19
  Lines        1335     1335
  Branches      226      226
=======================================
  Hits         1272     1272
  Misses         51       51
  Partials       12       12

Continue to review full report at Codecov.

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


[23.05] teleport_12: 12.4.20 -> 12.4.23

Description of changes
Partial backport of https://github.com/NixOS/nixpkgs/pull/267269 , including security fixes.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release 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

[x] Fits CONTRIBUTING.md.

I guess these are all dependency-vulnerabilities and they haven't done an equivalent bump-release for 11?

nixpkgs-review happy, macos 10.15 & nixos x86_64. passthru.tests pass.

I guess these are all dependency-vulnerabilities and they haven't done an equivalent bump-release for 11?

It looks like the 12.4.22 contains a fix for Teleport itself (marked as critical): https://github.com/gravitational/teleport/releases/tag/v12.4.22
12.4.23 appears to only contains fixes for the deps: https://github.com/gravitational/teleport/releases/tag/v12.4.23
I do not think 11.x will receive a backport as it is EOL since ~ the release of the 14.0.

There's no release but the v11 branch has the fix: https://github.com/gravitational/teleport/commit/1ffde1695bf9614df87a40a4845e315e227bb35d

Guess I'll open a PR for 11 then...

This is the point at which I realize the package has no capacity for supplying per-version patches.


run buildifier

fixes failing test: https://github.com/libjxl/libjxl/actions/runs/4571068777/jobs/8069023458?pr=2269


[UI] [Container] Add container page lists  credentials in Inactive/removed/purged state

Version - V0.11.1
Create a private registry with credentials.
Have the credential in Inactive/removed/purged state
When trying to create a container using "Add Container" option , credentials in Inactive/deleted/purged state are being listed.
Expected Behavior:
Only credentials in Active state should be listed

Fixed in rancherio/ui#104

Verified Fixed


Poetry fails to install flask-cors in Docker

[+] I am on the latest Poetry version.

[+] I have searched the issues of this repo and believe that this is not a duplicate.

[+] If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

OS version and name: python:alpine

Poetry version: 0.12.6

Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/mvoitko/fe0a1451f4616e36d810901d83ee388c

Issue
Building Docker container fails on poetry install step with the following error:
[SolverProblemError]
Because rating-engine depends on flask-cors (^3.0.6) which doesn't match any
versions, version solving failed.
install [--no-dev] [--dry-run] [-E|--extras EXTRAS] [--develop DEVELOP]
At the same time if I change the command to poetry update everything is ok.

Could you post the output of poetry install -vvv?

@sdispater
Warning: The lock file is not up to date with the latest changes in pyproject.toml. You may be getting outdated dependencies. Run update to update them.
[SolverProblemError]
Because rating-engine depends on flask-cors (^3.0) which doesn't match any v
ersions, version solving failed.
Exception trace:
/root/.poetry/lib/poetry/vendor/py3.7/cleo/application.py in run() at line 94
status_code = self.do_run(input, output_)
/root/.poetry/lib/poetry/console/application.py in do_run() at line 88
return super(Application, self).do_run(i, o)
/root/.poetry/lib/poetry/vendor/py3.7/cleo/application.py in do_run() at line 197
status_code = command.run(input, output_)
/root/.poetry/lib/poetry/console/commands/command.py in run() at line 77
return super(BaseCommand, self).run(i, o)
/root/.poetry/lib/poetry/vendor/py3.7/cleo/commands/base_command.py in run() at line 146
status_code = self.execute(input, output_)
/root/.poetry/lib/poetry/_vendor/py3.7/cleo/commands/command.py in execute() at line 107
return self.handle()
/root/.poetry/lib/poetry/console/commands/install.py in handle() at line 57
return_code = installer.run()
/root/.poetry/lib/poetry/installation/installer.py in run() at line 76
self._do_install(local_repo)
/root/.poetry/lib/poetry/installation/installer.py in _do_install() at line 216
ops = solver.solve(use_latest=whitelist)
/root/.poetry/lib/poetry/puzzle/solver.py in solve() at line 38
packages, depths = self._solve(use_latest=use_latest)
/root/.poetry/lib/poetry/puzzle/solver.py in _solve() at line 180
raise SolverProblemError(e)
install [--no-dev] [--dry-run] [-E|--extras EXTRAS] [--develop DEVELOP]

You have to execute poetry update as the warning tells you:
Warning: The lock file is not up to date with the latest changes in pyproject.toml. You may be getting outdated dependencies. Run update to update them.
without updating Poetry can't find flask-cors.

@sdispater sounding a little bit like Captain Obvious). I have done it locally and committed updated lock file to the repository. So in Docker, the lock file is actually up to date.

I cannot reproduce unfortunately. So I am out of options.

@mvoitko you need to create a minimal example to progress this. There doesn't seem to even be a Dockerfile provided to diagnose.


Extra whitespace breaking babel-plugin-jsx-dom-expressions

Code I'm writing:
import { createResource } from 'solid-js';
import { For } from 'solid-js/dom';

export function AudioOutputSelector(props) {
  return (
    <select>
      <For each={props.devices} fallback={
test
}>
        {_ => <option value={_.deviceId}>{_.label}</option>}
      </For>
    </select>
  );
}

[!] (plugin babel) TypeError: /Users/omni/Documents/git/Akk/components/AudioOutputSelector.js: Cannot read property 'text' of null
components/AudioOutputSelector.js
TypeError: /Users/omni/Documents/git/Akk/components/AudioOutputSelector.js: Cannot read property 'text' of null
    at /Users/omni/Documents/git/Akk/node_modules/babel-plugin-jsx-dom-expressions/index.js:996:19
    at Array.reduce (<anonymous>)
    at transformChildren (/Users/omni/Documents/git/Akk/node_modules/babel-plugin-jsx-dom-expressions/index.js:994:8)
    at transformElement (/Users/omni/Documents/git/Akk/node_modules/babel-plugin-jsx-dom-expressions/index.js:631:5)
    at transformNode (/Users/omni/Documents/git/Akk/node_modules/babel-plugin-jsx-dom-expressions/index.js:1819:12)
    at PluginPass.transformJSX (/Users/omni/Documents/git/Akk/node_modules/babel-plugin-jsx-dom-expressions/index.js:1801:18)
    at newFn (/Users/omni/Documents/git/Akk/node_modules/@babel/core/node_modules/@babel/traverse/lib/visitors.js:179:21)
    at NodePath._call (/Users/omni/Documents/git/Akk/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/context.js:55:20)
    at NodePath.call (/Users/omni/Documents/git/Akk/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/context.js:42:17)
    at NodePath.visit (/Users/omni/Documents/git/Akk/node_modules/@babel/core/node_modules/@babel/traverse/lib/path/context.js:90:31)

Edit: Updated title to reference real issue (original: babel-jsx-dom breaking w/ For)

This one was tricky for me to reproduce since I use Prettier in most places. This caused by the extra space after the closing For tag before the close of the select tag. So clearly there is a bug in white space trimming/processing logic. It is supposed to leave a single space but I'm gathering something isn't expecting it there. I will work to get this cleared up. For now remove that trailing white space.

Thanks for the catch. I didn't even realize I had extra spaces, so I definitely need to get prettier up and going again.

Ok.. this is fixed in Babel Plugin JSX DOM Expressions 0.19.7. You will probably need to remove your node_modules blow away your package-lock to have this install properly (as Babel Preset Solid will settle for 0.19.6 if it's there). I will update Babel Preset Solid to set it as it's min version with the next Solid patch release.

Updated in Solid preset dep now. Closing.


EcoMax920 missing state

This device (EcoMax920) reports mode '7' that is "Buring off" (state when the burner switches off and cleans itself - takes like 10 minutes to complete) according to device display. I already added it manually to my setup but it gets wiped out by updates. Maybe add in the future ? Right now it displays "Unknown" in Hass.

Thank you very much for your contribution!
Burning off state added.
I'll also consider adding additional numeric sensor that shows state as a number, so that users can use hass'es template integration to name states themselves.


Added support for full screen release notes

@bskinner @KingOfBrian We made some changes for SixFlags and thought the full screen mode would be a useful option to put back into FreshAir.  We should also deprecate/ archive RZSixFlags since I blew a day updating the wrong one..

#req Add a description of how 'attributedDescription' works to the readMe.


until we find a better way to persist config changes lets only persist storage so that default mirrors are created again

[merge]


Naming a model "Function" in the schema.prisma crashes the generator

Describe the Bug
Naming a model "Function" in the schema.prisma crashes the generator
To Reproduce
Create a simple schema and name the model "Function". Then run prisma generate. When trying to run the server, it will crash with typescript/js errors.
Expected Behavior
The generator works and correctly provides auto-generated CRUD resolvers
Logs
N/A
Environment (please complete the following information):

OS: Linux, Pop-OS 22.04 LTS
Node (e.g. 15.8.0): node v 18.17.1, yarn version 1.22
typegraphql-prisma version 0.27.0
Prisma version [e.g. 2.18.0] 4.16.2
TypeScript version (e.g. 4.2.2) 5.1.6

Additional Context
Not sure if this is a bug, or if it isn't really worth taking the time to fix, but the model name "Function" is essentially forbidden because of this bug. If it is not in scope, please feel free to close this issue.

I think ECMAScript rules forbid using this name as the name for the class, so we would have a ton of workaround so it might be simpler just to rename your model:
https://prisma.typegraphql.com/docs/advanced/renaming-model


[Bug] Popup doesn't support "FillAndExpand" for HorizontalOptions?

Description
I want to expand Popup to the full width of the screen, but HorizontalOptions can't do it for some reason. It can be moved to the left or to the right, but not expand.
The only working way to expand Popup is Size property, but i can't figure out how to make it work on any screen.
Steps to Reproduce

Just add any helloworld Popup and try to expand it to full screen.

Basic Information

Version with issue: 1.2.0
IDE: VS2019 16.11.3
Platform Target Frameworks:

iOS:  not tested (yet)
Android: 11

Reproduction imagery

Are you talking about Xamarin Page Display Alert or XCT Pop-ups (Xamarin Community Toolkit)?


Using system_instruction with VertexAI (Gemini models)

Hello !
I'm trying to use system instructions when calling the LLM through VertexAI, but I'm encountering issues. I've seen that support for this parameter was added to ChatVertexAI, but I couldn't find an equivalent for standard Vertex AI.
Is there a way to use system instructions with the VertexAI LLM?
Thanks!

Have you considered using ChatVertexAI instead?

I liked VertexAI more because it has a simpler API and is enough for my needs. If ChatVertexAI is the only way to use system_instruction then I'll probably just switch like you said.
Still, would you be Open to a PR to add this same feature to VertexAI ?
Thanks

Sure, it would be great if you'd work on it. But, please, do it in line with PR (i.e., switch to the native gapic client):
https://github.com/langchain-ai/langchain-google/pull/213


Client network socket disconnected before secure TLS connection was established

Hello,
We are getting intermittent error: "Client network socket disconnected before secure TLS connection was established", when calling
https://sellingpartnerapi-na.amazon.com/authorization/v1/authorizationCode
Wondering if anyone has experienced this? and if you have what is the recommendation? Try retries? Seems like an error on amazon's side. And just curious if any one is experiencing the same.

I have the same problem with other calls (createReport, for example). As you say, it is intermittent, and I have not found how to solve it.
Let's see if pushing someone can help us.

Hi,
Since it's a problem with server not responding in timely manner, we were able to solve this by wrapping the call in a retry logic. We retry 6 times before giving up. Below is the node.js code which works for us.
RetryClientSPAPI.prototype.getAuthorizationCode = async function getAuthorizationCode() {
let authorizationCode = null;
const developerId = this.region === 'eu' ? this.baseParams.developerIdEu : this.baseParams.developerId;
return await this.retry(async () => {
try {
let sellingPartner = this.create();
await sellingPartner.refreshAccessToken('sellingpartnerapi::migration');
await sellingPartner.refreshRoleCredentials();
authorizationCode = await sellingPartner.callAPI({
operation:'getAuthorizationCode',
endpoint:'authorization',
query:{
sellingPartnerId:this.params['Seller ID'],
developerId:developerId,
mwsAuthToken:this.params['Auth Token']
}
});
} catch(error){
throw error;
}
if (!authorizationCode) {
const err = new Error('getAuthorizationCode error');
err.msg = err.message;
throw err;
}
return authorizationCode.authorizationCode;
}, { retries: rootConfig.retries });
};

this is mostly occurring in the download function. any update on this how to fix that?


Add integration test with layers and node when we modify version.ts

Run a 3rd travis job (integration) when the src/version.ts file is modified.
The integration job clones layers/node/converter and tests those repos against core@master, giving the PR author a heads-on before they make a new release of core.
https://travis-ci.org/tensorflow/tfjs-core/builds/449534806 is an example of a Travis run. See the 3rd job (TO_TEST=integration).
Details:

rename yarn test-travis to yarn run-browserstack to better reflect the task
move all travis-related scripts under yarn test-travis to align core with the other repos (layers & node).

Towards tensorflow/tfjs#848
DEV

This change is

cc @tafsiri @annxingyuan


[New Feature] Asset/Resource Reference Search

Required Information
Several times I was faced with a problem when I was requested to provide list of assets/resources that are not used in AEM any more. General idea here is to write tool that will provide the following features:
Provides report with following information:

Option for used resources: path to resource and path where it is used
Option for unused resources: just a list of resources that are not referenced anywhere
Last option that combines point 1 and 2

Possible configuration

Textfield: XPATH/SQL2 query to get a list of resources to be verified
Upload Field: File with a list of paths
Pathfield: Where perform search
Select Field:  With report type

Used
Unused
Both

Checkbox: Responsible for report format:

path to page, asset and etc(parent of jcr:content), were resource is used
path to the property,  were resource is used

Links

https://helpx.adobe.com/experience-manager/6-4/sites/developing/using/reference-materials/javadoc/com/day/cq/dam/commons/util/AssetReferenceSearch.html
https://helpx.adobe.com/experience-manager/6-4/sites/developing/using/reference-materials/javadoc/com/day/cq/wcm/commons/ReferenceSearch.html

@cylinder-y - You should be able to do this with AEM Content Reports. Currently, we don't have a report column for references, but honestly it would be pretty easy to add using the API
The only thing that would be tricky is the support for used vs unused as to search by that would take a sub-search for references.

thank you, I will take a look

Hi @klcodanr, That's like it was in my mind. But I wanted to extend MCP tools as I have worked with it before.
As I understood I could add reference column into the report. If it has path to somewhere - resource is used. If cell is empty - it has no references

Hello @klcodanr, as I see you references support was implemented here: https://github.com/Adobe-Consulting-Services/acs-aem-commons/pull/1237

Thanks @cylinder-y ! I must have missed updating the documentation.

@klcodanr , i'm only faced with results. Search is not performed in my content fragments:
I was testing it on image, located under dam folder

for every category:

contentFragment

/content/to/page/some/path1
/content/to/page/some/path2

product

/content/to/page/some/path1
/content/to/page/some/path2

site ref:

/content/to/page/some/path1
/content/to/page/some/path2

This image also is used in content fragment, but wasn't found.
Using query /jcr:root//*[jcr:contains(., '/content/dam/image.jpg')] order by @jcr:score
I got 3 correct paths
I guess the reason in, ReferenceAggregator. I would try to use ReferenceSearch instead

Thanks for bringing up this @cylinder-y . ReferenceSearch API do have issue with its ReferenceAggregator where it tries to getContainingPage(res) and then apply getMaxReferencesPerPage(). Unfortunately this was not helpful to me either coz my asset was referenced at an experience fragment but, ReferenceSearch returned 0 references.
I ended up running simple xpath query as '/jcr:root//*[jcr:contains(., '/content/dam/test/image.jpg')]'.
Another issue was, when an asset is used in its parent folder thumbnail, above query reports as referenced. So I had to run 2 queries
'/jcr:root/content/experience-fragments//[jcr:contains(., '%s')]'
'/jcr:root/content/test//[jcr:contains(., '%s')]'
Please share if you faced any other issues when using direct xpath query instead of ReferenceSearch API.

Thanks for bringing up this @cylinder-y . ReferenceSearch API do have issue with its ReferenceAggregator where it tries to getContainingPage(res) and then apply getMaxReferencesPerPage(). Unfortunately this was not helpful to me either coz my asset was referenced at an experience fragment but, ReferenceSearch returned 0 references.
I ended up running simple xpath query as '/jcr:root//*[jcr:contains(., '/content/dam/test/image.jpg')]'.
Another issue was, when an asset is used in its parent folder thumbnail, above query reports as referenced. So I had to run 2 queries
'/jcr:root/content/experience-fragments//[jcr:contains(., '%s')]' '/jcr:root/content/test//[jcr:contains(., '%s')]'
Please share if you faced any other issues when using direct xpath query instead of ReferenceSearch API.

May I ask you please to open a separate issue?

You can use the bash script under https://github.com/frappierer/unrefAemAssets
its bad but it works


The plugin causes zellij to lock

Hi, I'm aware after reading the README that it's not a bug but a feature. But, I've changed my zellij keybinds to not interfere with nvim. Can I change any settings to prevent the plugin from locking me out of zellij?

I will try to find time to parametrize the autolocking behavior.
In the meantime, you can set g:zellij_navigator_enabled = 0, then configure the plugin however you want.
You can reference: https://github.com/fresh2dev/zellij.vim/blob/main/plugin/zellij_navigator.vim

Thanks a lot! I'll use this as a stop-gap solution in anticipation for the real one.

I just implemented the changes you described and I set g:zellij_navigator_enabled = 0 and removed lines 7 & 8. The good part is the plugin doesn't lock zellij and works the way it did before but, it doesn't facilitate my navigation between vim windows so, I'm just stuck on one split and hitting ctrl + h/j/k/l takes me to the other zellij pane. Not what I expected.

I just pushed v0.2.2 which will not create any autocommands with this variable defined:
let g:zellij_navigator_disable_autolock = 1

LMK if this helps 🤙

Yeah, it works(to an extent), it's great that it doesn't lock me out of zellij. But, it seems to exhibit the same issue as before, I'm not able to move between windows within nvim, the traversal commands (Ctrl h/j/k/l) only toggle my focus from one zellij pane to another.
I did try running ZellijNavigateLeft! ZellijNavigateRight! on one of the windows in nvim and it correctly moved the cursor to the other window, but it doesn't seem to be happening with the traversal commands.

Sounds like your Zellij bindings are conflicting with Vim bindings; it is likely that Zellij is intercepting Ctrl h/j/k/l before it gets to Vim. I was able to repro the issue you described, then I removed these conflicting bindings from my Zellij config and observed the expected behavior:
bind "Ctrl h" { MoveFocus "Left"; }
bind "Ctrl l" { MoveFocus "Right"; }
bind "Ctrl j" { MoveFocus "Down"; }
bind "Ctrl k" { MoveFocus "Up"; }

If you want to use the same mappings (Ctrl + h/j/k/l) to seamlessly navigate between Vim windows and Zellij Panes, the autolock mechanism (enabled by the combo of zellij.vim and zellij-autolock) is the only way I've been able to make it work to my satisfaction.

 It didn't occur to me that zellij is doing that. Thank you so much for putting the effort to sort out the issue. I'll take your advice on zellij-autolock.


Separate default (template) components and user defined components

When customizing/enhancing my site I want to know how to use components (and data for them) so that I can cleanly separate from custom content from flowershow (so that i can do upgrades, keep things simple)
Acceptance

[x] This works ✅ 2022-08-17 works, we have our custom components for Flowrshow website in site/components folder
[x] Documented in the docs ✅ 2022-08-17 done, 2022-08-24 improved

Notes
olayway: As of 2022-08-17 separation of the template and user-defined components is accomplished in the following way:
Users can add their custom components in a separate folder, outside of Flowershow's template folder, e.g. in a parent folder of their content folder, e.g.:
site
├── components
└── content

This would already work (at least when testing locally; not sure why it doesn't throw an error...), however, import paths would look like this:
import MyComponent from "../../site/components/MyComponent.jsx"

...which is a bit confusing. I'm not even sure relative to what folder this path is  but normally we use ../components/SomeTemplateComponents.jsx to import template-defined components, so I've figured out the path for custom components based on that.
In order to make the paths a bit simpler (?) a user can create a symlink to their components folder in the Flowershow's template components folder (under e.g. custom name):
cd templates/default/components
ln <path-to-custom-components-folder> custom

Now components can be imported using this path:
import MyComponent from "../components/custom/MyComponent.jsx"

Which is  a bit better I think, but in the absence of a CLI tool requires manual symlink creation.

@rufuspollock, @khalilcodes see my comments above re how we're currently separating template components from custom components. Let me know if you have some thoughts on that.

Btw, I've tried to figure out the starting point (folder) for components import paths in MDX files (e.g. ../components/SomeTemplateComponents.jsx) but without success. Do you maybe know what it is?

@olayway should this move into the the site content somewhere e.g. docs (?)

@rufuspollock I had already described it shortly in our docs before but I've tweaked the description a bit:

Is it ok?

@olayway ok, i'm just checking because what you've written above seemed really clear:

Users can add their custom components in a separate folder, outside of Flowershow's template folder, e.g. in a parent folder of their content folder, e.g.:
site
├── components
└── content

Import paths would look like this:
import MyComponent from "../components/custom/MyComponent.jsx"

I think at this point we want the docs to follow our recommended path.

@rufuspollock added this as a last section to mdx docs page

@olayway sounds good for now. I think we can now close this. I'll leave you the honors.


Research on GORM package for ORM module

Description:
$subject
Deliverable of this task would be finding on how common db use cases are achieved in GORM such as initialisation, relation mapping select, common DM queries, etc...

Research Details,
https://docs.google.com/document/d/1hKBfyzsijropxIyJGw7M1oUlglP4gu0x_sTI7CNpmLo/edit#

Closing as required research is summarised in the above doc


Remove temporary commits

Description of issue or feature request:
Remove commits that:

temporary reduce code coverage percentage: 5c58c1e
temporary disable linter checks: d252818, 062bda4

pylint disables left:

consider-using-with in download.py: I think this is correct, we want to return the tempfile so cannot use a context manager. Unless there is a way to write the function explicitly as a context manager itself (since that's how we use it anyway)?
broad-except in metadata_bundle.py: This is in code that should be implemented in Metadata API as part of #1377
too-many-branches in metadata_bundle.py: I don't want to split update_snapshot(), also this should go away with #1361

I'm fine with those.
On the coverage I suggest we change tox to do
python -m coverage report -m --fail-under 90 --omit "{toxinidir}/tuf/client_rework/*"
for now, and file issues for improving this sad result:
/home/jku/src/tuf/tuf/client_rework/download.py
113->114, 114-119, 215->216, 216-243, 252->253, 253
/home/jku/src/tuf/tuf/client_rework/metadata_bundle.py
94->101, 95->103, 99->exit, 101, 103->104, 104, 115-117, 157, 161, 198->199, 199, 209->210, 210, 214->216, 216-222, 243->244, 244, 282->283, 283, 289->294, 294, 300->301, 301, 320->321, 321, 338-339, 341->342, 342, 346->347, 347, 351->355, 355, 361->362, 362-373, 378->379, 379, 421->422, 422, 427->428, 428-433, 451->452, 452, 457->458, 458
/home/jku/src/tuf/tuf/client_rework/requests_fetcher.py
102->103, 103, 136-137, 152->153, 153
/home/jku/src/tuf/tuf/client_rework/updater_rework.py
65->66, 66, 74->77, 77, 147->148, 148, 167->168, 168-170, 195->196, 196, 200->203, 203, 253->268, 258-259, 262->263, 263, 299->300, 300, 319->320, 320, 353->354, 354-356, 375->378, 388->389, 389-398, 400->401, 401-402, 421->426, 426-430, 479->480, 480-485, 487->523, 489->529, 499->511, 511-529, 540->541, 541, 556->557, 557, 571-576

On the coverage I suggest we change tox to do
python -m coverage report -m --fail-under 97 --omit "{toxinidir}/tuf/client_rework/*"

This is done with 18c527241cdd8267bb3507bd73ec734ac0fed1a4.
Closing this issue and the remaining work will continue in #1309.


storage metric: fio (good for NFS)

https://docs.gitlab.com/ee/administration/operations/filesystem_benchmarking.html

Added in #29


Added notes about supported Python versions and paths

@brianashby-sfx can you form push this please so CI jobs get a chance to run again?