fix ruby2.7 kwargs warning with finders method_missing

Description
Warnings generated by Ruby 2.7 regarding kwargs were fixed with this patch: https://github.com/drapergem/draper/pull/885. However, I ran into a lingering one generated by the Finders module method_missing method. Adding ruby2_keywords to the function header as was done with the other method_missing methods from the aforementioned patch resolves the warning.
References

https://github.com/drapergem/draper/pull/885
https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/

Closing this to get it off my open PRs list since it seems this gem is no longer maintained.


Add a Gitter chat badge to README.md

bosun-monitor/bosun now has a Chat Room on Gitter
@captncraig has just created a chat room. You can visit it here: https://gitter.im/bosun-monitor/bosun.
This pull-request adds this badge to your README.md:

If my aim is a little off, please let me know.
Happy chatting.
PS: Click here if you would prefer not to receive automatic pull-requests from Gitter in future.

wait so are we now no longer using slack or what?

I just made a gitter room to see how it works. If people want to migrate there it would remove the need to have the odd invite thing, and would apparently give unlimited history and stuff that slack charges for.
Not sure about the performance of it though.

Sorry @kylebrandt. I really don't have enough pain with slack to move off. Just exploring possibilities.

i think @kylebrandt was using these images to suggest "stop bikeshedding" ?
FWIW i don't think we're bikeshedding here.
anyway carry on.


Cleanup broken links in documentation

There are some relative links in the documentation which currently cause 404 errors. We should go validate all pages of the docs and make sure the correct links are used.

Relative links which point to the Github Repo can be made absolute and should include the full repository url
Manual links to other pages in the docs can be replaced by `[link]({% link documentation/[page].md %}), which causes Jekyll to set them correctly and throw errors when they don't exist.

Some places that currently contain broken links:

./sql_metric.md
./orchestrate_scans.md
...

Proposal: write a post-deployment script that verifies no URLs point to anything that doesn't respond :)
P.S. it's not that hard and should take ~1 hour with https://www.crummy.com/software/BeautifulSoup/bs4/doc/ and something like:
for link in soup.find_all('a'):
    resp = requests.get(url)
    resp.raise_for_status()
    # recursively follow if domain is docs.soda.io
    # use global dict of visited places to avoid loops

You can maybe even solve it within jekyll during build: https://github.com/gjtorikian/html-proofer (no experience with it, but it showed up in some of the first results on a simple google search).

I'm cleaning up links in docs as I go through and update/edit all content. I will have touched them all by the end of the month.

Thanks @janet-can!

My work here is done. I've touched every doc and have updated all the links, checking to make sure they work. There are a very few exceptions that remain as un-relative links, but those remain on purpose.


Ensure Piped uses QUICK_SYNC for deployment triggered on OUT_OF_SYNC

What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?:

NONE

web-test seems to be failed 👁

Thanks. I have just fixed the test.

Nice
/lgtm

Nice work 👍
/approve


Gestures are not detected on the right side of the screen when position is set to right

The reason this happens is because the Stack used to add the _Content and _Drawer fits loosely. Which means it will not expand to the entire screen just the first width it detects. This is what it looks likes:

The black area is where the gestures are not being detected. If we change the Stack.fit to StackFit.expand (fit: StackFit.expand) we get:

This enabled me to add buttons and any related widgets to the end and it will work correctly. The reason I am making this issue is that now the drawer position when animating in is off by (screenWidth - drawerWidth). What is the best way to go about fixing this issue?
Thanks 😁

I fixed the issue by surrounding the Container in _Drawer with the Align widget.
Align(
  alignment: Alignment.topLeft,
  child: Container(
    width: drawerWidth,
    height: constraints.maxHeight,
    child: drawerBuilder(context),
  ),
)


Feature request: -g or --git-tag

I've been making Python packages over the Christmas break with the pyo3 Rust crate's extension module feature, and just found the cargo-bump plugin which fills a missing piece of my Python release workflow: a -g/--git-tag flag to immediately commit the bumped version & create a git tag, which you can then release on GitHub
FLAGS:
    -g, --git-tag    Commits the new version and creates a git tag
...

I think this would work really well with pdm-bump (in fact I came here to file this feature request immediately! :smiley:)

@lmmx I'm currently working on that, but in the first place it will only commit the new version. Adding the tag will be a good extension to that. I'm not very faithful, that this will be released this year.

Sweet! Great minds think alike :smiley:
I've taken a look at the approach taken in cargo-bump and outlined it below for your reference, along with a Python implementation. Happy to work these into a PR if you'd prefer that.
Rust approach
    let use_git = conf.git_tag;
    if use_git {
        git::git_check();
    }

If config.use_git argument is true/truthy, run git_check from the git module (runs git status --porcelain)

raise if it fails and advise user to "install git and try again"
error if output is empty as it means the working directory is not clean and advise user to "Please commit changes before trying to update the version"

edit the version string in the package code (in Rust this is in Cargo.toml, pdm-bump has already figured this part out), store the version that was bumped to

    let output = update_toml_with_version(&raw_data, conf.version_modifier);
    let version = output["package"]["version"].as_str().unwrap();

Git commit and tag the stored version

Try: git commit -am ${version}

Except: raise an error with the message "Something went wrong trying to commit the new version"

Try: git tag -am ${version} ${version}

Except: raise an error with the message "Something went wrong when creating a git tag"

    if use_git {
        git::git_commit_and_tag(version);
    }

from:
pub fn git_tag(version: &str) {
    Command::new("git")
        .args(&["tag", "-am", version, version])
        .status()
        .expect("Something went wrong when creating a git tag.");
}

pub fn git_commit(version: &str) {
    Command::new("git")
        .args(&["commit", "-am", version])
        .status()
        .expect("Something went wrong trying to commit the new version.");
}

pub fn git_commit_and_tag(version: &str) {
    git_commit(version);
    git_tag(version);
}

Python implementation
Here is the code to do this in Python:
import subprocess

def git_check() -> None:
    try:
        result = subprocess.check_output(['git', 'status', '--porcelain'])
        if result:
            raise RuntimeError("Working directory is not clean. Please commit changes before trying to update the version.")
    except subprocess.CalledProcessError:
        raise RuntimeError("This tool requires git. Please install git and try again.")

def update_version_in_file(version_modifier: str) -> str:
    ... # Implement your logic to update the version string here
    return new_version

def git_commit(version: str) -> None:
    try:
        subprocess.check_call(['git', 'commit', '-am', version])
    except subprocess.CalledProcessError:
        raise RuntimeError("Something went wrong trying to commit the new version.")
    return

def git_tag(version) -> None:
    try:
        subprocess.check_call(['git', 'tag', '-am', version, version])
    except subprocess.CalledProcessError:
        raise RuntimeError("Something went wrong when creating a git tag.")
    return

def git_commit_and_tag(version) -> None:
    git_commit(version)
    git_tag(version)
    return

So the main routine code would be:
use_git = conf.git_tag
if use_git:
    git_check()

new_version = update_version_in_file(conf.version_modifier)

if use_git:
    git_commit_and_tag(new_version)

If you take a look at the current implementation, we're almost there:
The existing command
$ pdm bump suggest
...

will analyze you're git history and suggest a new semantic version based on your conventional commits.
On one of the branches a proposal for pdm bump auto is implemented, which takes the suggestion and create commit from this.
Finally, the existing command
$ pdm bump tag
...

will create a tag.
Hence, all I have to do is add the ability to evaluate the tag.
This could be done in the base implementation of VersionModifier at https://github.com/carstencodes/pdm-bump/blob/6979f3062fd2b0c5d5c667e2e0ad561cd0b073aa/src/pdm_bump/actions/base.py#L243
I think, this won't take much effort. All I have to do is create a pre- and post handling of the command.
I will come back to you in the next 2 days.

@lmmx Feel free to play around with it in 0.8.0b1

Please note, the command is --tag or -t


Update Dockerfile

to fix CVEs

:+1:

Current coverage is 96.06% (diff: 100%)

Merging #40 into master will not change coverage

@@             master        #40   diff @@
==========================================
  Files            20         20
  Lines           229        229
  Methods           0          0
  Messages          0          0
  Branches          3          3
==========================================
  Hits            220        220
  Misses            9          9
  Partials          0          0

Powered by Codecov. Last update 2114bef...98d9851

👍


Remove unused code, goimports, simplify some code

Another round of linting changes from TS_travis_linting.

Coverage increased (+0.01%) to 34.669% when pulling 871549acbb17df958bf552937cab70c27e0b789f on TS_lint into 45452ca4a65bb509260ef4a6e914c7c49c0f548d on master.


Internal Redirect?

I've used spark for a few hours, and found it extremely cool. But I cannot find something that would make my code clear and simple in the documentation: the internal redirection, also known as RequestDispatcher#forward(req, resp) in the Java Servlet world. I guess this is quite a handy feature and it should not be hard to implement. Am I missing something or is it worthy a feature request?

How did you picture the syntax for this being?

For example on the Request class, add a method like Object Request#redispatch(String path), in this way, it's is possible to provide the flexibility to further modify the body.
But this opens the possibility of infinite redispatching loop, of which some mechanism should be added to assist the debugging; also special care might be needed so that this kind of loop won't chock the server.

Sorry, I'm still not clear on how this would work and what the purpose would be. Could you please expand on this example to demonstrate?

public static void main(String[] args) {

    Route routeOne = (Request request, Response response) -> {
        return "Route One";
    };

    Route routeTwo = (Request request, Response response) -> {
        return "Route Two";
    };

    get("routeOne", routeOne);
    get("routeTwo", routeTwo);

}

For example if you want /routeTwo simple being internally redirected to /routeOne, you could write it as below
public static void main(String[] args) {

    Route routeOne = (Request request, Response response) -> {
        return "Route One";
    };

    Route routeTwo = (Request request, Response response) -> {
        return request.redispatch("routeOne");
    };

    get("routeOne", routeOne);
    get("routeTwo", routeTwo);

}

It looks like you achieve what you want by using the  handle() method on the route:
Route routeOne = (Request request, Response response) -> {
    return "Route One";
};

Route routeTwo = (Request request, Response response) -> {
    return routeOne.handle(request, response);
};

The routeOne object may not be accessible in the routeTwo block. Also, it's quite common for a route to derive parameters based on the URL, which I think would break with such a naive invocation.
I was forced to create a route that listen "/*" and do routing logic myself.

+1 to internal redirect
I think most people use spark for creating rest apis...
who never went through this situation? Where you have related resources
GET /authorsGET

Anyone on this?

Soon I'll make a PR
I am thinking about the syntax... what about:
Spark.redispatch(String address, Request req, Response res)
Spark.redispatch(String address, Request req, Response res, HttpMethod method)

+1

Actually I have implemented this feature, but one thing to notice is that js fetch api actually follows redirect responses by default
So... if your consuming apis from frontend, you don't need to handle browser redirects by yourself
PS: It's just one note, actually in most cases internal redirect is better suited for me

Sorry that despite the fact that I'm the person who opened this issue, I wasn't active in the discussion. To be honest I stopped using Spark because the project I worked on moved to the standard Java servlet technology. I still like Spark as a minimal framework when I need a quick prototype and feel the necessity of the ability to perform internal redirection.
@MartinsThiago thank you for working on it! As for the API, I think it's cleaner to be able to call the redirection API through a request or response object but it's just a matter of taste.
@tipsy is there any plan to merge the PR?

@haochenx Yes, although not very soon. Need to mull it over.

+1 Any news on this one?


Permissions Granted -  a  user with restricted user-base role can create / import existing cluster

Rancher Server Setup

Rancher version: 2.6.3
Installation option :  Helm Charts -

Information about the Cluster

Kubernetes version:Kubernetes v1.21.4 ( set with kubespray)
Cluster Type : Local

User Information
What is the role of the user logged in?

Local USER + Global-Permission set to  User Base   + Project Member Role

Describe the bug
This user have the ability to :

in Home : create  Custone cluster
in Home  import existing Generic cluster
in Virtualization Management  :  create Harvester cluster

To Reproduce
Create an user with User-Base role , log with this user and go checking in Home
to see that buttons :  create and import existing are there.

Expected Result
User-Base role should not permit that

We are also facing similar situation. In our case, we do not want to show the cluster import/create buttons for local user type user base.

@sureshgoli25 In your case, the local user can also create a cluster or you just don't want the local user to see the cluster import/create buttons? If it's the last case, can the local user still create a cluster?

@seb-835 were you able to actually create and import a cluster using a user with user-base role?
I tried to reproduce this in 2.6.3 and while I do see the buttons to create and importing existing cluster, when I tried to do so I got an expected permission error.

I confirmed that this same behavior happens in 2.6.2, and I suspect that this is a UI error that is incorrectly showing those options. But I need to double check a bit more.

@macedogm
With my  user-base role user,  on the UI,   go top left  to select Home view :
we then got the  access to the buttons :

if i click on import existing :

i do not try to go to the end of the process, il may failed, but those buttons must not be visible for a user-base role user.

thanks @seb-835 , agree, those buttons should not be visible. I'll address this internally with the proper team.

I confirmed that this is happening since 2.6.0 until 2.6.3. A read-only user in the local cluster with user-base role should not see in the UI the buttons to import existing cluster and create cluster.

If this user user-base tries to create a cluster, it will fail as expected. So this seems to be a UI issue.

I believe that the following menus should also not be visible to a user-base user.

For example, the same behavior happens in the Pod Security Policies menu, which displays the Add Policy button.

If this user user-base tries to add a PSP, it will fail as expected.

This is an issue with the UI. Both buttons on the home page are always visibly regardless of user.


Matplotlib in abtools

Might I make a suggestion to change the init file to only import mpl on the utilities which require mpl. And thus it's taking 25 seconds to import this library every time I clean and reload abstar. Also, when I grep for "^mpl" I don't see it being used. However I do see seaborn used quite heavily.

It's only in init as a stopgap. Trying to save figures will often fail on AWS machines because there's no $DISPLAY, and the default mpl renderer requires it. Importing pyplot sets the mpl renderer as the default, so I need to ensure that mpl.use('Agg') gets called before I import pyplot anywhere.


add code coverage

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@a9f6328). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master       #1   +/-   ##
=========================================
  Coverage          ?   93.12%
=========================================
  Files             ?        3
  Lines             ?      131
  Branches          ?        0
=========================================
  Hits              ?      122
  Misses            ?        6
  Partials          ?        3

Continue to review full report at Codecov.

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


Unable to view object in AR mode

I am using the google modelviewer to view the 3D and then further use the AR functionality to view the object in AR form , my 3D is working perfectly fine , i have multiple 3D gltf files which i am succesfully able to view both in 3D and in AR form , but some of the files are not getting viewed in AR form , it is not showing anything when i am clicking on small cubicle form which opens up the object in AR form , there are some gltf files which are around 22MB size , which is not getting rendered in AR , and some files are around 10MB but still not getting opened up in AR while it is perfectly getting viewed in 3D form .
please help with the following issue .

Just want to add that we're experiencing a similar issue with AR using scene-viewer. The GLB that previously were working no longer load. We get a 'Couldn't load object' error. The file itself loads correctly in all GLTF viewers, just not in AR

@ikhizarwork Can you give us the details requested in our issue template you deleted? We can only help if we know what device/browser/AR-mode and such you're using.
@palashk92 Can you link a GLB that used to work and no longer loads in scene-viewer? We can pass that bug along.

Here is the file that's failing (I am unable to attach the GLB file so here's a link to download it)
https://admin-fts.threekit.com/api/files/f9fa0d33-b75c-48dd-8b19-0c326e3ba0cd/content

@eugenecys Can you take a look at this Scene Viewer regression (@palashk92's comments)?

@elalish we are experiencing a similar issue as @palashk92 has mentioned, earlier our gltf and glb files were running properly in modelviewer and as well as in AR mode , but currently the same old gltf and glb files are not opening in AR mode in both the devices i.e andriod and IOS .

Here's another example of a file that does not work (Please download and extract it from the ZIP file). No errors or warnings were reported by the glTF viewer(s). When I tried to debig it using adb I found these logs
[ 12-08 09:56:32.619 27372:27372 E/ImpView  ]
Future failed with error INTERNAL: Pipe closed

[ 12-08 09:56:32.619 27372:27372 E/ImpView  ]
Failed to Load Gltf url '<redacted>' reason: Pipe closed

@milesgreen @hybridherbst Since you are generally the most up to date on testing AR across platforms. Have you seen these problems? Any insights?

Hm, one thing that I can note is that this warning:

does tend to trip up some viewers (some will refuse to load the file).
Additionally, the model contains 21 textures (all 1-2k, some of which redundant) – should be fine for most viewers but I've seen older devices crash with that.
To be honest I'm not usually testing against scene-viewer anymore (just when someone runs into a specific problem), almost everyone uses WebXR by now for the additional interactive capabilities.

Thank you. I'll look into fixing that warning. However the other file I provided has no warnings or errors, but simply fails to load

@palashk92
One thing I noticed is that for both models, when entering AR, Three.js is throwing a warning to the console that USDZExporter does not support negative scales:

However, I don't think this is necessarily causing your issue, as even with those warnings, the models are still working.
I have tested both models in the following configurations:

iOS 17.3 beta, ModelViewer 3.3.0 using auto USDZ generation, viewed in Safari and Chrome:
✅ Both models loaded into MV and were able to be viewed in ARQuickLook.

iOS 16.6.1,  ModelViewer 3.3.0 using auto USDZ generation, viewed in Safari and Chrome
✅ Both models loaded into MV and were able to be viewed in ARQuickLook.

iOS 15.8, ModelViewer 3.3.0 using auto USDZ generation, viewed in Safari and Chrome
✅ another_attempt.glb - loaded into MV and was able to be viewed in ARQuickLook. Took a long time to open, but was tested on an old iPhone 7 device.
❌ failing-ar-file.glb - loaded into MV but would not open in ARQuickLook. It looks like the device just runs out of memory while generating the USDZ and never gets to the point of attempting to open ARQL. But this was just a little old iPhone7.

@palashk92 - are you able to confirm which version of MV you're using and which version of iOS you're seeing an issue with?

@ikhizarwork

do you have any example models or links you can share?

which version of ModelViewer are you using and with which version of iOS are you seeing these issues?

Our issue is only on Android. We're using scene-viewer 1.0. This is how we're generating the intent URL:
intent://arvr.google.com/scene-viewer/1.0?$<redacted url>#Intent;scheme=https;package=com.google.ar.core;action=android.intent.action.VIEW;S.browser_fallback_url=<redacted>;end;

Hi, I was wondering if there was any update on this?

@palashk92 you wrote

Thank you. I'll look into fixing that warning.

Did you? Also, did you test with less textures as described above?

I have fixed that warning. As for textures, I can't change that particular file due to certain constraints, but I tried with a different model that has less textures (11) and all the textures are now 512x512. It still fails. Attached is that file
attempt_2.zip

Hello, Happy New Year to you guys!
I was wondering if there was any update  based on my updated findings?

Hi, can we have an update on this? It impacts our production environment. If there's anything else we can try to workaround/mitigate the issue please let us know

@AdrianAtGoogle Can you repro this Scene Viewer bug?

@elalish
I am also encountering an issue with some GLB files. Specifically, they are not rendering properly in AR mode on iOS devices, although they work fine in AR mode on Android devices.
video-link-https://github.com/google/model-viewer/assets/91094418/38ab5d90-4e6a-4b1b-82bb-9253640cb944
this is my code-
<model-viewer       src="fried_checken.glb"       ar       ar-modes="webxr scene-viewer quick-look"       camera-controls       tone-mapping="commerce"       poster="poster.webp"       shadow-intensity="1"     >     </model-viewer>
This is my GLB file link
1-https://drive.google.com/file/d/1CWMp-OR_V-TRHksFc-6kgd79fCC4Ab5n/view?usp=sharing
2-https://drive.google.com/file/d/1BfxTIUR2lDfS_xjF1ycxDPXNJLz3NM5B/view?usp=sharing
Device Details
1- iPhone 11
iOS version 16.6.1
2- iPhone 15
iOS version 17.3
Kindly help with this.

@Azeem00786 I think your iOS issue is unrelated to the Scene Viewer (Android) issue here. That looks like a Quick Look bug (@grorg) - did it actually crash, or did you close it? I've noticed QuickLook getting slower and slower at loading models - my impression is it's not getting a lot of work these days. You can try filing a bug on WebKit - sometimes we get some traction there for QuickLook issues.

@elalish we are experiencing a similar issue as @palashk92 has mentioned, earlier our gltf and glb files were running properly in modelviewer and as well as in AR mode , but currently the same old gltf and glb files are not opening in AR mode in both the devices i.e andriod and IOS .
Please note that the problem is with the AR mode only , Model is getting viewed properly in Model-viewer component , the issue is with AR mode , when a user wants to see the model in AR mode , then that thing is failing. (The model is not rendering in AR mode)

Snap. Any glb I make throws the same Couldn't load object error when it moves over into Android AR. Your example pages work just fine.

@clochardM33 Is this with WebXR mode or Scene Viewer? WebXR should work the same as 3D mode for any GLB, since it's using the same rendering code.

Scene Viewer.
Have done a little more investigating. The "failure" is browser and model specific.
I have 3 pages and looked at them in Chrome, Edge and Brave on Android
Page...Chrome...Edge...Brave
1 - OK - OK - OK
2 - OK - Not OK - OK
3 - Not OK - Not OK - Not OK
All 3 pages are configured with "ar-modes = scene-viewer webxr quick-look"
The models are reasonably different sizes in triangles, but very different in texture sizes (1 smallest, 3 largest)
And as an aside 2 and 3 crash Safari on an iPhone 8 when the page loads even before you get to AR.
Is this starting to smell of an out of resources situation?
1 - https://blacreative.co.uk/demo/bd bathroom cabinets/
2 - https://blacreative.co.uk/demo/hightable.php
3 - https://blacreative.co.uk/demo/receptiondesk.php

Indeed it is. You might look at KTX2 textures to reduce your GPU RAM footprint.

I can confirm the browser being a problem. I have an iPhone 8 and the auto-generated usdz fails in Firefox but works in Safari.

Indeed it is. You might look at KTX2 textures to reduce your GPU RAM footprint.

Of course @elalish is on the money yet again.
There is a really nice introduction read here and a link to khronos' compressor below that.
But a word of warning about the compressor.  It's fine unless it doesn't like something. Then it's back to square one with you as it will latch or something similar and it's quicker to drag the model in and start from scratch.
Following this up did reveal another gottcha for me, but that is for a different Issue.
https://www.khronos.org/assets/uploads/developers/presentations/3D_Formats_Wayfair_KTX2_SIGGRAPH_Aug21.pdf
https://github.khronos.org/glTF-Compressor-Release/

@ConfidantCommunications Are you saying AR works in Firefox on iOS now? I wasn't aware of that. Any errors or information regarding the failure? Have you filed an issue on Firefox?

@elalish Yes Firefox iOS works if given a pre-generated USDZ. I've not pursued this further yet. I'm currently consumed with upgrading a Three.js project to use the AR capability of model-viewer. Once I actually have something that works in Safari I will look at getting Firefox working with auto-USDZ models.


feat: Use atlantis bot instead of a github user

Description
See https://www.runatlantis.io/docs/access-credentials.html#generating-an-access-token
This is a new feature as of 0.14.0
This PR closes https://github.com/terraform-aws-modules/terraform-aws-atlantis/issues/147
Motivation and Context
It's much better to set this up as a github app instead of a github user as you have an easier interface for granular controls, app can be installed across an org, and app settings can control which repos have access to it.
Breaking Changes
None
How Has This Been Tested?

Destroyed current atlantis
Recreated atlantis
Opened PR
Tested PR using a github app instead of a github user

@antonbabenko friendly ping :)

Thanks, @nitrocode !
Looks good, I have just released this as v2.24.0


Before You Report a Bug, Please Confirm You Have Done The Following...

[X] I have updated to the latest version of the packages.
[X] I have searched for both existing issues and closed issues and found none that matched my issue.

DeepFace's version
0.0.90
Python version
3.11.3
Operating System
Windows11
Dependencies
tensorflow==2.14.0
keras==2.14.0
Reproducible example
I run this in google colab and detect:

DeepFace.represent(img_path = r"/content/img.webp", detector_backend = 'skip')

Relevant Log Output
The program still OK
Expected Result
Output:
[{'embedding': [0.0,
0.0,
0.0,
0.0,
0.0,
0.006433258973663661,
0.0,
0.0,
0.0,
...],
'facial_area': {'x': 0, 'y': 0, 'w': 700, 'h': 3},
'face_confidence': 0}]
Meanwhile, the image I used has a shape of 700,700,3
What happened instead?
Wrong index of img
Additional Info
Line 87, def represent() in representation.py in modules
The line original: "facial_area": {"x": 0, "y": 0, "w": img.shape[1], "h": img.shape[2]}
I think it should be: "facial_area": {"x": 0, "y": 0, "w": img.shape[0], "h": img.shape[1]}

@MinhKint good spot! thank you for the information.
Seems you already find the root cause of the issue. Do you mind to create a PR for this? Want to see this is resolved by you in the commit history. If you do not want, I can fix this of course.

Thank you for sending, because I had an unexpected job the past few days so
I couldn't check the email you sent.
On Wed, May 1, 2024 at 5:05 PM Sefik Ilkin Serengil <
@.***> wrote:

Closed #1216 https://github.com/serengil/deepface/issues/1216 as
completed.
—
Reply to this email directly, view it on GitHub
https://github.com/serengil/deepface/issues/1216#event-12668945766, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/BHG5S7GOWXRAQSU5FIP56YLZAC46RAVCNFSM6AAAAABG2MUNOOVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSGY3DQOJUGU3TMNQ
.
You are receiving this because you were mentioned.Message ID:
@.***>


Contract error metadata collection and lint tool.

This commit adds a teia_sc.error_collection module which allows an option
to collect error metadata. The main use is to encapsulate tests and
methods related to producing consistent and compliant TZIP-16 error
metadata.
The first commit implements an example in daoToken only:
TARGET=daoToken make test

Results in output/tests/daoToken/Lint_FAILWITH_messages/log.html,
and in contract metadata under "errors", e.g. see Metdata tab in output/tests/daoToken/Test_set_metadata/log.html
The code has not been linted yet, but might be ok to take a look at now, at a high level.

I am thinking I might see if I can decorate some of the smartpy functions, such as sp.verify() rather than 'collecting' the errors with the ERR() helper function. If it is possible I don't think it's a huge change.

There is an issue that became obvious in more complex scenarios with multiple contracts. So this is not in a useable state yet.

This is working for me now. Time for a quick review, @jagracar.
I am not sure if this should be taken in, or if it will cause a bit of clutter. I am fine with it being put on hold or directed elsewhere.
The end product is a way to track most smart contract errors (providing the error-generating methods get triggered during test execution). It will then check what metadata is pre-recorded and see if it matches up to execution and if it looks 'compliant'. I have no deep understanding of TZIP-16, so don't trust my code on what it says is compliant!
There are no requirements and I tested with Python 3.8.
My own thoughts include:

I believe the provided functionality is not necessary right now (nice to have but might cause a tiny bit of clutter), if more support for error metadata is desired later it can be taken in then. The same goes for multi-language support. That can be added later.
So far I added the error_collection functionality to DAOToken and DAOGovernance targets only.
The injection into smartpy works to find errors, but it might be missing some cases,  so it should perhaps be used in conjunction with a coverage tool to check that all relevant calls are executed.
and it is of course dependent on smartpy not changing interfaces. When a smart contract is nearly ready for publication,  the injection can be removed and the constants can be used although the report discovery .
I am not sure about the module name teia_sc or if it should even belong inside the same repository.

Looks good! Let me know if you want to merge it.

The main problem i see is that one cannot copy paste the contracts to the smartpy gui and compile them. One will need to remove the import and the couple of lines involved, but it's not a big issue.

There's still an issue with reading/setting up metadata when the contract is initialized with the metadata from ipfs function. Basically the input doesn't make too much sense. I think it will be an easier fix to accept it, but I didn't have time to look at it in any detail, yet.

Merged!


Build Kubernetes Community Day Madrid 2020 Team

Kubernetes Community Day Madrid 2020
This event is still in the planning stages. Please check back here for updates!
Planning Info available in the Project Board - this includes content planning issues!
The event repo is kcd-es/madrid-2020.
What
We'll need to fill the following core roles + shadows to get the ball rolling on strategy and venue selections. Core team will decide on subteam roles (ie - marketing lead will determine if a writer is needed) based on the direction of the event.
This is our first event, so all lead roles are open for self nomination and will be decided in the next public meeting. Shadows do not need to have event experience but should be ok with taking a lead role within the next 12 months of events.
How
The Guide from the Kubernetes Community Days website:
https://kubernetescommunitydays.org/organizing/
The checklist:
Kubernetes Community Days Conference Action Items and Assignments

Team

Role
Lead
Shadow
Notes

Event Lead and Project Management
@raelga
@javierprovecho

Venue and Registration
@agonzalezro
@ereslibre, Serena

Sponsorship and partners
@atsuky
@gusraggio

Content Coordinator
@ereslibre
@javierprovecho, @jorgermp

Workshops
@angelbarrera92
@javierprovecho

Finance

Marketing and swag
@gusraggio
Bea ?

Accessibility, Inclusiveness, and Diversity

@raelga

Some suggestions based on my experience contributing to other events:

Join “Event Lead” with “Project Management”, this would be the first edition, a full time lead won’t be necessary.

Add “Venue” to “Registration”, as finding a place for the event, find catering options and improving attendees experience (maps, bags, etc).

Add dedicated role to “Finance”, tracking incomes (sponsors) and expenses (venue, catering, travel support, etc).

Join “Sponsorship and partners” with “Marketing”, centralizing external communications.

As per my experience it may be interesting to have a Design department or at least someone inside the Marketing team in charge of the design of all stuff needed for the event such as t-shirts/swag (if needed), posters/signs, banners, maps and so.

If is possible i would like participate as Shadow for Content Coordinator, i have experience in small events and courses.

Ive got experience with workshops and i am interested to be shadow at content coordinator, sponsor and registration.

Happy to step up as Event Lead / Project Management role.

As i said via telegram, i will lead workshops but i can join as shadow venue or sponsorship.
Let me know!

I added myself as shadow for the Accessibility, Inclusiveness, and Diversity, but I can lead it if needed.

Adding @rgordill as Finances lead and @gusraggio as shadow.

The team has been built! 🎉


Automated installation of beautifiers which are not preinstalled

Attention
If you are viewing this issue and think it is a great idea, please vote with a 👍. Thanks in advance! Your feedback is appreciated. After all, Atom-Beautify is for you 😄 .

Problem: Some beautifiers require manual installation by users
Not all beautifiers are written in Node.js and therefore require manual installation by users.
See https://github.com/Glavin001/atom-beautify#beautifiers for list of beautifiers and support.
Some users experience issues trying to install these dependencies on their own.
Can we make this process smoother? Or could we make this process automated? Better yet, could we make this process automatic, such that if the dependency is not already installed then Atom-Beautify will detect this and install it for the user, upon request?
Yes, I think we can.
Solution: Add Docker support to Executables
Executables is a new feature being developed in this branch: https://github.com/Glavin001/atom-beautify/tree/feature/executables
Docker will allow us to abstract away most of the problems with cross-platform (i.e. Windows, Mac, Linux) installation.
Here are some useful Docker images:

https://github.com/herloct/docker-php-cs-fixer
https://hub.docker.com/r/alairock/docker-php-codesniffer/

Inspired by https://github.com/whalebrew/whalebrew-packages
Questions for Users

[ ] Can users be expected to install Docker as a requirement to opt-in to this automated installation process?
[ ] Can using Docker become the expected/preferred installation route such that Travis CI can switch over to Docker-only tests? It is pretty messy already with cross-platform installation in Travis CI: https://github.com/Glavin001/atom-beautify/blob/master/.travis.yml#L105-L136
[ ] Is a 0.5-1 second additional time for beautifying using Docker acceptable to users? In my tests using php-cs-fixer --help vs docker run -it unibeautify/php-cs-fixer --help the former ran faster, however not by much.

Here are the Docker images: https://hub.docker.com/u/unibeautify/
And the Git repository: https://github.com/Unibeautify/docker-beautifiers
More coming soon!

Published to v0.30.0

hi, i have installed docker pull unibeautify/php-cs-fixer and it works when docker run unibeautify/php-cs-fixer --help , but it doesnt works as looking for which path, i never used docker before, i wonder what path should i use in the beautifiers settings. thanks in advance (and sorry if this issue was not in the scope, it was the most similar i could find)

Hey @JDias ! Thank you for reaching out. Could you please provide a debug.md Gist link and I'll try to help you debug the issue. See https://github.com/Glavin001/atom-beautify/blob/master/docs/troubleshooting.md

Hi @glavin001 , i can do that but im almost sure that is a issue related to docker.
I installed portainer and i can see that the image is not running, and i fail to make it start.
I never used docker, so im big lost.(and the provided docker install directions doesnt give nothing more than the pull command)

can do that but im almost sure that is a issue related to docker.

Likely. And the debug.md Gist should point to that.

I installed portainer and i can see that the image is not running, and i fail to make it start.

This is expected. The Docker container for unibeautify/php-cs-fixer (and others) will run and then exit upon completion.

I never used docker, so im big lost.(and the provided docker install directions doesnt give nothing more than the pull command)

The pull command should be all you need, and Atom-Beautify should do the rest. The debug.md should tell us where Atom-Beautify went wrong.

Hi @Glavin001 thanks for the attention.
should i start a new issue? here is the link:
https://gist.github.com/JDias/f575266640b0b647453b0ac27bd62180

Ps: i manual add the php bin path

I definitely agree. This experience is something I have been trying to improve for years. Unibeautify is a complete rewrite of Atom-Beautify with the goal to improve user experience while adding great new features.
Unfortunately, it is not so simple. The beautifiers for PHP are written in PHP, not JavaScript/Node.js. Therefore the integration is different and installation is separated using whatever package manager PHP requires. There are 4 different installation methods for PHP-CS-Fixer alone: https://github.com/FriendsOfPHP/PHP-CS-Fixer#installation
This is where I am investigating using Docker to normalize each of these various installation methods. See https://github.com/Unibeautify/docker-beautifiers
Since there are so many different user setups for external tools like PHP-CS-Fixer, Atom-Beautify has a builtin debugging tool to help us figure out what is wrong. It is almost always some kind of user error from operating system specific environment variable issues (ie. PATH not correct) to Atom-Beautify configuration.
For example, @JDias 's Gist:
2017-08-22T22:02:51.429Z - debug: [] spawn php-cs-fixer 0=fix, 1=--allow-risky=no, 2=--using-cache=no, 3=temp117722-3266-1qy1g09.444bpm0a4i.php
2017-08-22T22:02:51.512Z - debug: [] error Error: spawn php-cs-fixer ENOENT
    at exports._errnoException (util.js:1022:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
    at onErrorNT (internal/child_process.js:359:16)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)

Looks like the PHP-CS-Fixer does not have a configured Executable path.
The important PATH environment variable is reported in the logs as well:
2017-08-22T22:02:51.417Z - debug: [] PATH: /home/jaime/.local/share/umake/bin:/home/jaime/bin:/home/jaime/.local/bin:/home/jaime/.local/share/umake/bin:/home/jaime/bin:/home/jaime/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin

If php-cs-fixer is not found here, then there is no way for Atom-Beautify to find the program, regardless of whether it does exist somewhere.
@oxk4r01 : Please see https://github.com/Glavin001/atom-beautify/blob/master/docs/troubleshooting.md and create a Gist with your debugging information. Post a link here and we will try to help.
Also feel free to submit Pull Requests improving error messages or documentation.

Installed and "working" but the behavior is not correct. There are continuous problems with the indentation and when php and html are mixed (as in 99 % of projects occurs), the code ends completelly messed up. Not aproppiate for professional use at all (talking in therms of code formatting). I think this is an Atom's base problem, and a feature that should be addressed for the app by default, but to my knowledge, there isn't any package that fixes this issue correctly. In other ides, such Netbeans, this format and beautyfying is zero problem and the results are perfect in one click. I like some of Atom features very much (leaving appart issues such slowness and others), but the lack of implementation of basic features like this one is taking me to abandon it for basic productive reasons.

@oxk4r01 : Atom-Beautify does not perform any beautification, it wraps existing beautifiers in a unified experience.
See https://github.com/Glavin001/atom-beautify#language-support for language support. For PHP, two of the most populate would be:

PHP-CS-Fixer: https://github.com/FriendsOfPHP/PHP-CS-Fixer
PHPCBF: https://github.com/squizlabs/PHP_CodeSniffer

If you are experiencing issues where the Atom-Beautify is correctly detecting PHP, however, the beautifier (PHP-CS-Fixer or PHPCBF) is not generating your desired result, I recommend you reach out to their respective GitHub pages with the links above.
If you need assistance determining if Atom-Beautify is working and which beautifier is being applied:

Please follow the issue template provided. More specifically, adding a link to the required debug.md Gist which includes debugging information that answers our most commonly asked questions.
Thank you.

Hope this helps!


Udp url stream with mimetype video/avc are not playing

Media3 Version
Media3 1.0.0-rc02
Devices that reproduce the issue
tv box MXQPRO android 11.1
H96 MAx tv box
Q96 MAx tv box
X96 mini tv box
Decoder used: OMX.amlogic.avc.decoder.awesome
Devices that do not reproduce the issue
X98 H android 11.1
Decoder OMX.amlogic.avc.decoder.awesome
Reproducible in the demo app?
Yes
Reproduction steps
clone exoplayer demo application (media3) on android studio
replace media.exolist.json file and add udp://@<IP_ADDRESS>:1234 as url in all section to try all configurations
run application on tv box device
play each one , no exception or toast shown , video is not playing
Expected result
video udp stream must be played like other videos
Actual result
video is not playing and no exception found
Media
the specifications shown in EventLogger of url video that is not playing :
** tracks [eventTime=48.42, mediaPos=0.00, window=114, period=114
D  group [
D  [X] Track:0, id=1/68, mimeType=video/avc, codecs=avc1.4D002A, res=1920x1080, supported=YES
D  ]
D   group [
D   [X] Track:0, id=1/69, mimeType=audio/mp4a-latm, codecs=mp4a.40.2, channels=2, sample_rate=48000, language=, supported=YES
D  ]
D  downstreamFormat [eventTime=48.42, mediaPos=0.00, window=114, period=114, id=1/68, mimeType=video/avc, codecs=avc1.4D002A, res=1920x1080]
D  videoInputFormat [eventTime=48.42, mediaPos=0.00, window=114, period=114, id=1/68, mimeType=video/avc, codecs=avc1.4D002A, res=1920x1080]
D  downstreamFormat [eventTime=48.42, mediaPos=0.00, window=114, period=114, id=1/69, mimeType=audio/mp4a-latm, codecs=mp4a.40.2, channels=2, sample_rate=48000, language=]
D  audioDecoderInitialized [eventTime=48.42, mediaPos=0.00, window=114, period=114, ffmpegLavc58.54.100-aac]
D  audioInputFormat [eventTime=48.42, mediaPos=0.00, window=114, period=114, id=1/69, mimeType=audio/mp4a-latm, codecs=mp4a.40.2, channels=2, sample_rate=48000, language=]**
Note that the eventLogger stuck there and didnt show anything else until i change the channel
the specifications of url udp video that play well
tracks [eventTime=236.51, mediaPos=0.00, window=116, period=116
D    group [
D      [X] Track:0, id=2101/2101, mimeType=video/mpeg2, res=720x576, supported=YES
D    ]
D    group [
D      [X] Track:0, id=2101/2102, mimeType=audio/mpeg-L2, channels=2, sample_rate=48000, supported=YES
D    ]
D  ]
D  downstreamFormat [eventTime=236.51, mediaPos=0.00, window=116, period=116, id=2101/2101, mimeType=video/mpeg2, res=720x576]
D  videoDecoderReleased [eventTime=236.58, mediaPos=0.00, window=116, period=116, OMX.amlogic.avc.decoder.awesome]
D  videoDecoderInitialized [eventTime=236.66, mediaPos=0.00, window=116, period=116, OMX.amlogic.mpeg2.decoder.awesome]
D  videoInputFormat [eventTime=236.66, mediaPos=0.00, window=116, period=116, id=2101/2101, mimeType=video/mpeg2, res=720x576]
D  downstreamFormat [eventTime=236.66, mediaPos=0.00, window=116, period=116, id=2101/2102, mimeType=audio/mpeg-L2, channels=2, sample_rate=48000]
D  audioDecoderInitialized [eventTime=236.66, mediaPos=0.00, window=116, period=116, ffmpegLavc58.54.100-mp3]
D  audioInputFormat [eventTime=236.66, mediaPos=0.00, window=116, period=116, id=2101/2102, mimeType=audio/mpeg-L2, channels=2, sample_rate=48000]
D  videoSize [eventTime=236.86, mediaPos=0.00, window=116, period=116, 720, 576]
D  renderedFirstFrame [eventTime=236.86, mediaPos=0.00, window=116, period=116, Surface(name=null)/@0x47f4ac6]
D  state [eventTime=241.69, mediaPos=-0.19, window=116, period=116, READY]
D  isPlaying [eventTime=241.70, mediaPos=-0.19, window=116, period=116, true]
Bug Report

[X] You will email the zip file produced by adb bugreport to<EMAIL_ADDRESS>after filing this issue.

Uploading bugreport-NHG47L-2014-12-31-19-21-32.zip…
attached is adb bugreport file requested

@Malobash.
Are you still facing this issue? If yes, are you able to download the video that has issues and try to play locally?

I am still facing this issue...the problem is the url i mentioned in the details is a udp live streaming url i cannot download it and play within the app..please can you help me in this ?


Global variables introduced by obfuscator

First of all, congratulations! This is a great project!
I've noticed that enabling some of the obfuscator features (e.g. "stringArray") causes variables to be placed in the global namespace of the obfuscated code.
This is a problem if we import, for instance, two obfuscated JS files into a web page (or if some other imported 3rd party lib also publishes a variable with the same name).
Both generated files would contain a global declaration similar to "var a = [];", which would cause the second one to override the first declared one.
We've managed to find a workaround for this, which is to wrap the obfuscated code inside an IIFE, and it works. The problem is that the source map that the obfuscator generates does no longer work for that file, because the obfuscated code has been changed (with the IIFE).
Which is a pity... currently I had to disable the source maps just because of this "detail".
Could this be fixed in a near future, or is there something I can do to overcome this problem?
Thanks in advance.

out in<EMAIL_ADDRESS>

I have encountered similar situation and am wondering if using identifiersPrefix still the recommended solution?
at the top of the discussion there's a mention of adding "wrapCode" functionality that will wrap all in an iife, that approach seem safer, as even with prefix, 2 scripts might define the same prefix.
Should I open a new issue for that?

I think prefix won't sovle all problems,maybe IIFE is a better solution


Add cState & Hop on Discord

Status page & chat widget

Hey, do you wanna explain why this was closed? There's no contributing file.

Actually, taking a closer look, I can see why, but there's no appropriate section for these things

They don't fit into the project category, and new items need to be placed at the end of the list, which is not somebody's AD board, thank you.


For secondary_tags don't send back tags with no content

For posterity, here's the Trello card we're tracking this under: https://trello.com/c/08RQ0wq1/1721-remove-empty-secondary-tags-from-all-topics-page

We are going to tests next week. This has visually been checked and since writing the most. simple tests is currently taking 2+ days it's now holding up work.


generate protostr files with current config files

Protostr directory added that path is "Paddle/python/paddle/trainer_config_helpers/tests/configs/protostr".
The directory save protostr files that genterate with current config files.
I modified check.md5 file and generate_protostr.sh files in order to check value of md5 between xxx.protostr and xxx.protostr.unitest and save new protostr files in protostr directory.

Coverage remained the same at 62.35% when pulling f5fe91b3a527bb12f28215c3b947e122a56bc04d on wen-bo-yang:develop into 93e4d0cce6d3048f77aa46dc9d4ee5c3fb777d0c on baidu:develop.

Coverage remained the same at 62.35% when pulling 5afa062d5ccd523212bd8e80281a0110371f3cfa on wen-bo-yang:develop into 93e4d0cce6d3048f77aa46dc9d4ee5c3fb777d0c on baidu:develop.

Suggest not to use md5 for comparison. Using diff will be more helpful because it can show what goes wrong.

OK, no problem. I will modify script and pull request.

Coverage remained the same at 62.35% when pulling bbc3f079e298ee85357cc55e6775555052d447de on wen-bo-yang:develop into 93e4d0cce6d3048f77aa46dc9d4ee5c3fb777d0c on baidu:develop.

The test pull request is a wrong operation that is my fault.
But, I can't push another pull request after test pull request.
I push some modify to my repositories , but in my repositories didn't anything change.

Coverage increased (+0.03%) to 62.377% when pulling 85a5f444b0e2c10c89775fabade3da52ac23f3df on wen-bo-yang:develop into 93e4d0cce6d3048f77aa46dc9d4ee5c3fb777d0c on baidu:develop.

Coverage increased (+0.005%) to 62.354% when pulling defdce71642b3fed9cc688d12ca20bf4b5578c72 on wen-bo-yang:develop into 93e4d0cce6d3048f77aa46dc9d4ee5c3fb777d0c on baidu:develop.

Coverage increased (+0.03%) to 62.377% when pulling cf0e5c4f91e7b9c91ee0544b444aca1378c00852 on wen-bo-yang:develop into 93e4d0cce6d3048f77aa46dc9d4ee5c3fb777d0c on baidu:develop.


Feat: added token refreshing functionality for long running bots

After a while of the process running the access JWT expires.
This PR adds the functionality of refreshing the token when posting. The way it is currently done is not the best and if the library is to grow it would need to be revamped, however it is just fine for a single action
Cheers, @bytequill.codebased.xyz

It seems there are still issues with this implementation. Do not merge yet :(


ALPN on QUIC

During connection establishment, HTTP/QUIC support
is indicated by selecting the ALPN token "hq" in the crypto
handshake.

Implementations of draft versions of the protocol MUST add the string
"-" and the corresponding draft number to the identifier.  For
example, draft-ietf-quic-http-01 is identified using the string "hq-
01".

https://tools.ietf.org/html/draft-ietf-quic-http-04

Done. 5a5d53f384fe5ed5526676678e2bd44d9b4e0610


chore: 7.2.1 dev prep #trivial

The type of this PR is: chore
Description
Prepare for next release, updates version number and release notes.
PR Checklist (tick all before merging)

[x] I have included screenshots or videos to illustrate my changes, or I have not changed anything that impacts the UI.
[x] I have tested my changes on iOS and Android.
[x] I have added tests/stories for my changes, or my changes don't require testing/stories, or I have included a link to a separate Jira ticket covering the tests.
[x] I have added a feature flag, or my changes don't require a feature flag. (How do I add one?)
[x] I have documented any follow-up work that this PR will require, or it does not require any.
[x] I have added an app state migration, or my changes do not require one. (What are migrations?)
[x] I have added a changelog entry below or my changes do not require one.

To the reviewers 👀

[ ] I would like at least one of the reviewers to run this PR on the simulator or device.

Changelog updates
Changelog updates

Cross-platform user-facing changes

iOS user-facing changes

Android user-facing changes

Dev changes

Prep for next release - Brian

This PR contains the following changes:

Dev changes (Prep for next release - Brian)

  Generated by :no_entry_sign: dangerJS against c389eb709691d2c032f8b272740770f0c1e61058


Ensure that there is an installp/ppc file to move before removing a pre-existing X{32|64} directory

repeating the command, e.g., mkX64, removes the directory just created (moments) before.

Fixed via #7


The performance of pre-trained model on ImageNet?

Could you offer the accuracy or error rate on the ImageNet of the pre-trained model?
May these model will have better performance than the models offered by the official PyTorch?

Yes, they are better, but very close. I do not have the numbers at hand, but the difference is less than <1%.

In your code, the first 7x7 conv is replaced by 3 3x3 conv. This will improve the performance obviously. Therefore, I want to know the accurate accuracy of your pre-trained resnet model. Thank you.


Module

Where take module( "bind" ) ?

I think it should work if you put it in lua/autorun/client

If that doesn't work, try putting it in lua/includes/modules

Tell me if you can't get it to work

Yep, working.
Closing issue


Fix attribute index api

This PR fixes the /domain/attributes/index API to use a simpler query and the domain angular app to use this API instead of /domain/attributes/.

Coverage remained the same at 91.529% when pulling 004f1b8fdaf6925718ed01a89d50ade7709e92ea on fix_attribute_api into 5da144670c7d9743ee615dc830ad730a35db478d on master.


add support to send attributes along with data object.

it would be nice and awesome if attributes can be sent along with the messages, right now its hardcoded from the lib it self but would be great if it can be extended.

Hello, unfortunately in order to achieve it need to change data parameter interface which may cause issues for existing clients of the package. Original NestJS microservice
send<TResult = any, TInput = any>(pattern: any, data: TInput): Observable<TResult>;
emit<TResult = any, TInput = any>(pattern: any, data: TInput): Observable<TResult>;

does not provide any additional parameters to implement


Convert datasource config for local, qa, and prod

Lots of files touched but mainly around DAO and datasource management properties and methods with jdbc. Still more to be done but this is a good stepping stone. HSQL local db is in-memory and uses the scripts in src/main/resources/hsql for a fresh db each time the app starts up. We should be able to remove the existing mysql scripts in favor of the hsql ones (compatibility should be fine)

Understood. Makes sense. Thanks for reviewing.


bug: Support API level 29 (Android 10)

Bug Report
Ionic version:

[x] 4.x
Current behavior:

Ionic does not support Android 10
Expected behavior:

Support for it as it has been released since early September.
Depends on:
https://github.com/apache/cordova-android/issues/830
Steps to reproduce:

Ionic as framework supports Android 4.4+, that includes Android 10.
In terms of hybrid apps, both Cordova and capacitor target SDK 28, but that doesn’t mean they don’t support Android 10, apps compiled with SDK 28 work on android 10 devices.

@jcesarmobile interesting!
That still means we can't use Android 10 new apis like e.g the new messenger like "bubble" api

Thanks for the issue. As @jcesarmobile said, Ionic Framework supports Android 4.4+. Compiling as a standalone app is something that is handled by Capacitor/Cordova.
If you find specific bugs in our components while running on Android 10, feel free to open a new issue.
Thanks!

@liamdebeasi sorry for spamming a little, but just to state the obvious:
Cordova has no paid developers, I guess you should use some of your developers to accelerate the fixing of major cordova issues like this one.

You can always use <preference name="android-targetSdkVersion" value="29" /> on Cordova if you want to use latest SDK.
Not supporting SDK 29 by default is not a Cordova issue per se, the issues appear when SDK 29 requires code changes that are not done. But as far as I know, nobody have reported anything yet, so that's something you could do if you want to speed things up.


Pin to a release version of go-open-service-broker-client

We're currently just using shas directly; I released 0.0.1 this weekend until we finalize versioning scheme - we should pin to a released version instead.

Nice to have a version to work against.
For whoever tackles this, I'd like voice a request to write down the steps as developer documentation and if possible make a screen recording of the steps in action, however boring they may be.

I can do this today. I'll write up the steps for working with dep, and how I added the new constraint.


Feature Request: Sensor for Night Vision

Is your feature request related to a problem? Please describe.
No.
Describe the solution you'd like
Creat a sensor to tell when night vision it turns on or off when is in automatic mode.
Additional context
For automations it would be very useful.  For example, when the baby is sleeping the lights are off and the camera switches to night vision on, and at that moment I want to receive notifications if he wakes up in his sleep.  when night vision is off I don't want any notifications.

This is not exposed by the camera.

i tried with the frigate integration but there is nothing that evaluates the image is in black and white or in color.  Don't know of anything that can do this?

You could write a python script that opens the image and looks at one specific pixel, which always has color in color mode. If it has rgb values only between black and white, you know its on or not. See https://stackoverflow.com/questions/138250/how-to-read-the-rgb-value-of-a-given-pixel-in-python for example.

This is a problem I'm trying to solve for too.
My case is that my cameras float between "night mode" and not every two second in some cases.
The loud clicking is very very annoying, so I wanted to "check" if it is floating and turn off "auto" for a while as a cool down.
I found this one-liner using imagemagick to test if a picture is "colourful" or not:
convert $file -colorspace HSL -channel H -separate -unique-colors -format %w info:

This has returned 1 on multiple images that are taken from my C210 in night mode, and in random test images it returns anywhere from 91 to over 9000.
I think it will be safe to turn this into some kind of "command line sensor" to test the cameras.


It's can not deal with image rotate

This is my code:
<img src="ys.png" width="90" height="33" valign="middle" style="transform:rotate(-10deg);"/>

I think this is included in #12779


Dev

Added the feature to add an user_group as tenant operator of the company.

Hi Sayantan Khanra,
add_user_group_as_operator is designed for accepting only one user group as input, can we add support for accepting a list of user group

Hi @Vairavaprakash ,
Added that in the latest commit.


Add a .env file

Dotenv is installed
Add a .env file for twitch, oauth, mongoose, mongodb

Added a .env just needs some values


fuzzgen: Initial SIMD support

👋 Hey,
This PR Introduces support for SIMD vectors on fuzzgen. This is mostly to test ABI since it doesn't enable a lot of instructions.
I'm also not planning on introducing pretty much any other SIMD opcodes with the current opcode list system. I think the next step really is to move away from the opcode list.

This also does some changes to the clif file format. The current format represents consts as:
const0 = [0x00 0x01 0x02]

However, when printing a function we print in the following format:
const0 = 0x000102

And the file does not parse anymore. I.e. we are printing invalid CLIF when constants are involved.
It was easier for me to change the parser, than the printer. However if people prefer the old format, it should also be a fairly easy change.
Another option would be to start accepting both formats, which should also be fairly easy.
If anyone has opinions about this, let me know!

I'm not entirely sure I like writing vector constants as large hexadecimal numbers, but it does seem to be the most expedient option here and is apparently rarely used anyway. So let's go with it and maybe we can figure something better out later.

Sounds good. I'm happy to iterate on this syntax as well. From what I've read of the parser we support a few different forms:
const0 = i32x4 0x0123456...
const1 = i64x2 [0 1]
const2 = [0x00 0x01 0x02]

This is pre-this-pr, I've only changed the const2 syntax into big hex. Ideally we could print the const1 format, but that one does require us knowing the type of the const data. Which I don't think we have when printing the CLIF back out.

I'm eager to get the codegen-meta all-opcodes fuzzing stuff going, but I'd still be happy to approve PRs adding more ops to the existing table. I'd like to have as much coverage from fuzzing as possible

Yeah, that makes sense! I'm going to review whats already supported in the interpreter and add those ops to the fuzzer.

and I expect it's going to be tricky to get the code-generated version working, so I'm assuming we won't finish that soon.

Last I looked into it, I ran into some kind of blocker, but I don't actually remember what it was. I'll need to go look into it again.


Stepper with conditional fields

First of all I'd like to say that I really love the library! Creating forms is really easy and enjoyable.
I'm trying to create a stepper for a survey, where only 1 question is displayed on the screen at all times. To get an idea of how this would look like: here
The user answers a set of questions that can depend on each other. Imagine the following question tree:

What is your name?
What is your age?
Do you wear glasses?
3.1 if 3 is yes -> What brand do you wear?
3.2. if 3 is no -> Have you ever measured your eyes?
Where do you live
etc.

If the user answers question 3 with yes he gets a different fourth question than when he would answer No. I got the dependency working between questions, as can be seen here: https://stackblitz.com/edit/angular-sw7lbt
But in my stackblitz it's still one big form. I would like to split this into a view where only 1 relevant question is shown.
Is something like this possible with ngx-formly? If so, where should I start?
EDIT: just fyi: I have looked into mat-stepper, such as this stackblitz. However this doesn't satisfy my needs, in the example an additional field appears inside the current step. Would it be possible to add a new step, based on some input?
Keep up the great work guys!
Hope to hear from you :)

There is something called hideExpression in the field configuration. Use that to do what you want. Example: https://stackblitz.com/edit/angular-yu7bzv-uucyxg
After answering the second question, the third question comes based on the condition.

There is something called hideExpression in the field configuration. Use that to do what you want.
Also to show questions one by one you might use stepper with hidden header.
Example: https://stackblitz.com/edit/angular-yu7bzv-uucyxg
After answering the second question, the third question comes based on the condition.

I'm aware of hideExpression however I'm not looking to add another field in the current step. I'm looking to add an extra step or show the step (if it's already there) based on the input in the current step. I also tried to add a hideExpression property to the step itself, but then the step is still visible, just without any content.

Right now I got this: https://stackblitz.com/edit/angular-hvajyx, however it only hides the content of the fieldgroup with hideExpression. I'm looking to also hide the stap and have the next button skip the question that is hidden.

I got it to work for now: https://stackblitz.com/edit/angular-hvajyx, however I'm unsure whether or not this is the best/cleanest approach. Currently I'm checking within my stepper.type.ts if the step has a hide field or not with the *ngIf directive. Any suggestions on a better approach would be welcome.
Also within stackblitz I'm getting the following error:
Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked.

hideExpression is the right solution.

Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked.

I'm not able to reproduce it, maybe it has been already fixed in 5.5.15.

@aitboudad

Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked.

Error can be found in mat stepper examples, it is using 5.9.1.  Not sure how to avoid it by not using custom type.
https://stackblitz.com/angular/lydogpnjjmg?file=src%2Fapp%2Fapp.component.ts

@HangLoop only occurs with Ivy and the only viable solution is to build the form first https://github.com/ngx-formly/ngx-formly/issues/2279#issuecomment-634645438


Fix CLI for TFLite export

What does this PR do?

optimum-cli export tflite ... currently fails with the following error message:
Traceback (most recent call last):
  File "/home/regis/HuggingFace/dev/venv/bin/optimum-cli", line 8, in <module>
    sys.exit(main())
  File "/home/regis/HuggingFace/dev/venv/lib/python3.8/site-packages/optimum/commands/optimum_cli.py", line 162, in main
    service = args.func(args)
  File "/home/regis/HuggingFace/dev/venv/lib/python3.8/site-packages/optimum/commands/base.py", line 90, in defaults_factory
    return self.__class__(
TypeError: __init__() got multiple values for argument 'parser'

The class TFLiteExportCommand should be updated following #940.
This PR also adds a test so that optimum-cli export tflite ... is tested.
Before submitting

[ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[ ] Did you make sure to update the documentation with your changes?
[x] Did you write any new necessary tests?

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


Update StandAloneContext.kt

just a naming proposal

Ok

There are errors due to formating

@wcarmon try to fix your branch against 0.9.2


[BUG] CI skips running RecordableXCTestCases

CI does not run ChatClientDVRTests. Instead it skips them.

Apparently this was just recently fixed in XCode 12.5

XCTest now automatically includes specialized subclasses of Swift generic test classes when running tests on macOS 11.3, iOS 14.5, tvOS 14.5, watchOS 7.4, or later OS versions. This allows you to use generics to improve reusability of test classes. (23493200)

However, xcpretty does not process the text correctly to include failure info, but it does work. The CI should be updated to use XCode 12.5.

We need build agents that run macOS 11.3 and have XCode 12.5. Apparently there is some licensing issue with Apple regarding macOS 11 that is impeding this:
https://github.com/actions/virtual-environments/issues/2072#issuecomment-888037580
This issue is open for tracking. Once the build pipeline is updated, this will be resolved.

Build agents fixed by https://github.com/Azure/azure-sdk-for-ios/pull/1073 but waiting on @tjprescott for related CI fixes. Assigning to you.


Traceback Error: IndexError

FWIW... I got the following when adding this feed..
https://feeds.feedburner.com/DiscoveryNews-Top-Stories
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/sopel/bot.py", line 441, in call
exit_code = func(sopel, trigger)
File "/usr/local/lib/python2.7/dist-packages/sopel/module.py", line 343, in guarded
return function(bot, trigger, *args, **kwargs)
File "/home/znc/.sopel/modules/rss3.py", line 179, in rss
__rss(bot, args)
File "/home/znc/.sopel/modules/rss3.py", line 207, in __rss
globals()[COMMANDS[cmd]['function']](bot, args)
File "/home/znc/.sopel/modules/rss3.py", line 218, in __rssAdd
checkresults = __feedCheck(bot, feedreader, channel, feedname)
File "/home/znc/.sopel/modules/rss3.py", line 551, in __feedCheck
item = feed['entries'][0]
IndexError: list index out of range

There are two issues here:
(1) An error like this should be handled gracefully and a meaningful error message should be generated. I will fix this.
(2) The feed has no entries. See this ipython3 session:
In [1]: import feedparser
In [2]: feedparser.parse('https://feeds.feedburner.com/DiscoveryNews-Top-Stories')
Out[2]:
{'bozo': 1,
'bozo_exception': xml.sax._exceptions.SAXParseException('not well-formed (invalid token)'),
'encoding': 'UTF-8',
'entries': [],
(...)

Version 0.2.0 is out. It would be nice if you could install it. Please not: the format of "feeds" in the config file changed. You need to replace the spaces between channel, feed, url and format by pipes ("|").

I used the DEFAULT format in the rss.py. Do I need to add the format in the cfg file

Now, you can (and should) leave FORMAT_DEFAULT alone and use "formats" instead where you can define one or more custom default formats. For example, you can specify one format that you'd like to use but not all of you feeds have the necessary fields. Then a second best for those. At last, the global FORMAT_DEFAULT or a minimal default format will be used. Of course, you can override the format for each feed.
You can now also use "templates" to define you own custom templates (for example colors or braces or fancy unicode characters). You need not override all format strings only those that you'd like to change.
I've also implemented an online help, for example: .rss custom define formats
I've written over 100 py.tests but of course, there might be bugs left. I'd be happy to fix them if you report the issues.

thanks for all your hard work

you are welcome. it's good to see that the module is used.


Dask v1.1.5 - TypeError encountered when reading files into dask dataframes

TypeError is encountered when trying to read csv/tsv files into dataframes using 'read_csv'/'read_table' methods.
import dask
print(dask.__version__)
1.1.5

import pandas
print(pandas.__version__)
1.2.1

data = dask.dataframe.read_csv(DATA_PATH, sep = '\t', names = data_cols)

TypeError                                 Traceback (most recent call last)
<ipython-input-31-80d6ae596753> in <module>
----> 1 data = dask.dataframe.read_csv(DATA_PATH, sep = '\t', names = data_cols)

/opt/python/python37/lib/python3.7/site-packages/dask/dataframe/io/csv.py in read(urlpath, blocksize, collection, lineterminator, compression, sample, enforce, assume_missing, storage_options, include_path_column, **kwargs)
    489                            storage_options=storage_options,
    490                            include_path_column=include_path_column,
--> 491                            **kwargs)
    492     read.__doc__ = READ_DOC_TEMPLATE.format(reader=reader_name,
    493                                             file_type=file_type)

/opt/python/python37/lib/python3.7/site-packages/dask/dataframe/io/csv.py in read_pandas(reader, urlpath, blocksize, collection, lineterminator, compression, sample, enforce, assume_missing, storage_options, include_path_column, **kwargs)
    396                                  collection=collection, enforce=enforce,
    397                                  specified_dtypes=specified_dtypes,
--> 398                                  path=path)
    399
    400

/opt/python/python37/lib/python3.7/site-packages/dask/dataframe/io/csv.py in text_blocks_to_pandas(reader, block_lists, header, head, kwargs, collection, enforce, specified_dtypes, path)
    255         if len(unknown_categoricals):
    256             head = clear_known_categories(head, cols=unknown_categoricals)
--> 257         return from_delayed(dfs, head)
    258     else:
    259         return dfs

/opt/python/python37/lib/python3.7/site-packages/dask/dataframe/io/io.py in from_delayed(dfs, meta, divisions, prefix)
    535             raise ValueError("divisions should be a tuple of len(dfs) + 1")
    536
--> 537     df = new_dd_object(dsk, name, meta, divs)
    538
    539     if divisions == 'sorted':

/opt/python/python37/lib/python3.7/site-packages/dask/dataframe/core.py in new_dd_object(dsk, name, meta, divisions)
   4662     """
   4663     if has_parallel_type(meta):
-> 4664         return get_parallel_type(meta)(dsk, name, meta, divisions)
   4665     elif is_arraylike(meta):
   4666         import dask.array as da

/opt/python/python37/lib/python3.7/site-packages/dask/dataframe/core.py in __init__(self, dsk, name, meta, divisions)
    254             raise TypeError("Expected meta to specify type {0}, got type "
    255                             "{1}".format(type(self).__name__,
--> 256                                          typename(type(meta))))
    257         self._meta = meta
    258         self.divisions = tuple(divisions)

TypeError: Expected meta to specify type DataFrame, got type pandas.core.frame.DataFrame

Both these methods don't accept meta argument.
Can someone please help me resolve this issue?
Thanks

Thanks for raising an issue @thesilentobserver! Could you try upgrading your Dask version to a more recent release (the latest release is 2021.01.1) as there have been many Pandas compatibility upgrades to Dask since 1.1.5. If the TypeError still remains, could you provide a minimal example (see https://blog.dask.org/2018/02/28/minimal-bug-reports)?

Thank you @jrbourbeau. Although I can't update Dask due to some constraints, downgrading pandas to version 0.25.3 solved the issue.

Glad to hear it, thanks for following up!

I've ran into the same issue with Dask version 2.1.0 and pandas version 1.1.0.

We recommend updating to a new version of Dask.  This bug has already been
fixed.
On Tue, Jun 22, 2021 at 10:49 PM yxt @.***> wrote:

I've ran into the same issue with Dask version 2.1.0 and pandas version
1.1.0.
[image: image]
https://user-images.githubusercontent.com/40780228/123032655-e28b0f80-d418-11eb-85c9-4dcf039300d5.png
[image: image]
https://user-images.githubusercontent.com/40780228/123032710-ffbfde00-d418-11eb-86ec-a1d9be765104.png
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/dask/dask/issues/7168#issuecomment-866500136, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AACKZTAEGICOAZTOENGQQILTUFKT7ANCNFSM4XCIFSPQ
.

We recommend updating to a new version of Dask. This bug has already been fixed.
…
On Tue, Jun 22, 2021 at 10:49 PM yxt @.***> wrote: I've ran into the same issue with Dask version 2.1.0 and pandas version 1.1.0. [image: image] https://user-images.githubusercontent.com/40780228/123032655-e28b0f80-d418-11eb-85c9-4dcf039300d5.png [image: image] https://user-images.githubusercontent.com/40780228/123032710-ffbfde00-d418-11eb-86ec-a1d9be765104.png — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#7168 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACKZTAEGICOAZTOENGQQILTUFKT7ANCNFSM4XCIFSPQ .

Thanks for the response. The versions of pandas and dask are now pretty constrained by other packages in the same conda environment. Guess I need to set up a new env for this particular script. Thanks!


Product Post Error

The ProductPost.cs is calling await productData.UpdateProduct(product); when it should be calling await productData.AddProduct(product);
Seems like a pull request was made but not accepted yet.

Fixed with PR #3, sorry it took so long, seems I need to fix notifications on this repo


Exporting Aggregated modules fails:  Module parse failed: Unexpected token

If a package exports aggregated modules like so: export * as foo from './bar' the react-app-rewired start command fails with the following error:
Module parse failed: Unexpected token
File was processed with these loaders:
* ../node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.

PS: Temporary solution is to re-export module explicitly like so:
import * as foo from './bar'
export { foo }

Closing this given no recent activity.


Standalone Python scripts need to be updated

.py scripts are behind the latest version of the Python Toolbox

updated based on toolbox and quick check of code analysis


Sorting is broken in compatibility pipeline

Godot version
4.0.1rc1
System information
Windows10, AMD Ryzen 9 5900X, NVIDIA GeForce RTX 3060 Ti, driver version <IP_ADDRESS>9, compatibility.
Issue description
Particle systems with transparent planes don't work in compatibility render pipeline. See comparison with mobile render pipeline, everything else identical:

It could possibly be related to the add blend mode that is broken. Not sure.
Steps to reproduce
Configure a CPUParticles3D system and with transparent particle and watch the sorting.
Minimal reproduction project
godot_repex.zip

It could possibly be related to the add blend mode that is broken. Not sure.

Try switching the blend mode to Mix and check if sorting works. Also set the shading mode to Unshaded to ensure shading isn't interfering with transparency sorting.

Weirdly enough, the issue only occurs when running the scene or when viewing through the camera preview. It doesn't occur when using the editor camera
Using camera preview

Using editor camera


Ability to split files

Can I use auto-editor to recreate the cuts (splits) in a video's source project? What I mean is: identify image discontinuities (not "motion" exactly), and split the video into segments there.
A lot of what I do is clipping primary work and assembling into secondary work, and often finding myself doing that manually. Auto-editor seems almost there in terms of what I need, but I'm just not sure how to make it do that (or whether it does at all).
Cheers.

No.


Helm concatenated strings not being rendered

Hi There,
I'm working in a Chart template for managing deployments for different microservices apps.
On the values file the container Apps are declared in a list, as you can see:
# values.yaml
containerApps:
  - name: app1
    replicaCount: 1
    ...
  - name: app2
    replicaCount: 1
    ...
  - name: app3
    replicaCount: 1
    ...

The template reads the values-file definition in a loop that outputs the K8S YAML file.
{{- range $containerApp := .Values.containerApps }}
{{- with $containerApp }}
...
      containers:
        - name: {{ .name }}
          image: "{{ printf "$.Values.%s.image_repository" .name }}:{{ printf "$.Values.%s.image_tag" .name }}"
          replicas: {{ .replicaCount }}
          ...
...

Besides the values-file, we have also some values being declared using imperative approach via --set-string parameter.
helm template . --name-template my-app --namespace dev \
--set-string app1.image_repository=my-registry/image-app-1 \
--set-string app1.image_tag=073f799 \
--set-string app2.image_repository=my-registry/image-app-2 \
--set-string app2.image_tag=934df33 \
--set-string app3.image_repository=my-registry/image-app-3 \
--set-string app3.image_tag=k393caf... \
--values values.yaml

The problem is that helm doesn't seem to be able to render the template interpreting the $.Values.%s.image_repository" .name, generating a wrong output:
# What we expected:
image: my-registry/image-app-1:073f799
...
image: my-registry/image-app-2:934df33
...
image: my-registry/image-app-3:k393caf
...

# What we get...
...
image: $.Values.app1.image_repository:$.Values.app1.image_tag
...
image: $.Values.app2.image_repository:$.Values.app2.image_tag
...
image: $.Values.app3.image_repository:$.Values.app3.image_tag
...

We understand that maybe printf is not the way to go, and I've tried also index, which haven't work as well.
If you someone can give us a clue on how to get this working, it would be really appreciated.
Any idea is welcomed.
Output of helm version:
version.BuildInfo{Version:"v3.9.0", GitCommit:"7ceeda6c585217a19a1131663d8cd1f7d641b2a7", GitTreeState:"clean", GoVersion:"go1.18.2"}

Output of kubectl version:
lient Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.1", GitCommit:"3ddd0f45aa91e2f30c70734b175631bec5b5825a", GitTreeState:"clean", BuildDate:"2022-05-24T12:17:11Z", GoVersion:"go1.18.2", Compiler:"gc", Platform:"darwin/amd64"}
Kustomize Version: v4.5.4
Server Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.6", GitCommit:"07959215dd83b4ae6317b33c824f845abd578642", GitTreeState:"clean", BuildDate:"2022-03-30T18:28:25Z", GoVersion:"go1.16.12", Compiler:"gc", Platform:"linux/amd64"}
WARNING: version difference between client (1.24) and server (1.22) exceeds the supported minor version skew of +/-1

Cloud Provider/Platform (AKS, GKE, Minikube etc.): K3S

@phil9909 , thanks for that. It works a charm. Really appreciated.


⚠ Bofrost.de has degraded performance

In 0036fee, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1133 ms

Resolved: Bofrost.de performance has improved in 719f9c3 after 7 minutes.


Added slight_smile as alias of slightly_smiling

To ensure compatibility with emoji-one's :slight_smile:

Coverage remained the same at 92.557% when pulling 5d556308d147ab9f7ab1e0470b251d8f62942894 on good-hood-gmbh:feature/slight_smile into a616dd31d9521e36af41575283ca4c585c34f187 on vdurmont:master.


The question about the structure of the dataset

Hi, giuliogamba, I would like to apply my own dataset on this network, I am wondering how to train my own dataset on this network. Would you like to give me a hint?

Duplicate #56


vendor/autoload.php not found

Warning: include(): Failed opening 'vendor/autoload.php', languageDetection.php on line 5
Where is the vendor/autoload.php file?

It depends where you run languageDetection.php, in this examples you must run it from project root dir.


update reconciler runtime, controller runtime and controller tools

Pull request details

Update reconciler runtime, controller runtime and controller tools

What this PR does / why we need it

Update reconciler runtime, controller runtime and controller tools to support Kubernetes 1.26

Aggregates these PRs

#305
#306
#307
#308
#309
#310
#311
#316
#317
#318
#319
#320

<!--
     Unless the PR is for a trivial change (e.g. fixing a typo), consider opening an issue first (and reference it here) so that the problem the PR addresses can be discussed independently of the solutions proposed by this PR. Usage: Fixes #<issue number>.

My only request is that you mention adding Kubernetes 1.26 to the testing matrix.  It seems like an important change but it's buried in one little place.


[5.5] Make the struct in the default template public

This makes it easier to use it from clients which makes for a better default experience.
rdar://77110377
(cherry picked from commit fae7303169891815682c4088b5dae83d2f7bcdd7)

@swift-ci please smoke test

@swift-ci please test


templatize db memory usage

need to templatize the requests, limits, and how much memory allocated to clusters


No more sensors >= 1.1.7

Firstly, thanks for this integration - it's fantastic having something plug and play for Olarm finally.
I updated the integration today from 1.1.6 to 1.1.8 and all the sensors that were there previously are not available anymore, I only see the controls now. I also had an issue upgrading where it broke and I had to reinstall the integration, that's not a huge deal though.
In version 1.1.7/8 I cannot see these:

Here is the device info (with any identifying info redacted):
{
deviceId: "redacted",
deviceName: "redacted",
deviceSerial: "redacted",
deviceAlarmType: "paradox",
deviceAlarmTypeDetail: null,
deviceTimestamp:<PHONE_NUMBER>974,
deviceStatus: "online",
deviceState: {
timestamp:<PHONE_NUMBER>974,
cmdRecv: 0,
type: "",
areas: [
"disarm",
"disarm"
],
areasDetail: [
"",
""
],
areasStamp: [
1680754141875,
1680754147660
],
zones: [
"c",
"c",
"c",
"c",
"c",
"c",
"c",
"c",
"c",
"c",
"c",
"c",
"c",
"c",
"c",
"c",
"c",
"c",
"c",
"c",
"c",
"c",
"c",
"c",
"c",
"c",
"c",
"c",
"c",
"c",
"c",
"c"
],
zonesStamp: [
1680790021467,
1677355508275,
0,
0,
0,
1672292125042,
0,
1669133738986,
0,
1680784201320,
1680790021468,
1679988581238,
1680789961562,
1680789961563,
1680789841704,
1680620877053,
1680773941229,
1680791881669,
1680791041506,
1680787921553,
1680678418395,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
pgm: [
"c",
"c",
"c",
"c",
"c",
"c",
"c",
"c"
],
pgmOb: [
"c",
"c"
],
ukeys: [ ],
power: {
AC: "1",
Batt: "1"
}
},
deviceProfile: {
ver: 1,
areasLimit: 2,
areasLabels: [
"Main house",
"Flat"
],
zonesLimit: 32,
zonesLabels: [
"Front door",
"Side door",
"Zone 03",
"Arm/disarm 1",
"Arm/disarm 2",
"Panic",
"Zone 07",
"Zone 08",
"Zone 09",
"Garden beam",
"Flat front beam",
"Flat side beam",
"Flat front door",
"Flat lounge",
"Flat bedroom",
"Garage",
"Lounge",
"Bedroom passage",
"Study",
"Main bedroom",
"Upstairs",
"Zone 22",
"Zone 23",
"Zone 24",
"",
"",
"",
"",
"",
"",
"",
"Remote panic"
],
zonesTypes: [
"",
10,
90,
0,
0,
50,
90,
90,
90,
21,
0,
0,
0,
20,
20,
20,
20,
20,
20,
20,
20,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
50
],
pgmLimit: 8,
pgmLabels: [
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"Output 11"
],
pgmControl: [
"000",
"000",
"000",
"000",
"000",
"000",
"000",
"000"
],
pgmObLimit: 2,
pgmObLabels: [
"",
""
],
pgmObControl: [
"000",
"000"
],
ukeysLimit: 16,
ukeysLabels: [
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
""
],
ukeysControl: [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
doorsLimit: 4,
doorsLabels: [
"",
"",
"",
""
]
},
deviceTriggers: {
ver: 1,
lastCheck:<PHONE_NUMBER>245,
areasRemind: [
[
22,
1680206562474
],
[
22,
1679515354513
]
],
zonesIdle: [
0,
0
],
zonesWatch: [
[
12,
1679988461139
]
]
},
deviceTimezone: "Africa/Harare",
deviceFirmware: "3003.00000500000"
}

Hi,
I just updated the integration and the new version should fix this issue.


Enhancement - DWCA Import - If InstitutionCode not found, does not check collectionCode

When I import a DWCA with different InsitutionCodes and collectionCode, e.g. WIS for IC, and WIRC for CC (see: GBIF WIRC, but institution code is not found, the DWCA does not check the collectionCode for a repository to add to the specimen.
Many collections choose to place themselves as a collection within an institution but only provide their collection code. So I think if no institutional code matches, TW should check the collection code before it fails to import.
Especially since for repositories, TW does not distinguish currently between Institutions vs. Collections as GBIF does see - and an importer wants to specifically list a subcollection as the repository vs. an institution, this is a good step to add to reduce import frustrations.

Do you have an example in sandworm? When mapping namespaces you should be able to map to instititionCode=(blank) collectionCode=<YOUR_COLLECTION_CODE>.

I do. Check: https://sandworm.taxonworks.org/tasks/dwca_import/index?import_dataset_id=43 and collection code WIRC. Institution is WIS, which is not in system, but WIRC is. Does collection code override Institution Code if found?

Ah, OK understand now. Even if namespace is mapped, although CO is imported the repository is not set: https://sandworm.taxonworks.org/tasks/collection_objects/browse?collection_object_id=992183
@mjy guess we don't have a way to retrieve a repository from a namespace? Would extending the mapping to also ask for the repository solve the problem? (Potentially pre-filling those that can be guessed)

Actually, I didn't even see that bug, but yes, it looks like if you don't have an institutionCode then the repository is not set, but the specimen is imported, even though it matched a collectionCode.

Larger issue I was reffering to was when you don't want to set the repository as the institutionCode (e.g. WIS in this case), but rather as the collectionCode (e.g. WIRC). If both are the same, that's easy. But if they differ, maybe we need to discuss how to deal with that. @mjy

Also, how does TW deal with institutions vs. collections? Does it just have entries for both in repository and you can assign to either one? Can you map to two repositories?

We track organizations, but integration is weak.  Repositories are intended to be some physical collection. In theory one org could have many repositories.  As we move to BGIFs grbio list this metadata should be linked I think.

The importer assigns a repository based on which Repository it could match on TW by acronym. The collectionCode is not imported as such, just used as part of the key for the namespaces mapping.

For example: :)
https://www.gbif.org/grscicoll/institution/55efe71a-faba-4333-951c-d665509f3d67
One institution, many collections. Each collection has its own code, alongside the institutional code.

To clarify a bit more:

institutionCode: importer uses this value to locate a repository with an acronym matching this value. If this value is empty no repository is assigned to collection object. If some text is in here but doesn't match any registered repository in TW then status is switched from Ready to Errored and an error message is provided explaining the situation and how to fix.
collectionCode: Used by the namespace mapper (alongside institutionCode) to select the namespace for the catalogNumber field.

We track organizations, but integration is weak. Repositories are intended to be some physical collection. In theory one org could have many repositories. As we move to BGIFs grbio list this metadata should be linked I think.

Assumed repositories were actually organizations having collections. Not really the case? What is the organization tracking we have?

Closing as resolved with explict mappings that were recently worked out.


[Feature] Add messenger for creating backups

Request
Currently database backups are created directly on request, which is blocking. Instead it could be handled more gracefully by using Messenger. So instead of directly creating a backup on the button click, we'll dispatch a message containing the information needed to create the backup (e.g. a Database entity), and then let the worker handle that job.
Additional information

This would require symfony/messenger to be added in composer.
An additional environment variable MESSENGER_TRANSPORT_DSN  to be set by the user.
Additional information / links need to be supplied in docs on how to set up the workers to execute the jobs.

Hello, this is an interesting idea. Only, it would only work on non-shared hosting
In this case it would be necessary, when installing the project, to ask the customer if he wishes to configure this option, and to do the necessary according to his answer. What do you think @jmsche ?

Would probably require us to install several Messenger adapters.
Not sure it's really useful, as it's only about backups run one by one, not several backups to run at the same time.

@jmsche ?

I close the issue since it is not planned for the moment


TDTM cannot currently call a local class

I don't believe we can currently extend TDTM with a local class based on this (resolved) issue
Per this KB known issue: https://success.salesforce.com/issues_view?id=a1p30000000SVY3AAO
We currently use a the Type.forName call with the single parameter, which does not allow us to extend it outside of the managed package context with a local class:
https://github.com/SalesforceFoundation/Cumulus/blob/dev/src/classes/TDTM_TriggerHandler.cls#L149
Ideally, we should try it both ways, once with the local namespace, once without. Per the two different forName method implementations found here: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_type.htm
You can see the 2 param version should be used when inside a managed package context

**lurch: add

Tracking W-009932

Chalk it up to user error, global v public.


Implement wrapper for Spanner.Read RPC.

We want a wrapper for this RPC:
https://github.com/googleapis/googleapis/blob/fe77c6737fda6d3c43cc4666aff7d27be61fbfb6/google/spanner/v1/spanner.proto#L166
We do not know yet what the prototype for this wrapper should be, so that is probably the first step.

We decided to only implement the streaming RPCs.


beegfspkgs.sh  fails to install

Hello,
I need to setup a beegfs in the cluster and it fails due to some dependencies :
[2020-11-11 05:52:47] Step 02 : beegfspkgs.sh (jumpbox_script)
[2020-11-11 05:54:52] error: invalid returncode
    args=['ssh', '-o', 'StrictHostKeyChecking=no', '-o', 'UserKnownHostsFile=/dev/null', '-i', 'hpcadmin_id_rsa'<EMAIL_ADDRESS>'azhpc_install_config/install/02_beegfspkgs.sh', 'beegfspkgs']
    return code=5
    stdout=
    stderr=Warning: Permanently added 'headnodec7ee3d.eastus.cloudapp.azure.com,<IP_ADDRESS>' (ECDSA) to the list of known hosts.

Here is the log file.
02_beegfspkgs.log
Any help please? Thank you

The error above seems to be related to accessing your headnode with ssh. (Maybe a glitch with name resolution?)
I would suggest you try either of the following options.

login to your headnode (e.g azhpc-connect headnode) and try to manually run the failed script (e.g beegfspkgs.sh) (on headnode , cd az*/install and ./*beegfspkgs.sh

Try to re-run the failed install script step (e.g run_install --step STEP_NUMBER)

Also, please clarify what OS you are using? I tested on OpenLogic:CentOS-HPC:7.7:7.7.2020062600
Thanks.

@garvct  I'm using a base image that i built on top of OpenLogic:CentOS:7_7-gen2:latest

@garvct  i created a cluster without the beegfs and installed manually all what i needed on one compute node. But i realized i can't create an image from the compute node since it's considered a "Scale set instance" and not a VM. Do you know if there is a way around that?

Thanks for clarification regarding the OS version version you are using (I have not tested that version but I suspect you will need to use an older version (not latest), with MODEF < 5.1). I Will run some tests to verify.
I am not aware of a way to create a custom image from a vmss instance. (Sorry).  You could create a script containing what you manually installed on a vmss instance and then execute a parallel shell (pdsh or pssh) to run your script on your vmss (Your vmss hostlist is contained in hpcadmin@headnode:~/az*/hostlist/*)
You should be able to use AzureHPC to deploy without BeeGFS (or if you want to install your own BeeGFS scripts you can do so by creating a local scripts directory, copy your scripts to that location and use tags in your config file to indicate where you want your scripts to run.)

 Are you still blocked ?

@xpillons yes i still couldn't get it to work with OpenLogic:CentOS-HPC:7_7-gen2:latest
I moved on by creating a cluster with out it.
Thanks,


Can't install plugin on Apple Silicon based mac

Looks like the plugin might be build for intel only:
kubectl krew install deprecations
Updated the local copy of plugin index.
Updated the local copy of plugin index "kvaps".
Installing plugin: deprecations
W0829 13:50:54.381681   11235 install.go:164] failed to install plugin "deprecations": plugin "deprecations" does not offer installation for this platform
F0829 13:50:54.381735   11235 root.go:79] failed to install some plugins: [deprecations]: plugin "deprecations" does not offer installation for this platform

https://github.com/rikatz/kubepug/commit/bcc024854f5b538aa046043d88266e449704c632
Added to go-releaser, let's see if this builds fine :)
Thanks for using the project!

Hey,
I have released v1.2.2, now supporting the Apple M1 :) and the assets are there.
Can you please check and let me know?
Thanks!

Thanks!
Unfortunately v1.2.2 looks to still have the issue:
~ kubectl krew install deprecations
Updated the local copy of plugin index.
Updated the local copy of plugin index "kvaps".
Installing plugin: deprecations
W1031 19:33:08.000406   11369 install.go:164] failed to install plugin "deprecations": plugin "deprecations" does not offer installation for this platform
F1031 19:33:08.000464   11369 root.go:79] failed to install some plugins: [deprecations]: plugin "deprecations" does not offer installation for this platform

~ kubectl krew info deprecations
NAME: deprecations
INDEX: default
VERSION: v1.2.2
HOMEPAGE: https://github.com/rikatz/kubepug
DESCRIPTION:
This plugin shows all the deprecated objects in a Kubernetes cluster allowing
the operator to verify them before upgrading the cluster. It uses the
swagger.json version available in master branch of Kubernetes repository
(github.com/kubernetes/kubernetes) as a reference. The branch can be changed
to some other desired Kubernetes version

CAVEATS:
\
 | * By default, deprecations finds deprecated object relative to the current kubernetes
 | master branch. To target a different kubernetes release, use the --k8s-version
 | argument.
 |
 | * Deprecations needs permission to GET all objects in the Cluster
/