text:
fix/333 - server/backend dorker-compose runs as api user

next up / the root docker-compose, then new migrations

it should totally be renamed Dorker

authors: franTarkenton webgismd


text:
DR-> Date get backdated by one date when saving an edit action with the current date

Scenario:

Navigate to the Data register on TEST environment
Make a minor, major and a repeal edit on any of the parks.
For the date, select the current date
Save the changes and see the Affective date displayed after saving the changes.

Expected:

The date selected by the user should be saved as is.

Issue:

When the current date is selected, the saved date is one day behind. This is a common issue for all three edit operations.

https://github.com/bcgov/parks-data-register/assets/65190263/56a6e7fa-dbc1-4b6b-b153-44eede86b31d

November 4, 2024, tested this bug to see if I can replicate. Used Golden Ears Park, Maple Ridge:

Minor edit > Changed display name to Golden Ears Park - Lindsay's Park
Legal name > Changed effective date to today's date. Remained as expected.
Repeal > repealed park. Date remained as expected.

Last updated date also displayed correctly.
@davidclaveau @manuji - can I get one or two of you to take another look at this one and confirm that the bug is no longer there.
cc @Dianadec

I can double check.

Tested on TEST: cannot recreate the issue. Closing the ticket.

source: gharchive/issue

authors: LindsayMacfarlane manuji

repo: bcgov/parks-data-register

license_type: permissive

license_source: github-api


text:
As a staff person I want to set up agency agreements in the digital system so that correct parties can sign.

REQUIREMENTS

some individuals have more than one agreement and a different agent for each RAN (ex. Douglas Lake with ranch managers) --> could be set up either from a RAN focus or an individual focus. Since agency agreements are on file and files are by RAN lets go with RAN as starting point
ideally this process could be managed completely by an agreement holder within the system --> first step process is to have staff involved in administration of the agreements (so they are kept in the loop)
[ ] staff person (admin?) can type/select a RAN from their district
[ ] list of agreement holders is shown
[ ] one or more agreement holders can be selected (people who don't want to sign)
[ ] if agent is in system -- select from existing list (ex. another AH)
[ ] if not already in system -- add name and email address
[ ] agents not currently in system receive email with instructions to obtain BCeID and initiate account in MyRangeBC
[ ] staff knows when a new agent has logged in to MyRangeBC and needs to be linked as an agent (either automated or from instructions to agent user to email them)
[ ] staff to finalize agreement through confirming that names/BCeIDs (this is more important for existing agreements -- do we need to do this staff step? @LisaMoore1 to find out)
[ ] agents having accounts (will be all - either new through process above or existing) will receive email with agreement information and link to visit to confirm agent status
[ ] confirming agent status screen to have stock language from range branch (reviewed by legal) and may include options for "long term - until revoked" or "time bound" (first run could be long term with requirement to revoke when desired time has elapsed)
[ ] agency agreements must be identified as either "in effect" or "not in effect" (ex. revoked or expired)
[ ] once agency agreement in place the agent can:

[ ] receive ALL notifications, see all content and take all action of the AH for whom they act as agent
[ ] AH still received all content and can take all action if they choose (either AH OR agent can take actions)

[ ] agent information is available in RUP basic information (either always or option to view) for any RUP version created/signed during a time in which agent(s) are in place
[ ] staff have option to revoke an agency agreement upon request of the AH (Is a signed request by an AH adequate to send an invite for confirmation from the agent? @LisaMoore1 to confirm)

NB: had considered that a different process could exist for agreements already on file but if we have to confirm with agents on existing ones anyway we might as well prepare our stock agency agreement language and update them to the new digital version

@micheal-w-wells

repo: bcgov/range-web


text:
CTHUB - Make Column Casing Consistent

Task Description
Create a preparation function for the GER upload (potentially all uploads, ask Katia about this) that keeps the title of each column's capitalization consistent.
Purpose
It makes it more readable and also allows for us to better check what is inside a cell in the future for duplicates/naming schemes etc...
Acceptance Criteria

[ ] The read/returned columns should all be capitalized the same way

Development Checklist

[ ] Create either a re-usable preparation function for specifically GER or write it into the actual uploader to capitalize column names the same way.

Additional context
Please see GER Notes 1.1 located in the GER_Notes file contained in the shared CTHUB folder in Teams.
We can use built in functions to make everything capitals or lowercase or title structure so this shouldn't be much work.

Replaced with card #312 because this one was opened under ZEVA and not CTHUB.

authors: JulianForeman shayjeff

repo: bcgov/zeva


text:
0.73 Freezing When Stopping Containers

Just hangs after selecting yes.

It is happen always in my cases

The same here - happens almost always. I don't remember a successful 'yes'.

#201 merged; to be included in v0.7.6

repo: bcicen/ctop

license: mit

license_source: bigquery


text:
There is a warning when unlink session files "No such file or directory"

Hi,
I found there is a warning message "unlink(/var/lib/php/session/ci_session398713f044003b888df479c96bd27010820f1053): No such file or directory" in logs. But I check that if there is a session file before executing unlink session files.

Best,
Tyler Teng

No such code exists in CodeIgniter.
Note that this is a bug tracker; we don't provide help for code that you write here. Please post your questions on our forums instead.
Also, post actual code instead of screenshots.
(duplicate of #5350)

repo: bcit-ci/CodeIgniter

license: MIT


text:
php7

CI什么时候基于PHP7版本的开发呢？

English only, thanks


text:
Rework Dotenv testing to use VFS

In response to #1106

Doesn't affect PHP7.1 tests; still getting the 28 errors in the PHP7.2 tests.
So, it's arguably better, anr should be merged, but we still have a travis-ci problem :(

source: gharchive/pull-request


text:
CommandError: Error rendering template to disk

Hello and thanks for your work
I can't manage to execute the command :
$ manage.py renderstatic
the error reported is :
CommandError: Error rendering template to disk: landing/home.html
here's my django project tree :
src
├── db
├── landing
│   ├── migrations
│   ├── static
│   │   └── landing
│   │       ├── css
│   │       ├── fonts
│   │       ├── img
│   │       └── js
│   ├── templates
│   │   └── landing
│   │       └── home.html
├── src
└── static

content related to django-render-static package of src/settings.py :
INSTALLED_APPS = [
    'render_static',
]

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [
            BASE_DIR / "templates/",
        ],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
            ],
        },
    },
]

STATIC_TEMPLATES = {
    'templates': ['landing/home.html']
}

STATIC_URL = 'static/'
STATIC_ROOT = BASE_DIR / 'static/'

could you help me ?

Hi @Etilem thanks for giving the library a try! By default the static template engine searches for static templates in a directory called static_templates. So if you rename your templates directory to static_templates it should work for you.
Alternatively you can configure the directory loaders will look in. Understand that the static templates engine is a close mirror of the normal templates configuration. This means the STATIC_TEMPLATES setting looks very similar to the TEMPLATES setting, but they are completely separate. STATIC_TEMPLATES controls the static templates rendering (at package or deployment time) and TEMPLATES controls Django's dynamic templates (at serving time).
Here is an example configuration that would make renderstatic look in the templates directory instead:
STATIC_TEMPLATES = {
  'ENGINES': [
      'BACKEND': 'render_static.backends.StaticDjangoTemplates',
      'OPTIONS': {
          'app_dir': 'templates',  # search this directory in apps for templates
          'loaders': [
              'render_static.loaders.StaticAppDirectoriesBatchLoader',
           ],
          'builtins': ['render_static.templatetags.render_static']
      },
  ],
  'templates': ['landing/home.html']
}

thank you for the comprehensive answer, it works indeed with :
STATIC_TEMPLATES = {
    'ENGINES': [{
        'BACKEND': 'render_static.backends.StaticDjangoTemplates',
        'OPTIONS': {
            'app_dir': 'templates',  # search this directory in apps for templates
            'loaders': ['render_static.loaders.StaticAppDirectoriesBatchLoader'],
            'builtins': ['render_static.templatetags.render_static']
        },
    }],
    'templates': ['landing/home.html']
}

by the way, there's a typo in documentation at line 56 of https://github.com/bckohan/django-render-static/blob/main/doc/source/configuration.rst?plain=1, it says STATIC_TEMPALTES instead of STATIC_TEMPLATES

authors: Etilem bckohan

repo: bckohan/django-render-static


text:
Include of non-modular header inside framework module

Hi Brad
I have built a Cocoa Touch Framework written in Swift (using Xcode 7.2) utilising BDBOAuth1Manager 2.0.0 with no problem.
However, when I 'pod install' my aforementioned framework into a Swift standalone app (and as a result BDBOAuth1Manager gets installed as a dependency) I get the following errors when I try to build:
/Path/To/StandaloneApp/Pods/BDBOAuth1Manager/BDBOAuth1Manager/BDBOAuth1RequestSerializer.h:23:9: Include of non-modular header inside framework module 'BDBOAuth1Manager.BDBOAuth1RequestSerializer'

/Path/To/StandaloneApp/Pods/BDBOAuth1Manager/BDBOAuth1Manager/BDBOAuth1SessionManager.h:23:9: Include of non-modular header inside framework module 'BDBOAuth1Manager.BDBOAuth1SessionManager'

I've tried setting CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = 'YES', but didn't seem to help. I guess it wouldn't be an elegant solution anyway.
I've read through quite a few threads e.g 1 2 but couldn't really find a proper solution to my problem.
However, I came across this issue and the fix. I'm not sure if it's related but seems very much the same problem I'm facing.
Unfortunately, I know practically nothing about Obj C so can't really debug myself, but was wondering if you could look into this and perhaps give me some pointers if I could resolve this issue myself or does this require the same fix as the one for AFNetworking?
Or am I chasing a red herring?
Thanks

+1 from me

authors: chiswicked lucasleongit


text:
BDlib/NEI compatibility issue.

NEI fails to load up and if I try to get into NEI's creative tab, my client crashes.
http://pastebin.com/E1SQDeC7

Same issue as bdew/pressure#36
Please try the version i linked there and report back (in that issue, i'm closing this one to keep all information in once place)

authors: AnodyneEntity bdew

repo: bdew/bdlib


text:
Fix dropdown button padding issue

Fixes: https://github.com/bdlukaa/fluent_ui/issues/475
Pre-launch Checklist

[x] I have updated CHANGELOG.md with my changes
[x] I have run "dart format ." on the project
[x] I have added/updated relevant documentation

Tests are failing. Could you take a look?

Done!

authors: bdlukaa loic-sharma


text:
模块化 独立的模块

[ ] memfn.js
[ ] memoize.js
[ ] parsePlaceholder.js

等到需要复用的时候再抽离出来

需要抽离 memoize.js  memfn.js

memfn.js
memoize.js
已沉淀 https://github.com/imcuttle/memoize-fn

repo: be-fe/cz-conventional-changelog-befe


text:
Max Amount Error - Report from Community

System information
Below is the video that the community member noticed. When a user clicks "max amount" and then deletes the amount, an error appears.
Uploading 010101011 (1).mov…
Expected behavior
The error should not appear
@GabrielBuragev

@DocSmoove can you reupload the video and wait a bit longer. You created the issue without the video being uploaded.

https://user-images.githubusercontent.com/107990484/216257746-3b2c1e75-33d8-4354-8262-09108a5eef7a.mov
Ah, my bad. Here is the uploaded video. @andfletcher @GabrielBuragev

authors: DocSmoove andfletcher

repo: beamer-bridge/beamer


text:
fix /usr/bin/env: 'node\r': No such file or directory

Use Unix line endings on cli.js to fix crash on Linux

indeed. this is problem on linux.
$ /usr/local/bin/subdownload
: No such file or directory

cc @beatfreaker

the #8 fix is bogus and doesn't fix anything

merging this would also close #3 and #4
but the maintainer has to publish new npm version

seems the @ryantate13 fix also doesn't change anything. just renames file two times.
i'll submit another PR with the proper fix

hmm. seems the problem is the way release is made. the cli.js is ok in repository, just when checkouted on windows and released from there, the files end up with DOS EOL.

repo: beatfreaker/subdownloader


text:
..?

i didn't touch the thing, but for some reason the repo test failed...? apparently the css was incorrect, but it's valid.
Please check if what you want to add to beautiful-discord-community/resources list meets quality standards before sending pull request. Thanks!
Please provide package links to:

github.com repo:
embed url:

Make sure that you've checked the boxes below before you submit PR:

[x] I have added my package in alphabetical order
[ ] I know that this package was not listed before
[x] I have added @import compatible link (ex. rawgit.com) to the repo and to my pull request
[x] I have read Contribution guidelines.

Thanks for your PR, you're awesome! :+1:

Still failing the test, sorry 😓 , I can't accept the PR till it passes.
(no like literally, I cant, the button is greyed out)

Zeta fix the build 👀

No wait the CSS is legit broken

Apparently..
   content:"	";

Thank you! For some reason the script thinks it's invalid.

Is there a way to make the check "not required?"

fix ur shite

this is a travesty

I can't fix it, @TheBITLINK. It's something strange with the test, thinking that a quote is unclosed.

If we accept with a check on this future PRs will fail on it

I don't know, you'll have to fix it.

@LewisTehMinerz can't you just remove whatever symbol you used here?
content:"	";

Or just use multiple spaces, idk

This has dragged on for longer then I would've liked it, please open a PR when you fix the issue.

authors: LewisTehMinerz TheBITLINK TriggerRimfire jakeoid zet4

repo: beautiful-discord-community/resources


text:
Broken link for "gh-pages"

Describe the bug
A clear and concise description of what the bug is.
I guess the username has been changed, it would be better if you can fix the gh-pages link to this one.
To Reproduce
Steps to reproduce the behavior: NA

Hello @madhankumar028 thank you for reporting this issue, yes the link in the repository description was broken.
I just fixed it
thanks :)


text:
Overindentation when using "class" as a key in an object

Expected:
{
    class: {
        a: 1,
        b: 2,
        c: 3,
    }
}

Actual:
{
    class: {
        a: 1,
            b: 2,
            c: 3,
    }
}

Another keyword needing a special case.

Fix for this issue released with #2013

authors: bitwiseman laggingreflex mhnaeem

repo: beautify-web/js-beautify


text:
Logout on JWT token expiration

on 401 response cleanup authentication state and redirect to login

Mostly patient portal related at the moment

I can see the token placed in localStorage after being authenticated, it seems to be base 64 encoded though.
The logic I've followed was to apply btoa decoding function which gave me a UUID sort of string (when I try it using decodeJwt  function I've got something like 'notValidJWT').
I'm just trying to access the 'exp' property from the JWT token stored in localStorage so that I can remove it as soon as it gets expired.
Would anybody be able to give me a hint, plz :)
P.D. I saw there's also a refresh_token that is handled by the Token interface but I guess that's being handled automatically. Whoever I'm still wondering whether Do we need to implement the refresher logic though

repo: beda-software/fhir-emr


text:
Could not able to run on my system

Can you give me an example of command line usage of this

How did you install it? via pip?

If you install with pip just run point it at two text files: wer ref.txt hyp.txt.

Thank you

authors: belambert shivangsoni

repo: belambert/asr-evaluation


text:
Operator perbandingan

Deskripsi (Description)

Checklist:
Umum:

[x] Saya menambah algoritma terbaru.
[ ] Saya memperbaiki algoritma yang sudah ada.
[ ] Saya memperbaiki dokumentasi.
[x] Saya menambah dokumentasi.

Contributor Requirements (Syarat Kontributor) dan Lain-Lain:

[x] Saya sudah membaca (I have read) CONTRIBUTING dan sudah menyetujui semua syarat.
[x] Saya telah menambahkan docstring yang memberikan penjelasan maksud dari kode yang saya buat.
[x] Saya menggunakan bahasa Indonesia untuk memberikan penjelasan dari kode yang saya buat.

Unit Testing dan Linting:

[x] black
[x] flake8

Environment
Saya menggunakan (I'm using):

os = linux
python = python 3.8.10

Issue #32

Oh ya, markdownnya ga sekalian?

tinggal merge kan?

authors: athallahmaajid norinorin

repo: bellshade/Python


text:
Update contributors

👋

Thanks for your contributions! 😄

authors: ben-eb rodweb

repo: ben-eb/caniuse-lite


text:
Update mdast to remark

Hey! Just wanted ping and request a name change from mdast to remark.
You’ve probably already seen it but here’s a list of tips for updating. And here’s a list of reasons why to update.
Let me know if I can help! :smile:

I've been meaning to get around to this (& others) but updating is quite time consuming, spent at least an hour converting https://github.com/ben-eb/mdast-autolink-headings. I'll get around to it but it's low down on the priority list right now.

Really? Sorry, I can imagine. I’ll do a PR of the replaces!

Yep, wasn't as simple as 'just' a name change either because of babel 6 and babel-tape-runner 1.3.0, so had to update the whole module. In the process of upgrading modules I maintain to babel 6, ava, eslint etc but it's a slog. :frowning:
https://github.com/ben-eb/remark-autolink-headings/commit/31306a0b61ea3c9b204165df92e537ecde843126

:anguished:

https://github.com/ben-eb/mdast-highlight.js/commit/0a13fe724df57856ba3178651fee44bd45343405

Coool! :+1:

authors: ben-eb wooorm


text:
Try again button for giving permission to mic not working

When I clicked on the mic button and denied it the permission it showed me a prompt to try again. But now when I click on try again it does not work.

Same thing happen to me right now!

repo: benawad/dogehouse


text:
Add prettier pre-commit hook

Fixes #460
The reason why this has so many changes is pre-commit fixed some files.

Any reason why so many rules are turned off?

this is just preference, they can be turned on.

I thought that extending airbnb was enough to use their rules. So it is unnecessary to turn off the rules. But maybe I am wrong?

@benawad can I ask why you merged this? it seemed that @nadirabbas was still working on this

@WikiRik It is still working tho

@WikiRik you can make another PR probably to optimize the rules probably.

authors: WikiRik nadirabbas


text:
Adrianjg NSFW ascii image

Got user in title with ascii image, I guess people just can't help themselves. I'd rather not paste pic here.
Might want to start blocking github users so at least there is some repercussions.
I believe this user is this one @adrianjgil

I hardcoded the id to ban for now, but will probably need to add a system for this

This reminds me, I will work on a npm package to detect ascii art sometime this weekend.

I hardcoded the id to ban for now, but will probably need to add a system for this

Also not sure what information you get with github auth, but users can change github username, so not sure if the ban can be tied to something more precise like email/s or some other user github uuid. Just a few thoughts.

repo: benawad/vscode-stories


text:
evertyhign probe,m

everythig broken ??WTf

proof

https://cdn.discordapp.com/attachments/902309433747587112/904450308325920788/unknown.png

authors: benbirchpersonal zacherysun

repo: benbirchpersonal/string-impl


text:
Added more missing predicates

This PR adds the remaining predicates from #17.
I would greatly appreciate your feedback @benbovy regarding covers and covered_by, as the way it is implemented now appears to mostly work, but fails when checking polygons that partly share a boundary. This is consistent with https://github.com/r-spatial/s2/blob/b495b0df53bffc7dc1ad3780fe8ac208e78cd1bf/R/s2-predicates.R#L121C1-L124C2 for example, but deviates from PostGIS IIUC (cmp. https://postgis.net/docs/ST_Covers.html). From a user perspective, I would expect the test to work.

Thanks for the PR @JoelJaeschke !
I suspect that that R s2 deviating from PostGIS is not intentional? If we want a behavior consistent with PostGIS the implementation of covers should probably check both "s2_contains" and "s2_intersects" (not only "s2_contains").
I briefly checked in the S2geometry tests: for two polygons sharing one edge, the open vs. closed polygon model has no influence on the result of the DIFFERENCE Boolean operation (used by "s2_contains") but yields different results for the INTERSECTION operation.
(S2geometry also seems to assume that the edges of polylines - and polygons? - are directed by default and takes that into account for the intersection operation... this might also explain some specific behavior).

Actually, what I thought was incorrect behavior is likely expected and working correctly. I was thinking of this from a planar geometry point of view, but since S2 assumes a spherical earth, the horizontal edges are not actually straight, but rather follow the earth's curvature. Therefore, even though in planar geometry, one polygon would be covered, in spherical geometry this is not true anymore.
I tested this in BigQuery (using the GeoViz tool) and the following query
select st_geogfromtext('polygon((-118 60, -118 23, 34 23, 34 60, -118 60))') p1, st_covers(st_geogfromtext('polygon((-118 60, -118 23, 34 23, 34 60, -118 60))'), st_geogfromtext('polygon((-118 60, -118 23, 34 23, 34 60, -118 60))'))
union all
select st_geogfromtext('polygon((-118 60, -118 23, -18 23, -18 60, -118 60))') p2, st_covers(st_geogfromtext('polygon((-118 60, -118 23, 34 23, 34 60, -118 60))'), st_geogfromtext('polygon((-118 60, -118 23, -18 23, -18 60, -118 60))'));

where in the second select, the polygon is similar to the way I wrote the tests. However, when visualizing the resulting geometries, this is the result:

As can be seen, the red polygon is definitely not covered by the "parent" polygon. BigQuery also returns false for the second ST_Covers. So I think the test rightfully fails. Let me know if this makes sense to you @benbovy . Otherwise, I would simply remove the last test from the PR and it should be good to go.

Ah yes that makes sense!
(BTW we should implement quick visualization of geography objects in Spherely as it helps a lot!)
Instead of simply removing the failing tests, could you please keep these and make sure that the boundaries of the two polygons partially overlap along a great circle (longitude)?
(I'm also curious to see if it works as expected when the overlapping boundaries correspond to a shell ring for polygon A and a hole ring for polygon B... I guess it should work?)

Instead of simply removing the failing tests, could you please keep these and make sure that the boundaries of the two polygons partially overlap along a great circle (longitude)?

This has turned out to be much tougher than I anticipated. The standard S2BooleanOperation::Contains in s2geometry does not handle shared boundaries on polygons as I had hoped.. (well, it does, but not in a way that would help when implementing the covers logic, see https://github.com/google/s2geometry/issues/387).
I am not sure whether I grok the concepts in s2geometry fully, but as I understood, there is no API that handles the covers check natively. The S2Polygon class has a method called ApproxContains, which solves the issue of shared boundaries on polygons, but only when using an approximation, i.e. no exact checks. However, this would require some custom dispatching logic that differs between polygons and polylines/points and I am not quite sure whether this is something that should be implemented in spherely or rather in s2geography?
Below is some code that demonstrates the issue in more detail (only depends on s2geometry):
#include <iostream>
#include <memory>

#include <s2/s2latlng.h>
#include <s2/s2point.h>
#include <s2/s2loop.h>
#include <s2/s2polygon.h>
#include <s2/s2builder.h>
#include <s2/s2builderutil_s2polygon_layer.h>
#include <s2/s2boolean_operation.h>

int main(int argc, char** argv) {
    const std::vector<S2Point> parent_vertices = {
        S2LatLng::FromDegrees(60, -118).ToPoint(),
        S2LatLng::FromDegrees(23, -118).ToPoint(),
        S2LatLng::FromDegrees(23, 34).ToPoint(),
        S2LatLng::FromDegrees(60, 34).ToPoint()
    };
    std::unique_ptr<S2Loop> parent_loop = std::make_unique<S2Loop>(std::move(parent_vertices));
    S2Polygon parent_poly(std::move(parent_loop));

    const std::vector<S2Point> interior_vertices = {
        S2LatLng::FromDegrees(40, -117).ToPoint(),
        S2LatLng::FromDegrees(37, -117).ToPoint(),
        S2LatLng::FromDegrees(37, -116).ToPoint(),
        S2LatLng::FromDegrees(40, -116).ToPoint()
    };
    std::unique_ptr<S2Loop> interior_loop = std::make_unique<S2Loop>(std::move(interior_vertices));
    S2Polygon interior_poly(std::move(interior_loop));

    const std::vector<S2Point> shared_bound_vertices = {
        S2LatLng::FromDegrees(40, -118).ToPoint(),
        S2LatLng::FromDegrees(23, -118).ToPoint(),
        S2LatLng::FromDegrees(23, 34).ToPoint(),
        S2LatLng::FromDegrees(40, 34).ToPoint()
    };
    std::unique_ptr<S2Loop> shared_bound_loop = std::make_unique<S2Loop>(std::move(shared_bound_vertices));
    S2Polygon shared_bound_poly(std::move(shared_bound_loop));

    const std::vector<S2Point> crossing_vertices = {
        S2LatLng::FromDegrees(40, -120).ToPoint(),
        S2LatLng::FromDegrees(37, -120).ToPoint(),
        S2LatLng::FromDegrees(37, -116).ToPoint(),
        S2LatLng::FromDegrees(40, -116).ToPoint()
    };
    std::unique_ptr<S2Loop> crossing_loop = std::make_unique<S2Loop>(std::move(crossing_vertices));
    S2Polygon crossing_poly(std::move(crossing_loop));

    S2BooleanOperation::Options options;
    options.set_polygon_model(S2BooleanOperation::PolygonModel::CLOSED);
    options.set_polyline_model(S2BooleanOperation::PolylineModel::OPEN);

    const auto contains_interior = S2BooleanOperation::Contains(parent_poly.index(), interior_poly.index()) ? "true" : "false";
    std::cout << "Contains interior? " << contains_interior << std::endl;

    const auto contains_shared = S2BooleanOperation::Contains(parent_poly.index(), shared_bound_poly.index()) ? "true" : "false";
    std::cout << "Contains shared? " << contains_shared << std::endl;

    const S1Angle tol = S1Angle::Degrees(1e-16);
    const auto approx_contains_shared = parent_poly.ApproxContains(shared_bound_poly, tol) ? "true" : "false";
    std::cout << "Approx contains shared? " << approx_contains_shared << std::endl;

    const auto contains_crossing = S2BooleanOperation::Contains(parent_poly.index(), crossing_poly.index()) ? "true" : "false";
    std::cout << "Contains crossing? " << contains_crossing << std::endl;

    const auto approx_contains_crossing = parent_poly.ApproxContains(crossing_poly, tol) ? "true" : "false";
    std::cout << "Approx contains crossing? " << approx_contains_crossing << std::endl;

    return 0;
}

Output when called is
Contains interior? true
Contains shared? false
Approx contains shared? true
Contains crossing? false
Approx contains crossing? false

@JoelJaeschke thanks for further diving into this!
Exploring this using R's s2 (given this is already implemented there), this is a reproducer of your example above I think (with the shared boundary that gives a wrong result):
# s2_make_polygon takes vector of longitudes and vector of latitudes
> parent_poly <- s2_make_polygon(c(-118, -118, 34, 34), c(60, 23, 23, 60))
> shared_bound_poly <- s2_make_polygon(c(-118, -118, 34, 34), c(40, 23, 23, 40))
> s2_contains(parent_poly, shared_bound_poly)
[1] FALSE
> s2_covers(parent_poly, shared_bound_poly)
[1] FALSE

and this indeed gives False while you would expect True for both cases (so this is actually not specific to covers being added here, but already an issue with contains as well, AFAIU)
Testing what has been said on the s2geometry, that this is a 50/50 chance of falling left or right of the edge, I tested with some other coordinates along the edge:
> for (lat_high in 40:30) {
+     shared_bound_poly <- s2_make_polygon(c(-118, -118, 34, 34), c(lat_high, 23, 23, lat_high))
+     print(paste(lat_high, s2_contains(parent_poly, shared_bound_poly), s2_covers(parent_poly, shared_bound_poly)))
+ }
[1] "40 FALSE FALSE"
[1] "39 FALSE FALSE"
[1] "38 TRUE TRUE"
[1] "37 FALSE FALSE"
[1] "36 FALSE FALSE"
[1] "35 TRUE TRUE"
[1] "34 FALSE FALSE"
[1] "33 FALSE FALSE"
[1] "32 FALSE FALSE"
[1] "31 FALSE FALSE"
[1] "30 TRUE TRUE"

Here it was not 50/50, but at least you see that indeed it is a bit (deterministically) random.
So while this is definitely a usability issue (and ideally we would be able to solve that. I thought that maybe snapping would have helped, but that didn't seem to make a difference ..), I would for now just implement this as you were doing, and document this as a gotcha (also given that R s2 is doing the same). And then we can later try to improve this.
Did you also test this example in BigQuery? (wondering if it can handle this case better ..)
For testing, we can use an example case where there is a shared boundary, but only fully shared edges (so there is never a vertex that falls somewhere in the middle of the edge of the other). For example:
> parent_poly <- s2_make_polygon(c(-118, -118, -118, 34, 34, 34), c(60, 40, 23, 23, 40, 60))
> shared_bound_poly <- s2_make_polygon(c(-118, -118, 34, 34), c(40, 23, 23, 40))
> s2_contains(parent_poly, shared_bound_poly)
[1] TRUE
> s2_covers(parent_poly, shared_bound_poly)
[1] TRUE

Hey @jorisvandenbossche, thanks for your feedback.

So while this is definitely a usability issue (and ideally we would be able to solve that. I thought that maybe snapping would have helped, but that didn't seem to make a difference ..),

Behind the scenes, the ApproxContains function does use snapping with the given tolerance, if that is what you mean? Maybe, if this option is more exposed in higher-level APIs, that could be used? But in general, I agree that its probably easiest to just document this example and make the user aware.

Did you also test this example in BigQuery? (wondering if it can handle this case better ..)

I did, BigQuery does in fact handle this case properly, although I only tested this with one polygon and ST_Covers. But happy to re-test some more cases.

For testing, we can use an example case where there is a shared boundary, but only fully shared edges (so there is never a vertex that falls somewhere in the middle of the edge of the other).

Sounds good to me, I will push the changes

I implemented all the feedback from above and documented the behavior in the tests a bit. If there is anything you would like me to change, let me know.
After thinking about this more, there is probably one way how this could work properly. Given two MutableS2ShapeIndex  instances a and b, we would have to build the intersection of the two and then test the result for equality against b. If this is true, it should mean that b is fully covered by a.
I gave implementing this a go, but I struggle with how to make it work when just given two MutableS2ShapeIndex instances. Maybe someone who has more experience with s2geometry can take a stab at this.

Hey @jorisvandenbossche, is there anything missing that I should add and/or change here?

Given that this is something that ideally should be solved in the s2geography layer (since this also affects R), I opened an issue over there to describe this specific case -> https://github.com/paleolimbot/s2geography/issues/44
So let's continue the discussion there.

authors: JoelJaeschke benbovy jorisvandenbossche

repo: benbovy/spherely


text:
Cannot read property 'values' of undefined", falling back to the default summary  source=console

ERRO[0054] handleSummary() failed with error "TypeError: ejs:294
292|             Iterations
293|
294|             Total<%= data.metrics.iterations.values.count %>
295|             Rate<%= data.metrics.iterations.values.rate.toFixed(2) %>/s
296|

ERRO[0059] handleSummary() failed with error "TypeError: ejs:294
292|             Iterations
293|

294|             Total<%= data.metrics.iterations.values.count %>
295|             Rate<%= data.metrics.iterations.values.rate.toFixed(2) %>/s
296|
297|


text:
API deprecate Objective.to_dict in favor of Objective.get_objective

closes #460

Codecov Report

Merging #489 (c5dc0e1) into main (5bd2525) will decrease coverage by 0.04%.
The diff coverage is 50.00%.

:exclamation: Current head c5dc0e1 differs from pull request most recent head 542bdb5. Consider uploading reports for the commit 542bdb5 to get more accurate results

@@            Coverage Diff             @@
##             main     #489      +/-   ##
==========================================
- Coverage   53.10%   53.06%   -0.05%
==========================================
  Files          42       42
  Lines        2736     2742       +6
  Branches      500      501       +1
==========================================
+ Hits         1453     1455       +2
- Misses       1171     1174       +3
- Partials      112      113       +1

I tested it and it works as expected. However if we update a benchmark by replacing to_dict with get_objective, and the benchmark is run with a previous version of benchopt, it will no longer work as Objective does not have a to_dict objective...
Is there a way to not break things? Keep the to_dict in the benchmark, which calls get_objective and warns to update benchopt?

This is indeed an issue... I think we should add a min_benchopt_version in the benchmarks, that we  bump once we break compat and if you run a benchmark with older version of benchopt, it warns that you should update

authors: codecov-commenter mathurinm tomMoral

repo: benchopt/benchopt


text:
Uatp / Airplus Format

First of all, the library is amazing and works like a charm.
I need that uatp/airplus credit card format is added to format it correctly, so, i open this issue asking if its possible to do that with the pattern of uatp/airplus credit card:
pattern:"1[0-9]{12,15}"
Example of uatp/airplus credit card: 1920 0200 000000.
Thank u very much.
Regards.

i added this ,
exports.uatp = new Type('Uatp', {
  pattern: /^1[0-9]\d{12,15}$/,
  eagerPattern: /^(1[1-4])/
})

authors: llesterdayBay sajanyamaha

repo: bendrucker/angular-credit-cards


text:
Update dependencies

Update dependencies and make some compatibles changes.

Thanks!

repo: bendrucker/git-log-parser


text:
cache busting for demos by installing hamster-html

hamster-html is a static website builder, and it has this special cache-busting feature that fixes caching problems for users.

website repo and humanoid repo already use hamster-html to build their web pages
we need to apply this same pattern, of using hamster-html to build a website with cache busting, onto every demo repo that we have (nubs, mule, etc)
the github workflows will likely need to be updated, at least release.yaml

website repo and humanoid repo already use hamster-html to build their web pages

humanoid doesn't have cache busting implemented yet, will set it up tho

authors: PaulAroo chase-moskal

repo: benevolent-games/website


text:
A∩B∩(!C) highlight

I want to start off by saying thank you for creating such an awesome library! I am looking to create visualizations that will allow me to light up A∩B∩(!C), like that shown in the screenshot below.

Any chance this is already in the works? Thanks again!

You're the second person to ask for this - https://github.com/benfred/venn.js/issues/23 has the original request.
Its a little tricky to extend the existing approach because the areas might not be contiguous (like in that issue).
I've wondered about using  SVG clipping to do this: like define the path as it is now and clip the other circles from it like this . I think that might be the easiest way to do it, but I haven't had time to try =(

authors: benfred josephshum


text:
Tagging releases

When you bump the npm version, it would be helpful to also tag the release, so tarballs get generated.
I might package private for Debian, if I can lay my hand on a tarball...

Any news on the matter?

Please, I would just need a "git tag v0.1.6" followed by "git push --tags" and it's done... Or perhaps github makes it even easier than that...

Done! Sorry for the delay, and I'll try to be better about this in the future (this is one of my older repositories, unfortunately somewhat neglected).

authors: SnarkBoojum benjamn

repo: benjamn/private


text:
Correct label position only when overlapped label is actually shown

Closes #65

Any chance in getting this pulled? Is there something I need to do?

Sorry @obfuscoder - I've been horribly delinquent with this project. I'll take a look at this tonight.

Yeah this makes sense, cool. Actually the change needed to be made to the raw source code (in the d3pie-source folder) rather than the generated d3pie folder - but that's fine. I'm going to merge this in now and tweak it myself.
I really appreciate the pull request, and again sorry for the incredibly long wait.

authors: benkeen obfuscoder


text:
After I choose a move, it takes too much effort to get back to the move chooser

Solution: After a move is played, automatically focus the move choosing button.

I thought I just had to add $("#cycleMovesBtn").focus() to the play-move handler, but our hacky keyboard/gamepad setup breaks it. We'll need to rework that to fix this.

repo: benknoble/limchess


text:
no-cycle rule fails to recognize external module

In a project setup with yarn workspaces, no-cycle fails to recognize a @scope/package package as external, even if the path is under node_modules.  The reason is that no-cycle uses isExternalModule:
https://github.com/benmosher/eslint-plugin-import/blob/master/src/rules/no-cycle.js#L44
but there is a regex condition that says that module is not "external", but "scoped".
https://github.com/benmosher/eslint-plugin-import/blob/3e65a70bc73e404ace72ee858889e39732284d12/src/core/importType.js#L45
I think the right solution for consistency is to use resolveImportType from importType?
https://github.com/benmosher/eslint-plugin-import/blob/master/src/core/importType.js#L83-L93
Alternatively, replace the regular expression with "anything that does not start with a ..

Actually, my motivation is actually not necessarily considering the import external.  But making sure that no-cycle reads the target file with the right settings from the target .eslintrc!   This was more of a workaround.

@davazp any chance you could provide a repro repo, or a PR with a failing test case? :-)

authors: davazp ljharb

repo: benmosher/eslint-plugin-import


text:
Domain discriminator

Thanks for your work, I have a question about your implementation of the domain discriminator, I use the two sketch datasets you recommend in your paper, and use the domain discriminator recommended in your project, use 512×7×7 feature maps for channel attention, as done in CBAM, flattened as input to the domain discriminato, but I still can't achieve the volXel IoU in your paper after adding the domain discriminator on the airplane class, my way only achieves 0.490, 0.486. Can you give me some suggestions? Looking forward to your reply!

Hi, sorry for the late reply!
We do find training directly with the domain discriminator to be somehow unstable. Please try training the model without the domain discriminator first then finetune with it under a low learning rate.

authors: QHxingchen bennyguo


text:
Webpakc Config use resolve.root

Using the webpack option resolve.root is more appropriate than changing resolve.modulesDirectories.
Documentation

Thanks @albertorestifo!

authors: albertorestifo bensmithett

repo: bensmithett/webpack-css-example


text:
Add blue wires to TTF board for instrumentation.

Need NIC_PWR_GOOD wired to UART RX pin.
Need all scan chain signals blue wired to attach probes.

Done. Thanks.


text:
Problem implementing garage door - Home app doesn't show correct status

I'm implementing the GarageDoor interface, however I'm finding that the iOS Home app doesn't display the correct door state. Here's my implementation:
public class RemoteGarageDoor implements GarageDoor {
	/**
	 * A connection to the door which allows data to be sent and received.
	 */
	private final GarageDoorConnection connection;

	private final int id;

	private final String label;

	private final String manufacturer;

	private final String model;

	private final String serialNumber;

	/**
	 * Futures passed to {@link #getCurrentDoorState()} which must be completed next time the door
	 * status is updated.
	 */
	private final Set<CompletableFuture<DoorState>> getDoorStateFutures =
			ConcurrentHashMap.newKeySet();

	/**
	 * Futures passed to {@link #getObstructionDetected()} which must be completed next time the
	 * door status is updated.
	 */
	private final Set<CompletableFuture<Boolean>> getObstructionDetectedFutures =
			ConcurrentHashMap.newKeySet();

	/**
	 * Future from the last call to {@link #setTargetDoorState(DoorState)} which must be
	 * completed when the door reaches the target state.
	 */
	private CompletableFuture<Void> targetStateReachedFuture;

	private DoorState lastKnownDoorState = CLOSED;

	private boolean lastKnownObstructionDetected = false;

	private DoorState targetDoorState = CLOSED;

	/**
	 * Whether or not the current target door state has been sent to the door.
	 */
	private boolean targetHasBeenRequested = true;

	private HomekitCharacteristicChangeCallback doorStateCallback;

	private HomekitCharacteristicChangeCallback targetDoorStateCallback;

	private HomekitCharacteristicChangeCallback obstructionDetectedCallback;

	public RemoteGarageDoor(final GarageDoorConnection connection,
			final int id,
			final String label,
			final String manufacturer,
			final String model,
			final String serialNumber) {
		this.connection = checkNotNull(connection, "connection cannot be null.");
		this.id = id;
		this.label = checkNotNull(label, "label cannot be null.");
		this.manufacturer = checkNotNull(manufacturer, "manufacturer cannot be null.");
		this.model = checkNotNull(model, "model cannot be null.");
		this.serialNumber = checkNotNull(serialNumber, "serialNumber cannot be null.");

		// Use a background thread for looping
		Executors.newSingleThreadExecutor().execute(() -> {
			while (true) {
				try {
					loop();
				} catch (final Exception e) {
					Lumberjack.log(ERROR, "Error occurred in RemoteGarageDoor loop.", e);
				}
			}
		});
	}

	@Override
	public String getLabel() {
		return label;
	}

	@Override
	public String getManufacturer() {
		return manufacturer;
	}

	@Override
	public String getModel() {
		return model;
	}

	@Override
	public String getSerialNumber() {
		return serialNumber;
	}

	@Override
	public int getId() {
		return id;
	}

	@Override
	public void identify() {
		Lumberjack.log(WARNING, "identify() not implemented for RemoteGarageDoor.");
	}

	@Override
	public CompletableFuture<DoorState> getCurrentDoorState() {
		final CompletableFuture<DoorState> future = new CompletableFuture<>();

		// Save the future so that it can be completed by the looper
		getDoorStateFutures.add(future);

		return future;
	}

	@Override
	public CompletableFuture<DoorState> getTargetDoorState() {
		return CompletableFuture.completedFuture(targetDoorState);
	}

	@Override
	public CompletableFuture<Boolean> getObstructionDetected() {
		final CompletableFuture<Boolean> future = new CompletableFuture<>();

		// Save the future so that it can be completed by the looper
		getObstructionDetectedFutures.add(future);

		return future;
	}

	@Override
	public CompletableFuture<Void> setTargetDoorState(final DoorState targetDoorState) throws
			Exception {
		final CompletableFuture<Void> future = new CompletableFuture<>();

		if (this.targetDoorState != targetDoorState) {
			// Deliver callback if necessary
			if (targetDoorStateCallback != null) {
				targetDoorStateCallback.changed();
			}

			// Save the new target state
			this.targetDoorState = targetDoorState;

			// Save the future so it can be completed by the looper
			targetStateReachedFuture = future;

			// Indicate to the looper that the new target has not yet been requested
			targetHasBeenRequested = false;
		}

		return future;
	}

	@Override
	public void subscribeCurrentDoorState(final HomekitCharacteristicChangeCallback callback) {
		doorStateCallback = callback;
	}

	@Override
	public void subscribeTargetDoorState(final HomekitCharacteristicChangeCallback callback) {
		targetDoorStateCallback = callback;
	}

	@Override
	public void subscribeObstructionDetected(final HomekitCharacteristicChangeCallback callback) {
		obstructionDetectedCallback = callback;
	}

	@Override
	public void unsubscribeCurrentDoorState() {
		doorStateCallback = null;
	}

	@Override
	public void unsubscribeTargetDoorState() {
		targetDoorStateCallback = null;
	}

	@Override
	public void unsubscribeObstructionDetected() {
		obstructionDetectedCallback = null;
	}

	/**
	 * Requests that the door open/close etc. or requests a status update from the door. The
	 * former has priority.
	 */
	private void loop() {
		if (targetDoorState != lastKnownDoorState && !targetHasBeenRequested) {
			requestDoorStateChange();
			targetHasBeenRequested = true;
		} else {
			final ResponsePacket response = connection.sendRequestAndAwaitResponse(
					RequestPacket.newGetStatusUpdatedRequestPacket());

			// The door may not always be reachable.
			if (response != null) {
				processUpdate(response);
			}
		}
	}

	/**
	 * Sends a request to the door to change state.
	 */
	private void requestDoorStateChange() {
		//TODO implement confirmation return oacket, OK for now while using a wired connection
		if (targetDoorState == OPEN) {
			connection.sendRequest(RequestPacket.newOpenDoorRequestPacket());

		} else if (targetDoorState == CLOSED) {
			connection.sendRequest(RequestPacket.newCloseDoorRequestPacket());

		} else if (targetDoorState == STOPPED) {
			connection.sendRequest(RequestPacket.newStopDoorRequestPacket());

		} else {
			throw new RuntimeException("The target state is invalid.");
		}
	}

	/**
	 * Processes a status update from the door. Pending futures are completed if appropriate and
	 * the necessary callbacks are delivered.
	 *
	 * @param update
	 * 		the update from the door, not null
	 */
	private void processUpdate(final ResponsePacket update) {
		// Copy the current status
		final DoorState oldState = lastKnownDoorState;
		final boolean oldObstructionDetected = lastKnownObstructionDetected;

		// Update the current status
		lastKnownDoorState = update.getDoorState();
		lastKnownObstructionDetected = update.getObstructionDetectedStatus();

		// If the target state has been reached, complete the relevant future
		if (targetDoorState == update.getDoorState() && targetStateReachedFuture != null) {
			targetStateReachedFuture.complete(null);
			targetStateReachedFuture = null; // Completed, so discard
		}

		// Complete futures of getDoorState()
		for (final CompletableFuture<DoorState> future : getDoorStateFutures) {
			future.complete(update.getDoorState());
			getDoorStateFutures.remove(future); // Completed, so discard
		}

		// Complete futures of getObstructionDetected()
		for (final CompletableFuture<Boolean> future : getObstructionDetectedFutures) {
			future.complete(update.getObstructionDetectedStatus());
			getObstructionDetectedFutures.remove(future); // Completed, so discard
		}

		// Deliver door state change callback if necessary
		if (oldState != update.getDoorState() && doorStateCallback != null) {
			doorStateCallback.changed();
		}

		// Deliver obstruction detected changed callback if necessary
		if (oldObstructionDetected != update.getObstructionDetectedStatus()
				&& obstructionDetectedCallback != null) {
			obstructionDetectedCallback.changed();
		}
	}
}

Problems occur when the door state is changed. For example:

The iOS home app shows the status of closed. This is expected and reflects the internal representation of the door state.
Using the home app, a request to open the door is made.
The mock door opens and my garage door implementation completes appropriate saved futures.
New calls to getCurrentDoorState() result in the future being completed with a status of open.

Despite this, the home app continues to show "Opening..." as the door status.
My unit tests show that the futures are being completed as expected and the correct callbacks are being delivered. Also right now I'm mocking out the connection to the physical door, so there's no packet loss or other networking issues.
Any ideas?

After further investigation, I've found that execution blocks when HomekitCharacteristicChangeCallback.changed() is called in void processUpdate(final ResponsePacket update). I mocked these callbacks in my unit tests which would explain why they passed by my integration tests don't. Is this blocking behaviour expected?

@beowulfe
Is there an expected response time from the characteristic requests? I'm trying to do something somewhat similar to Matthew, in which I want to delegate all the actual work to the microcontroller on the garage door, and have my HAP server send MQTT requests and correlate the responses.
Currently I make a CompletableFuture when the value is requested. Any subsequent requests while I'm waiting for a response are given the same instance of the CompletableFuture. Then when I get a response back over MQTT I notify the subscriber (if any), and then complete the future, satisfying all the pending requests.
However since the controller may be offline, I need to do something meaningful if I don't get a response back in a reasonable time, or the gets for will block for long periods.
Is this a suitable approach to take, and what would be reasonable timeout behavior? I think returning null generates errors in the framework, but perhaps a suitable "no response" behavior in iOS will still happen.
If you can answer these questions I'd be happy to write a bit of documentation on the wiki page, and update the demo, perhaps add something a bit more complicated than the light.

Are you still having problems with the latest main branch?

I abandoned my project years ago.

authors: MatthewDavidBradshaw MatthewTamlin TyrantFox ccutrer

repo: beowulfe/HAP-Java


text:
Consumer Example

I'm trying to figure out the proper way to use Bernard for consuming messages. I have the following code(using IronMQ driver):
    $router = new ContainerAwareRouter( $container, array( 'UpdatePostSnapshots' => 'update_snapshots_service' ) );
    $consumer = new Consumer( $router, new MiddlewareBuilder() );
    $consumer->consume( $queueFactory->create( 'post-update-snapshots-msg' ), array( 'max-runtime' => 900 ) );

I run it as a custom console command in Symfony. It works well, however IronMQ dashboard shows several thousand API requests within a few minutes(just for one consumed message).
How do I optimize this, so the worker would not go crazy over IronMQ with million requests a day for not a large queue.

Looks like you sorted it out.

authors: sagikazarmark websirnik

repo: bernardphp/bernard


text:
allocation exceeds

@bertrandmartel,
Good Morning..
One more bug to debug

same as #34, use speedTestSocket.setUploadStorageType(UploadStorageType.FILE_STORAGE); to use file storage rather than UploadStorageType.RAM_STORAGE which is the default

authors: bertrandmartel juniormj

repo: bertrandmartel/speed-test-lib


text:
SSO possible solution

The single sign-on alternative to the one all which was previously mentioned in the meeting on Sunday ( one all SSO)
Additional context
The setup we need to perform is mentioned here in the link below
https://auth0.com/docs/cms/wordpress/installation#option-1-standard-setup

So, who is responsible for the blog? There are still many days, and you have found the documentation, so go ahead and do it.

@SachinMCReddy

since we decided to use the mini-blog as the solution for blog feature, sso is no longer needed.

authors: SachinMCReddy bestksl mhassany


text:
Implement version of BetaCalibration with only one parameter a (a=b,m=0.5)

There are multiple versions of BetaCalibration with a different number of parameters:

abm: all parameters are estimated
ab: parameter m is fixed to 0.5 and a and b are estimated
am: parameter b is fixed with the same value as a, and a and m are estimated

The commit f879d853b8341df4fe3fd4215e854b56d36e2691 in the branch feat_param_a has a initial version that needs to be revised and tested.

I see that the problem is that the line 307 is only a placeholder to save the results, but it is not used later for the predictions. I was expecting the new _BetaCal to predict symetric functions but that is not the case.
I see that it is necessary that the LogisticRegression is fitted with equal variance on both classes. I am trying to find out how this is done.

Commit 67a6a7b solves the a = b problem, but the m does not seem to behave as an m=0.5

@perellonieto, I tried using the "a" option from the PyPi repository (pip install betacal), but it still has the bug fixed above. Can you merge the fix you implemented here? Is there still an issue with the m parameter?

Commit 124aefb8c2e8d124cf18a0a24755db2e93411e35 (now merged into master) solves these issues.
The new version will soon be available in PyPi (pip install betacal).

The new version (1.1.0) is already available through pip install betacal.
Thanks for the patience.

authors: perellonieto simontindemans tmfilho

repo: betacal/python


text:
Prise en compte de la banque

Il faudrait prendre en compte notre banque et nos investissements.
Investir 150000€ chez LCL ça pollue beaucoup plus qu'un petit compte courant au crédit coopératif.

Voir #314

Voir #314

authors: Benjamin-Boisserie-ABC publicodes

repo: betagouv/ecolab-data


text:
[Choix du statut] Ajouter les SCIC, SCOP, CAPE

Ajouter SCIC, SCOP et CAPE dans les statuts proposés par le comparateur de statut
Discussed in https://github.com/betagouv/mon-entreprise/discussions/2672

Originally posted by johangirod November 30, 2021

Pourquoi ne pas évoquer les SCOOP ; les SCIC, le CAPE (couveuses et coopératives) , le portage salarial ?

Le mieux serait de développer le parcours à partir de la question « Faire de l'argent » / « Non lucratif » (à reformuler).
On peut imaginer ensuite relier le parcours classique pour aider à choisir entre SCOP SARL et SCOP SAS.

Laissé à l'état de discussion. Peu de retours utilisateurs sur le sujet, manque de clarté sur le besoin, complexité de l'implémentation.

repo: betagouv/mon-entreprise


text:
Adiciona verificacao de saude da api antes de processar conteudos

Contexto
Devo ao fato da api do heroku demorar um certo tempo estar disponivel, a action não conseguia acessar a mesma e falhava a sua execução.
Saída
Sendo assim foi implementada uma validação de retry na API aguardando que a mesma esteja disponível.

Duas coisas:

Faltou colocar contexto da descrição. É super importante que os pull requests tenham contexto, para acelerar o processo e qualquer pessoa consiga fazer code review;
Boa, fiquei na dúvida pois por ser um repósitorio aberto, foi pedido que não se colocasse descrição com informações do mesmo no PR 🤔

Faltou seguir o processo de code review;

Os outros times não tem acesso a esse repo ainda, sendo assim não consigo marcar o tech-code-review vou ver como posso configurar (:

Duas coisas:

Faltou colocar contexto da descrição. É super importante que os pull requests tenham contexto, para acelerar o processo e qualquer pessoa consiga fazer code review;
Boa, fiquei na dúvida pois por ser um repósitorio aberto, foi pedido que não se colocasse descrição com informações do mesmo no PR 🤔

Faltou seguir o processo de code review;

Os outros times não tem acesso a esse repo ainda, sendo assim não consigo marcar o tech-code-review vou ver como posso configurar (:

@Caciquez da pra trazer contexto sem trazer informação sensível. São coisas diferentes.
Sobre o acesso, eu dei acesso e agora da pra seguir o processo nesse PR também.

@Caciquez da pra trazer contexto sem trazer informação sensível. São coisas diferentes.
Sobre o acesso, eu dei acesso e agora da pra seguir o processo nesse PR também.

authors: Caciquez caironoleto

repo: betrybe/process-content


text:
Adubey64

Files for documentation.

Thanks, Anshu.


text:
🛑 Reges Hotel Offers Portal is down

In d780987, Reges Hotel Offers Portal (https://offer.reges.com.tr) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Reges Hotel Offers Portal is back up in 003d2ed after 8 minutes.

repo: betterwithagency/status-page


text:
[SGP-16183] Parse Locust Stats By Individual Load Test Endpoint and Serve to Users

This PR uses the existing stats gathering implemented by Locust and parses them based on each individual endpoint hit in a locust load test (instead of by the summation of all requests, which is built-in to locust) and serves them to locust users.
The goal of this PR is provide a JSON which can then be used by plotly to give Bevy information on the performance of individual API endpoints as the load varies over time.
Eventually it would be nice to have these stats displayed in a chart during locust runtime, but that would be an extra unit of work. Right now the data is simply served in JSON format and then plotted manually.
Eventually it would also be nice to have an automated job which posts these stats to datadog or another performance monitoring dashboard.
NOTE: this is being merged into bevy/locust, not into locustio/locust

Thank you @codergolem and @slimPickens

repo: bevy/locust


text:
bevy_color's operations are not stable across all hardware due to use of trigonometric float methods

Bevy version
Commit 87afa98167b67e09d5701e49b02e185c8f09439d
[Optional] Relevant system information
DxDiag.txt
Lenovo Thinkbook Pro Gen 3
Razer Core X Chroma with an RTX 2060
Samsung Odyssey Neo G9 54"
What you did
Ran cargo run -p ci -- test
What went wrong
---- oklcha::tests::test_to_from_srgba_2 stdout ----
thread 'oklcha::tests::test_to_from_srgba_2' panicked at crates\bevy_color\src\oklcha.rs:415:13:
gray: Oklcha { lightness: 0.5981808, chroma: 2.3841858e-7, hue: 0.0, alpha: 1.0 } != Oklcha { lightness: 0.5981807, chroma: 9.424322e-8, hue: 18.434948, alpha: 1.0 }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

failures:
oklcha::tests::test_to_from_srgba_2
Additional information
This is not on main. It is on https://github.com/BenjaminBrienen/bevy/tree/rename-add-to-enqueue

This is super mysterious: my guess is on a floating point implementation or something being inconsistent.

Also happens on the (currently) latest commit ca6056d6d292874e5da57bc4de68429fed1af8ad

So it's probably not a cosmic ray 😂

@BenjaminBrienen What OS?

This test involves transcendental functions which have an implementation which varies from operating system to operating system, because they are implemented within software and do not have a specific degree of precision they are evaluated to.

It actually should be relatively stable across hardware, ironically, just not software.

It happens on bevy/main as well

@Jondolf says that we should be using https://github.com/bevyengine/bevy/blob/5a0c09d38fd63383281991da9d6c353ad7228f50/crates/bevy_math/clippy.toml, and forbidding the use of the std version of these methods.
IMO we should enable this lint at the workspace level, and allow specific crates to opt-out if they really need the performance.

I'll try my hand at this

All of the math has been moved to bevy_math, but of course I get the same result since libm is not enabled by default. Should I add libm to the default features of bevy_math?

IMO no; we should enable that by default later after serious benchmarks.

repo: bevyengine/bevy


text:
panic in bevy_render::renderer::render_system when running /examples/3d/*

Bevy version
v0.14.2
[Optional] Relevant system information

cargo 1.82.0
Ubuntu 24.04.1 LTS on WSL2 Windows 11 x86_64
 AdapterInfo { name: "D3D12 (NVIDIA GeForce RTX 4060 Ti)", vendor: 0, device: 0, device_type: Other, driver: "OpenGL", driver_info: "4.6 (Compatibility Profile) Mesa 24.0.9-0ubuntu0.2", backend: Gl }

What you did
Running a copy-paste of bevy/examples/3d/lighting.rs
It builds fine, but this is the output of cargo run.
I've already checked I'm on Bevy 0.14.2 and run cargo clean && cargo update
What went wrong
$ RUST_BACKTRACE=1 zsh -c 'cargo run'
    Finished `dev` profile [optimized + debuginfo] target(s) in 0.12s
     Running `target/debug/alienlines`
2024-11-20T10:10:58.115461Z  INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Linux 24.04 Ubuntu", kernel: "5.15.167.4-microsoft-standard-WSL2", cpu: "12th Gen Intel(R) Core(TM) i7-12700K", core_count: "10", memory: "15.5 GiB" }
2024-11-20T10:10:58.117187Z  WARN winit::platform_impl::linux::x11::xdisplay: error setting XSETTINGS; Xft options won't reload automatically
MESA: error: ZINK: failed to choose pdev
libEGL warning: egl: failed to create dri2 screen
2024-11-20T10:10:58.298586Z  INFO bevy_render::renderer: AdapterInfo { name: "D3D12 (NVIDIA GeForce RTX 4060 Ti)", vendor: 0, device: 0, device_type: Other, driver: "OpenGL", driver_info: "4.6 (Compatibility Profile) Mesa 24.0.9-0ubuntu0.2", backend: Gl }
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1342:(snd_func_refer) error evaluating name
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2721:(snd_pcm_open_noupdate) Unknown PCM default
2024-11-20T10:10:58.334268Z  WARN bevy_audio::audio_output: No audio device found.
2024-11-20T10:10:58.366440Z  WARN bevy_pbr::ssao: ScreenSpaceAmbientOcclusionPlugin not loaded. GPU lacks support: TextureFormat::R16Float does not support TextureUsages::STORAGE_BINDING.
2024-11-20T10:10:58.367239Z  INFO bevy_winit::system: Creating new window "App" (Entity { index: 0, generation: 1 })
2024-11-20T10:10:58.367405Z  WARN winit::platform_impl::linux::x11::util::randr: XRandR reported that the display's 0mm in size, which is certifiably insane
2024-11-20T10:10:58.367457Z  INFO winit::platform_impl::linux::x11::window: Guessed window scale factor: 1
2024-11-20T10:10:58.368579Z ERROR bevy_asset::server: Path not found: /home/smokracek/dev/alienlines/assets/branding/bevy_logo_light.png
2024-11-20T10:10:58.499814Z ERROR wgpu_hal::gles: GLES: [ShaderCompiler/Error] ID 1 : 0:3(12): error: extension `GL_EXT_texture_shadow_lod' unsupported in fragment shader
2024-11-20T10:10:58.499850Z ERROR wgpu_hal::gles::device:       Shader compilation failed: 0:3(12): error: extension `GL_EXT_texture_shadow_lod' unsupported in fragment shader

2024-11-20T10:10:58.500114Z ERROR wgpu_core::device::global: Device::create_render_pipeline error: Internal error in ShaderStages(FRAGMENT) shader: 0:3(12): error: extension `GL_EXT_texture_shadow_lod' unsupported in fragment shader

2024-11-20T10:10:58.500127Z ERROR wgpu::backend::wgpu_core: Shader translation error for stage ShaderStages(FRAGMENT): 0:3(12): error: extension `GL_EXT_texture_shadow_lod' unsupported in fragment shader

2024-11-20T10:10:58.500131Z ERROR wgpu::backend::wgpu_core: Please report it to https://github.com/gfx-rs/wgpu
2024-11-20T10:10:58.500143Z ERROR wgpu::backend::wgpu_core: Handling wgpu errors as fatal by default
thread 'Async Compute Task Pool (0)' panicked at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.20.1/src/backend/wgpu_core.rs:2996:5:
wgpu error: Validation Error

Caused by:
    In Device::create_render_pipeline
      note: label = `pbr_opaque_mesh_pipeline`
    Internal error in ShaderStages(FRAGMENT) shader: 0:3(12): error: extension `GL_EXT_texture_shadow_lod' unsupported in fragment shader

stack backtrace:
   0: rust_begin_unwind
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:662:5
   1: core::panicking::panic_fmt
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/panicking.rs:74:14
   2: wgpu::backend::wgpu_core::default_error_handler
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.20.1/src/backend/wgpu_core.rs:2996:5
   3: core::ops::function::Fn::call
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ops/function.rs:79:5
   4: <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/alloc/src/boxed.rs:2245:9
   5: wgpu::backend::wgpu_core::ErrorSinkRaw::handle_error
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.20.1/src/backend/wgpu_core.rs:2982:17
   6: wgpu::backend::wgpu_core::ContextWgpuCore::handle_error
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.20.1/src/backend/wgpu_core.rs:293:9
   7: <wgpu::backend::wgpu_core::ContextWgpuCore as wgpu::context::Context>::device_create_render_pipeline
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.20.1/src/backend/wgpu_core.rs:1182:13
   8: <T as wgpu::context::DynContext>::device_create_render_pipeline
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.20.1/src/context.rs:2266:13
   9: wgpu::Device::create_render_pipeline
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.20.1/src/lib.rs:2692:26
  10: bevy_render::renderer::render_device::RenderDevice::create_render_pipeline
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.14.2/src/renderer/render_device.rs:131:36
  11: bevy_render::render_resource::pipeline_cache::PipelineCache::start_create_render_pipeline::{{closure}}
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.14.2/src/render_resource/pipeline_cache.rs:773:21
  12: async_executor::Executor::spawn_inner::{{closure}}
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.13.1/src/lib.rs:250:20
  13: async_task::raw::RawTask<F,T,S,M>::run::{{closure}}
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-task-4.7.1/src/raw.rs:550:21
  14: core::ops::function::FnOnce::call_once
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ops/function.rs:250:5
  15: <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/panic/unwind_safe.rs:272:9
  16: std::panicking::try::do_call
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:554:40
  17: std::panicking::try
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:518:19
  18: std::panic::catch_unwind
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panic.rs:345:14
  19: async_task::raw::RawTask<F,T,S,M>::run
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-task-4.7.1/src/raw.rs:549:23
  20: async_task::runnable::Runnable<M>::run
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-task-4.7.1/src/runnable.rs:781:18
  21: async_executor::State::run::{{closure}}::{{closure}}
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.13.1/src/lib.rs:741:21
  22: <futures_lite::future::Or<F1,F2> as core::future::future::Future>::poll
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-2.5.0/src/future.rs:457:33
  23: async_executor::State::run::{{closure}}
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.13.1/src/lib.rs:748:32
  24: async_executor::Executor::run::{{closure}}
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.13.1/src/lib.rs:344:34
  25: futures_lite::future::block_on::{{closure}}
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-2.5.0/src/future.rs:99:19
  26: std::thread::local::LocalKey<T>::try_with
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/thread/local.rs:283:12
  27: std::thread::local::LocalKey<T>::with
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/thread/local.rs:260:9
  28: futures_lite::future::block_on
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-2.5.0/src/future.rs:78:11
  29: bevy_tasks::task_pool::TaskPool::new_internal::{{closure}}::{{closure}}::{{closure}}::{{closure}}
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_tasks-0.14.2/src/task_pool.rs:176:37
  30: std::panicking::try::do_call
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:554:40
  31: std::panicking::try
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:518:19
  32: std::panic::catch_unwind
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panic.rs:345:14
  33: bevy_tasks::task_pool::TaskPool::new_internal::{{closure}}::{{closure}}::{{closure}}
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_tasks-0.14.2/src/task_pool.rs:170:43
  34: std::thread::local::LocalKey<T>::try_with
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/thread/local.rs:283:12
  35: std::thread::local::LocalKey<T>::with
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/thread/local.rs:260:9
  36: bevy_tasks::task_pool::TaskPool::new_internal::{{closure}}::{{closure}}
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_tasks-0.14.2/src/task_pool.rs:163:50
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Encountered a panic in system `bevy_render::render_resource::pipeline_cache::PipelineCache::process_pipeline_queue_system`!
thread '<unnamed>' panicked at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.14.2/src/render_resource/pipeline_cache.rs:553:28:
index out of bounds: the len is 0 but the index is 1
stack backtrace:
   0: rust_begin_unwind
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:662:5
   1: core::panicking::panic_fmt
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/panicking.rs:74:14
   2: core::panicking::panic_bounds_check
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/panicking.rs:276:5
   3: <usize as core::slice::index::SliceIndex<[T]>>::index
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/slice/index.rs:302:10
   4: core::slice::index::<impl core::ops::index::Index<I> for [T]>::index
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/slice/index.rs:16:9
   5: <alloc::vec::Vec<T,A> as core::ops::index::Index<I>>::index
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/alloc/src/vec/mod.rs:2920:9
   6: bevy_render::render_resource::pipeline_cache::PipelineCache::get_render_pipeline
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.14.2/src/render_resource/pipeline_cache.rs:553:28
   7: <bevy_render::render_phase::SetItemPipeline as bevy_render::render_phase::draw::RenderCommand<P>>::render
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.14.2/src/render_phase/mod.rs:1079:14
   8: <(C0,C1,C2,C3) as bevy_render::render_phase::draw::RenderCommand<P>>::render
   9: <bevy_render::render_phase::draw::RenderCommandState<P,C> as bevy_render::render_phase::draw::Draw<P>>::draw
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.14.2/src/render_phase/draw.rs:298:9
  10: bevy_render::render_phase::SortedRenderPhase<I>::render_range
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.14.2/src/render_phase/mod.rs:801:17
  11: bevy_render::render_phase::SortedRenderPhase<I>::render
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.14.2/src/render_phase/mod.rs:773:9
  12: <bevy_ui::render::render_pass::UiPassNode as bevy_render::render_graph::node::Node>::run
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ui-0.14.2/src/render/render_pass.rs:83:27
  13: bevy_render::renderer::graph_runner::RenderGraphRunner::run_graph
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.14.2/src/renderer/graph_runner.rs:226:21
  14: bevy_render::renderer::graph_runner::RenderGraphRunner::run_graph
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.14.2/src/renderer/graph_runner.rs:233:21
  15: bevy_render::renderer::graph_runner::RenderGraphRunner::run_graph
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.14.2/src/renderer/graph_runner.rs:233:21
  16: bevy_render::renderer::graph_runner::RenderGraphRunner::run
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.14.2/src/renderer/graph_runner.rs:81:9
  17: bevy_render::renderer::render_system
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.14.2/src/renderer/mod.rs:40:15
  18: core::ops::function::FnMut::call_mut
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ops/function.rs:166:5
  19: core::ops::function::impls::<impl core::ops::function::FnMut<A> for &mut F>::call_mut
             at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ops/function.rs:294:13
  20: <Func as bevy_ecs::system::exclusive_function_system::ExclusiveSystemParamFunction<fn(F0) .> Out>>::run::call_inner
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.14.2/src/system/exclusive_function_system.rs:218:21
  21: <Func as bevy_ecs::system::exclusive_function_system::ExclusiveSystemParamFunction<fn(F0) .> Out>>::run
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.14.2/src/system/exclusive_function_system.rs:221:17
  22: <bevy_ecs::system::exclusive_function_system::ExclusiveFunctionSystem<Marker,F> as bevy_ecs::system::system::System>::run::{{closure}}
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.14.2/src/system/exclusive_function_system.rs:111:23
  23: bevy_ecs::world::World::last_change_tick_scope
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.14.2/src/world/mod.rs:2215:9
  24: <bevy_ecs::system::exclusive_function_system::ExclusiveFunctionSystem<Marker,F> as bevy_ecs::system::system::System>::run
             at /home/smokracek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.14.2/src/system/exclusive_function_system.rs:103:9
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Encountered a panic in system `bevy_render::renderer::render_system`!

Additional information
Unfortunately I'm not too experienced with graphics programming, so I hope I'm not missing anything simple here. Many of the 2D examples have run perfectly on WSL, but so far all the 3D ones fail like this.
All the examples, including the 3D ones, run fine in the browser.

You need to install/update nvidia drivers, its running in Gl compatibility mode but that has insufficient features for our renderer (missing GL_EXT_texture_shadow_lod).


text:
Use surface.get_preferred_format() to prevent crashes on wayland with nvidia cards.

What problem does this solve or what need does it fill?
Currently bevy usee hardcoded sRGB surface format which is not (yet) supported by nvidia on linux.
What solution would you like?
Straight forward solution is to request GPUs' prefered surface format which will use best available on each platform.
What alternative(s) have you considered?
Perhaps we could wait months or even years until nvidia decides on adding sRGB support on Wayland.
Additional context
None.

Straight forward solution is to request GPUs' prefered surface format which will use best available on each platform.

Doing so correctly will require adding code to convert from sRGB to whichever colorspace said surface format uses, which isn't straight forward in the general case.

We no longer crash, but randomly choose the first available format the compositor reports. Explained in f5322cd757. On proprietary nvidia drivers on wayland, this results in ARGB8888, which means all the colors are too dark, see #7318


text:
Fix panic in examples using argh on the web

Objective
Fixes #11503
Solution
Use an empty set of args on the web.
Discussion
Maybe in the future we could wrap this so that we can use query args on the web or something, but this was the minimum changeset I could think of to keep the functionality and make them not panic on the web.

Imo Args::default() would be cleaner, and it should have a comment on each of them saying from_env panics on web.

Imo Args::default() would be cleaner

I am not sure how that would work.

didn't saw a better way to do this in argh doc, and I think it's better than to specify defaults twice, once for argh and once for the Default trait

authors: Elabajaba mockersf rparrett


text:
Add freebsd support for sysinfo

I'm not sure if bevy works on FreeBSD or not. But in case it does, better allow sysinfo to be used as well if users want.

I don't think I've ever seen anyone try to use Bevy with freebsd, but I think this change is correct regardless in case we do add support or they just want to use the ECS or something.

authors: GuillaumeGomez alice-i-cecile


text:
Add marker components for cameras

Adds marker components for cameras, as suggested in #1854.
Fixes #1854.
Changes alien cake addict example to use the GameplayCamera marker in order to show use.

IMO we should remove the name field from Camera as part of this PR as well.

Ok, I started on this.
But I think I will have to study the code (and/or get some reviewer comments) on what to do with bevy_render/src/camera/active_cameras.rs if the name field goes away.
That system is based around &str access to cameras.
ActiveCameras again is referenced in a few places: render_graph, bevy_sprite, bevy_ui, and the multiple windows example.
It sounds very manageable with a little time, but please give me some input on what the best way forward is:

Split removing the name field into another issue
Rework active_cameras.rs to not be "stringly typed", and adapt all usages to follow
Remove active_camera.rs altogether? Maybe it isn't needed when markers are available

Taking a closer look @Grindv1k, I think that removing the name field deserves to be part of a follow-up issue and PR. active_camera gets plumbed around in a number of places, and won't be a trivial fix.
This solves the end-user case; we can do code-quality clean-up on the internals separately, particularly since the rendering is due for a rework.

Camera names are also "end user" apis. I do think marker components and names solve very similar problems and having both feels a bit odd. I think marker components are the right move, but I'd want a concrete plan before committing to them. Prior to adding marker components, I think we should have either:

a complete replacement of camera names in this pr
a merged RFC illustrating a clear plan for the "marker only" future

While we wait, users can already grab the entity for a given camera name using ActiveCameras, then plug that into camera queries.

Closing in favor of #3635 <3 Thanks for all the exploration you did here!

authors: Grindv1k alice-i-cecile cart


text:
Remove unused deps

Objective
Reduce compilation time
Solution
Remove unused dependencies. While this PR doesn't remove any crates from Cargo.lock, it may unlock more build parallelism.

Is there any Github action we can add to make sure we don't have unused dependencies?

cargo udeps is a useful command for this.

The duplicate dependency skip list needs to be updated it seems. proc-macro-crate is now duplicated.

yup #2456

Rebased to re-trigger CI.

bors r+

bors r+

authors: NathanSWard bjorn3 mockersf


text:
[WIP] Motion Vectors for morph targets & skinned meshes

Objective

Add TAA support when using morph targets and skinned meshes

Solution

General solution: Keep track of the SkinnedMeshUniform and MorphUniform buffers from last frame
To do that: Add a DoubleBufferVec struct. A double buffers that keeps around the old values in the buffer.
Replace the BufferVec in  SkinnedMeshUniform and MorphUniform by that.
Upload the old buffer in addition to the new one for the prepass shader
Probably a lot of issues I didn't think of yet.

Alternatives

#7502 would allow use to keep around the old vertex positions, likely could be useful and much more performant.

Changelog

Add a DoubleBufferVec struct. A double buffers that keeps around the old values in the buffer.
Add handling of morph target & skinned mesh animation in the TAA shader.

Migration Guide

The PrepassPipeline's view_layout_no_motion_vectors and  view_layout_motion_vectors fields are now consolidated in a layouts: PrepassLayouts field
PrepassBindGroup is now PrepassBindGroups, since it has several bind groups.
Most likely more to come

I'll close this in favor of a new PR. Too bothered to try to rebase. And it contains a lot of unrelated changes.


text:
go-storage documentation page not found

go-storage documentation on beyondstorage.io yields page not found
beyondstorage.io

Temporary fix: Removing index can find it: https://beyondstorage.io/docs/go-storage

Website also fixed now (do not link to pages end with /index) https://github.com/beyondstorage/site/pull/280

authors: ceyhunkerti xxchan

repo: beyondstorage/go-storage


text:
parse perPage prop

Fixes #31

I, do you have the chance to verify this so I can base another pull request from here?

repo: beyonk-adventures/svelte-carousel


text:
How does this prevent Copilot from reading files?

Does this actually prevent copilot from reading the file? How about disabling copilot/other plugins given we are opening some sensitive file?

Hello @ariel-frischer, thanks for your question.
You're right to ask it because the plugin currently uses the BufReadPre auto-command event to simply set the buffer as readonly and non modifiable (see https://neovim.io/doc/user/autocmd.html#autocmd-events).
As the buffer is readonly and not modifiable all Copilot actions (and other similar plugin actions) trigger through auto-complete and edition cannot be triggered.
But you're right about the reading process, it does not prevent the file to be read and the buffer to be filled. So if Copilot read stuffs in the loaded buffer it could send it remotely which is not what we want.
Sorry about that this is clearly an error in the design of the plugin and I should have been more precise in the readme to indicate it.
However I searched a solution today to be more strict and simply prevent the files to be read and I think could be easily doable.
Using the BufReadCmd event instead of the BufReadPre event could do the job, I tested it and it seems to open a blank buffer instead of the file content (i.e. the file is simply not read and so no plugin could read data associated to it).
I'll do more research to be sure it does what I think and write a PR to give more details about how the plugin works.
Thanks

authors: ariel-frischer bgaillard


text:
epsilon-greedy choose function may be wrong

class EpsilonGreedyPolicy(Policy):
    [................................]

    def choose(self, agent):
        if np.random.random() < self.epsilon:
            return np.random.choice(len(agent.value_estimates))
        else:
            action = np.argmax(agent.value_estimates)                    <---------
            check = np.where(agent.value_estimates == action)[0]   <------
            if len(check) == 0:
                return action
            else:
                return np.random.choice(check)

I don't really get how the lines with "<-----------" work. Action is an index of value_estimates, okay, but in the second line I think you are comparing an index with value_estimates values!! This is the reason why len(check) can be 0. I believe the correct code would be:

def choose(self, agent):
        if np.random.random() < self.epsilon:
            return np.random.choice(len(agent.value_estimates))
        else:
            action = np.argmax(agent.value_estimates)                    <---------
            check = np.where(agent.value_estimates == agent.value_estimates[action])[0]   <------
            if len(check) == 1:   <--- At least there is going to be 1
                return action
            else:    <---- Ties are solved randomly
                return np.random.choice(check)

Please, let me know if I'm mistaking. Thank you!

Hi @emiliocuestaf !
It's not my code (although I have written a much more complete bandit library, see https://github.com/SMPyBandits/SMPyBandits/), but I think you are completely right!
The first code does not make sense to me.
You can wait to have a feedback from the author @bgalbraith and then submit a pull request (see this tutorial if needed) to this project, maybe he will accept it (and it could fix this bug)!

Ok, I see there  already was an issue talking about this bug. I'm sorry!
I think you should update the master branch

Indeed, I didn't check but https://github.com/bgalbraith/bandits/issues/7

hi @emiliocuestaf, you are correct. A few people have pointed this issue out and I didn't get around to merging in this fix (https://github.com/bgalbraith/bandits/pull/4). Thanks!

authors: Naereen bgalbraith emiliocuestaf

repo: bgalbraith/bandits


text:
🛑 SHOWCASE is down

In c6775eb, SHOWCASE (https://showcase.bgord.me/healthcheck) was down:

HTTP code: 424
Response time: 2942 ms

Resolved: SHOWCASE is back up in 647a769 after 14 minutes.

repo: bgord/statuses


text:
How to generate drum tones from the Tone function

This may be a stupid question but, is there a way to generate tones of various musical instruments using this function, like guitar and drums or flutes

No.....but with proper current control it's possible I guess?
the tone() function generate square wave where it's just 0 and 1
With current control you can reach between 0 and 1
Resulting in proper waveform

repo: bhagman/Tone


text:
Error when shortening path with package name when in a .git directory

When shortening the path in prompt_dir with truncate_with_package_name and within a .git directory errors are shown:
prompt_dir:27: substring expression: -3 < 0
prompt_dir:27: substring expression: -3 < 0

git rev-parse --git-dir returns just . when in the top level of a.git directory so package_path=${repo_path:0:-4} fails.

Should have closed this when I merged #275 two weeks ago.

authors: andjscott bhilburn


text:
Ability to adjust position of card

I am trying to adjust the bottom positon of the card to give it some padding so it won't overlay itself on top of my custom navbar card but I can't get the card-mod CSS to work. It would be nice if positioning or bottom-padding was just a native feature instead.
My code:
type: custom:fab-card
icon: mdi:play-box-multiple
action:
  action: navigate
  navigation_path: '#events'
card_mod:
  style: |
    ha-card div.fab {
      bottom: 5em !important;
    }

I would love to be able to adjust it too, so I can have more than one of these buttons on a page.

+1 here for this feature!
I have the humble desire of placing a single button, yet at the center-bottom  :)

authors: Mastiffen dnestico shaiger

repo: bhuebschen/fab-card


text:
TEN-101 Replace app name with AIAIAI, add logos and favicon

Pull Request Checklist

[ ] Target branch: Pull requests should target the dev branch.
[ ] Description: Briefly describe the changes in this pull request.
[ ] Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
[ ] Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
[ ] Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
[ ] Testing: Have you written and run sufficient tests for the changes?
[ ] Code Review: Have you self-reviewed your code and addressed any coding standard issues?

Description
Replaces Open WebUI names with AIAIAI, add custom logos

LGTM

authors: frandominguezl rubentrf


text:
Add new entity: "coil" ?

Hi BIDS,
It would be great if BIDS could add an optional -coil to the entity table. Example - subject scanned in the Parallel transmit coil and Single transmit coil or other coils for the same session. The coil is the same for most of the studies. However, some studies use different coils. The coil info is in the JSON. However, it's better to have the '-coil' option in the main name to distinguish the image.
Best
Siya

As I understand it, the main concern here is convenience for accessing these values (always more tricky to extract from and inspect in JSON). For that purpose, the best (and fastest) solution is to agglutinate this with the acq- entity. Note that this does not require (nor will it generally imply) transforming the acq- value into a list, since it is highly unlikely you would be running the same acquisition on different coils. Generally the purpose of switching coils (other than having to work with multiple coils of the same type due to lack of reliability) is precisely to enable different variations of acquisition.
Additionally, the coil — as seen in the examples you provided — is described by a set of parameters. Unlike, for instance, contrast agents, there is far less standardization, so while cagent-endorem might provide more immediately meaningful information about the dataset, coil-TRfirstonewebuilt might be comparatively meaningless. So if the coil parameters vary and this is established as a meaningful source of variation, the coil information would need to be documented more extensively in the JSON in any case. Here again, coil- turns out to be a very symbolic (“custom” as per our current nomenclature) entity, similar to acq-. I think there is something to be said for trying to minimize symbolic entities or encourage agglutination wherever possible — which might not always be the case, but I would say it is here.

For this study, i am using  -acq for the test and retest in the same session. In addition, i am performing the same in a different coil.  PTx coils are different from STx coils. We might use a parallel transmit pulse (example, Universal pulse) for the PTx coil in future. I think that coils (-coil) are not symbolic. Typical studies use the same coil. But, it's not true. Its important to have a coil (-coil) option in BIDS since the number of sites using pTx coils are increasing (especially at high field)

Just a note that there is already a coil- proposal #425 that uses it differently.

@effigies Thank you for posting the link to the coil proposal. Proposal 425 discuss the receive channels in the coil. I am adding the transmitter channels in addition to the receiver channels.
For end-user studies, the coil remains constant. In that case, one doesn't need to use -coil. However, it's not the case for sequence testing. It's better to have an option for -coil.

For end-user studies, the coil remains constant. In that case, one doesn't need to use -coil. However, it's not the case for sequence testing. It's better to have an option for -coil.

@SherS2 could you expand on this? I don't know what you mean by "the coil remains constant", nor which proposal you're referring to when you say "better to have an option for -coil", given that both proposals use the term coil.

@tsalo Eg: for fMRI studies, users won't change the coil once the sequence is optimized for the study. The study population is scanned with the same coil. In this case, there is no need to mention the coil in the 'entity'.
Example for using -coil
When same subjects are scanned with different coils

for MR physics, we are testing single transit coil (sTx) and parallel transmit (pTx). We would like clearly label the coil.
Also, there are coils with a various number of receiver channels (20, 32 and 64 channels). If a study is using different coils with different receivers, then it's better to label it in the entity.

For this study, i am using -acq for the test and retest in the same session.

If the only difference is re-testing, this sounds like a job for run-. From the documentation “The acq-<label> entity [...] use[d] to distinguish a different set of parameters used for acquiring the same modality.”
In any case, I would recommend leveraging acq- to capture the coil parameter for the time being.

@TheChymera ye, the run could handle test-retest.
Using the acq- for coil type is a temporary solution. But, it is not ideal. By definition: The acq- key/value pair corresponds to a custom label the user MAY use to distinguish a different set of parameters used for acquiring the same modality. Coil is not a parameter is an "MRI hardware component."
It's better to have a -coil entity for addressing the hardware component. For the time being, I created a -coil entity to handle the coil. 1Tx and 8Tx for single and parallel transmit coils, respectively. I will use it until BIDS finds a permanent solution.
Ideally, this could be expanded if someone is using different receiver coils 1Tx32Rx, 8Tx64Rx, etc.

authors: SherS2 TheChymera effigies tsalo

repo: bids-standard/bids-specification


text:
feat(core): use focus-visible instead of focus

What/Why?
Use focus-visible instead of focus, so that we retain our focus styles for accessibility purposes, but do not style elements when focused via actions like click or touch events.
Testing
Ensured no focus styling is visible when using click or touch events, but remains when navigating via keyboard.

🍹 Not sure if you meant to add apps/core/components/header/index.tsx

Impressive catch, had modified but not saved the file, thanks.

Can you expand on why we don’t want focus to show on click?

authors: christensenep jorgemoya

repo: bigcommerce/catalyst


text:
BCF-6592: add logical path to the output testpath on horizon [cherry-pick]

Reviewer: trivial
cherry-pick change.

Refer to this link for build results (access rights to CI server needed):
https://jenkins.bigswitch.com/job/openstack_horizon_bsn_pull_req/131/

authors: bsn-abat wolverineav

repo: bigswitch/horizon-bsn


text:
Resolve Codacy errors

After some configuration, the Codacy issues appear to be at least somewhat useable. However, there are 2k+ such issues and adressing them will be a major effort. We should distribute files/paths by person and go through them one-by-one. Certain classes can be adressed automatically, certain classes have to be adressed in a proper way and certain classes should be ignored (one-by-one or the whole pattern).
auto cleanup

trailing whitespace

manual no-brainer cleanup

unused import

one-by-one treatment

unused variable

exceptions may be ignored
parameters may get a underscore prefix, or _ = x assignment to unused

string statement has no effect
redefined built-in X

rename to X_ or give it another name

Trailing whitespace can be removed with Perl, unused import with autoflakes. See #7.

repo: bihealth/snappy-pipeline


text:
Incorrect write access notes in landing_zone_move zone status info

If calling landing_zone_move with validate_only, zone status info messages for validation make references to "write access disabled". When validating only, we explicitly do not restrict write access.
Minor issue, I'll fix it together with #1840 and #1843.

Fixed.

repo: bihealth/sodar-server


text:
Feature request: add a little sign to tell whether the file is modified

My current working window is putting the tab goup below the explore and invisible the original tab pannel from VScode to make it looked exactly like Edge. But without the little modifying sign on original tab pannel, it always makes me forget to save file. So it would be better to have a sign to tell whether this file is modified just like the original tab pannel.
Thank you for your work!

+1. A must have feature

repo: billgoo/vscode-tab-group


text:
Makefile available?

Do you have a Makefile that will build Protogen using gcc?

No, but it should be easy to create. You will need to enable c++17 support.
On Wed, Jul 29, 2020 at 7:22 AM knoll01 notifications@github.com wrote:

Do you have a Makefile that will build Protogen using gcc?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/billvaglienti/ProtoGen/issues/95, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACSZMHUV6XECS4F62HPAIS3R6AWDZANCNFSM4PLU26LQ
.

I've created one. I will submit once I am sure it works.

repo: billvaglienti/ProtoGen


text:
feature: BIM-33341 Square kind, marker position

… added

Нужно починить пайплайн. Валится во время билда.

authors: Iamthereality SanchouZ

repo: bimeister/pupakit