invisible mouse cursor in gamescope

Describe the bug
To replicate:
Hold steam button and use right touchpad to simulate mouse
Cursor is invisible in every game that doesn't theme it by their own
What did you expect to happen?
I expected mouse cursor to show up, so I can choose options in a game launcher (without using the touchscreen)
Output of rpm-ostree status
State: idle
Deployments:
● ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-deck-gnome:stable
                   Digest: sha256:c53a8b7cdb78233b3b13f58a6f770b18a0abb8f6f283e9cf4cf33d3c8f552a74
                  Version: 40.20240712.0 (2024-07-12T04:58:14Z)
          LayeredPackages: plymouth-theme-script
            LocalPackages: pedro-raccoon-1.1-1.1.x86_64

  ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-deck-gnome:stable
                   Digest: sha256:4194afb903fc79b1028d4f3140f694c2a220497678405a72e3de3e3ff3b62b27
                  Version: 40.20240710.0 (2024-07-11T02:46:00Z)
          LayeredPackages: plymouth-theme-script
            LocalPackages: pedro-raccoon-1.1-1.1.x86_64

Hardware
Galileo
Steam Deck OLED
Extra information or context
No response

Same issue in Bazzite Deck KDE on Deck LCD. Might be a problem with the underlying Fedora image. That, or it might be Steam not handling the mouse info properly.

Same issue in Bazzite Deck KDE on Deck LCD. Might be a problem with the underlying Fedora image. That, or it might be Steam not handling the mouse info properly.

I don't know if it happened for you but the cursor was weird already for some time. It was black and overly big. Not like the theme I've set in the desktop mode.

My cursor is fine in desktop mode. People are saying it might be a Wayland issue, so I'm going to test it.

My cursor is fine in desktop mode. People are saying it might be a Wayland issue, so I'm going to test it.

Isn't the desktop mode also using Wayland on deck? I mean, I'm on gnome deck and the cursor is fine

Yes, they both use Wayland. From what I saw, the issue is how Steam talks to Wayland, or something along those lines at least.

Update:
It works when docked for some weird reason

Odd. I'm not sure what's going on.

I'm not able to reproduce this problem on my OLED, but I'm running the GNOME image. Let me dig a little bit and I might have questions for you.

Can one of you give me the contents of:
$XDG_CONFIG_HOME/gtk-3.0/settings.ini

Unfortunately, I'm unable to provide file contents of any kind. I ended up just installing Chimera OS because I lack patience and forethought. I apologize.

Can one of you give me the contents of: $XDG_CONFIG_HOME/gtk-3.0/settings.ini

deck@fedora:~$ $XDG_CONFIG_HOME/gtk-3.0/settings.ini
-bash: /gtk-3.0/settings.ini: Nie ma takiego pliku ani katalogu
deck@fedora:~$ cat .config/gtk-3.0/settings.ini
[Settings]
gtk-application-prefer-dark-theme=0
deck@fedora:~$

Here's the contents of ~/.config/gtk-3.0/settings.ini from a fresh install. The only change made is to the theme, since my taskbar decided it wanted to play hide-and-seek with me.
[Settings] gtk-application-prefer-dark-theme=true gtk-button-images=true gtk-cursor-theme-name=breeze_cursors gtk-cursor-theme-size=24 gtk-decoration-layout=icon:minimize,maximize,close gtk-enable-animations=true gtk-font-name=Noto Sans,  11 gtk-icon-theme-name=breeze-dark gtk-menu-images=true gtk-modules=colorreload-gtk-module gtk-primary-button-warps-slider=true gtk-sound-theme-name=ocean gtk-toolbar-style=3 gtk-xft-dpi=172032

@KyleGospo For the record I'm also on the GNOME image and also seeing this exact problem.

There's a way to get a cursor until this is fixed. Just switch to desktop mode and launch the games that use a cursor from there.

I checked gamescope-stdout.log and found the same libei-related error that was reported over in discord as a possible clue:
[gamescope] [Error] wlserver: Gamescope built without libei, XTEST will not be available!

I checked gamescope-stdout.log and found the same libei-related error that was reported over in discord as a possible clue:
[gamescope] [Error] wlserver: Gamescope built without libei, XTEST will not be available!

The newest build has this restored. Let me know if updating fixes it for you.

@KyleGospo I pasted that log message right after updating to bazzite-deck-gnome 40.20240714.0 this morning. Or is there a newer build than that?

@KyleGospo I pasted that log message right after updating to bazzite-deck-gnome 40.20240714.0 this morning. Or is there a newer build than that?

Turning it back on broke gnome for me, I'm interested in KDE testing.

Makes sense, I'm perfectly happy to wait a while longer since this doesn't really affect my workflow all that much. The more important point was that I just wanted to flag the fact that this evidently isn't a KDE-only issue!

I can check KDE when the fix drops. When it does, @ me so I know to check it.

Happy to report that after running another update the issue appears resolved, at least here on GNOME! Perhaps @WuffyTopside can confirm on KDE?
Thanks for the quick fix!

I'm happy to report that the cursor is now visible in Gamescope on KDE! Thanks @jpwchang , and to the whole Bazzite dev team!

This issue is still happening currently on gamescope. Often games have an invisible cursor, sometimes using a mouse instead of the controller will fix it.


facebook login popup or webview is not opening on released apk on android phone

I have added 2 auth method (fb & google) in my mobile app, both are authenticated using firebase. In debug mode (AVM) both plugins are working perfectly and i can successfully authenticate the user.
But when i build the apk and run it on the actual device and when i click button to login from fb, it just show a loader for a second, then disappear, it doesn't show any kind of popup or webview for fb login, but login with google is working perfectly in released apk.

I am experiencing exactly the same issue with the same setup. The only major difference between my debug emulator and my physical device is the physical device has other Facebook applications installed on it.


Methods returning types from chrono panic if the device is uninitialized

When the device is still uninitialized, it is possible that the values in the registers result in invalid input data for the chrono data types. In these cases, chrono methods panic:

https://docs.rs/chrono/0.4.19/chrono/naive/struct.NaiveDate.html#method.from_ymd
https://docs.rs/chrono/0.4.19/chrono/naive/struct.NaiveDate.html#method.and_hms

This applies at least to methods get_date(), get_time() and get_datetime().
This can be solved by adding a new error variant named something similar to InvalidDeviceState and using the _opt variants of the methods to create chrono data types.

I have fixed this in version 0.4.0. In such cases Error::InvalidDeviceState will be returned.
Closing.
cc: @jamesmunns


checkout-as-persistent-user.e2e-spec.ts is failing

this test is failing because the user is disabled. Looks like a data issue. Need to verify what happened to that user.
Logs here
Status: 400 - Bad Request
Headers: {
"x-frame-options": "SAMEORIGIN",
"set-cookie": [
"JSESSIONID=AF9632242761EEE914905EBB84E1BAC8; Path=/authorizationserver; Secure; HttpOnly"
],
"pragma": "no-cache",
"cache-control": "no-store",
"strict-transport-security": "max-age=31536000 ; includeSubDomains",
"x-xss-protection": "1; mode=block",
"x-content-type-options": "nosniff",
"content-type": "application/json;charset=UTF-8",
"transfer-encoding": "chunked",
"date": "Fri, 06 Sep 2019 14:14:32 GMT",
"connection": "close"
}
Body: {
"error": "invalid_grant",
"error_description": "User is disabled"
}

Fixed by re-initializing the backend on dev17. User has been restored now.


Adding TravisCI

The test are already there, this is just adding in support for TravisCI by adding a simple .travis.yml file and a badge to the README.md showing current build status.
If this is merged in @densh will have to setup TravisCI on the repo since he is the owner, which we can enable via the http://travis-ci.org webstie.

Resolves #6

LGTM, please sign Scala CLA and add yourself to the list of contributors. Thanks! :sparkles:

It would be also great if you could squash your commits into one.

@densh CLA signed and commits squashed.

Please add yourself to the list of contributors too.

Actually there has happend minor divergence due to me adding gitter badge to README. Rebasing on top of latest master should help.

I've merged it manually, thanks for the contribution!


Extract Identity model from Login

We should extract the credentials and the Facebook data from the Login model into Identity models and use STI to inherit CredentialsIdentity, FacebookIdentity model (and more in the future) from that. That way the code gets much cleaner and it's also easier to add more identity providers in the future.

:+1: how about adding another identity provider in concrete (Twitter?), to avoid YAGNI?

that would be the 2nd step then

on it


We could create new CantusIdentifier model

I suggest that we add a new model named CantusIdentifier. This new model would address two issues:
First, "a way to check that all the genres in the Cantus Database are identical to the Cantus Index Cantus ID # entries" has been requested in the wish list (further: "Sometimes errors slip in and human eyes don't see that the genre has been entered incorrectly. (I.e., Can ID 202838 should always have the genre "A". Each Can ID # should have only 1 genre assigned with it, and tell me if you find any that do not match so I can fix them).") This type of information could conveniently be stored in a CantusIdentifier object.
Second, it would help optimize some things related to the local storage of concordances retrieved from Cantus Index etc. (as discussed in #405). For some Cantus IDs, we have dozens of chants associated with that ID. By having a single object associated with each individual ID, we can store the concordance only once for each ID (rather than dozens of times; this is only a small concern, though, because it doesn't take a lot of data to store concordances), and when we update our stored concordances, we only need to send a single request to Cantus Index (rather than dozens).

In a video call yesterday, Debra noted a peculiarity with the way that Cantus Index works - if we created a CantusIdentifier model, we could help Cantus Index run more smoothly.
As far as we understand, in CI, the concordances information stored there is only updated when a user like Debra presses an "update" button somewhere on the site, or when a request is made to a json-con/<cantus id>/refresh API.
As I suggested above, we could keep information on each Cantus ID in our own database. We could update this information (say) once a week with a cron job, sending a request to the /refresh API so that we have the most up-to-date information possible. If we did this, we would/could:

be able to fetch data on Cantus IDs from our own database, improving page load times
ensure that the Cantus Index's is updated at least once a week

I told Debra that she shouldn't expect this to be implemented any time soon, so it remains low priority. But I think it could be worth looking into at some point in the future, since it has potential benefits both for NewCantus and for Cantus Index.

An email I just got from Jan re: #1029 has got me thinking about this again. The potential effects of creating this include:

CantusIDs would be a controlled vocabulary - when creating/editing chants, users would have to select from a list of existing CantusIDs instead of entering one freehand (thus limiting the possibility of typos)

we can also ensure that when a user selects a Cantus ID, the chant's Genre is automatically set to the genre associated with the CantusID
we would need to talk with Debra about how new CantusIDs are created - if a user is indexing a manuscript, will they ever need to invent a new CantusID? Would such a CantusID need to be added to CantusIndex first before it can be selected in CantusDB

It would be easy/efficient to cache concordances from CantusIndex, since these concordances belong to specific CantusIDs and not to specific chants. This would also allow us to continue to display concordances even in case of a temporary outage on CantusIndex
For the Input Tool, this would allow us to store canonical texts and genres for all CantusIDs
For the previous two points, performance would probably also be improved, because we won't need to send requests to CantusIndex in order to load our pages - we'd just need to query our own database.

  * we can also ensure that when a user selects a Cantus ID, the chant's Genre is automatically set to the genre associated with the CantusID

Doesn't this happen already with the Input Tool? Or do you mean in some other places one might select a chant? (Some Cantus IDs do have multiple genres associated with them, so proceed with caution).

  * we would need to talk with Debra about how new CantusIDs are created - if a user is indexing a manuscript, will they ever need to invent a new CantusID? Would such a CantusID need to be added to CantusIndex first before it can be selected in CantusDB

Yes, users do encounter the need to invent new IDs some of the time. The workflow here is typically for the indexer to leave it blank, somebody higher up (me, Debra, the supervisor of their research project...) to enter it into Cantus Index, and then insert the newly created ID into the blank. What you're proposing doesn't seem to change this much.

Doesn't this happen already with the Input Tool? Or do you mean in some other places one might select a chant? (Some Cantus IDs do have multiple genres associated with them, so proceed with caution).

Yes, this happens with the Input Tool. I suggested this in response to Debra's comment:

Sometimes errors slip in and human eyes don't see that the genre has been entered incorrectly. (I.e., Can ID 202838 should always have the genre "A". Each Can ID # should have only 1 genre assigned with it, and tell me if you find any that do not match so I can fix them)

So if some Cantus IDs have multiple associated genres, this contradicts what Debra said. In any case, Debra didn't ask for this to be enforced on, say, the database level, so it would be fine to not implement a feature that checks for this on the Chant Create/Edit pages. I'll update my most recent post. But a CantusIdentifier model would make it simpler to answer questions about chants associated with particular Cantus IDs and particular Genres.

raising priority from low to high. Setting up this model will allow us to more gently and robustly obtain and store concordances information from CI.


Consider add autocomplete with Tab

When I use todo -d to mark my task done, I want to use Tab to autocomplete, but something happened like this:

To make this tool prettier,please consider to add this function into the project.

Hi imp0wd3r
It seems that your message lacks the example of what happens when you use Tab to autocomplete. You would like to autocomplete the "todo ..." or to autocomplete the ID of a task ? The former should be done by your shell by using your command history. The latter seems complicated to implement since when you're typing down the command, the program isn't running and it's the shell that decides how to autocomplete.

So for some reason I wasn't seeing the screenshot before. Now I see it. I cannot reproduce the behavior of the screenshot, but since another library is used for arguments parsing since v2, I doubt such behavior holds.

Bash completion is now available on version 2.1


Update formparser.py

when using python 3.6.1, max_content_length is a str so it complains of TypeError: '>' not supported between instances of 'int' and 'str'

Using eval there is a really bad idea. If you want to convert a string to a number, use int()

@ThiefMaster why is using eval a bad idea? Used eval because max_content_length is not an int, it's a str containing an expression that evaluates to an int (i.e. "16*1024....") and when simply using int() it raises a ValueError: invalid literal for int() with base 10
@awmhafez

Please add an example demonstrating this behavior.

Also, if the format is '16*1024' then that's a string in any version, not just 3.6, and this would have always failed.

well we're using Flask 0.10.1 trying to process form data, and when we used python 2.7 this wasn't an issue but when we used python 3.6, werkzeug.formparser.parse started complaining about
_ TypeError: '>' not supported between instances of 'int' and 'str'_.  Has no one else seen this when using python 3.6 + Flask + werkzeug?

If this is provided and the transmitted data is longer than this value an RequestEntityTooLarge exception is raised.

This doesn't sound like something where I would expect anything but a number.

It sounds like you've set max_content_length to the string '16*1024, instead of the result of the expression 16 * 1024. This is wrong in any version, it's just that Python 2 was lax about comparisons and so you didn't catch it.
Again, I need an actual example demonstrating this.

Check what the MAX_CONTENT_LENGTH  in your Flask config is. It should be an integer or an expression evaluating to an integer (e.g. MAX_CONTENT_LENGTH = 16 * 1024) - but certainly not a string, no matter its contents.

One possibility is that you're loading your config from something like an env var, which always returns a string. You should coerce that to an int at configuration time.

ah thanks, that's what it was! I guess we didn't have to convert that from a string python 2.7 and didn't notice it.

No, you did have to convert it. You weren't getting the right behavior before, it just wasn't throwing an error.

Your code was broken in 2.x but it silently failed:
>>> '4' > 3
True
>>> '4' > 5
True


dagre.layout minor performance optimization

I checked speed difference using npm run test measure command. Compared to current main (3bf0ac7bf97b7446f2aa1b5c4a4eab4efcc62670), the render: line changed from 68.26 to 60.81. So I suppose there's minor performance improvement with this change.
npm run test measure log
# after
download:   0.07
load:      39.96
validate:  56.14
render:    60.81
total:    156.92

# before
download:   0.08
load:      42.89
validate:  60.29
render:    68.26
total:    171.43

@lutzroeder
Runnning npm run test measure tvm/squeezenet.params fails with the following output.
tvm/squeezenet.params
TypeError: blocks.values(...).map is not a function

This PR's commit 83ca32169fca9b9ad1547f485472ea6cc4f73e9d fixes the problem.
Without the change, npm run test measure doesn't finish.


Update readme.md

Kindly Check the guidelines u need to add the code and explanation with the image of accepted answer

I have added them in the two sums folder
On Sun, 4 Feb, 2024, 1:28 pm Dhruva Bhat, @.***> wrote:

Kindly Check the guidelines u need to add the code and explanation with
the image of accepted answer
—
Reply to this email directly, view it on GitHub
https://github.com/Lets-code-with-us/DSA-Cracker/pull/34#issuecomment-1925619035,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A5MSK57UDV4VYDLHTQDLHVLYR45RBAVCNFSM6AAAAABCYVBHD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRVGYYTSMBTGU
.
You are receiving this because you authored the thread.Message ID:
@.***>


Need column-first mode

Switch from row-first to column-first might be useful sometimes (360 panos with people)

Canceled as it will be implemented in the App later.


Update the docs to provide guidance on how to increase the maximum pointer extent

https://github.com/microsoft/MixedRealityToolkit-Unity/issues/5269

/azp run mrtk_docs


openmp collapse issue

I'm encountering an issue with collapse()
Testcase:
 import numpy as np
#pythran export collapse_bug(complex128[], int, complex128[])
def collapse_bug(x, m, btx):
    n = int(np.log2(m))
    lv = np.zeros((x.shape[0], n))
    N = x.shape[0]
    #omp parallel for collapse(2)
    for i in range(N):
        for k in range(n):
            lv[i,k] = abs(x[i]- btx[k])
    return lv

if I try to compile this I get a  error: not enough for loops to collapse. The reason seems to be that pythran puts code between the two loops. Here is the relevant part from the cpp file:
{
      #pragma omp parallel for collapse(2)
      for (long  i=0L; i < N; i += 1L)
      {
        {
          long  __target140051700270080 = pythonic::__builtin__::functor::int_{}(pythonic::numpy::functor::log2{}(m));
          for (long  k=0L; k < __target140051700270080; k += 1L)
          {
            lv.fast(pythonic::types::make_tuple(i, k)) = pythonic::__builtin__::functor::abs{}((x.fast(i) - btx.fast(k)));
          }
        }
      }
    }
    return lv;

According two the openmp specs:
The loops must be perfectly nested; that is, there is no intervening code nor any OpenMP pragma between the loops which are collapsed". so the declaration of the variable is in the wrong spot.

Pythran tries hard to generate perfectly nested loops when possible. From your test case I don't see any reason why it should fail here, I'll have a look. thanks for reporting!

#1340 should do the trick, and C++ compiler should be able to optimize the bound computation out of the loop.

I confirm that #1340 fixed it


add function to handle http requests

interface.js is the wrong place to put authentication logic. Authentication logic should be part of the application, not the UI library.
Closing pull request.


Contribution about making OSS a business from the beginning

Hi there, nice website.
I was browsing this part, which is always of particular interest to me:
https://opensource.guide/getting-paid
I think the whole website is a bit biased towards what is mentioned on that above link:

Much of open source work is volunteered. For example, someone might come across a bug in a project they use and submit a quick fix, or they might enjoy tinkering with an open source project in their spare time.

This is a shame. I wish our industry would step up and start being more entrepreneurial. There are a lot of us out there who see OSS as a means to an end (improved market reach and time to market, market validation, commoditisation of one of many products, etc.) not a philosophy.
If that point of view is interesting to you, I'd be happy to contribute. Here are some articles on the subject that I've written in the past:

https://opensource.com/business/14/1/how-to-transition-open-source-to-revenue
https://opensource.com/business/14/1/5-lessons-open-source-revenue-based-model

@lukaseder are you suggesting that there should be more emphasis on moving towards revenue based model for Open source projects , but can you give a valid point why such approach should be taken? in contrast to a normal unbiased approach
on the other hand the https://opensource.guide/getting-paid is largely unbiased and puts forward the look of present OSS as it is being fair and balanced .

Well :)
Your existing page is very biased in fact. It's biased towards OSS being an undisputable goal per se (and then optionally asking for money), rather than writing software for a living (and then choosing a licensing / marketing / sales model, which may or may not include OSS).
My suggestion was in favour of removing or weakening your existing bias, or at least of discussing the option that some people / companies choose OSS only for marketing reasons because of the very compelling price and legal model for consumers, e.g. to get the foot in their doors.
Your page starts like this:

Why some people seek financial support

Well, some people don't even ask themselves this question. Of course we all want to make money. The question for those people is: "why some people include OSS in their licensing strategy"
I thought this would be an interesting "alternative" point of view that is currently completely missing on your website. YMMV.

I don't see why helping $COMPANY getting a foot in my door is a recommendable thing, especially if $COMPANY is using FLOSS only for marketing reasons.

@lukaseder i got your point .... somewhat , why don't just make the damn changes and then we can further look upon pushing it to the master ?? What say ?
It looks somewhat correct the licensing part but i highly recommend please fork the repo and make changes .....i can contribute to it further once you are done here :)

Reminder that this is a place for respectful conversations. I've locked the conversation for now and will reopen it in a few days.

Passing on this suggestion, sorry.


Walk method : change in action signature to action (node, parent_node, index, root_node)

In some traversal cases, it is good to have a direct access to the parent_node. The additional parameters can also be useful. This would get the API closer to the forEach method for Array.

The current API allows you to get the parent and the index using node.parent and node.getIndex(). A possible improvement would be to have the index as an already computed property instead of computing it when getIndex() is called. When the tree is initially created you get the root node so you can use that reference if you need it during traversal. Since I'm giving the node to the traversal function, and not the node's model, I can enrich it with properties and don't need to add more function parameters.

All true. However there are some good reasons why the api for arrays (forEach, etc.) give back the original array as a parameter. Generally speaking it is not a question of need, there are always ways to do something. I believed this was intended to be a general purpose library (I could not find any with javascript with the same quality as the other languages). If this is just to suit your needs then of course no worries. I reviewed previously the other javascript tree library you mentioned has some of the functionalities, and then you have others. I guess I'll pollute the namespace and do my own. Great demo website by the way.

However there are some good reasons why the api for arrays (forEach, etc.) give back the original array as a parameter

I don't doubt that, although to be honest I never had the need to use it. Did you? In what scenarios?

I believed this was intended to be a general purpose library

It is intended to be general purpose. I just try to keep the API small, whenever it grows I add bugs and maintenance overhead so I really need strong use-cases for adding new methods.

I could not find any with javascript with the same quality as the other languages

Can you please point me to other languages tree libraries that you consider of superiror quality. I want to learn more about the differences in functionality.

I guess I'll pollute the namespace and do my own

That is always a choice. I gave you the link to the other library to see if by mixing you had the functionality you needed. Keep in mind that maintaining a library that pleases all is hard. What are the problems you're trying to solve?
Thanks

First of all, sorry for the delay in answering, your message somehow made it too low in my mailbox, I just saw it tonight while cleaning old messages. I don't know how to quote past comments but here are a few answers:

It is useful to have the original array as third parameter of the typical .forEach as in some cases, you will need extra information about the original array (could be length, or access to the previous element), and it allows you to use a pure function instead of a closure. I myself only used that twice for what I remember.
I got your point about maintenance and bugs. I am in the process of finishing my own lib. and it took me two weeks for those very reasons.
Java has a few tree libraries (cf. http://stevewedig.com/2014/10/06/digraphs-dags-and-trees-in-java/#library) and with python I like this one : http://www.stat.washington.edu/~hoytak/code/treedict/overview.html#overview (I finally used a similar metaphor in my library). The library with the most features are actually including also the visualization part. Other libraries are into some specific kind of graphs (not just trees, or exotic trees - binary trees etc.).
yes I looked closely at the link you provided. Was not general purpose enough for me though. The most important feature for me right now, apart from the usual tree manipulation functions (graft, prune, filter, reduce, find, etc.) is the diff. function. I am managing a component view tree, a la react, and having a tree data structure simplifies a lot my code.


using switches for demo snippet controls

While working on integrating the skeleton stuff, I thought it'd be cool for the demo snippet to support a control to enable/disable the skeleton on the component(s) inside. While implementing that, using the new <d2l-switch> seemed to make a lot of sense! That involved moving things to more of a side panel, which I think lines up with our future plans to add responsive resize handles that you could drag to shrink/grow the size of the demo area.
I also cleaned up the background/margins to avoid having the demo overlap with the controls (which happened occasionally) and tidied up the radius/border on the code view to make it fit a bit nicer.
Before:

After (with future skeleton switch, not included in this PR):

I updated things to use a side panel instead of dedicated space at the top, which is more in line with how we'll want to implement responsive resizing in the future.


Cannot post action including ReturnUrl on login with trailingslashes and attribute routing

So the problem I'm facing is with boilerplate and mvc 5. I have managed to get Identity working etc. but if I authorize an action that then returns me to the login page, this is just fine on get.
e.g. if I go to /admin/ without being logged in, I get redirected to
"/admin/account/login/?returnurl=%2fadmin%2f"
and this does display the login page just fine, but with
@using (Html.BeginForm(AccountControllerAction.Login, ControllerName.Account, new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { role = "form" }))

the actionurl becomes "/admin/account/login/?ReturnUrl=%2Fadmin%2F"
If I submit the form I keep returning to the login page, as if I'm redirected there, and no I'm not logged in either. Basically it cannot find the route it's posting to. The Get it can find though, which is strange?
As I said I can login normally if I'm at just "/admin/account/login/", because then the action is the same.
The problem seems to be that it cannot find the correct route. I'm using attribute routing and have followed the Boilerplate samples that were in there to start and then built upon that to add new constant routes and action values.
For the login it looks like this (with [RoutePrefix("admin/account")] ):
[HttpPost, ActionName(AccountControllerAction.Login)]
[AllowAnonymous]
[ValidateAntiForgeryToken]
[Route("login", Name = AccountControllerRoute.PostLogin)]
public async Task PostLogin(LoginViewModel model, string returnUrl)
I have tried various setups using [NoTrailingSlash]
and also in the RouteConfig.cs I tried things like this:
routes.MapRoute(
"Login",
"admin/account/postlogin/{anything}",
new { controller = "account", action = "postlogin" },
new { anything = @"^(?ReturnUrl=.)?$" }
);
but nothing has worked where I can keep trailing slashes.
The only thing that has "worked" is if I set
routes.AppendTrailingSlash = false;
and then also use [NoTrailingSlash] on the postlogin.
This does affect all the pages though and all my AJAX calls etc have get their trailing slashes stripped etc., which is really annoying.
Maybe I could solve this by using a form post using javascript/AJAX instead but I think it's weird that I cannot get this working. I assume it has to do with attribute routing but perhaps I'm just missing something as I implemented the Identity stuff myself into the Boilerplate template, but maybe you or someone else know how to solve this?

Notice that the /admin/account/login/?ReturnUrl=%2Fadmin%2F URL has an upper-case character in it. The RedirectToCanonicalUrl filter will cause anything without a trailing slash or anything with upper-case characters to be redirected to a URL without those things.

Thanks for the answer and sorry for the formatting.
Yeah, but I just tried a few things, e.g. changing new { ReturnUrl = ViewBag.ReturnUrl } to new { returnurl = ViewBag.ReturnUrl } in Html.BeginForm and also changed in Startup.Auth.cs under UseCookieAuthentication to ReturnUrlParameter = "returnurl", as well as the action parameters from string returnUrl to string returnurl but that still didn't work. It did change the action url to lowercase, so it did something but on post it couldn't find the action.
I came up with the idea, to add the return url parameter to the formdata instead, by adding a hidden element @Html.Hidden("returnurl", new { returnurl = ViewBag.ReturnUrl }) and removing new { returnurl = ViewBag.ReturnUrl } from the Html.BeginForm. This makes the action url to always be /admin/account/login/ but also sends the return url for the public async Task<ActionResult> PostLogin(LoginViewModel model, string returnurl) action to pickup. The string parameter doesn't need to have the same casing, I can rename it to string ReturnUrl and it still picks up the hidden formdata returnurl.
Not sure if there are any errors or flaws in this approach, from a security standpoint or something else, but to me it seems more robust to always post to the same actionurl?

Using a hidden form field can be a useful way to get information back to the server in a round trip if you are already using a form. You should also be able to use the query string though. I'm not entirely clear on what the problem is without a code sample.

http://localhost:1934/Admin
how can I redirect this admin to the login page? Now it takes me to the index page of Admin.
routes.MapRoute(
name: "Admin", // Route name
url: "admin/{id}",
defaults: new { controller = "Admin", action = "login" });
        routes.MapRoute(
            name: "Default",
            url: "{controller}/{action}/{id}",
            defaults: new { controller = "Home", action = "index", id = UrlParameter.Optional }
        );

Use the Redirect method in your controller and pass the name of the route you have mapped along with any parameters required by the route.
Consider using attribute routing with named routes, it makes things easier. There is very good documentation on the ASP.NET website.


MultipleChooserPanel does not work when used in a nested InlinePanel

Issue Summary

Steps to Reproduce
class AuthorPage(Page):
    author = models.ForeignKey("authors.Author", on_delete=models.PROTECT)

    content_panels = Page.content_panels + [
        FieldPanel("author"),
        InlinePanel("image_gallery_sections", label="Image gallery sections"),
    ]

class ImageGallerySection(Orderable, ClusterableModel):
    """Image gallery section, used to display multiple galleries on a page"""
    page = ParentalKey(Page, on_delete=models.CASCADE, related_name="image_gallery_sections")
    title = models.CharField(max_length=100, blank=True)

    panels = [
        FieldPanel("title"),
        MultipleChooserPanel("section_images", chooser_field_name="image")
    ]

class GallerySectionImage(Orderable):
    section = ParentalKey(ImageGallerySection, on_delete=models.CASCADE, related_name="section_images")
    image = models.ForeignKey("wagtailimages.Image", on_delete=models.CASCADE, related_name="+")

    panels = [
        FieldPanel("image"),
    ]

Nothing happens when clicking the "Add" button.
Any other relevant information. For example, why do you consider this a bug and what did you expect to happen instead?

I have confirmed that this issue can be reproduced as described on a fresh Wagtail project: no

Technical details

Python version: 3.11.3
Django version: 4.2.7
Wagtail version: 5.2.0
Browser version: Chrome 119

Got it working with a hack:
class MultipleChooserEmbededInlinePanel(InlinePanel):
    class BoundPanel(InlinePanel.BoundPanel):
        class Media:
            js = [
                # This must be defined due to an error with how Wagtail loads the chooser widget in inline panels.
                "wagtailadmin/js/chooser-widget-telepath.js",
            ]

Didn't debug to much, but this got me going 🙂

I have been able to reproduce with the steps from above, a slightly different model to suit bakerydemo though.

class AuthorPage(Page):
    author = models.ForeignKey("base.Person", on_delete=models.PROTECT)

    content_panels = Page.content_panels + [
        FieldPanel("author"),
        InlinePanel("image_gallery_sections", label="Image gallery sections"),
    ]

class ImageGallerySection(Orderable, ClusterableModel):
    """Image gallery section, used to display multiple galleries on a page"""
    page = ParentalKey(Page, on_delete=models.CASCADE, related_name="image_gallery_sections")
    title = models.CharField(max_length=100, blank=True)

    panels = [
        FieldPanel("title"),
        MultipleChooserPanel("section_images", chooser_field_name="image")
    ]

class GallerySectionImage(Orderable):
    section = ParentalKey(ImageGallerySection, on_delete=models.CASCADE, related_name="section_images")
    image = models.ForeignKey("wagtailimages.Image", on_delete=models.CASCADE, related_name="+")

    panels = [
        FieldPanel("image"),
    ]


Adding support for lumen

Adding support for lumen #31

Any chance this can be merged into a release?


Pagination overflows without wrapping in "table-responsive", but always shows an overflow-x scrollbar if you wrap in "table-responsive"

When going into touch or below responsiveness, the pagination goes outside of the box that the table is wrapped in.
Then, I tried wrapping the table in table-responsive, but now the table always has a scroll-x bar no matter what width the window is.

You can hack-fix this by the following CSS:
@media screen and (max-width: 1023px) {
    .card-content {
        padding-bottom: 60px !important;
    }
}


Get-Item file attributes numeric

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
I have a desktop.ini file that somehow got attributes 1572902:
$file1 = gi -force .\bin\desktop.ini
$file1.Attributes
1572902

Which according to WinNT.h is: FILE_ATTRIBUTE_HIDDEN, FILE_ATTRIBUTE_SYSTEM, FILE_ATTRIBUTE_ARCHIVE (expected) and also 0x80000 and 0x100000 which are unknown.
Normal desktop.ini files return this:
$file2 = gi -force .\desktop.ini
$file2.Attributes
Hidden, System, Archive

Trouble is, the first file does not return the correct answer from a test like this:
$file1.Attributes -match 'hidden'
False

Where the normal file does:
$file2.Attributes -match 'hidden'
True

Even though the problem file has strange attributes, should not the "known" attributes return properly?
Expected behavior
$file2.Attributes -match 'hidden'
True

Actual behavior
$file1.Attributes -match 'hidden'
False

Error details
No response
Environment data
Name                           Value
----                           -----
PSVersion                      7.1.3
PSEdition                      Core
GitCommitId                    7.1.3
OS                             Microsoft Windows 10.0.19042
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Visuals
No response

Looking at the raw value you have the following flags set:

FILE_ATTRIBUTE_HIDDEN - 0x00000002
FILE_ATTRIBUTE_SYSTEM - 0x00000004
FILE_ATTRIBUTE_ARCHIVE - 0x00000020
FILE_ATTRIBUTE_PINNED - 0x00080000
FILE_ATTRIBUTE_UNPINNED - 0x00100000

PS /home/jborean> 1572902 -eq (0x00000002 -bor 0x00000004 -bor 0x00000020 -bor 0x00080000 -bor 0x00100000)
True

The latter two seem to be somewhat undocumented in places and aren't defined as part of the System.IO.FileAttributes enum so instead of getting a nice and friendly human readable label the value is just a pure int. You cannot even cast it yourself as it will fail saying some values aren't valid
PS /home/jborean> [System.IO.FileAttributes]1572902
InvalidArgument: Cannot convert value "1572902" to type "System.IO.FileAttributes" due to enumeration values that are not valid. Specify one of the following enumeration values and try again. The possible enumeration values are "ReadOnly,Hidden,System,Directory,Archive,Device,Normal,Temporary,SparseFile,ReparsePoint,Compressed,Offline,NotContentIndexed,Encrypted,IntegrityStream,NoScrubData".

When I say it's undocumented there is an entry for these masks under MS-FSCC

FILE_ATTRIBUTE_PINNED   0x00080000
This attribute indicates user intent that the file or   directory should be kept fully present locally even when not being actively   accessed. This attribute is for use with hierarchical storage management   software.<165>

FILE_ATTRIBUTE_UNPINNED   0x00100000
This attribute indicates that the file or directory   should not be kept fully present locally except when being actively accessed.   This attribute is for use with hierarchical storage management software.<166>

Why you have both masks set I have no idea as they seem complimentary but that's what the filesystem is returning. To fix this problem these flags need to be added to the .NET FileAttributes class so that PowerShell can represent them correctly. I  see an open issue about it https://github.com/dotnet/runtime/issues/39831 but there hasn't been much activity on it recently.
For your test I recommend using bitwise flags operations to test the present of the mask instead
$attr = 1572902

if ($attr -band [System.IO.FileAttributes]::Hidden) { $true } else { $false }

This works in both situations where the attributes is the enum value and when it's the raw integer.

Well, this is a good work-around, not a solution.

The solution would be to add these values to the FileAttributes enum but that type is in the .NET Runtime repo here:  https://github.com/dotnet/runtime/blob/main/src/libraries/System.Private.CoreLib/src/System/IO/FileAttributes.cs

Well, problem is that is not future-proof ... if Windows starts using new attributes, then the call fails again. Perhaps Powershell should only return values that are actually in the enum.

that is not future-proof

It is if you use @jborean93 suggestion:
$file2.Attributes -band [System.IO.FileAttributes]::Hidden
# OR
($attr -band [System.IO.FileAttributes]::Hidden) -ne 0

As for -match not working in this scenario, I suppose that is the crux of your issue here, right?  That might be worth opening in a separate issue or  you could rename it this issue.
I see that C# handles this situation better than PowerShell e.g.:

Specifically, note that C# does not error on the typecast of 1572901 to FileAttributes.  Also note that even though a typecast in PS fails, you can create this enum:
PS> $attr = [enum]::ToObject([System.IO.FileAttributes], 1572902); $attr.GetType().FullName
System.IO.FileAttributes

-band works on the result but -match does not.
PS> $attr -band [System.IO.FileAttributes]::Hidden
Hidden

PS> $attr -match 'Hidden'
False

I think it should return the enum's that it knows, but whatever ... yes, I have fixed my code to assume int return.

Got a similar problem for FILE_ATTRIBUTE_PINNED 0x00080000
I found the docs here, but nowhere else: https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-fscc/ca28ec38-f155-4768-81d6-4bfeb8586fc9


Add a way to configure SampledBy property

For some people with few users sampling by operations is more appropriate.
Add a way to configure what is used by default.

Agree, the priority list of properties (applied for sampling) should be configurable.

Sampling have since changed and no longer uses userid. Closing as no longer applicable.


Explanation for the example workflow file in the readme?

As I was reviewing your action, I was curious about the event triggers you chose:
  pull_request_review_comment:
    types: [edited, deleted]

  pull_request_review:
    types: [submitted, edited, dismissed]

  pull_request:
    types: [opened, reopened, labeled, unlabeled, synchronize, review_requested, review_request_removed]
    branches:
      - main

pull_request_review_comment: Why not check created as well? Can editing change the resolution of a comment?
pull_request_review: I submitting and dismissing will cover the bulk comments that come with review (I assume all review comments disappear after dismissing a review). Is edited useful?
pull_request: Is there any need to have anything except opened, labeled, unlabled here to get the initial status?

It seems maybe we're being over eager in target choices just to have more chances to get a status update without the user having to remove the label themselves? That makes sense though might increase check latency. I wonder how it feels in practice.
Either way, it seems good to update the readme with the reasons since it's after reading your rather good write up I wasn't quite sure how all the event targets were related other than as mentioned above!
Cheers!

One reason not to use created for pull_request_review_comment is that it triggers for every comment in a single review!
Still not sure about the edited and synchronize types but definitely makes more sense now after playing around!


Add Alertlogic troubleshooting submodule

Problem
Alertlogic support people need private commands set plugin in order to execute support activities
Resolution
Make it possible to extend base API client in the submodules
Add git submodule which will be only available from within AL

@juantascon please take a look

@juantascon done please take a look


Support pydantic >= 2

Problem
I've tried using prisma-client-py with fastapi = { version = "^0.100.0"}, but it's incompatible because it requires Pydantic 2.
Suggested Solution
Support for Pydantic v2 in prisma-client-py would be ideal, ensuring compatibility with the latest FastAPI server.
Alternatives
As of now, I've had to forego Prisma and instead use psycopg for my database queries.
Additional context
Because no versions of prisma match >0.9.1,<0.10.0
 and prisma (0.9.1) depends on pydantic (>=1.8.0,<2.0.0), prisma (>=0.9.1,<0.10.0) requires pydantic (>=1.8.0,<2.0.0).
Because pydantic-extra-types (2.0.0) depends on pydantic (>=2.0b3)
 and no versions of pydantic-extra-types match >2.0.0, pydantic-extra-types (>=2.0.0) requires pydantic (>=2.0b3).
Thus, prisma (>=0.9.1,<0.10.0) is incompatible with pydantic-extra-types (>=2.0.0).
And because fastapi (0.100.0) depends on pydantic-extra-types (>=2.0.0)
 and no versions of fastapi match >0.100.0,<0.101.0, prisma (>=0.9.1,<0.10.0) is incompatible with fastapi (>=0.100.0,<0.101.0).

fastapi==0.100.0 still supports pydantic v1. However, it'd be nice if prisma-client-py supported pydantic v2. FastAPI will deprecated pydantic v1 in the future.

Completely agree, we want to migrate to the prisma client but this is currently a dealbreaker as we use pydantic 2 in the rest of our application :/

Indeed, this is a big issue for us too. @RobertCraigie if you get a moment to think about this, how much work do you think it will take? Plz let us know also what priority this has for you.

We also need this, as langchain will deprecate support for pydantic v1 on 25th of august

Hey all, sorry for the delay here. I unfortunately haven't been able to spend much time working on Prisma Python recently.
However this is the highest priority item for me, I'll try and get support out as soon as possible. Please note that this will take a lot of work as we use Pydantic extensively throughout the library & rely on features that have been changed fundamentally in v2.
The auto-migration tool is sadly not very helpful as I want to maintain support for Pydantic v1 & it doesn't help with that.

Understood, thanks for all the effort you're putting into this in the first place! You've made a very useful tool.

Support for v2 has been released in v0.10.0, please give it a try and let me know if you run into any issues!

Wow, this was fast! I'll see if it works out of the box for our tests.


Makes secret K8s resource creation optional

[ ] Breaking change? (if so, please describe the impact and migration path for existing application instances)

What changes did you make? (Give an overview)
As described in the issue, this PR adds an if to the secret template of the chart to make it conditional if no secrets are set in the values file.
No changes have been made to the values structure.
No comments have been made since the change is very small, simple and straightforward and no other template is commented in the chart.
Imho no changes are needed to the documentation, if there is another opinion please let me know and I'll be more than happy to address all comments.
Is there anything you'd like reviewers to focus on?
How Has This Been Tested? (put an "x" (case-sensitive!) next to an item)

[ ] No need to
[x] Manually (please, describe, if necessary)
[ ] Unit checks
[ ] Integration checks
[ ] Covered by existing automation

This has been tested with local rendering of the templates (helm template kafka-ui . -f values.yaml --dry-run | yq e 'select( .kind == "Secret") ') and by deploying it with flux and helm in a kubernetes cluster.
When the secret value has it's default value  (secret: {}) the template does not render and the resource is not created.
When you provide a list of key value pairs e.g.:
secret:
  foo: bar
  password: secret

The template renders and the resource is created as expected.
Checklist (put an "x" (case-sensitive!) next to all the items, otherwise the build will fail)

[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation (e.g. ENVIRONMENT VARIABLES)
[x] My changes generate no new warnings (e.g. Sonar is happy)
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged

Check out Contributing and Code of Conduct
A picture of a cute animal (not mandatory but encouraged)
Archive picture of past code review

Please change helm chart version

done 😃

@cpapad thank you!


Enhanced event log processing

Hi @c0shea,
This is quite a large PR, and is based on extensive work I did with Seq.Client.WindowsLogins  which was originally forked from the Seq.Client.EventLog codebase.
One key thing that I found is that the EventLog.EntryWritten handler can be unreliable ...  I also note that you have issue #3 which seems to reflect the unreliability of EntryWritten, so it's likely this PR would close that issue.
After reworking the Seq.Client.WindowsLogin codebase to use EventLogWatcher.EventRecordWritten, I was able to show that the service was reliably and consistently sending logs to Seq without fail.  Seq.Client.WindowsLogin also moved to using a consistent method of logging to Seq so that the service would send its own logs to Seq, in addition to the logs produced from the Windows event log.
The biggest enhancement brought by Seq.Client.WindowsLogin was that it explicitly pulled the EventRecord properties out of the event log and presented them a Seq structured logging properties. That means that I could readily examine the LogonType to detect genuine interactive logins, but it also put the whole property set up for grabs, to be used in any way I want - Seq signals, dashboards, alerts, etc. It's massively powerful.
In the background, I've also been working to foster some application interoperability in the Seq ecosystem, by introducing properties that can be passed into the event stream (like Priority, Responders, ProjectKey, etc) that can then be used by output apps to target alerts. Windows Logins for Seq was one of my own apps that received this treatment.
Circling back, though, I do use Seq.Client.EventLog for other purposes, and while Seq.Client.WindowsLogin moved a long way from the current release - I wanted both to feed enhancements back to your app, and to genuinely enhance what your app brings to the table.
Hence - this work effort, which was fed by some "musing out loud" on Twitter 😂
Enhancements;

Dynamically parsing event XML data to structured properties - I feel like this is the really big one 😊
Added a heartbeat function that allows detecting service down, and providing stats to Seq (think dashboards etc)
Added "per-Windows event log" app interoperability properties - Priority, Responder, Tags, ProjectKey, Responders, InitialTimeEstimate, RemainingTimeEstimate, DueDate
Add per-log message templating to allow maximum configurability - any exposed property can be part of the template
Enhance ProcessRetroactiveEntries to allow saving the current bookmark between service stop/start
Add option for StoreLastEntry which can be used to save current bookmark between service stop/start, when ProcessRetroactiveEntries is not desirable
Allow optionally disabling file logging
Migrated from packages.config to PackageReference
Updated to .NET SDK type project
Update dependencies
Consolidate logging to Lurgle.Logging for a consistent Serilog-based approach to both service logging and processing Event Logs

Appreciate this is a lot to parse, and a picture paints a thousand words, so below a sample of the resulting output:
Cheers,
Matt

Hey @c0shea,
I've put up my build of this enhanced version at https://github.com/MattMofDoom/Seq.Client.EventLog/releases/tag/v3.0.0 ... I did some tests against prod with it and it went amazingly well!  I may yet do a blog post on this while waiting on your review/merge of the PR, I'm really excited by the results! 😁
Ping @nblumhardt in case you're interested!
Cheers,
Matt

Thanks @c0shea 😊
If it helps, I've made dev builds available with the latest at https://github.com/MattMofDoom/Seq.Client.EventLog/releases/tag/v3.0.1
It looks pretty amazing when you hook it up to Seq and start sending logs with structured properties from the event XML!
Cheers,
matt

I've added a new dev build at https://github.com/MattMofDoom/Seq.Client.EventLog/releases/tag/v3.0.2
A couple of bug fixes arising from running this in production, and also enhancement to periodically save the latest bookmark on heartbeat.

Updated to current dependencies.
https://github.com/MattMofDoom/Seq.Client.EventLog/releases/tag/v3.0.3

Thanks for fixing this @MattMofDoom, we had some issues with the original and I really appreciate that you did this PR. :-)

@yooakim Most welcome! I really wanted to give something back, this is a great contribution and I saw opportunities to make it even cooler ... Thank you for the feedback!

There is an edge case that I just found where it is still possible for the listener to stop getting new log entries. The changes from this PR make this easy to detect and handle, by stopping and starting the listeners.
A new config item was added for the purpose to allow this to be handled in a way that suits everyone's environment.
Release is at https://github.com/MattMofDoom/Seq.Client.EventLog/releases/tag/v3.0.4

Added a bug fix for the idle event listener detection.
The behaviour of Seq.Client.EventLog when idle event listener was detected has been observed to operate exactly as intended (stops and starts the listener automatically), but it wasn't correctly counting all events and therefore was triggering unnecessarily.
This has now been tested in a production setting.
Release is att https://github.com/MattMofDoom/Seq.Client.EventLog/releases/tag/v3.0.5

Updated dependencies, no code changes - https://github.com/MattMofDoom/Seq.Client.EventLog/releases/tag/v3.0.6

Updated dev build at https://github.com/MattMofDoom/Seq.Client.EventLog/releases/tag/v3.2.1

Updated dev build (again!) at https://github.com/MattMofDoom/Seq.Client.EventLog/releases/tag/v3.2.2


header for new partner page

Update the header content on the new partner page to match the current main site.

Differences were intentional.


Implemented MEArecIO

Hello @alejoe91! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file neo/rawio/mearecrawio.py:

Line 18:1: E302 expected 2 blank lines, found 1
Line 57:100: E501 line too long (111 > 99 characters)

You need to add mearec in circleci/requirements_testing.txt
The problem we have is that merarec will installed (due to the circular dependancy) and maybe it will install the released version of neo!!
maybe we have to reverse this 2 lines in circleci/config.yml
            pip install -r .circleci/requirements_testing.txt
            pip install .

Can you add yourself+affiliation in doc/source/authors.rst ?
And fix the 2 pep8 stuff ?

Hi Alessio.
A bit of more clean and then we can merge this.
It is OK for me.

Hi Alessio.
A bit of more clean and then we can merge this.
It is OK for me.

Done :)

This is OK for me.
@JuliaSprenger do you want to have look before I merge this ?

Can I merge this ?

Can I merge this ?


Codeberg Bridge doesn't work anymore

Describe the bug
I use the codeberg bridge to monitor the releases of this repo.
I get the following error when I configure the bridge to point to it, and it used to work in the past.
Details
Type: Error
Code: 0
Message: Call to a member function find() on null
File: bridges/CodebergBridge.php
Line: 402
Trace
#0 index.php(11): RssBridge->main()
#1 lib/RssBridge.php(113): DisplayAction->execute()
#2 actions/DisplayAction.php(71): DisplayAction->createResponse()
#3 actions/DisplayAction.php(106): CodebergBridge->collectData()
#4 bridges/CodebergBridge.php(100): CodebergBridge->extractReleases()
#5 bridges/CodebergBridge.php(325): CodebergBridge->stripSvg()
#6 bridges/CodebergBridge.php(402)

Context
Query: action=display&bridge=CodebergBridge&context=Releases&username=dnkl&repo=foot&format=Atom
Version: 2023-09-24 (git.master.e1b911f)
OS: Linux
PHP: 8.2.7

I run my RSS-Bridge instance from the official docker image (I downloaded the latest build published 8h ago dbec2d274cf6 and I still face the issue). My docker-compose file is hosted here.
Tagging @VerifiedJoseph and @dvikan as they seem to be the mainly active contributors for this bridge.

@VerifiedJoseph they changed dom html

added a temp fix in https://github.com/RSS-Bridge/rss-bridge/pull/3730
it wont break but is missing tag and commit in body.

for the record there is also https://codeberg.org/dnkl/foot/releases.rss (i think this is new?)

yes it's new since dev 2022: https://github.com/go-gitea/gitea/pull/21696

I tested via https://github.com/StayPirate/apu2e4-containers/commit/d1f05856e3d16168383693d911466366b6cdbe76 and it works very good. In case of gitea (and codeberg) are now providing the same granular-level feeds as this bridge, then I guess it can be decommissioned. What do you think?

if their web ui covers all the bridges features yes for codeberg.
should not delete yet.. do not want to break existing feeds.
also the gitea bridge is still useful for earlier version of gitea deployments.


Manifest duplicate functionality

Used to use the old 'duplicate manifest' contextual menu option a bunch, is it still there and I'm just missing it?

It will be back in a future release. Wasn't happy with the implementation and had to cut the feature to get the new manifest UI out.

Ok, so I'm not crazy...
:+1:


[cli] az tc project-type create requires (at least) 3 subscription Ids

Describe the bug
Returned validation error: --subscriptions should be a space-separated list of at least 3 valid uuids
To Reproduce
az tc project-type create --name default.project --subscriptions [guid] --provider azure.appinsights --provider azure.devops --provider azure.devtestlab --location EastUS --resource-group-name-prefix tcmarkus_ --default
Additional context
Why do we need a min number of subscription Ids anyway? One should be enough IMO? Especially as using the same subscription Id 3 times as the parameter value solves the issue. So, the subscription Ids are not even checked for uniqueness.

Fixed in v0.3.0.  Please update.


How to display Color, Depth, and Pose streams all at once?

Required Info

Camera Model
D435 / T265

Firmware Version
<IP_ADDRESS>

Operating System & Version
Win (10)

Platform
PC

SDK Version
2.25.0

Language
C#

Issue Description
I'm trying to display all three of these streams simultaneously but I am crashing when I do so on the line:
var pp = pipeline.Start(cfg);
Is it not allowed to stream and display data from the D435 and T265 using the same pipeline?

try
     {
               Action<VideoFrame> updateDepth;
               Action<VideoFrame> updateColor;
               Action<VideoFrame> updatePose;
                // The colorizer processing block will be used to visualize the depth frames.
                colorizer = new Colorizer();

                // Create and config the pipeline to strem color and depth frames.
                pipeline = new Pipeline();

                var cfg = new Config();
                cfg.EnableStream(Stream.Depth, 640, 480);
                cfg.EnableStream(Stream.Color, Format.Rgb8);
                cfg.EnableStream(Stream.Pose);

                var pp = pipeline.Start(cfg);

                SetupWindow(pp, out updateDepth, out updateColor, out updatePose);
                Task.Factory.StartNew(() =>
                {
                    while (!tokenSource.Token.IsCancellationRequested)
                    {
                        // We wait for the next available FrameSet and using it as a releaser object that would track
                        // all newly allocated .NET frames, and ensure deterministic finalization
                        // at the end of scope.
                        using (var frames = pipeline.WaitForFrames())
                        {
                            var colorFrame = frames.ColorFrame.DisposeWith(frames);
                            var depthFrame = frames.DepthFrame.DisposeWith(frames);
                            var poseFrame = frames.PoseFrame.DisposeWith(frames);

                            // We colorize the depth frame for visualization purposes
                            var colorizedDepth = colorizer.Process<VideoFrame>(depthFrame).DisposeWith(frames);

                            // Render the frames.
                            Dispatcher.Invoke(DispatcherPriority.Render, updateDepth, colorizedDepth);
                            Dispatcher.Invoke(DispatcherPriority.Render, updateColor, colorFrame);
                            Dispatcher.Invoke(DispatcherPriority.Render, updatePose, poseFrame);

                            Win32Point p = new Win32Point();
                            GetCursorPos(ref p);
                            //String distance = depthFrame.GetDistance(depthFrame.Width, depthFrame.Height).ToString();
                            //var vsp = pipeline.ActiveProfile.GetStream(Stream.Depth).As<VideoStreamProfile>();
                            // h = (p.X / (vsp.Height / 2));
                            // w = (p.Y / (vsp.Width / 2));
                            h = p.Y;
                            w = p.X;

                            Dispatcher.Invoke(new Action(() =>
                            {
                                // String depth_dev_sn = new Sensor.CameraInfos(depthFrame.Sensor)[CameraInfo.SerialNumber];
                                //String distance = (depthFrame.GetDistance(depthFrame.Width / 2, depthFrame.Height / 2)).ToString();
                                String distance = (depthFrame.GetDistance(w,h)).ToString();
                                String coordinates = "X: " + p.X.ToString() + "  Y: " + p.Y.ToString();

                                txtTimeStamp.Text = coordinates + " Distance: " + distance;
                            }));
                        } //end using
                    } //end while
                }, tokenSource.Token);  //end task && END OLD CODE KEEP AROUND*/
            }//end try
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                Application.Current.Shutdown();
            } //end catch

Please take a look at tracking-and-depth example

@dorodnic Thank you I looked at those links and came up with the following for C#:
var dev = ctx.QueryDevices();
Config config = new Config();
//set all devices up
 for(int i =0; i < dev.Count; i++)
{
config.EnableDevice(dev[i].Info[CameraInfo.SerialNumber]);
config.EnableAllStreams();
Pipeline p = new Pipeline(ctx);
p.Start(config);
pipelines[i] = p;
}
However, I cannot seem to pick up the T265 device. When I debug, dev has a Count value of 1 so it's only retrieving the D435. Am I setting up the devices incorrectly here?

Are you building the .NET wrapper from source or using the assembly file from the installer?

@brettmilinski - Is this still happening?  As dorodnic asked is it consistently happening?  Were you able to get things working?


Add ability to download Worksheet results (CSV/XLS/Clipboard/Export)

Is your idea related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
The ability to query datasets through the worksheets is a great feature, making data.all more usable as a single pane of glass for users.  While once a user has been granted access to data, they may be able to work more directly with the data from S3 within an AWS account, non-technical or less technical users in an organization may need the ability to download query results directly from data.all, without having to work directly with the AWS account, in order to more easily retrieve result data as reports.
Describe the solution you'd like
A clear and concise description of what you want to happen.
P.S. Don't attach files. Please, prefer add code snippets directly in the message body.
Add a feature to the Worksheet result data display, where the user can choose to download the result data they have generated as a CSV formatted file.  XLS format, Copy results to clipboard, and other export options will also be useful.  The feature could be presented to the user as a menu or button which prompts the user for a local download location, and then processes the output file for the user to download.

Hi @rbernotas thank you for adding it :) We will have a look

Our organisation users are also interested in this feature.

#293

Referencing https://github.com/data-dot-all/dataall/issues/293 as well, I do think we will have interest in this feature, as despite the security concerns, it is a use case that we already regularly support with other platforms. One thing we have done in the past is to limit the number of rows that can be downloaded at a given time, so it's not so easy for someone to just select star grab all the data from a table and walk away with it. Ideally the CSV download would be a configurable feature, but also configurable in the maximum number of rows that can be downloaded for a query result. The idea being, that the CSV download would be for more ad-hoc usage / reporting, as opposed to bulk data export and data transfer (which would not be desirable).
We also had another set of use cases for CSV download that could be applied with such export support. It would be nice to be able to CSV export info about all the datasets in the catalog, or even your search result from the catalog (again, for reporting purposes, so teams can pass around the list of onboarded datasets, accounts that have been onboarded, etc.). Same for environments and organizations, and perhaps also available shares. This same functionality could be used in those cases as well. And future auditing feature where we can pull activity data from RDS can also benefit from this.

I have several thoughts on this feature:

We can do it as another group-permission. So, not everyone will have an opportunity to download the data

I see a potential problem in 'download only N rows'. The user can be unnecessary confused, if what they see is not what they get. Considering the download is restricted, maybe we should reconsider restriction on number of rows.

On the other hand, if number of rows is too big (much more than in worksheet-preview) and we want to form the file on server side, we will have a trouble with direct download. So, it's much better to store the result in S3 and share pre-signed url when it's ready.

One thing we have been asked for in regards to this feature, is logging for the ability to audit and trace:

who downloaded the results
what time they were downloaded
IP of the download request
what dataset/bucket/account is the data coming from
custom confidentiality mapping level
perhaps ability to associate the data download with the query that actually generated the results

I am not sure what is best, to have this in RDS user actions table, or if this should just be logged in Cloudwatch logs, or perhaps both.


responder heartbeat is not handled correct.

In current libspdm, responder receives heartbeat and just returns the heartbeat_ack back.
Ideally, we need a watchdog for the session.

A heartbeat msg will reset the watchdog.
If watchdog timeout, we need terminate the session.

I will check this

this is also related to timeout, ref #20


Error: socket hang up

Hi,
Sensu - uchiwa - checks - clients or everything was working perfectly. Something happened and the server stoped working. Then, I restarted the server and checked that all the services/servers are running. But, I don't seem getings alert e-mails from sensu monitoring system. I checked the log files, and finally found that uchiwa log file gives the following error:
{"name":"uchiwa","hostname":"fiweb06","pid":2172,"level":50,"msg":"Processing Sensu API Sensu returned "Error: socket hang up"","time":"2015-04-21T08:13:30.407Z","src":{"file":"/opt/uchiwa/usr/src/uchiwa/lib/dc.js","line":85},"v":0}
I check out the internet that i have not found any concrete solution for the issue.
Have you guys faced the same kind of issue before?
br,

Hi @adem82
It looks like you are using an older version of Uchiwa (<= 0.2.6) which was written in Node. I highly recommend you to upgrade to the latest Uchiwa version, if possible, since we now have a much more stable codebase.
Thanks!

Thank you palourde!
I will upgrade the whole things possibly.
Great that you released the stable version.
Regards!


In HystrixCollapser, only check if request cache is enabled once

NetflixOSS » Hystrix » Hystrix-pull-requests #171 SUCCESS
This pull request looks good


Update find and remove operation

Coverage increased (+1.6%) to 89.189% when pulling c92cde06bdfc4163073f3ae5ab8b5705c1784fc8 on change-find-and-remove-return-count into 95b44e97956ee97968c5576a2e30f9a34de529e1 on master.

Coverage decreased (-2.9%) to 84.677% when pulling eee89928297044173ae068bb87e969e7dac187b0 on change-find-and-remove-return-count into 95b44e97956ee97968c5576a2e30f9a34de529e1 on master.


demo

Demo of having monomorphized Provider<T> instead of e.g Provider<Http> or one for web socket.

Thanks, closing for now to keep the PRs clean. Will revisit later on to see if this is doable in a clean API, given the recent middleware refactor


DOC: <Issue related to /v0.2/docs/integrations/tools/google_scholar/>

URL
https://python.langchain.com/v0.2/docs/integrations/tools/google_scholar/
Checklist

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

Issue with current documentation:
ImportError: cannot import name 'GoogleScholarAPIWrap' from 'langchain_community.utilities.google_scholar' (/usr/local/lib/python3.10/dist-packages/langchain_community/utilities/google_scholar.py)
Idea or request for content:
how to fix this issue

hm what version are you on? i tried this on the most recent version and it seems to work fine for m


[maintenance] cpp cleanup

Motivation

I am opening this ticket as a followup to a discussion I am having with @incertum.
While working on  #2890 and #2974, I saw potential to improve some things in the code base.
I am not currently talking about low level refactoring of core functionalities but improvement of the code itself to make the life of new and old falco developers easier.
What this ticket is not: a suggestion for a revolution.
Proposition
There are several aspects that I would like to help improve:

code being more idiomatic C++ (for example, declare and use a variable in one line)
const correctness
override correctness
avoid shadowing (variables, parameters or functions)
ensure proper initialization

As a mean to that end, I have run cppcheck on the code base and it has found things in the above list and some more such as suggestions around using stl algorithms in place of loops in some places and the use of some deprecated APIs.
What I think would be nice is to devise a plan so that the various cleanup do not interfere too much with the current pull requests.
One possible way to go forward:

Make PRs in engine and app separately even if the topics are the same
Create PRs per type of cleanup (don't mix const correctness with override correctness)
Decide if there are some things that should not change (for example keep loops as is rather than stl algorithms)
Once done add a cppcheck action to the pipeline to ensure the code keeps its quality

Some questions around the organisation of that:

Should there be one ticket per type of cleanup to track the work ?
Use the task list feature of GitHub ?
Should the cleanup happen in a separate branch that will be rebased regularly until all the cleanups are done ?

Further suggestions are welcome
Note: I know some changes might rather be style related when thinking about idiomatic C++ so another question would be should they wait for https://github.com/falcosecurity/libs/issues/381 to be done ?
### Tasks
- [ ] https://github.com/falcosecurity/falco/issues/3063
- [ ] https://github.com/falcosecurity/falco/issues/3068
- [ ] https://github.com/falcosecurity/falco/issues/3082
- [ ] https://github.com/falcosecurity/falco/issues/3073
- [ ] https://github.com/falcosecurity/falco/issues/3122
- [ ] Refactor variable initialization on use
- [ ] Transform loop to std::algorithm
- [ ] https://github.com/falcosecurity/falco/issues/3084
- [ ] https://github.com/falcosecurity/falco/issues/3096

CC @falcosecurity/falco-maintainers - we will take a look soon! Thanks a bunch 🚀 !

Hey @sgaist
Thank you for your proposal! Here's my feedback.

Create PRs per type of cleanup (don't mix const correctness with override correctness)

I guess this :point_up:  would let us evaluate cleanups case by case and then :point_down:

Decide if there are some things that should not change (for example, keep loops as is rather than stl algorithms)

(sometimes, to decide if a change worth to be introducing or not, just a simple wip:/incomplete PR is enough)

Use the task list feature of GitHub ?
Yes, please :pray:

Should the cleanup happen in a separate branch that will be rebased regularly until all the cleanups are done ?

I believe the easiest way to move this forward is to make a PR per cleanup sequentially (each PR is a separate branch).

Note: I know some changes might rather be style related when thinking about idiomatic C++ so another question would be should they wait for https://github.com/falcosecurity/libs/issues/381 to be done ?

This is the big question :)
That initiative has been blocked due to a lack of capacity. Before proceeding, we should at least agree on the overall style.
Let's see what other maintainers think about this.

we should at least agree on the overall style.

I would appreciate this as depending on the PR I also experienced varying style feedback 🙃 A more realistic timeline would perhaps be June/July 2024 (post Falco 0.38.0)?

I believe the easiest way to move this forward is to make a PR per cleanup sequentially (each PR is a separate branch).

I agree to proceed in this way!

That initiative has been blocked due to a lack of capacity. Before proceeding, we should at least agree on the overall style.

Yeah at a certain point, we need to revamp this discussion!

Thank you for the suggestions! I am in favor of cleaning up the code, especially because lately we have been working to remove some potential sources of segfaults, undefined behavior and so on. I have some suggestions about it:

You mentioned you used CppCheck to discover these issues and we also run CppCheck in our workflow but perhaps it needs a little maintenance so that it warns on the right things. Could you please edit our static analysis jobs to suggest some checks to add to our CI? If they are not enforced or at least mentioned your work will sadly be lost in a short amount of time.
Out of all the cleanups, using algorithm is the one that sounds a bit more cumbersome because we have a lot of loops; personally I would keep that one out unless there is a very valid reason to do so, and that would require a bit more agreement
We are doing something similar for dynamic analysis as well (see https://github.com/falcosecurity/falco/issues/2930 and https://github.com/falcosecurity/falco/pull/3066)

From the looks of it, the static-analysis.cmake contains a more aggressive configuration for cppcheck than the one I have been using. Currently my command is cppcheck -i ./build --enable=warning,style,performance,portability 2>err.txt. We might be using a different version of cppcheck though. I am running it from my macOS command line while building falco in a Linux docker container (It might be a bit of an exotic setup, I should rather spin a virtual machine to be working 100% in Linux).
I am wondering whether there should be a reference platform for development like for example Debian 12, Ubuntu 22.04, etc. document. That way it might help new contributors be on the same page as the core developers.
I agree with the algorithm part, it does not always make sense to move over to them just for the sake of doing it. A careful analysis is needed.
Adding sanitizers is a very good idea. I am wondering whether doing some fuzzing would also be of interest.

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Provide feedback via https://github.com/falcosecurity/community.
/lifecycle stale

/remove-lifecycle stale

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Provide feedback via https://github.com/falcosecurity/community.
/lifecycle stale

/remove-lifecycle stale

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Provide feedback via https://github.com/falcosecurity/community.
/lifecycle rotten


How can I monitor an internal service with Uptime Kuma?

⚠ Please verify that this bug has NOT been raised before.

[X] I checked and didn't find similar issue

🛡 Security Policy

[X] I agree to have read this project Security Policy

📝 Describe your problem
Hi,
I have a simple nginx deployment running in the default namespace. And uptime-kuma running in its own namespace (kuma).
But when I try to add a monitor through UI, and given the URL "http://nginx.default.svc.cluster.local", it fails.
Can someone help me with this?
🐻 Uptime-Kuma Version
1.15.1
💻 Operating System and Arch
Amazon Linux 2
🌐 Browser
Google Chrome
🐋 Docker Version
No response
🟩 NodeJS Version
No response

Any error message in Uptime Kuma?

Hi @louislam,
Find the below screen snip for the error:

I never used K8s, but I think it should be your virtual network or Nginx config issue.
There are several things you can do, you can find which part is wrong:

Check Nginx is listening to which address and which port.
Check if they both are in the same network.
Uptime Kuma's image is based on Debian, you can go into the terminal and run curl http://nginx.default.svc.cluster.local/
Similarly, go into Nginx's terminal and try to run curl http://uptime-kuma:3001
Unlikely existing in k8s/docker I think, but should be no firewall in between them?

Hi I was able to fix this. The issue was that, I was using the wrong health check endpoint. Closing the issue.

Hi @iamdempa
Could you share your helm chart to use?

https://github.com/louislam/uptime-kuma/wiki/🔧-How-to-Install#-openshift-4-and-kubernetes-helm-3-chart-unofficial


for-await statement fails for Iterable objects

For-await on an Iterable<T> is valid, since it falls back to obj[Symbol.iterator] if obj[Symbol.asyncIterator] is not found. However, flow complains with the message  '$Iterable (This type is incompatible with $AsyncIterable. Property @@asyncIterator is incompatible:)'
async function test() {
  for await (const i of [1,2,3,4]) {}
}

Sounds more like a bug than a "feature request" ?

My workaround is to use an helper function like this to cast to AsyncIterable:
export default function asyncArray<T: Array<*>>(value: T): AsyncIterable<$ElementType<T, number>> {
  return ((value: any): AsyncIterable<$ElementType<T, number>>)

async function test() {
  for await (const i of asyncArray([1,2,3,4])) {}
}

Related https://github.com/facebook/flow/issues/5491

This now works


ImportError: numpy.core._multiarray_umath failed to import ImportError: numpy.core.umath failed to import 2021-02-12 11:32:51.847320: F tensorflow/python/lib/core/bfloat16.cc:714] Check failed: PyBfloat16_Type.tp_base != nullptr  Aborted (core dumped)

Please make sure that this is a bug. As per our
GitHub Policy,
we only address code/doc bugs, performance issues, feature requests and
build/installation issues on GitHub. tag:bug_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):Ubuntu 20.04
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:NA
TensorFlow installed from (source or binary):source
TensorFlow version (use command below):2.4.0
Python version:3.8.5
Bazel version (if compiling from source):4.0.0
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:11.2/8.1.0
GPU model and memory:GTX1660 Ti

You can collect some of this information using our environment capture
script
You can also obtain the TensorFlow version with:

TF 1.0: python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
TF 2.0: python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"

Describe the current behavior
Tensorflow not loading after installation.
Describe the expected behavior
import tensorflow as tf
Standalone code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate
the problem. If possible, please share a link to Colab/Jupyter/any notebook.
import tensorflow as tf 2021-02-12 11:48:37.037515: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0 RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd ImportError: numpy.core._multiarray_umath failed to import ImportError: numpy.core.umath failed to import 2021-02-12 11:48:37.272212: F tensorflow/python/lib/core/bfloat16.cc:714] Check failed: PyBfloat16_Type.tp_base != nullptr  Aborted (core dumped)
Other info / logs Include any logs or source code that would be helpful to
diagnose the problem. If including tracebacks, please include the full
traceback. Large logs and files should be attached.
pip freeze absl-py==0.11.0 anyio==2.1.0 argon2-cffi==20.1.0 astunparse==1.6.3 async-generator==1.10 attrs==20.3.0 Babel==2.9.0 backcall==0.2.0 bleach==3.3.0 cachetools==4.2.1 certifi==2020.12.5 cffi==1.14.5 chardet==4.0.0 cloudpickle==1.6.0 cycler==0.10.0 decorator==4.4.2 defusedxml==0.6.0 dm-tree==0.1.5 entrypoints==0.3 flatbuffers==1.12 gast==0.3.3 google-auth==1.26.1 google-auth-oauthlib==0.4.2 google-pasta==0.2.0 grpcio==1.32.0 h5py==2.10.0 idna==2.10 ipykernel==5.4.3 ipython==7.20.0 ipython-genutils==0.2.0 ipywidgets==7.6.3 jedi==0.18.0 Jinja2==2.11.3 joblib==1.0.1 json5==0.9.5 jsonschema==3.2.0 jupyter==1.0.0 jupyter-client==6.1.11 jupyter-console==6.2.0 jupyter-core==4.7.1 jupyter-server==1.3.0 jupyterlab==3.0.7 jupyterlab-pygments==0.1.2 jupyterlab-server==2.2.0 jupyterlab-widgets==1.0.0 Keras-Preprocessing==1.1.2 kiwisolver==1.3.1 Markdown==3.3.3 MarkupSafe==1.1.1 matplotlib==3.3.4 mistune==0.8.4 nbclassic==0.2.6 nbclient==0.5.2 nbconvert==6.0.7 nbformat==5.1.2 nest-asyncio==1.5.1 notebook==6.2.0 numpy==1.19.5 oauthlib==3.1.0 opt-einsum==3.3.0 packaging==20.9 pandas==1.2.2 pandocfilters==1.4.3 parso==0.8.1 pexpect==4.8.0 pickleshare==0.7.5 Pillow==8.1.0 prometheus-client==0.9.0 prompt-toolkit==3.0.16 protobuf==3.14.0 ptyprocess==0.7.0 pyasn1==0.4.8 pyasn1-modules==0.2.8 pycparser==2.20 Pygments==2.7.4 pyparsing==2.4.7 pyrsistent==0.17.3 python-dateutil==2.8.1 pytz==2021.1 pyzmq==22.0.3 qtconsole==5.0.2 QtPy==1.9.0 requests==2.25.1 requests-oauthlib==1.3.0 rsa==4.7 scikit-learn==0.24.1 scipy==1.6.0 Send2Trash==1.5.0 six==1.15.0 sklearn==0.0 sniffio==1.2.0 tensorboard==2.4.1 tensorboard-plugin-wit==1.8.0 tensorflow==2.4.0 tensorflow-estimator==2.4.0 tensorflow-probability==0.12.1 termcolor==1.1.0 terminado==0.9.2 testpath==0.4.4 threadpoolctl==2.1.0 tornado==6.1 traitlets==5.0.5 typing-extensions==<IP_ADDRESS> urllib3==1.26.3 wcwidth==0.2.5 webencodings==0.5.1 Werkzeug==1.0.1 widgetsnbextension==3.5.1 wrapt==1.12.1

@MedAbdelkaderAbba
Could you please try :
pip install numpy --upgrade
and let us know, if the error persist please share indented stand alone code or a colab gist with the error reported.
Ypu may also refer to similar issues: link, link1, link2.

pip install numpy --upgrade Collecting numpy   Using cached numpy-1.20.1-cp38-cp38-manylinux2010_x86_64.whl (15.4 MB) ERROR: tensorflow 2.4.0 has requirement numpy~=1.19.2, but you'll have numpy 1.20.1 which is incompatible. Installing collected packages: numpy   Attempting uninstall: numpy     Found existing installation: numpy 1.19.5     Uninstalling numpy-1.19.5:       Successfully uninstalled numpy-1.19.5 Successfully installed numpy-1.20.1
apart from the pip ERROR warning tensorflow seems to work fime.
Thanks!

@MedAbdelkaderAbba
Thank you for your response, please move the issue to close status.


Add support for S3 bucket data prefix

Add support for S3 bucket to prefix all data
https://docs.docker.com/registry/storage-drivers/s3/

This is a prefix that is applied to all S3 keys to allow you to segment data in your bucket if necessary.

@canterberry, sorry I didn't noticed that my signing key was not ok. Can you confirm that now everything is ok?

Released just now in v1.13.2.

@canterberry, great thank you!


Allow the end user to extend the schema

Allow the end user to extend/customize the slate.js schema used by the editor.

Plugins can now extend the schema.


Problem with "group" in .proto file.

An error occurs while compiling the .proto file below. If you remove the "group" from the file, everything goes smoothly.  Below .proto file is the error log.
Where could the problem be?
syntax = "proto2";

message Exch {
	optional group Service = 1 {
    	required bool request = 1;
    	optional bool setparam = 2;
	}
	optional group DateTime = 2 {
		optional sint32 year = 1;
		optional sint32 month = 2;
		optional sint32 day = 3;
		optional sint32 hours = 4;
		optional sint32 minutes = 5;
		optional sint32 seconds = 6;
	}
	optional group Coord = 3 {
		optional sint32 lat = 1;
		optional sint32 latdec = 2;
		optional sint32 lon = 3;
		optional sint32 londec = 4;
	}
	optional group Prog = 4 {
		optional sint32 num = 1;
		optional bool astro = 2;
		optional bool sunrise = 3;
		optional bool advance = 4;
		optional bool relay_state = 5;
		optional sint32 hours = 6 ;
		optional sint32 minutes = 7;
		optional sint32 dailyrep = 8;
	}
}

protoc --nanopb_out=. unitimer.proto
Traceback (most recent call last):
File "", line 6, in
File "main.py", line 128, in
File "main__protoc-gen-nanopb.py", line 1816, in
File "main__protoc-gen-nanopb.py", line 1796, in main_plugin
File "main__protoc-gen-nanopb.py", line 1642, in parse_file
File "main__protoc-gen-nanopb.py", line 1135, in init
File "main__protoc-gen-nanopb.py", line 1193, in parse
File "main__protoc-gen-nanopb.py", line 939, in init
File "main__protoc-gen-nanopb.py", line 412, in init
NotImplementedError: 10
--nanopb_out: protoc-gen-nanopb: Plugin failed with status code 1.

Groups are not implemented, as they were already deprecated in 2011 when first versions of nanopb were written.
It's listed in documentation http://jpa.kapsi.fi/nanopb/docs/index.html "Limitations" section.

Thank you for your prompt response! I did not immediately pay attention to this paragraph of the documentation.


Post registration data to database

[x] post attendance at event
[x] post participant details if gathered

@imsickofmaps Please review. I can think of ways to improve this, but don't know how much time to spend polishing now.

:+1:

:boom: :shipit: :rocket:


Support setting a default ingress target that can be overridden by the target annotation.

CLA signed

/check-cla

/cla-check

/cla-check

/assign @njuettner

@justinbarrick can you add a description and/or link to an issue that this PR is resolving?


bug: CocoaPods could not find compatible versions for pod "Firebase/Crashlytics"

Plugin version:
"@capacitor-community/firebase-crashlytics": "^1.1.0"
Platform(s):
android/ios
Current behavior:
npx cap sync
I get this error
✖ Updating iOS native dependencies with pod install - failed!
✖ update ios - failed!
[error] Analyzing dependencies
        [!] CocoaPods could not find compatible versions for pod "Firebase/Crashlytics":
        In Podfile:
        CapacitorCommunityFirebaseCrashlytics (from `../../node_modules/@capacitor-community/firebase-crashlytics`) was
        resolved to 1.1.0, which depends on
        Firebase/Crashlytics (= 8.4.0)

        None of your spec sources contain a spec satisfying the dependency: `Firebase/Crashlytics (= 8.4.0)`.

        You have either:
        * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
        * mistyped the name or version.
        * not added the source repo that hosts the Podspec to your Podfile.

Capacitor doctor:

💊   Capacitor Doctor  💊

Latest Dependencies:

  @capacitor/cli: 3.2.3
  @capacitor/core: 3.2.3
  @capacitor/android: 3.2.3
  @capacitor/ios: 3.2.3

Installed Dependencies:

  @capacitor/cli: 3.1.2
  @capacitor/core: 3.1.2
  @capacitor/android: 3.1.2
  @capacitor/ios: 3.1.2

Thank you for your request.

out-of-date source repos which you can update with pod repo update or with pod install --repo-update

Have you tried that?

Thank you for your request.

out-of-date source repos which you can update with pod repo update or with pod install --repo-update

Have you tried that?

Hi there,
yes, I've tried the pod repo update but nothing seems to fix it. I'm using capacitor 3.0 and I should have already updated to the latest pods. It's not the first plugin we have installed but only this has created this problem while I sync it

I just installed the plugin a few days ago in a new Capacitor 3 app without any problems: https://github.com/robingenz/capacitor-firebase-plugin-demo (if you want to test your local setup)
What dependencies do you have (package.json)?

here you go
{
  "dependencies": {
    "@capacitor/android": "^3.1.2",
    "@capacitor/app": "^1.0.2",
    "@capacitor/app-launcher": "^1.0.2",
    "@capacitor/browser": "^1.0.2",
    "@capacitor/cli": "^3.1.2",
    "@capacitor/core": "^3.1.2",
    "@capacitor/device": "^1.0.2",
    "@capacitor/dialog": "^1.0.3",
    "@capacitor/haptics": "^1.0.2",
    "@capacitor/ios": "^3.1.2",
    "@capacitor/keyboard": "^1.0.2",
    "@capacitor/push-notifications": "^1.0.3",
    "@capacitor/splash-screen": "^1.1.0",
    "@capacitor/storage": "^1.0.3",
    "@capacitor/text-zoom": "^1.0.2",
    "@craco/craco": "^6.1.2",
    "@headlessui/react": "^1.2.0",
    "@heroicons/react": "^1.0.1",
    "@sentry/capacitor": "^0.4.0",
    "@sentry/react": "^6.11.0",
    "@sentry/tracing": "^6.11.0",
    "@sparkfabrik/capacitor-plugin-idfa": "^3.0.1",
    "@tailwindcss/aspect-ratio": "^0.2.0",
    "@tailwindcss/forms": "^0.3.2",
    "@tailwindcss/line-clamp": "^0.2.0",
    "@testing-library/jest-dom": "^5.12.0",
    "@testing-library/react": "^11.2.6",
    "@testing-library/user-event": "^12.8.3",
    "@types/jest": "^26.0.23",
    "@types/node": "^12.20.11",
    "@types/react": "^17.0.4",
    "@types/react-dom": "^17.0.3",
    "axios": "^0.21.1",
    "body-scroll-lock": "^4.0.0-beta.0",
    "camelcase": "^6.2.0",
    "capacitor-native-biometric": "^3.0.3",
    "capacitor-rate-app": "^1.1.0",
    "clsx": "^1.1.1",
    "date-fns": "^2.22.1",
    "decimal.js": "^10.3.1",
    "easy-peasy": "^5.0.3",
    "formik": "^2.2.6",
    "framer-motion": "^4.1.11",
    "i18next": "^20.2.2",
    "lodash": "^4.17.21",
    "react": "^17.0.2",
    "react-dom": "^17.0.2",
    "react-hot-toast": "^2.0.0",
    "react-i18next": "^11.8.15",
    "react-intersection-observer": "^8.32.0",
    "react-query": "^3.17.2",
    "react-router-dom": "^5.2.0",
    "react-scripts": "4.0.3",
    "typescript": "^4.2.4",
    "web-vitals": "^1.1.1",
    "yup": "^0.32.9",
    "yup-phone": "^1.2.19"
  },
  "devDependencies": {
    "@shopify/eslint-plugin": "^40.2.1",
    "@shopify/prettier-config": "^1.1.2",
    "@tailwindcss/postcss7-compat": "^2.1.2",
    "@types/body-scroll-lock": "^2.6.2",
    "@types/plist": "^3.0.2",
    "@types/react-router-dom": "^5.1.7",
    "autoprefixer": "^9.8.6",
    "env-cmd": "^10.1.0",
    "eslint": "^7.25.0",
    "husky": "^6.0.0",
    "plist": "^3.0.2",
    "postcss": "^7.0.35",
    "prettier": "^2.3.0",
    "tailwindcss": "npm<EMAIL_ADDRESS>    "ts-loader": "^8.1.0",
    "ts-transformer-keys": "^0.4.3",
    "tsconfig-paths-webpack-plugin": "^3.5.1"
  }
}

This looks good. I thought maybe you have other Firebase plugins installed which have incompatible versions.
In that case, I need a minimal, reproducible example so that I can reproduce the issue.
Please test if the error also occurs in this project: https://github.com/robingenz/capacitor-firebase-plugin-demo

I've tried to do pod install --repo-update inside /ios/App/ and this is the result

[in /Users/stermi/dev/soplaya/mobile/restaurant-mobile/ios/App]
Updating local specs repositories
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "Firebase/Crashlytics":
  In Podfile:
    CapacitorCommunityFirebaseCrashlytics (from `../../node_modules/@capacitor-community/firebase-crashlytics`) was resolved to 1.1.0, which depends on
      Firebase/Crashlytics (= 8.4.0)

None of your spec sources contain a spec satisfying the dependency: `Firebase/Crashlytics (= 8.4.0)`.

You have either:
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

I've tried the other repo you suggest and it works fine. What could be the problem?

Uhm I think that maybe the problem could be in the ios/App/Podfile where I have
platform :ios, '12.0'
use_frameworks!

# workaround to avoid Xcode caching of Pods that requires
# Product -> Clean Build Folder after new Cordova plugins installed
# Requires CocoaPods 1.6 or newer
install! 'cocoapods', :disable_input_output_paths => true

def capacitor_pods
  pod 'Capacitor', :path => '../../node_modules/@capacitor/ios'
  pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios'
  pod 'CapacitorCommunityFirebaseCrashlytics', :path => '../../node_modules/@capacitor-community/firebase-crashlytics'
  pod 'CapacitorApp', :path => '../../node_modules/@capacitor/app'
  pod 'CapacitorAppLauncher', :path => '../../node_modules/@capacitor/app-launcher'
  pod 'CapacitorBrowser', :path => '../../node_modules/@capacitor/browser'
  pod 'CapacitorDevice', :path => '../../node_modules/@capacitor/device'
  pod 'CapacitorDialog', :path => '../../node_modules/@capacitor/dialog'
  pod 'CapacitorHaptics', :path => '../../node_modules/@capacitor/haptics'
  pod 'CapacitorKeyboard', :path => '../../node_modules/@capacitor/keyboard'
  pod 'CapacitorPushNotifications', :path => '../../node_modules/@capacitor/push-notifications'
  pod 'CapacitorSplashScreen', :path => '../../node_modules/@capacitor/splash-screen'
  pod 'CapacitorStorage', :path => '../../node_modules/@capacitor/storage'
  pod 'CapacitorTextZoom', :path => '../../node_modules/@capacitor/text-zoom'
  pod 'SentryCapacitor', :path => '../../node_modules/@sentry/capacitor'
  pod 'SparkfabrikCapacitorPluginIdfa', :path => '../../node_modules/@sparkfabrik/capacitor-plugin-idfa'
  pod 'CapacitorNativeBiometric', :path => '../../node_modules/capacitor-native-biometric'
  pod 'CapacitorRateApp', :path => '../../node_modules/capacitor-rate-app'
end

target 'App' do
  capacitor_pods
  # Add your Pods here
  pod 'FirebaseCore', '7.11.0' # Add this line
  pod 'Firebase/Messaging', '7.11.0' # Add this line
end

If I remove those pod it sync but I need them because of Firebase Notification and Firebase Analytics. I added those following the capacitor plugin (of those two) guide.

Please try to update the pods FirebaseCore and Firebase/Messaging to version 8.x.x (e.g. 8.4.0).
As far as I know the major version should match and @capacitor-community/firebase-crashlytics uses pod 'Firebase/Crashlytics', '8.4.0'.

Doing that (or removing the version) seems to work. On Android I was able to track a crash, on iOS I always get this
Failed to download settings. If this is your first time launching the app, make sure you have enabled Crashlytics in the Firebase Console. Error Domain=FIRCLSNetworkError Code=-5 "(null)" UserInfo={status_code=404, type=2, request_id=, content_type=text/html; charset=utf-8}

Doing that (or removing the version) seems to work.

Great! In that case, I'm closing this issue.

On Android I was able to track a crash, on iOS I always get this ...

Please make sure that you have followed the installation steps carefully.
If the problem persists, please open a new issue with all the required information.

For me Having Mac (M1): run command: arch -x86_64 pod install  inside ios/App folder. works.


Using nodejs on linux, cannot find the youtube-dl program

Checklist

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

Question

Hello, I am making something using nodejs with your wrapper but my system is linux and it cannot find the youtube-dl file that I downloaded in the releases, I was wondering if there is any fix for that, I have tried everything and still nothing works.

We can't guess how your weird setup is failing. Provide more details, such as:

where is yt-dl installed?
what is the value of your PATH environment variable?
what NodeJS function is used to execute the program?
code excerpts.

@GuntherCS ?