Temporarily lost acces to package while transfering to organisation.

Describe the bug

I am (was) an owner of IPython project on Pypi.
I am not an owner of pypi Jupyter team
I am a manager of the Pypi Jupyter/IPython team.
I want to transfer IPython to the Jupyter org under the IPython team (to keep access).
I transfer to Jupyter organisation, expecting to be prompted for a team.

IPython get assign to Jupyter Organisation No Teams. Thus,
I lose access to manage the IPython package and cannot assign it a team.

I need to reach to a pypi Jupyter owner to assign the IPython project it to the IPython team and regain access.  (hopefully I'm a zoom call with one just in case :-P )

Things that are unclear.

I got remove from the list of collaborator (https://pypi.org/manage/project/ipython/collaboration/) but others IPython Project Owners (Fernando Perez, Brian granger... etc) were not and kept access, that feels weird. Why was I removed ? Because I was the transferer ? I would expect either everyone, or no-one to be removed.

Expected behavior
Either:

Only allow transfer of project if transferer is owner on both source and destination.
Allow to assign a team directly when transfering to keep access.
Big warning "You will lose access to this project" with confirm dialog.

To Reproduce
See Bug above.
My Platform
NA
Additional context
Thanks a lot for organisations, I'm sure the UI/UX will be refined in the future. I do not exclude a Problem Exists Between Keyboard and Chair, but there was 4 people on a zoom call and we were all confused. This is also trying to gather feedback while still not used to the feature as I know new user feedback can be hard to get.
Thanks.

Thanks for the issue. This is https://github.com/pypi/warehouse/issues/12423, I think we need to revisit that given the confusion here.

Ah sorry missed it, I looked only in open issues. Feel free to close.
Much love again.

This sounds like a bug. I don't believe you should have been able to perform the transfer without being an Owner of the Jupyter org.

without being an Owner of the Jupyter org.

Manager access is enough currently. I've faced this in the past with project mass transfers — an org manager can transfer a project where they are an owner and then, they're removed from that project.
I'd expect the owner to be preserved in addition to moving under the org. This is not only problematic because of the access loss but also, the person is no longer displayed as a maintainer/collaborator on the public project page, which many people would likely want.


Depending on what I press, comments either open up in the in-app browser or the actual browser app on my phone

Steps to reproduce
Open manga chapter with comments, tap comment button, opens comments in system specified browser app
Open manga page, long press on chapter to bring up menu, opening comments from there opens in an in-app browser
Expected behavior
Neko should either open all links in the in-app browser or (preferably) in the system default browser.
Actual behavior
Depending on where I tap, neko opens comments within itself (in-app browser) or externally in system default browser.
Crash logs
No response
Neko version
2.14.2
Android version
14
Device
Google Pixel 6 Pro
Other details
There should be a user setting to open in external app or in the internal browser, or at least some consistency on what neko does itself.
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
[X] I have written a short but informative title.
[X] I have tried the troubleshooting guide.
[X] I have updated the app to the newest version Latest.
[X] I have filled out all of the requested information in this form.

fwiw it still does this in 2.16
Also updated OP with a little more info.


Devices stop receiving commands

I've experienced a bug a couple of times whilst running the MQTT app for a while with monitoring enabled.  It seems that devices can stop receiving commands correctly, yet the transmit light is still illuminating, and it is still receiving monitor messages from the devices.
I've not experienced this issue before with the node-red implementation.

Could be linked to https://github.com/Achronite/energenie-ener314rt/issues/23 ?

Hoping the driver rewrite has fixed this, closing for now.  See related issue above for updates.

I seem to be having this issue currently despite the changes mentioned. It seems after less than 1 day running it stops working, as noted can see commands in the log, the light flashes on the ener314rt... but nothing happens with the switches.
Current workaround seems to be just to restart the service which seems to get it all working again.

@dansgalaxy Have you tried with the new release I made yesterday of energenie-ener314rt?
Do you know if you are using software or hardware driver mode (it should be shown early in logs)?

@Achronite Pulled in latest changes and enabled hardware driver now.
Will update if any further issues, thanks!


Need ability to Update Recommendations

As a [Marketing Manager]
I need [I need the ability to update recommendations made to a given user]
So that [I can ensure that the correct recommendations are being offered]
Details and Assumptions

[document what you know]

Acceptance Criteria
Given [some context]
When [action taken]
Then [outcome observed]

Scrum Master’s Note from Backlog Refinement Meet:
Finalized label, estimate, and sprint assignment as discussed during meeting

Test Flask CLI Commands

It should call the db-create command

Test Cases for Recommendation Model

It should Create a Recommendation and add it to the database
It should Create a Recommendation and assert that it exists
It should Delete a Recommendation
It should deserialize a Recommendation
It should not deserialize a bad bought_in_last30d attribute
It should not deserialize bad data
It should not deserialize a bad recommendation_type attribute
It should not deserialize a bad viewed_in_last7d attribute
It should not deserialize a Recommendation with missing data
It should Find Recommendations after last_relevance_date
It should Find Recommendations by bought_in_last30d
It should Find Recommendations by last_relevance_date
It should Find Recommendations by Product ID
It should Find Recommendations by recommendation_type
It should Find Recommendations by User ID
It should Find a Recommendation by User Segment
It should Find Recommendations by viewed_in_last7d
It should Find a Recommendation by ID
It should Find a Recommendation by ID or return 404_NOT_FOUND if not found
It should return 404_NOT_FOUND for ID not found
It should List all Recommendations in the database
It should Read a Recommendation
It should serialize a Recommendation
It should Update a Recommendation
It should Not Update a Recommendation with no ID

Recommendation Server Tests

It should Create a new Recommendation
It should not Create a recommendation with no content type
It should not Create a recommendation with the wrong content type
It should Get a single recommendation
It should Get a list of Recommendations
It should not Get a recommendation thats not found
It should be healthy
It should call the Home Page
It should Query Recommendations by User Segment
It should Update an existing recommendation
It should Update a Recommendation and Return Not Found

Name                               Stmts   Miss  Cover   Missing
service/init.py                   18      3    83%   31-34
service/common/cli_commands.py         7      0   100%
service/common/error_handlers.py      38     13    66%   32, 38-40, 62-64, 77-79, 107-109
service/common/log_handlers.py        11      1    91%   35
service/common/status.py              45      0   100%
service/config.py                      5      0   100%
service/models.py                    119      0   100%
service/routes.py                     62      0   100%
TOTAL                                305     17    94%
Ran 37 tests in 7.032s
OK

Branch reviewed and merged


Fixing bug in describe where only certain columns are computed over

What do these changes do?
This bug only presented itself after read_csv.
Related issue number

N/A

[x] passes git diff upstream/master -u -- "*.py" | flake8 --diff

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Modin/30/
Test FAILed.


Add support for Oracle Batches.

Add support for Oracle Batches.
Fix Issue #73
Fix Issue #86

Does this work then?

求一个


Packaging pi code

Main Changes
Packaging Python code running on Pi. Below is the changes list:

Moved folder raspberry/estimators to raspberry/bzzz/estimators.
Moved folder raspberry/read_sbus to raspberry/bzzz/read_sbus.
Moved folder raspberry/simulations to raspberry/bzzz/simulations.
Some minor code changes.

Associated Issues
None
Tests
Just repacking existing code.

I'm not sure when/whether the altitude KF was reviewed, but here are a few comments from my side:

[ ] the constructor returns an object of type bzzz.estimators.KalmanFilter, not None
[ ] the constructor requires documentation
[ ] I would rename run to update
[ ] In run rename Tt to something more understandable (thrust_ref?)
[ ] change 10**-3 to 1e-3 (same for 10**-5)
[ ] self.__cache_MU_values: why is this a lambda?
[ ] MU_cache - rename to measurement_update_cache
[ ] how does this implementation of the KF handle missing values?


Add OpenTofu min supported version to readme

Description
I have manually validated the examples work with OpenTofu version 1.7.0 (latest)
Motivation and Context
Fixes https://github.com/fluxcd/terraform-provider-flux/issues/683
How has this been tested?

[ ] Have you added an acceptance test for the functionality being added?
[ ] Have you run the acceptance tests on this branch?

Output from acceptance testing:
$ make testacc

...

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Documentation

[ ] I have updated the documentation (if required) with make docs

Checklist:

[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I've read the CONTRIBUTION guide
[x] I have signed-off my commits with git commit -s

Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritise this request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

Please rename the commit to the PR title and remove all changes except for the readme ones.

Can I propose we leave the CI job name changes as they are pretty useful.

Can I propose we leave the CI job name changes as they are pretty useful.

But they are not related to OpenTofu, let's keep this PR scoped to what it suppose to do.


feat(Data/Finset/Sort): sort (range n) = range n

I'm not sure what lemmas you're talking about. sort (· ≤ ·) l.reverse = sort (· ≤ ·) l and (sort (· ≤ ·) l).reverse = sort (· ≥ ·) l are both false in general, as e.g. if x and y are order equivalent, then sort (· ≤ ·) [x, y] = sort (· ≥ ·) [x, y] = [x, y] (recall merge-sort is a stable algorithm).
In any case, that seems quite out of scope for this PR.

Thanks! :tada:
bors merge


Lecture mode: Close session for new participants

Need [low, medium, high]: Low
Requester: Teacher
(Please refer to Lecture mode issue #2007 for top-level discussion)
In case session roster (ACL of known students by their GitHub accounts) cannot be implemented, it would be useful to automatically deny new join attempts. Note that this refers to new attempts and not rejoins from already accepted student that has diconnected and wants to rejoin.

@Jasata Interesting! So you'd want some ability to "close" the session for new join requests? Like a command palette option or something?

@Jasata Interesting! So you'd want some ability to "close" the session for new join requests? Like a command palette option or something?

I didn't think that far, but yes - I do believe that would be the most natural location to toggle this.
Something more about the roots and reasons for this kind of a feature request:
I wrote the "requestor" as "teacher", but honestly this one came from administration (as did #2009). Other tools currently used here have rigid access control - in fact, every single one of them implement the nation wide student single sign-on. Only those systems which also implement service specific alternate credential management can be used to render online courses to students outside this nation wide system. While the materials are generally not considered to be the issue, resources often are and man hours especially. What does this mean here is that the university does not want us to use time to review and grade work from students that do not generate revenue to the university. This is one of the reasons for a desire for access control.
Another reason is specific to Live Share and its hard limit of 30 participants (as I have understood). Online courses are often education export (universities selling course sets for other universities - X price for Y number of students). When such transaction is made, the client university obviously wants us to make sure that the designated students for whom the price has been paid, are able to receive their content. The smaller the number of students versus the number of students wishing to take part, the more important this usually is.
Thus far this could still be managed with a list of registered students and manually accepting identified join attempts. But if we run full 30 participant sessions, even I have to wonder how much time it might take before the lecture could start. Or what about late joins disrupting? Or re-joins after dropping out? (most systems dedicated for online lectures do handle this part rather automatically).
Lastly, about the relation to #2009... As the original post/issue states, this feature would compensate in case an ACL cannot be implemented. Or in other words, this option would become unnecessary for our use cases, if #2009 can be implemented. (If this would still be useful for others in somewhat different use cases, I cannot guess).
I hope this sheds some light in what has been thought and discussed, giving birth to this feature request.

I think we're planning to implement #2009, and so I'm going to close this issue as unnecessary per your description above. That said, please re-open it if you think it's still necessary. Thanks!


Histogram Equalization

I have been using cv2 to histogram equalize my images. I recently found that PIL has a function called ImageOps.equalize(image, mask=None) which does the same thing. This transform has been really useful to me. Since this transform is implemented in PIL, which is a supported backend, I was wondering if it would be a good addition to torchvision.transforms.

@fmassa , I can would like to take this up if we want to add this.

As far as I understand the new Efficient Net from Google uses Histogram Equalization during inference. So it would be nice to have such augmentation in torchvision.transforms

Looks like this histogram matching feature has already been requested before in #598 and was implemented in #796 but hasn't been merged.
I've implemented a much simplier version identical to the one in PIL.ImageOps.equalize.
def torch_equalize(image):
    """Implements Equalize function from PIL using PyTorch ops based on:
    https://github.com/tensorflow/tpu/blob/master/models/official/efficientnet/autoaugment.py#L352"""
    def scale_channel(im, c):
        """Scale the data in the channel to implement equalize."""
        im = im[:, :, c]
        # Compute the histogram of the image channel.
        histo = torch.histc(im, bins=256, min=0, max=255)#.type(torch.int32)
        # For the purposes of computing the step, filter out the nonzeros.
        nonzero_histo = torch.reshape(histo[histo != 0], [-1])
        step = (torch.sum(nonzero_histo) - nonzero_histo[-1]) // 255
        def build_lut(histo, step):
            # Compute the cumulative sum, shifting by step // 2
            # and then normalization by step.
            lut = (torch.cumsum(histo, 0) + (step // 2)) // step
            # Shift lut, prepending with 0.
            lut = torch.cat([torch.zeros(1), lut[:-1]])
            # Clip the counts to be in range.  This is done
            # in the C code for image.point.
            return torch.clamp(lut, 0, 255)

        # If step is zero, return the original image.  Otherwise, build
        # lut from the full histogram and step and then index from it.
        if step == 0:
            result = im
        else:
            # can't index using 2d index. Have to flatten and then reshape
            result = torch.gather(build_lut(histo, step), 0, im.flatten().long())
            result = result.reshape_as(im)

        return result.type(torch.uint8)

    # Assumes RGB for now.  Scales each channel independently
    # and then stacks the result.
    s1 = scale_channel(image, 0)
    s2 = scale_channel(image, 1)
    s3 = scale_channel(image, 2)
    image = torch.stack([s1, s2, s3], 2)
    return image

Closing as this has been implemented at #3119 and #3123.


Unittests for models

A few tests for models. I also have added new dependencies for testing.
PS Sorry for late.

@Alkalit No apologies necessary. I really appreciate the effort to make unit tests for the models in this library models.


Added support for bitwise AND, OR, XOR and NOT ops.

Defined ops in TTIR and TTNN dialects.
Implemented StableHLO to TTIR converison (unified with logical ops)
Implemented TTIR to TTNN conversion
Added tests

Fixes https://github.com/tenstorrent/tt-mlir/issues/1202.
Half of solution (tt-xla and tt-torch tests are second half) for issues:
https://github.com/tenstorrent/tt-mlir/issues/1051
https://github.com/tenstorrent/tt-mlir/issues/1053
https://github.com/tenstorrent/tt-mlir/issues/1054
https://github.com/tenstorrent/tt-mlir/issues/1055
Left asserts in runtime code due to https://github.com/tenstorrent/tt-metal/issues/13582.

Raised issue https://github.com/tenstorrent/tt-mlir/issues/1571 which causes bitwise_not to fail.


Update lang version to 2201.2.0-rc1.5

Purpose
$Subject
Examples
Checklist

[ ] Linked to an issue
[ ] Updated the changelog
[ ] Added tests
[ ] Updated the spec

Closing this PR due to the lang update automated PR : https://github.com/ballerina-platform/module-ballerina-xmldata/pull/449


TimeoutError: waiting for selector .wf-active

https://github.com/puppeteer/puppeteer/issues/8166#issuecomment-1193107454_

Please provide complete data for your bug report including the reproduction script/site.

I can't right now but it seems to be working on the old MBP but not my M2, ill provide more when I can


Draft: Performance improvement around recursive definition of if statements

@alaindargelas I have another performance improvement suggestion around the generate ifs. In the current version of the grammar it relies on a recursive definition of if else. After profiling Surelog and ANTLR I've found that these recursive definitions kill performance. Each level of rule indirection that is calling one rule from another is a very expensive operation in ANTLR. The generate ifs in the Google test case have over 100,000 if else if branches which makes this file pretty slow.
In this PR I propose replacing the overly general grammar with a more tailored grammar that reduces the long rule chains that hurt performance. This will require a change in Surelog's ParseTree to AST code which I will take a look at, but if you can beat me to it @alaindargelas that would be ideal.
The grammar now relies on ()* which doesn't require adding a new context to the stack in ANTLR.
Test Case
module conditional_generate
    #(parameter OPERATION_TYPE = 0)
    (
        input  logic [31:0] a,
        input  logic [31:0] b,
        output logic [63:0] z
    );

    // The generate-endgenerate keywords are optional.
    // It is the act of doing a conditional operation
    // on a parameter that makes this a generate block.
    generate
        if (OPERATION_TYPE == 0) begin
            assign z = a + b;
        end
        else if (OPERATION_TYPE == 1) begin
            assign z = a - b;
        end
        else if (OPERATION_TYPE == 2) begin
            assign z = (a << 1) + b; // 2a+b
        end
        ... // Add a hundred thousand of these else if cases to match the google case
        else begin
            assign z = b - a;
        end
    endgenerate
endmodule: conditional_generate

Bad Profile

Old Version

New Version

Let me work on adapting Surelog to this grammar, it is pretty involved.

Locally on your machine, after changing the grammar, run:
rm -rf build/bin/pkg
make regression CPU_CORES=8
to have fast turnaround.

Could a similar method can be use to solve : https://github.com/chipsalliance/Surelog/issues/2035 ?

@Thomasb81 It could help. It would be helpful to post what constructs you suspect are contributing to the expensive evaluation in black parrot.

The file is attached in the issue, it is the regular if-else-if (Not the if-generate-else-if)
 if (~reset_i & trace_en_i) begin
          trace_fd = $fopen(tracefile_lp, "a");

          // If miss handler has finished the dma request and result is ready
          // for a missed request
          if (inc_miss_ld)
            print_operation_trace(trace_fd, my_name, "miss_ld");
          else if (inc_miss_st)
            print_operation_trace(trace_fd, my_name, "miss_st");

          // If miss handler is still busy on a request
          else if (miss_v) begin
            print_operation_trace(trace_fd, my_name, "miss");
          end

          // If response is ready for a hit request
          else begin

            if (inc_ld) begin
              if (inc_ld_ld)
                print_operation_trace(trace_fd, my_name, "ld_ld");
              else if (inc_ld_ldu)
                print_operation_trace(trace_fd, my_name, "ld_ldu");
              else if (inc_ld_lw)

@alaindargelas I would stop working on adapting the grammars if you started. After I fixed the syntax issues I saw worse performance than master. I'll have to give this a bit more thought

@QuantamHD, I'm not working on this. If you find a faster legal grammar, then I'll adapt Surelog to use that grammar.

As @alaindargelas mentioned #2035 contain a testcase, that syntactically describe a cascade of "if else if" that is some how drawing the performance. At first glance it look very similar to the grammar part you address except it is not in a generate.
Antlr literature discuss performance issue related to ambiguity but in this case tool is not reporting ambiguity. So any finding is very interesting.
@alaindargelas  Have you any method to only regress the grammar using existing testsuite but without having to update Surolg to grammar change but still having pre-processor wokring ? because realistic testcase often need preprocessor.
Quickly grammar trial and change break Surolog.  Additionnally working on realistic usecase with SV3_1a grammar and the java antlr runtime is quickly difficult
I should admit that not having this capability at the time I try to contribute on #2035 has probably contribute to my give up.

@Thomasb81, unfortunately, the fastest way is:

Edit the grammar
cd Surelog
rm -rf build/bin/pkg
make regression CPU_CORES=8

That runs in about 5 mins clock wall time on an 8 cores machine, including build time and whole regression.

@QuantamHD, shall we close this?


[Question]: Webinar, Meetup, Discussion Forums or Core Review

I've been using the Operations framework since WWDC 2015. I was using a version of that until I discovered OperationKit. I have steadily kept up with changes through to ProcedureKit.
I have created numerous examples of Procedures that attempt to utilize some of the most advanced functionalities in the framework, i.e. GroupProcedure, ComposedProcedure, InputProcedure, OutputProcedure, etc.
I would like to contribute to the documentation for the framework but would only want to do so after knowing that my code samples are representative of "Best Practices". I've had to struggle through some challenges because of a dearth of samples and documentation.
So, the question is:  is there a plan to do any kind of question and answer session for active users, and possible contributors? It could be a recorded Webinar or an in person Meetup. It could be one-time or perhaps span some sequence of dates.
I think you'd find a number of potential participants and doing so may allow a significant bump in documentation coverage.

Hi @StephenDaedalus, not really sure how to respond to this really. 🤔
Feel free to share your examples and they can be linked to if they are representative. We (contributors here) can also suggest changes or amendments if there are improvements to be made in the name of "best practice". This is certainly an area where it would be great to share more, and given more time, I would like to publish full example apps written using ProcedureKit. But again, as is the nature of open source - anyone can do this, including yourself if you wish.
At the moment, there are no plans for a ProcedureKitConf or similar, although it's certainly something which would be considered if a corporate sponsor or similar were to emerge. In terms of meet-ups and other conferences, there have been quite a few talks given about Operations & ProcedureKit, and clearly this is something we would love to see more of. Ones we know about are stored in the repo under Presentations/. We've even ran an ad-hoc lab at WWDC.
In terms of documentation, my current focus before work on v5 is to complete procedure.kit.run/development. However, there have been contributions to the wiki coming from the community, which are incorporated, and which we heartily welcome.
I guess ultimately, if you want to contribute, please do so. How?

Add pages to, or otherwise augment the wiki, please link to public example projects which have an MIT license.
Please submit new questions to the FAQ.
Create a PR if you wish to add source code documentation, fix bugs, or add missing features.
Please submit a PR with your presentation files if you have spoken about ProcedureKit at a meet up.
Join the Slack channel (DM me on Twitter for an invite) for more active discussions with contributors.


Crash to desktop in MT DCS

FM works fine in single thread, but crashes in MT

It works fine for me. Maybe check dcs.log?


StaticFiles and Session Cookies

First Check

[X] I added a very descriptive title to this issue.
[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the FastAPI documentation, with the integrated search.
[X] I already searched in Google "How to X in FastAPI" and didn't find any information.
[X] I already read and followed all the tutorial in the docs and didn't find an answer.
[X] I already checked if it is not related to FastAPI but to Pydantic.
[X] I already checked if it is not related to FastAPI but to Swagger UI.
[X] I already checked if it is not related to FastAPI but to ReDoc.

Commit to Help

[X] I commit to help with one of those options 👆

Example Code
app = FastAPI()

app.mount("/submission", StaticFiles(directory=settings.static_file_location, html=True), name="static")

origins = [
    "*"
]

app.add_middleware(
    CORSMiddleware,
    allow_origins=origins,
    allow_credentials=True,
    allow_methods=["OPTIONS", "GET", "POST"],
    allow_headers=[],
)

app.add_middleware(SessionMiddleware, secret_key='secret')

Description
So I have a bundled js/html site that is served via app.mount. All that works fine, but I am wanting to also to set a session variable (captcha data) for the user when they load the site from the '/submissions' endpoint. Is this currently possible (ie capture the incoming request and set a session variable) via StaticFiles.
Operating System
Windows
Operating System Details
No response
FastAPI Version
068.0
Python Version
Python 3.8.6rc1
Additional Context
No response

I figured out that I just needed to serve my bundled site via a Jinja template.  That allows me to create a session upon a users visit.


Fix paths in scripts/code*.sh

Running "./scripts/code.sh " with a relative path from any folder other than the vscode source root fails.
I believe pushd/popd is compatible among platforms. Ideally I'd get rid of the cd command but that is a riskier change.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: qix sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

@qix How does it fail? It seems to work fine in Linux and macOS, where this script is intended to run in.

@joaomoreno
~/code/myprocject $  ~/code/vscode/scripts/code.sh .
I would expect it to open up the editor in ~/code/myproject, but instead it opens in ~/code/vscode

I see. Could we have the scripts not use cd or pushd at all, since we have the $ROOT variable?

There are a number of commands there that use the working directory. I'm nervous about making more complicated changes to fix them, since I'm not sure about platform compatibility.
popd was the simplest solution which fixed the problem I found. If I wasn't nervous about breaking other use cases I'd probably use subshells for gulp/etc.


fake startheight for old contracts

Follow up to #1545. This is important for the v1.1.0 transition because many people won't form contracts under v1.1.0 for a while. By faking the startheight of old contracts, we ensure that their metrics (upload/download/storage spending) are properly reported. Otherwise they won't be counted because the metrics logic only looks at contracts formed during the current period.

That brings us to another interesting point - because getting to full 4x redundancy requires 32 contracts, people who don't form new contracts immedately after upgrading will actually be stuck at 3x or more likely ~2x (due to offline/full/etc hosts) redundancy.
Should the UI / CLI be blasting warnings if there are not enough contracts and if the allowance needs to be reformed?

Would be good if we had an antfarm tests to verify that upgrades are going smoothly. I think that's the most likely thing to cause problems in this upcoming release.


Add Specification for KeyValueStore effect

Current coverage is 64.82% (diff: 100%)

No coverage report found for master at b7b6ea2.

Powered by Codecov. Last update b7b6ea2...691fc24


16th c. inventory page formatting

Currently the inventory page is written in markdown. This makes it difficult to change the font size and line spacing of the inventory transcription. I wonder if it might be easier to just encode it in HTML, and apply styles directly.

first attempt at html tables pushed

html table built, published


Fix failing filestore test

Several test failed because storage fixtures directory is not created.
FAIL  packages/electron-filestore/test/filestore.test.ts
ENOENT: no such file or directory, stat '/Users/grop/dev/bugsnag-js/packages/electron-filestore/test/fixtures/storage'
Goal
to get test green.
Design
create correct test context before running the tests by creating fixtures/storage dir.
Changeset
filestore.test.ts with test fix
Testing
test itself is fixed and was returning errors and now succeeds

Hi @pietgk.
Thanks for the PR. It would be interesting to know under what conditions you see the test failures?  How are you running the test? Are you using an IDE?
store.init() should create the directory so it should always exist unless so we wouldn't really expect this change to be necessary.

hey @pietgk - we've managed to reproduce the failing test now. We're going to investigate some more and will keep you updated 👍


[Bug] Microbatch: Using backfill results in inefficient delete statements (Snowflake adapter)

Is this a new bug in dbt-core?

[X] I believe this is a new bug in dbt-core
[X] I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior
When running a model configured with the new microbatch strategy to backfill older dates with some previously loaded data, dbt produces a delete statement to remove records for the periods being backfilled. The delete statement produces a SQL statement for the Snowflake adapter that results in a cartesian product causing the statement to run for much longer than is necessary.
Expected Behavior
Existing records should be deleted efficiently without a cartesian join.
SQL to delete existing records should not be generated with a "using" clause with the temp table. (see steps to reproduce)
Steps To Reproduce

using dbt-snowflake adapter version 1.9.0-b1 and dbt-core version 1.9.0-b4
Create a model using the microbatch incremental strategy (
Run the model to load some data.
dbt run -s <model>
Run the model again as a backfill where the time range overlaps with data that was prevsiously loaded
dbt run -s <model> --event-time-start "<start timestamp>" --event-time-end "<end timestamp>"
After creating a temp table for the first batch, a SQL statement to delete existing records is run to remove existing records from the target before inserting the new records in the temp table. This SQL is written such that a cartesian join is created resulting in a long-running query.

Example model config:
{{   config(     materialized='incremental',     incremental_strategy='microbatch',     event_time='content_recognition_start_timestamp',     begin='2024-01-01',     batch_size='day',     ) }}
Example dbt commands:
dbt run -s content
dbt run -s content --event-time-start "2024-11-20" --event-time-end "2024-11-25"
dbt generated SQL to delete existing records:
delete from CURATED_CLONE.inscape.content DBT_INTERNAL_TARGET     using CURATED_CLONE.inscape.content__dbt_tmp     where (     DBT_INTERNAL_TARGET.content_recognition_start_timestamp >= TIMESTAMP '2023-11-24 00:00:00+00:00'     and DBT_INTERNAL_TARGET.content_recognition_start_timestamp < TIMESTAMP '2023-11-25 00:00:00+00:00'         );
The using with the temp table is unnecessary and causes a cartesian join.
Relevant log output
============================== 11:18:47.298457 | cdd2a509-9a0f-463d-b3e1-54879743f040 ==============================
11:18:47.298457 [info ] [MainThread]: Running with dbt=1.9.0-b4
11:18:47.299457 [debug] [MainThread]: running dbt with arguments {'printer_width': '80', 'indirect_selection': 'eager', 'log_cache_events': 'False', 'write_json': 'True', 'partial_parse': 'True', 'cache_selected_only': 'False', 'warn_error': 'None', 'version_check': 'True', 'debug': 'False', 'log_path': 'C:\\repos\\hmi_dbt_lib\\logs', 'profiles_dir': 'C:\\Users\\BFranklin\\.dbt', 'fail_fast': 'False', 'use_colors': 'True', 'use_experimental_parser': 'False', 'no_print': 'None', 'quiet': 'False', 'empty': 'False', 'warn_error_options': 'WarnErrorOptions(include=[], exclude=[])', 'introspect': 'True', 'log_format': 'default', 'invocation_command': 'dbt run -s content --event-time-start 2023-11-24 --event-time-end 2023-11-25 --target sso', 'target_path': 'None', 'static_parser': 'True', 'send_anonymous_usage_stats': 'True'}
11:18:47.628432 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'project_id', 'label': 'cdd2a509-9a0f-463d-b3e1-54879743f040', 'context': [<snowplow_tracker.self_describing_json.SelfDescribingJson object at 0x00000233BE7DF8F0>]}
11:18:47.673431 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'adapter_info', 'label': 'cdd2a509-9a0f-463d-b3e1-54879743f040', 'context': [<snowplow_tracker.self_describing_json.SelfDescribingJson object at 0x00000233BF4FCA40>]}
11:18:47.673431 [info ] [MainThread]: Registered adapter: snowflake=1.9.0-b1
11:18:47.883198 [debug] [MainThread]: checksum: 0a22b8766ab724bfaebfe4fc1d2ad384caab58113fa005bc2edb50f306de7ed8, vars: {}, profile: , target: sso, version: 1.9.0b4
11:18:47.982669 [info ] [MainThread]: Unable to do partial parsing because of a version mismatch
11:18:47.982669 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'partial_parser', 'label': 'cdd2a509-9a0f-463d-b3e1-54879743f040', 'context': [<snowplow_tracker.self_describing_json.SelfDescribingJson object at 0x00000233BE7AB7A0>]}
11:18:51.581484 [warn ] [MainThread]: [WARNING]: Configuration paths exist in your dbt_project.yml file which do not apply to any resources.
There are 1 unused configuration paths:
- models.hmi_dbt_lib.processed
11:18:51.591511 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'load_project', 'label': 'cdd2a509-9a0f-463d-b3e1-54879743f040', 'context': [<snowplow_tracker.self_describing_json.SelfDescribingJson object at 0x00000233C0FC7020>]}
11:18:51.710445 [debug] [MainThread]: Wrote artifact WritableManifest to C:\repos\hmi_dbt_lib\target\manifest.json
11:18:51.714445 [debug] [MainThread]: Wrote artifact SemanticManifest to C:\repos\hmi_dbt_lib\target\semantic_manifest.json
11:18:51.745931 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'resource_counts', 'label': 'cdd2a509-9a0f-463d-b3e1-54879743f040', 'context': [<snowplow_tracker.self_describing_json.SelfDescribingJson object at 0x00000233C0E0E7B0>]}
11:18:51.746931 [info ] [MainThread]: Found 20 models, 40 data tests, 24 sources, 1351 macros
11:18:51.747932 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'runnable_timing', 'label': 'cdd2a509-9a0f-463d-b3e1-54879743f040', 'context': [<snowplow_tracker.self_describing_json.SelfDescribingJson object at 0x00000233C1042210>]}
11:18:51.749940 [info ] [MainThread]:
11:18:51.749940 [info ] [MainThread]: Concurrency: 2 threads (target='sso')
11:18:51.751089 [info ] [MainThread]:
11:18:51.752127 [debug] [MainThread]: Acquiring new snowflake connection 'master'
11:18:51.753175 [debug] [ThreadPool]: Acquiring new snowflake connection 'list_HMI_CURATED_CLONE_PROD_NS1_656'
11:18:51.821249 [debug] [ThreadPool]: Using snowflake connection "list_HMI_CURATED_CLONE_PROD_NS1_656"
11:18:51.822331 [debug] [ThreadPool]: On list_HMI_CURATED_CLONE_PROD_NS1_656: /* {"app": "dbt", "dbt_version": "1.9.0b4", "profile_name": "hmi_dbt_lib", "target_name": "sso", "connection_name": "list_HMI_CURATED_CLONE_PROD_NS1_656"} */
show terse schemas in database HMI_CURATED_CLONE_PROD_NS1_656
    limit 10000
11:18:51.822331 [debug] [ThreadPool]: Opening a new connection, currently in state init
11:18:55.494947 [debug] [ThreadPool]: SQL status: SUCCESS 21 in 3.673 seconds
11:18:55.499987 [debug] [ThreadPool]: Acquiring new snowflake connection 'list_HMI_CURATED_CLONE_PROD_NS1_656_orkin'
11:18:55.507128 [debug] [ThreadPool]: Using snowflake connection "list_HMI_CURATED_CLONE_PROD_NS1_656_orkin"
11:18:55.508119 [debug] [ThreadPool]: Acquiring new snowflake connection 'list_HMI_LANDED_CLONE_PROD_NS_725_orkin'
11:18:55.508119 [debug] [ThreadPool]: On list_HMI_CURATED_CLONE_PROD_NS1_656_orkin: /* {"app": "dbt", "dbt_version": "1.9.0b4", "profile_name": "hmi_dbt_lib", "target_name": "sso", "connection_name": "list_HMI_CURATED_CLONE_PROD_NS1_656_orkin"} */
show objects in HMI_CURATED_CLONE_PROD_NS1_656.orkin limit 10000;
11:18:55.511017 [debug] [ThreadPool]: Using snowflake connection "list_HMI_LANDED_CLONE_PROD_NS_725_orkin"
11:18:55.512039 [debug] [ThreadPool]: Opening a new connection, currently in state init
11:18:55.512039 [debug] [ThreadPool]: On list_HMI_LANDED_CLONE_PROD_NS_725_orkin: /* {"app": "dbt", "dbt_version": "1.9.0b4", "profile_name": "hmi_dbt_lib", "target_name": "sso", "connection_name": "list_HMI_LANDED_CLONE_PROD_NS_725_orkin"} */
show objects in HMI_LANDED_CLONE_PROD_NS_725.orkin limit 10000;
11:18:55.512039 [debug] [ThreadPool]: Opening a new connection, currently in state init
11:18:59.077076 [debug] [ThreadPool]: SQL status: SUCCESS 3 in 3.565 seconds
11:18:59.079075 [debug] [ThreadPool]: Re-using an available connection from the pool (formerly list_HMI_LANDED_CLONE_PROD_NS_725_orkin, now list_hmi_dev_sandbox)
11:18:59.081656 [debug] [ThreadPool]: Using snowflake connection "list_hmi_dev_sandbox"
11:18:59.082661 [debug] [ThreadPool]: On list_hmi_dev_sandbox: /* {"app": "dbt", "dbt_version": "1.9.0b4", "profile_name": "hmi_dbt_lib", "target_name": "sso", "connection_name": "list_hmi_dev_sandbox"} */
show objects in hmi_dev.sandbox limit 10000;
11:18:59.219623 [debug] [ThreadPool]: SQL status: SUCCESS 8 in 0.136 seconds
11:18:59.220703 [debug] [ThreadPool]: Re-using an available connection from the pool (formerly list_hmi_dev_sandbox, now list_HMI_CURATED_CLONE_PROD_NS1_656_inscape)
11:18:59.222631 [debug] [ThreadPool]: Using snowflake connection "list_HMI_CURATED_CLONE_PROD_NS1_656_inscape"
11:18:59.223692 [debug] [ThreadPool]: On list_HMI_CURATED_CLONE_PROD_NS1_656_inscape: /* {"app": "dbt", "dbt_version": "1.9.0b4", "profile_name": "hmi_dbt_lib", "target_name": "sso", "connection_name": "list_HMI_CURATED_CLONE_PROD_NS1_656_inscape"} */
show objects in HMI_CURATED_CLONE_PROD_NS1_656.inscape limit 10000;
11:18:59.296905 [debug] [ThreadPool]: SQL status: SUCCESS 3 in 3.785 seconds
11:18:59.338385 [debug] [ThreadPool]: SQL status: SUCCESS 13 in 0.115 seconds
11:18:59.342383 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'runnable_timing', 'label': 'cdd2a509-9a0f-463d-b3e1-54879743f040', 'context': [<snowplow_tracker.self_describing_json.SelfDescribingJson object at 0x00000233C1678CE0>]}
11:18:59.346079 [debug] [Thread-1 (]: Began running node model.hmi_dbt_lib.content
11:18:59.347151 [info ] [Thread-1 (]: 1 of 1 START sql microbatch model HMI_CURATED_CLONE_PROD_NS1_656.inscape.content  [RUN]
11:18:59.347151 [debug] [Thread-1 (]: Acquiring new snowflake connection 'model.hmi_dbt_lib.content'
11:18:59.348133 [debug] [Thread-1 (]: Began compiling node model.hmi_dbt_lib.content
11:18:59.354156 [debug] [Thread-1 (]: Writing injected SQL for node "model.hmi_dbt_lib.content"
11:18:59.355189 [debug] [Thread-1 (]: Began executing node model.hmi_dbt_lib.content
11:18:59.411111 [info ] [Thread-1 (]: 1 of 1 START batch 2023-11-24 of HMI_CURATED_CLONE_PROD_NS1_656.inscape.content  [RUN]
11:18:59.416974 [debug] [Thread-1 (]: Writing injected SQL for node "model.hmi_dbt_lib.content"
11:18:59.451838 [debug] [Thread-1 (]: Using snowflake connection "model.hmi_dbt_lib.content"
11:18:59.452831 [debug] [Thread-1 (]: On model.hmi_dbt_lib.content: /* {"app": "dbt", "dbt_version": "1.9.0b4", "profile_name": "hmi_dbt_lib", "target_name": "sso", "node_id": "model.hmi_dbt_lib.content"} */
create or replace temporary table HMI_CURATED_CLONE_PROD_NS1_656.inscape.content__dbt_tmp
         as
        (
with source as (
  select * from (select * from HMI_CURATED_CLONE_PROD_NS1_656.inscape.vw_content where content_recognition_start_timestamp >= '2023-11-24 00:00:00+00:00' and content_recognition_start_timestamp < '2023-11-25 00:00:00+00:00')

  limit 1000000

)
select
  hmi_uuid
  ,hashed_unique_tv_id
  ,zip_code
  ,dma
  ,content_tms_id as content_id
  ,content_title
  ,scheduled_content_start_time
  ,station_callsign
  ,content_start_media_time
  ,content_recognition_start_timestamp
  ,content_recognition_end_timestamp
  ,network
  ,live
  ,sha2(HMI_CURATED_CLONE_PROD_NS1_656.common.regexp_replace2(ip_address, '(\\b0+)(?!\\b)', ''), 256) as ip_address_hash
  ,input_category
  ,input_device
  ,app_service
  ,landed_timestamp
  ,created_timestamp
  ,modified_timestamp
  ,partition_date
from source
        );
11:18:59.452831 [debug] [Thread-1 (]: Opening a new connection, currently in state init
11:19:07.724147 [debug] [Thread-1 (]: SQL status: SUCCESS 1 in 8.272 seconds
11:19:07.731156 [debug] [Thread-1 (]: Using snowflake connection "model.hmi_dbt_lib.content"
11:19:07.732163 [debug] [Thread-1 (]: On model.hmi_dbt_lib.content: /* {"app": "dbt", "dbt_version": "1.9.0b4", "profile_name": "hmi_dbt_lib", "target_name": "sso", "node_id": "model.hmi_dbt_lib.content"} */
describe table HMI_CURATED_CLONE_PROD_NS1_656.inscape.content__dbt_tmp
11:19:07.812949 [debug] [Thread-1 (]: SQL status: SUCCESS 21 in 0.080 seconds
11:19:07.817650 [debug] [Thread-1 (]: Using snowflake connection "model.hmi_dbt_lib.content"
11:19:07.817650 [debug] [Thread-1 (]: On model.hmi_dbt_lib.content: /* {"app": "dbt", "dbt_version": "1.9.0b4", "profile_name": "hmi_dbt_lib", "target_name": "sso", "node_id": "model.hmi_dbt_lib.content"} */
describe table HMI_CURATED_CLONE_PROD_NS1_656.inscape.content
11:19:07.884428 [debug] [Thread-1 (]: SQL status: SUCCESS 21 in 0.066 seconds
11:19:07.895469 [debug] [Thread-1 (]: Using snowflake connection "model.hmi_dbt_lib.content"
11:19:07.895469 [debug] [Thread-1 (]: On model.hmi_dbt_lib.content: /* {"app": "dbt", "dbt_version": "1.9.0b4", "profile_name": "hmi_dbt_lib", "target_name": "sso", "node_id": "model.hmi_dbt_lib.content"} */
describe table HMI_CURATED_CLONE_PROD_NS1_656.inscape.content__dbt_tmp
11:19:07.965229 [debug] [Thread-1 (]: SQL status: SUCCESS 21 in 0.069 seconds
11:19:07.968238 [debug] [Thread-1 (]: Using snowflake connection "model.hmi_dbt_lib.content"
11:19:07.969238 [debug] [Thread-1 (]: On model.hmi_dbt_lib.content: /* {"app": "dbt", "dbt_version": "1.9.0b4", "profile_name": "hmi_dbt_lib", "target_name": "sso", "node_id": "model.hmi_dbt_lib.content"} */
describe table "HMI_CURATED_CLONE_PROD_NS1_656"."INSCAPE"."CONTENT"
11:19:08.035148 [debug] [Thread-1 (]: SQL status: SUCCESS 21 in 0.066 seconds
11:19:08.043139 [debug] [Thread-1 (]:
    In "HMI_CURATED_CLONE_PROD_NS1_656"."INSCAPE"."CONTENT":
        Schema changed: False
        Source columns not in target: []
        Target columns not in source: []
        New column types: []

11:19:08.050146 [debug] [Thread-1 (]: Writing runtime sql for node "model.hmi_dbt_lib.content"
11:19:08.051146 [debug] [Thread-1 (]: Using snowflake connection "model.hmi_dbt_lib.content"
11:19:08.052139 [debug] [Thread-1 (]: On model.hmi_dbt_lib.content: /* {"app": "dbt", "dbt_version": "1.9.0b4", "profile_name": "hmi_dbt_lib", "target_name": "sso", "node_id": "model.hmi_dbt_lib.content"} */
delete from HMI_CURATED_CLONE_PROD_NS1_656.inscape.content DBT_INTERNAL_TARGET
    using HMI_CURATED_CLONE_PROD_NS1_656.inscape.content__dbt_tmp
    where (
    DBT_INTERNAL_TARGET.content_recognition_start_timestamp >= TIMESTAMP '2023-11-24 00:00:00+00:00'
    and DBT_INTERNAL_TARGET.content_recognition_start_timestamp < TIMESTAMP '2023-11-25 00:00:00+00:00'

    );
11:19:40.732795 [debug] [Thread-1 (]: Snowflake adapter: Snowflake query id: 01b89c53-0712-4153-001a-6a831bd4980a
11:19:40.732795 [debug] [Thread-1 (]: Snowflake adapter: Snowflake error: 000604 (57014): SQL execution canceled
11:19:40.733801 [error] [Thread-1 (]: 1 of 1 ERROR creating batch 2023-11-24 of HMI_CURATED_CLONE_PROD_NS1_656.inscape.content  [ERROR in 41.32s]
11:19:40.734799 [error] [Thread-1 (]: Encountered an error while running operation: Database Error
  000604 (57014): SQL execution canceled

Environment
- OS: Windows 10 Enterprise
- Python: 3.12.7
- dbt: 1.9.0-b4
- dbt-snowflake: 1.9.0-b1

Which database adapter are you using with dbt?
snowflake
Additional Context

FYI: I have the same issue using dbt Cloud CLI (versionless). Here's the code generated by the dbt run ... --eventime... command (screenshot from Snowflake):

As you can see, the two tables are never joined.


Allow login from arbitrary openid connect providers

RancherOS Version: (ros os version)
any
Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.)
local machine
Examples:

Google Apps
Keycloak

Can you describe what you're expecting a bit more? I don't think any other operating systems offer functionality like this.

If you're wanting what I think you are, then this is something that should be able to be done using a custom console, configured with the needed PAM modules.

Well the admin interface allows login from github. I use google apps and fundamentally supporting github is the same as google apps.

Both keycloak and google apps are openid connect providers. It would be cool to see support for any openid provider. (I can imagine facebook etc.)

So your screenshot has to do with Rancher and not RancherOS.
Can you open your request under that project? Note: Google sign ins already has an enhancement request.
https://github.com/rancher/rancher/issues/1411

Also, with Rancher 1.2, we've created our authentication service into it's own go-microservice so anyone could implement their own ability to create auth using other providers from what Rancher provides.


[SPARK-9829][WebUI]Display the update value for peak execution memory

The peak execution memory is not correct because it shows the sum of finished tasks' values when a task finishes.
This PR fixes it by using the update value rather than the accumulator value.

/cc @davies @andrewor14

Merged build triggered.

Merged build started.

Test build #40574 has started for   PR 8121 at commit 5a27802.

Test build #40574 has finished for   PR 8121 at commit 5a27802.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Ah, we should display the partial update, not the partial accumulated value so far. LGTM merging into master 1.5.


Flexbox the buttons

This is like #4349 in that sometimes we should be better at layout long things in narrow space.  The solution is usually to just use flexbox, which gives us more control over how and whether things are allowed to wrap.
Currently our buttons are just floated things with fixed width, but I think we can use flexbox for layout instead.  If the buttons themselves are also flexbox containers for the icon and text, I think we might be able to drop the text labels when there is not room for them, leaving only the icons.  (This is a bit more elegant than just dropping the labels with a media query).
This is at around 750px wide screen.  It's worse for languages that use longer words:

cc @kepta

sure @bhousel.

👋 @bhousel
Created a pull request of the changes.
I faced 1 issue while building CSS in dist. I had to run npm run all everytime for my CSS changes to go to dist iD.css. Is there any way I can cut on that?

I faced 1 issue while building CSS in dist. I had to run npm run all everytime for my CSS changes to go to dist iD.css. Is there any way I can cut on that?

Not currently, unfortunately the live reload server only rebuilds the .js code bundle.  Even with that, I dont think it catches all the stuff under /data properly, like presets.
https://github.com/openstreetmap/iD/blob/ccf452acf6f2d97b8f72bc9e8efca3ea8e2f2b4d/development_server.js#L17-L21
I think there are rollup plugins that can do this stuff, I just haven't had the time to look into it.

@tridip1931 Looks like a good start - can you see if you can get the buttons to be uniform width?  Also check RTL, looks like they're not centering correctly without the label (like there is some margin remaining in there).

@bhousel Thanks for pointing out the inconsistencies.  Sorry for overlooking it.
LTR

RTL

The icons are slightly misaligned due to the border-right applied to them.

If we remove the borders, they can be perfectly aligned to center. The buttons are of 40X40 and icons size are 20X20

Reason for Extra margin in RTL
There seemed to be extra margin applied to the icon because of this css
[dir='rtl'] .icon.pre-text {
  margin-left: 5px;
  margin-right: 0;
}

It seems even though direction is RTL, margin-left does not inverses it so that there is some space between the icon & label of the button.

Commenting out the css seems to solve the issue.

Sidebar breaks on RTL
I think iD sidebar breaks on RTL.

Should I look around this issue?

@tridip1931  Yes, make sure the changes to the icon layout work RTL too.  The RTL sidebar looks like this in master  (add &rtl=true to a local running iD to test this):

Sorry, I have tested wrong. 😨  I will make those changes.

Not sure if this is still being worked on but #5443 would affect the top bar buttons if merged.


camera_info topics are confusion

There are many camera info topics...
/camera/color/camera_info
/camera/aligned_depth_to_color/camera_info

How do I use it if I need to calculate the 3d point from image pixel and depth?
I logged them out, they seems acutally same?
/camera/aligned_depth_to_color/camera_info
header:
  seq: 1015
  stamp:
    secs:<PHONE_NUMBER>
    nsecs:  93076351
  frame_id: "camera_color_optical_frame"
height: 720
width: 1280
distortion_model: "plumb_bob"
D: [0.0, 0.0, 0.0, 0.0, 0.0]
K: [924.4299926757812, 0.0,<PHONE_NUMBER>234375, 0.0,<PHONE_NUMBER>835938,<PHONE_NUMBER>707031, 0.0, 0.0, 1.0]
R: [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0]
P: [924.4299926757812, 0.0,<PHONE_NUMBER>234375, 0.0, 0.0,<PHONE_NUMBER>835938,<PHONE_NUMBER>707031, 0.0, 0.0, 0.0, 1.0, 0.0]
binning_x: 0
binning_y: 0
roi:
  x_offset: 0
  y_offset: 0
  height: 0
  width: 0
  do_rectify: False

/camera/color/camera_info
header:
  seq: 1428
  stamp:
    secs:<PHONE_NUMBER>
    nsecs: 979297455
  frame_id: "camera_color_optical_frame"
height: 720
width: 1280
distortion_model: "plumb_bob"
D: [0.0, 0.0, 0.0, 0.0, 0.0]
K: [924.4299926757812, 0.0,<PHONE_NUMBER>234375, 0.0,<PHONE_NUMBER>835938,<PHONE_NUMBER>707031, 0.0, 0.0, 1.0]
R: [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0]
P: [924.4299926757812, 0.0,<PHONE_NUMBER>234375, 0.0, 0.0,<PHONE_NUMBER>835938,<PHONE_NUMBER>707031, 0.0, 0.0, 0.0, 1.0, 0.0]
binning_x: 0
binning_y: 0
roi:
  x_offset: 0
  y_offset: 0
  height: 0
  width: 0
  do_rectify: False

Since the aligned image is projected on the color sensor, camera_info describes color sensor in both topics. They are the same. You can use either one.

@jinfagang Any other questions about this? Looking forward to your update. Thanks!


OCI: Add support for dependencies

This ticket is to enhance cdxgen to populate the dependencies array for OCI components.
This will help with visualizing the Dependency Graph within Dependency Track

I've investigated this locally.
At a high level it appears to involve

updating createContainerSpecLikeBom to concatenate and maintain bom dependencies
massage the bom dependency refs to match the component bom-refs (currently they have different patterns)

bomJson.dependencies ref values are in the format pkg:oci/image@sha256:digest,
components purl and bom-ref are in the format  pkg:oci/image@version?

@setchy, is it getting lost somewhere? This line must retain the dependencies list per image from the plugin.
https://github.com/CycloneDX/cdxgen/blob/master/binary.js#L618

Correct.
I think this is the missing line which appears in many other places for other languages/package managers.
But when added, it then exposed the discrepancy between the dependency ref and the component bom-ref values, which ultimately gets logged as a WARNING: Invalid ref in dependencies

Update my post above with an of the different refs

@setchy, how about we add a fake dependency between<EMAIL_ADDRESS>and node@sha256. sha256 scheme is more precise, and the same version could technically point to different sha based on architecture. Also, shall we remove the question mark by setting qualifiers to undefined?


Report a  inscrutable message

When I used the sql_exporter-0.5.linux-amd64.tar.gz  package,I can not connect to the sql server address which I had configured in the sql_exporter.yaml file. When the sql_exporter is running,it always show me a message: No metrics gathered, [from Gatherer #1] Unable to open tcp connection with host 'localhost:1433': dial tcp [::1]:1433: connect: connection refused. Why it is localhost?

Were you able to solve this problem @tangxuye ? I am currently having the same issue but on windows and my password is pretty simple


Added VimuxSetRunner to allow defining any panel as runner

Hi @benmills,
I think Vimux is pretty stable feature wise, however I was missing being able to define a specific pane as runner. I've made this change a few months ago and I've been using it in my fork since then.
The reasons why I think this feature is useful:

Every time VIM closes or crash, you can't reuse the same pane as runner.
Sometimes it is useful to alternate runner panes.
When changing Tmux layouts, the runner index may change as well.

Feel free to decline this PR or suggest changes.

I tried integrating this function into my own init.vim and for reasons that behoove me I can't seem to get it to work with in the scenario of 3 panes.

Despite applying let g:VimuxRunnerIndex = 2, the Vimux commands are always sent to panel 0 or panel 1 and never panel 2. In the scenario of two panels, it will correctly pipe output to appropriate panel.
I am using nested tmux sessions but I don't believe this to be the source of error. Any thoughts?

Hey, sorry, I missed these updates. I don't use this plugin anymore and I won't have time to make the changes required.
I'm currently using a custom one I created for my use-case. @phelps-matthew You can take a look at the code and see if you are able to fix your issue with it https://github.com/viniciusgerevini/tmux-runner.vim

Thanks for the backstorry @viniciusgerevini, and of course we understand. When things like this go unmaintained and stop accepting fixes they stop meeting needs.
That being said if you are anybody wants to work on either fixing up this PR or integrating any other "best of" features from the alternative I'd be happy to facilitate them getting integrated here now. I didn't go into detail on reviewing this PR because I wanted to make sure somebody was around to work on it still. I'd be willing to do that if somebody wants to see it brought on board.

Hey, sorry, I missed these updates. I don't use this plugin anymore and I won't have time to make the changes required. I'm currently using a custom one I created for my use-case. @phelps-matthew You can take a look at the code and see if you are able to fix your issue with it https://github.com/viniciusgerevini/tmux-runner.vim

This is delicious, thank you. Installed and is working great. Being able to set default behaviors like nearest pane to the right of active pane is exactly what I was looking for! :grinning:


1.4.8 not available from NPM

I can't seem down download the latest version from NPM.
https://www.npmjs.com/package/react-scroll states 1.4.8 is available, but npm install react-scroll pulls down 1.4.7

Local repository not caching correctly.


Update display.yaml

Updating display.yaml to correspond with approved names and descriptions in - https://docs.google.com/spreadsheets/d/1Q__GO4aEoxqloI3xO9k5TnEMzg3FUbhqDMK1gzBGJ80/edit#gid=972969432

Conflicts with current repo, if it still matters please fix conflicts and resubmit the PR.


Calibrating GoPro with non standard lenses.

I am using a GoPro with non-standard fisheye lens. So now I need to calibrate the camera to get better SLAM performance.

Which process do you follow to calibrate the camera using OpenICC?
And how/where is that information used in the UMI pipeline?

Thanks!

The OpenICC will output you some calibration values. The first file can be directly used in the .json config of universal_manipulation_interface. From my experience, There is some info missing in OpenICC and the calibration worked regular with a non-standard lense but still managed to get some accuracy in normal settings.
The other files obtained can be used in the .yaml file in ORBSLAM3/Examples/Monocular-Intertial/whatver_calib.yaml, which will be the ones with specific parameters for SLAM and orbslam3 tuning @cateure


Adding json custom encoder/decoder

I was unable to locate an encoder/decoder that did what I wanted here.  Third-party json packages are really focused around speed, mostly by going to generated calls or reducing allocations.
Unfortunately, I think the best way to look at this is the way you'd look at third-party code. You'd use it to see if it did what you wanted, and if it did, you'd import it (kinda like what you do with encoding/json).
This code isn't going to be for the feint of heart.  It must use reflection and uses a state machine design.  This just means it is hard to follow, just like anything that uses reflection.  In essence, this is a JSON parser and json.Encoder/Decoder act as the lexer.
I've included the design doc in markdown in the directory.
This might be adding more code than is being removed.  However, when there is an error in this code, this seems to be a straightforward error that is returned vs silent errors when keys just don't get recorded.  In the most general sense, if the calls that use it work, then it works vs. the current situation where the tests will likely be silent.
I did not do the integrations here, just the package add.  I'm still working on the integrations, as this necessitated a bunch of type conversions from pointers (yea!), interface changes, fixing tests, etc....  About 90% done there.  Once this goes in I'll send the next up.

I'm a bit surprised this is needed. I read your explanation. Maintaining a json parser (or at least some levels of it) is something I would assume in most places is discouraged. Speed may be a factor for service operations btw. I'm actually surprised Google doesn't have a json parser we can use?

encoding/json is the Go language lexer/parser.  What it doesn't handle is the "AdditionalFields" requirement that we have.  The generic way to handle this is map[string]interface{}, which has issues of keeping things synced.  That is Go's generic solution for unstructured data.
I can't speak to every API out there, but the ability to retain additional fields to push back up is new to me.  I've seen this done with a type of merge API call on the backend that takes care of that vs pushing to the client.
Google doesn't build their APIs (internally at least) to have this type of problem and they don't natively use JSON.  Google uses protocol buffers and when you see JSON, it has really been converted from a proto.  At Google, everything is structured protocol buffer.
There are quite a few third-party json libraries, but they concentrate on lower allocations and speed, usually with less features.
This uses the lexer that is part of encoding/json and should be faster than the map[string]interface{} code with less allocations for the general case.  Just the changes I'm making away from pointers will also give a decent speed increase because it will eliminate a lot of heap allocation and gc cleanup. The code, as it was when I started, was not written with speed in mind.
I don't expect any maintenance as part of this package add.  I've occasionally had to write similar code for other types of decodes with zero maintenace overhead.  I loathe writing this type of code, but I loathe the bugs in forgetting to add fields or forgetting to add "AdditionalFields" to a new struct, or not testing the field more.  To be honest, the moment I had to do this work I was regretting taking this on.
But as for the "risk", which is a valid point, it is about as risky as a third-party lib.  If you have a bug in those, you either must fix it yourself or wait for the authors to fix it.  Rarely do people go through the entire code to understand it.  In this case, you had a full review by someone else who understands the code.
John Doak
Manager, Change Management SRE
<EMAIL_ADDRESS>
From: henrikm<EMAIL_ADDRESS>Sent: Tuesday, November 10, 2020 9:30 PM
To: AzureAD/microsoft-authentication-library-for-go<EMAIL_ADDRESS>Cc: John Doak<EMAIL_ADDRESS>State change<EMAIL_ADDRESS>Subject: Re: [AzureAD/microsoft-authentication-library-for-go] Adding json custom encoder/decoder (#77)
I'm a bit surprised this is needed. I read your explanation. Maintaining a json parser (or at least some levels of it) is something I would assume in most places is discouraged. Speed may be a factor for service operations btw. I'm actually surprised Google doesn't have a json parser we can use?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzureAD%2Fmicrosoft-authentication-library-for-go%2Fpull%2F77%23issuecomment-725208641&data=04|01|John.Doak%40microsoft.com|5a6f9f4d735e458e039208d88602d9bd|72f988bf86f141af91ab2d7cd011db47|1|0|637406694085823423|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=IhiMIcJVFR181FXHRU0O0Kr9B5GJQSs1ImOnmPgtCFU%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAKCSL7AEEC3P4AYIMPBDV63SPION5ANCNFSM4TPUAOLQ&data=04|01|John.Doak%40microsoft.com|5a6f9f4d735e458e039208d88602d9bd|72f988bf86f141af91ab2d7cd011db47|1|0|637406694085833418|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=yvV4uDWOb70M1wP2qh6RPaMwCQy8gjT4tTA6i2cVO6A%3D&reserved=0.


Issuer plugin for Google CA Manager

A plugin that handles certificate issuance via Google CA Manager.
The plugin requires GOOGLE_ACCOUNT_CREDENTIALS config variable, which should point at the file containing credentials that Lemur is using to connect to Google Cloud Platform.
These credentials normally would be for a service account that has permissions privateca.certificates.update, privateca.certificates.create and privateca.certificateAuthorities.get
This requires packages

google-cloud-private-ca package
protobuf
google-cloud-private-ca

First of all, thank you for the work you've put into creating this new issuer plugin for the Google Certificate Authority Service. I've left a few minor comments in the code for things that could be improved. Before merging, we'd like to have some tests in place that cover the main functionality of your plugin, such as certificate creation, revocation, and fetching. Additionally, if you could add a changelog entry to make consumers aware of the new functionality, that'd be appreciated.
We appreciate your contribution and look forward to seeing the improvements and tests. If you need any help or clarification, feel free to ask.

I have added some tests, but can you check that the tests are consistent enough with the rest of the project? I have tried to follow examples from other plugins, but not everything carries over.
Similarly, I have added a changelog entry under 1.7.0 - 2024-01-17  but I am not sure if it's the right location.

@jmcrawford45 The build checks have been stuck all day, is there something wrong, or they just need more time?

@jmcrawford45  now the build fails with an error
⚠ Coverage reporter does not yet know how to process this file: .coverage
Not sure how to proceed, as I have no experience with it

@jmcrawford45 now the build fails with an error ⚠ Coverage reporter does not yet know how to process this file: .coverage Not sure how to proceed, as I have no experience with it

This is a known upstream issue https://github.com/coverallsapp/github-action/issues/205 I've temporarily disabled coveralls checks and will get your PR merged in today. Thanks again for your contribution and patience!


Download

I'm trying to download this file and there is a popup that doesn't allow me to download saying"error downloading:virus detected"

Well this project is already useless as wearedevs api was patched


add docker go-units into hyper

Signed-off-by: allencloud<EMAIL_ADDRESS>

LGTM. Thanks for the patch!


Fail to remove import matplotlib.pyplot as plt

Thanks for the great lib.
However when I run the command unimport $(find . -name '*.py') --remove, it always fails to remove unused import matplotlib.pyplot as plt.
This is the only bug that I've noticed, but It happens systematically with this import.
Any idea ?
I'm using unimport==0.14.1.
Many thanks

Thanks for your kind words I am thrilled to hear that! and thanks you open the issue,
This problem occurs when your import type is as follows, I will solve it as soon as possible, in addition, in the new version of unimport, you no longer need to use the --remove flag, --remove is now the default.
import a.b as x

Can you try again, after installing https://pypi.org/project/unimport/0.15.0/

Can you try again, after installing https://pypi.org/project/unimport/0.15.0/

It works, many thanks :pray:


rc/app/shared/auth/auth.service.ts (22, 29): Cannot find namespace 'firebase'.

Make sure you have the correct path to the firebase3.d.ts typings file in your tsconfig.json — see here.


Add Windows and Linux Support for ctrl-k

I'm not sure why https://github.com/tjx666/vscode-classic-experience/issues/2 was closed, but this extension is not working with windows pressing ctrl-k to delete a line (for example)
Instead I get the cursor pop up:

Please add support for windows/linux keybindings.
Thanks.

Same issue here

I don't have windows, would you help provide some information to help debug?

disable this extension, run command Preferences: Open Default Keyboard Shortcuts (JSON), provide me the json content
enable this extension, run the command again, and provide me the json content again

@markjfisher @DK013

keybindings.json

keybindings.json

@markjfisher @DK013 please try latest version v1.0.0

I'll try it as soon as it shows. Still showing 0.1.1 at the moment.

It shows in the list if you pick specific version, just not in the changelog...

delete line is working in 1.0.0, thanks.

@markjfisher Terminal can be clear by ctrl + k ?

thanks for help debug

@tjx666 some issues still persist. like the combinations of ctrl+K commands still doesn't work.
for example:
comment: CTRL+K CTRL+C
uncomment: CTRL+K CTRL+U
etc.

@DK013 I will fix it tonight, cursor map some the ctrl + k to ctrl + m, which is different with cmd + k mapped to cmd + r on macos.

@DK013 Can you help provide the json after run command Preferences: Open Default Keyboard Shortcuts (JSON)?

Cursor mod said

In Cursor, Cmd/Ctrl+K is used for the inline edits. We therefore changed the keychord leader key to be Cmd+R on Mac and Ctrl+M on Windows and Linux. For example, “Unfold all” is Cmd+R Cmd+J on Mac and Ctrl+M Ctrl+J on Windows and Linux.

so on Windows or Linux the leader key is ctrl+M instead of R.
And when I want to switch theme I found ctrl+k ctrl+t not working, search 'theme' on the page found the plugin binds ctrl+k windows+t, which should be ctrl+t

please try latest v1.0.1

@DK013 Can you help provide the json after run command Preferences: Open Default Keyboard Shortcuts (JSON)?

Sorry for the late reply. Here you go:
https://gist.github.com/DK013/fb25fbf463137c4ecc69c54b875511c1


Rework Documentation Gathering

What would you like to change?
SlackBot currently asks the individual closing a ticket to briefly document the steps taken to resolve it. The current implementation is entirely optional and takes too long to complete, leading to few instances of documentation that are not as helpful as they could be.
The current documentation modal presents three text boxes asking the user where what and how they resolved the ticket. Usually only one of these fields provides any useful information. Rework the documentation gathering step to include a single drop-down menu asking the user to categorise the issue and another optional comment box asking the user to briefly describe what they did. Closing the modal without selecting an option from the drop-down should not mark the ticket as 'resolved'.
Potential categories for ticket resolution:

User error
Lack of documentation
Lack of access
etc.

Updated the documentation modal when resolving tickets:

Removed the existing three text boxes.
Created a mandatory drop down menu to allow the user to categorise the issue (note this drop down list can be extended):

Infrastructure issue,
Lack of documentation,
Lack of access,
Other issue,
Performance issue,
Security issue,
User error.

Created an optional comment box asking the user to describe what they did.
Closing the modal without without selecting an option from the drop-down menu will not mark the ticket as resolved.
When the user enters text in the comment box the instructions disappear - the instructions have been added on a new line before the comment box.
Enhanced the interface by removing some unnecessary icons (i.e. the pencil icon for '')

Branch: https://github.com/hmcts/slack-help-bot/pull/new/feature/DTSPO-Hackathon-Will-Watters

PR approved, merged and run via pipeline - https://github.com/hmcts/slack-help-bot/pull/175
Changes tested and now live and communicated to Platform-Operations Slack channel.


Tried building a project with go modules turned on. Go compiler now rejects this project.
[p1 you-pass-butter (master)] $ export GO111MODULE=off
[p1 you-pass-butter (master)] $ go build
[p1 you-pass-butter (master)] $ echo $?
0
[p1 you-pass-butter (master)] $ export GO111MODULE=on
[p1 you-pass-butter (master)] $ go build
main.go:9:2: use of internal package indeed/systools/you-pass-butter/internal/service not allowed

I was able to reproduce (and fix) with a toy example - this will probably turn out to be working as intended, but it feels like go build is conflating modules with packages.
[k9 mygo] $ echo $GOPATH
/tmp/mygo
[k9 mygo] $ tree src/
src/
└── mycorp
    └── myteam
        └── myproject
            ├── go.mod
            ├── internal
            │   └── mylib
            │       └── mylib.go
            ├── main.go
            └── myproject

5 directories, 4 files

With modules off:
[k9 myproject] $ GO111MODULE=off
[k9 myproject] $ go build
[k9 myproject] $ echo $?
0

With modules on and an evidently invalid go.mod file:
[k9 myproject] $ GO111MODULE=off
[k9 myproject] $ go build
[k9 myproject] $ echo $?
0

[k9 myproject] $ GO111MODULE=on
[k9 myproject] $ cat go.mod
module foo.bar.baz/mymodule

require mycorp/myteam/myproject v0.0.0

replace mycorp/myteam/myproject => ../../myteam/myproject
[k9 myproject] $ go build
main.go:4:8: use of internal package mycorp/myteam/myproject/internal/mylib not allowed

Forcing the go.mod file to conform to GOPATH:
[k9 myproject] $ cat go.mod
module mycorp/myteam/myproject

require mycorp/myteam/myproject v0.0.0

replace mycorp/myteam/myproject => ../../myteam/myproject
[k9 myproject] $ go build
[k9 myproject] $ echo $?
0

We can certainly live with this requirement, but I was hoping to abuse arbitrarily named modules to help bridge my company from our existing non-conventional project layout to something more normal.

module foo.bar.baz/mymodule declares that the packages in the current module have the import path prefix foo.bar.baz/mymodule, which is not a prefix of mycorp/myteam/myproject/internal.
This seems to be working as intended. (See src/cmd/go/testdata/script/mod_internal.txt.)


Add support for mklink with junctions

Add support for mklink with junctions for the users without access to create directory symlinks.
To enable feature add symlink_junction: true in settings.txt file.

Fix https://github.com/coreybutler/nvm-windows/issues/715
Topic https://github.com/coreybutler/nvm-windows/issues/79


Allow Public keys coming from Elliptic Curves in Twisted Edwards form

This implements CondAdd and CondAddValues for Twisted Edwards (TE) incomplete addition formula and then makes all struct and traits depending on these generic on choice of Coordinate.
TE coordinate is not secure without proof of possession.

@drskalman Looks good. I only have a question about the function you introduced used to generate the seed point for the tests.

Superseeded by https://github.com/davxy/ring-proof/pull/6


Add a search option to Countries Dropdown

Currently there is no option to search a country in the drop down and you have to scroll to the bottom if you have to select a country which starts from z .

Hi, I'll work on this


⚠ AsianCinema has degraded performance

In 3c1d3e4, AsianCinema ($ACM) experienced degraded performance:

HTTP code: 525
Response time: 20559 ms

Resolved: AsianCinema performance has improved in c9d978c after 1 hour, 29 minutes.


KFNBC: Admin Spawner Tab

Resolves #273
TODOs:

[x] Test and debug some desync of data issues; starting admin notebook, then stopping it, and then viewing the notebook server page - it shows the old information for a few moments before the data kicks and it refreshes
[x] Admin table columns need to be sortable
[x] Privilege column needs to be added
[x] Add pagination to the admin user list
[x] Can't impersonate yourself

@andrewballantyne Can you resolve conflicts? I will review it after

Done -- there was minor non-invasive conflicts. Please review when you get a chance @samuelvl

@samuelvl Hmmm... usernames being empty is not my doing 🤔 Not sure how you actually got those. We had a bug in our infrastructure where if you were fast enough to click the create button you could create a user mapping without it matching one existing -- thus giving empty names. I also put a check to block empty names before it updates the config. I'm a bit confused on why you're getting it. I'll retest and see if this somehow was a bi-product of a rebase that I lost some functionality (although I did not see any issue last night)
As for the admin tab for only one user -- unfortunately it'll lead to worse UX if I hide the tab when it is only one user -- as the code will pull for more each time and at a random time (from the user point of view) it will snap in. I think we should keep it for now. We can discuss UX options with Kyle if needed.

It should be noted, we do not search for notebooks on the Admin page -- at least not as a primary thing. We search for those user data in the ODH Dashboard Config and compare it with those that have Notebooks. I suppose I could look at union-ing them... but I'm not sure 🤔 The notebooks has a translated name and will make it hard to undo that. We'd have to make an effort at a different level to do that.

Seeing the same thing is Samu. If you sort it more users get added.

I pushed a commit to avoid the problem @samuelvl and @dlabaj are having with the "users growing" and showing the empty user names (that is bad state generated from a previous version of the Dashboard -- fixed in my PR)


directline connection role and name not getting in BOT conversationUpdate.

For reference below - DirectLine Connection code
(async function() {
       window.WebChat.renderWebChat(

    {

directLine: window.WebChat.createDirectLine({

          secret: “My KEY”

       }),

       userID : "myid",

       username: "myName"

    },

    document.getElementById('chat_converse')

  );

  document.querySelector('#chat_converse > *').focus();

})().catch(err => console.error(err));

Once Connected. We will have below objects in BOT.
{
"type": "conversationUpdate",
"id": "ERqgImAulq3",
"timestamp": "2020-06-18T07:07:03.448Z",
"serviceUrl": "https://directline.botframework.com/",
"channelId": "directline",
"from": {
"id": "AicCk0YN2Ap9n2Ev1ovbuc-k"
},
"conversation": {
"id": "AicCk0YN2Ap9n2Ev1ovbuc-k"
},
"recipient": {
"id": "BotName@xp113vQdWDM",
"name": "BotName"
},
"membersAdded": [
{
"id": "BotName@xp113vQdWDM",
"name": "BotName"
}
]
}
From -  section we should get id, name, role. In the "from" object name and role key is missing and id is present but with auto generated id not actual user id ** myid.

I'm closing this here because I'll be assisting you at your duplicate StackOverflow post, which is the more-appropriate place for this.


[zh]sync en/docs/memory-default-namespace.md

…ault-namespace.md

source file：https://github.com/kubernetes/website/blob/main/content/en/docs/concepts/policy/limit-range.md

@windsonsea Thank you for the modification according to your suggestion


Remove Memory MemorySwap CpuShares from config

As I said in https://github.com/opencontainers/image-spec/pull/371#issuecomment-252411562,
I'd like to remove these resource limit from image-spec.
On the on hand, if we have this, we should have limit
the min and max size of these value. For example, in
docker, there are some min and max limit for some
resource, see https://github.com/docker/docker/blob/master/daemon/daemon_unix.go#L48
ping @vbatts  @stevvooe
Signed-off-by: Lei Jitang<EMAIL_ADDRESS>

We can't remove them, it'll break compability with Docker.

The interesting code is in https://github.com/docker/docker/blob/master/daemon/commit.go#L198 and https://github.com/docker/docker/blob/master/daemon/commit.go#L27. Pay attention to which fields are actually merged.
It would be helpful if you could do the analysis for which fields actually end up on disk. As far as I can tell, it is defined by BuildFromConfig and that merge function.

Adding to the above, from my inspection, these fields don't land on disk.
Also, note that there are interesting lines, like https://github.com/docker/docker/blob/master/daemon/commit.go#L70, which don't seem correct.

@stevvooe As the resident expert on keeping Docker compatibility what is your recommendation?

@stevvooe  These fields does land on disk on prev v1.6 docker,  see https://github.com/docker/docker/blob/v1.6.0/runconfig/merge.go#L14 and  https://github.com/docker/docker/blob/v1.6.0/runconfig/config.go#L15 , https://github.com/docker/docker/blob/v1.6.0/image/image.go#L31  but after https://github.com/docker/docker/pull/10298 which landed in v1.7 docker, all cgroup field are move to
hostConfig, hostConfig are not commit to image.

LGTM
After doing some further research, I found these fields are from before the Config/HostConfig split. In practice, these fields are really host-specific.
Their appearance in 1.6 will be a non-factor for modern Docker deployments. If we convert them into the post-1.9 formats, they will be ignored and not written to disk.

I'm :+1: if they aren't actually used (they always seemed quite an odd addition).

LGTM. Thank you @stevvooe !!!

yay
On 16 December 2016 at 02:36, Stephen Day<EMAIL_ADDRESS>wrote:

Merged #495 https://github.com/opencontainers/image-spec/pull/495.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/opencontainers/image-spec/pull/495#event-896131988,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACewNyfQn2f4ddy-tFxGoYYRJgM_gX48ks5rIesjgaJpZM4LMrVV
.

/me will update #492 to remove these.


chore(deps): upgrade dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-k8s-24-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 2053

Questions ?
Please refer to the Backport tool documentation


quill-cassandra - support pagination based on paging state

Paging big datasets with datastax driver is useful using the PagingState.
resultSet.getExecutionInfo.getPagingState

statement.setPagingState(PagingState.fromString(k)).setFetchSize(limit)

I am not sure what would be the best way to fit it to the quill API.
Version: (e.g. 0.5.0)
Module: (e.g. quill-cassandra)
@getquill/maintainers

You could paginate the dataset using the streaming source,
CassandraStreamSource that produces an Observable.
On 1 Apr 2016 00:47, "Michal Matloka"<EMAIL_ADDRESS>wrote:

Paging big datasets with datastax driver is useful using the PagingState.
resultSet.getExecutionInfo.getPagingState
statement.setPagingState(PagingState.fromString(k)).setFetchSize(limit)
I am not sure what would be the best way to fit it to the quill API.
Version: (e.g. 0.5.0)
Module: (e.g. quill-cassandra)
@getquill/maintainers
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/getquill/quill/issues/310

PagingState is good for REST API where client can pass a key and limit to get a specific result page. I think I unfortunatelly can't use Observable in such scenario.

I see. Yes, it would be nice if we could fit it in the API. I will give it
a thought :)
On 1 Apr 2016 01:00, "Michal Matloka"<EMAIL_ADDRESS>wrote:

PagingState is good for REST API where client can pass a key and limit to
get a specific result page. I think I unfortunatelly can't use Observable
in such scenario.
—
You are receiving this because you are on a team that was mentioned.
Reply to this email directly or view it on GitHub
https://github.com/getquill/quill/issues/310#issuecomment-204180251

This feature would indeed be very useful. Any plans for implementing it yet?


Add QQ Group Info

PR types
Others
PR changes
Docs
Description
Add QQ Group Info

@mawenjie8731 Still conflict, please fix it.


STM32F0x error

After update  from 14/mar/2016 is broken support of STM32F0x.
The utility "st-info --chipid" (or other parameter) ends with no output. The utility st-flash exit with "unknown chipid" error.

did you try with latest fix ?
2016-03-16 14:36 GMT+01:00 Juraj Ďuďák<EMAIL_ADDRESS>
After update from 14/mar/2016 is broken support of STM32F0x.
The utility "st-info --chipid" (or other parameter) ends with no output.
The utility st-flash exit with "unknown chipid" error.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/texane/stlink/issues/385

Yes.
Today, I pull the repository and make executables.

Can you confirm it is the current, head, 'TODAY' is too vague
2016-03-16 15:04 GMT+01:00 Juraj Ďuďák<EMAIL_ADDRESS>
Yes.
Today, I pull the repository and make executables.
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/texane/stlink/issues/385#issuecomment-197345871

Sorry. The error is from commit 93e958f.

Thanks. But what I meant is, did you actually pulled the latest version
since I fixed something this afternoon (ie. stlink_version return code)
2016-03-16 16:02 GMT+01:00 Juraj Ďuďák<EMAIL_ADDRESS>
Sorry. The error is from commit 93e958f
https://github.com/texane/stlink/commit/93e958f1371b4b0d5fb7171ea0f850902754ce7c
.
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/texane/stlink/issues/385#issuecomment-197371676

Hi,
The problem seems to be linked with this piece of code from stlink-common.c;
`int stlink_chip_id(stlink_t *sl, uint32_t *chip_id) {
int ret;
//ret = stlink_read_debug32(sl, 0xE0042000, chip_id);
ret = stlink_read_debug32(sl, 0x40015800, chip_id);
if (ret == -1)
    return ret;

if (chip_id == 0)
    ret = stlink_read_debug32(sl, 0x40015800, chip_id);    //Try Corex M0 DBGMCU_IDCODE register address

return ret;

}`
So I replaced the 1st adress to try with the one from M0 and it worked. I haven't figured out yet if the problem is in the code section I posted or somewhere else related?

Error is here:
file: stlink-common.c;
int stlink_chip_id(stlink_t *sl, uint32_t *chip_id) {
    int ret;
    ret = stlink_read_debug32(sl, 0xE0042000, chip_id);
    if (ret == -1)
        return ret;
//    if (chip_id == 0)  <---- chip_id is address!
/* correct way is use pointer!! */
    if (*chip_id == 0)
        ret = stlink_read_debug32(sl, 0x40015800, chip_id);    //Try Corex M0 DBGMCU_IDCODE register address
    return ret;
}

fixed, thanks
2016-03-16 20:07 GMT+01:00 Juraj Ďuďák<EMAIL_ADDRESS>
Error is here:
file: stlink-common.c;
int stlink_chip_id(stlink_t *sl, uint32_t chip_id) {
int ret;
ret = stlink_read_debug32(sl, 0xE0042000, chip_id);
if (ret == -1)
return ret;
//    if (chip_id == 0)  <---- chip_id is address!
/ correct way is use pointer!! */
if (*chip_id == 0)
ret = stlink_read_debug32(sl, 0x40015800, chip_id);    //Try Corex M0 DBGMCU_IDCODE register address
return ret;
}
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/texane/stlink/issues/385#issuecomment-197494407


respect backoff.Stop to stop retrying forever

backoff.NextBackOff() might return backoff.Stop that we need to check against to stop retrying, otherwise every cb.Call() results in a retry.
quick ref: https://github.com/cenkalti/backoff/blob/4dc77674aceaabba2c7e3da25d4c823edfb73f99/backoff.go#L16

@rubyist, would you kindly review this one ? thanks

Looks good, thanks for the PR!


Loading a sqlite3 extension?

Hello.
Did i miss something or is it really not possible (diesel 1.3) to load a sqlite3 extension? I discovered this when trying to make a spatialite initialization sequence work, but without the extension it obviously can not work. Doing a pull request exposing the APIs on SqliteConnection would probably not be as hard, but how would you go about allowing extension loading in migrations (e. g. how of a bad idea would it be to allow extension loading by default)?

What's wrong with sql_query("SELECT load_extension('libspatialite-2.so');").execute(&connection)? as part of your startup sequence?

This is unfortunately not enough, because at least for the windows builds it is necessary to call the enable_load_extension c function which has no sql function counterpart, without it you end up with an unauthorized error (tried a few hours ago with the bundled 3.24 version in sqlite3-sys).

This would be great feature, currently I have to use a separate sqlite lib to load and query with extensions.


Update to include gcc 13.3 and 14.1

And make new release(s) as well.

Fixed via #37 and release 14.1.0.


Items Grouping Function

Can we add an items grouped by field function?  This would be another content query feature from the old content query webpart.
Thanks!!!!

@Cloudmaister grouping can be done using your own handlebar helper, see #1029 for an example.

@Cloudmaister I hope that @spplante 's answer helped you solve this?
I'll mark this as closed, but feel free to re-open it if you need more help.
Thanks @spplante for your help!


[BUG] Cannot handle multiple types

Describe the bug
It seems schemathesis cannot handle situation where there are multiple possible types
To Reproduce

Run: schemathesis run --base-url http://localhost:8888/ min-api.json
Error:

An internal error happened during a test run
Error: jsonschema.exceptions.ValidationError: ['string', 'number'] is not of type 'string'

Failed validating 'type' in schema[0]['properties']['type']:
    {'enum': ['array', 'boolean', 'integer', 'number', 'object', 'string'],
     'type': 'string'}

On instance['type']:
    ['string', 'number']

Add this option to your command line parameters to see full tracebacks: --show-errors-tracebacks

You can disable input schema validation with --validate-schema=false command-line option
In this case, Schemathesis can not guarantee proper behavior during the test run

If possible, please post a minimal version of your API schema that cause this behavior:
{
  "openapi": "3.0.2",
  "info": {
    "title": "mininum bug report example",
    "version": "0.0.1"
  },
  "paths": {
    "/test": {
      "post": {
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": [
                  "string",
                  "number"
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "200 response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}

Expected behavior
This should work and post valid payload
Environment (please complete the following information):

OS: linux
Python version: 3.8
Schemathesis version: 2.4.1
Spec version: Open API 3.0.2

Additional context
I checked that hypothesis-jsonschema supports that, so it seems to be coming from schemathesis itself.

Hi! Thank you for reporting this.
As per the official swagger documentation, this way of using multiple types is explicitly noted as incorrect.
# Incorrect
type:
  - string
  - integer

And it suggests using anyOf or oneOf instead:
# Correct
oneOf:
  - type: string
  - type: integer

The JSON schema we use to validate the input schemas is indeed points that type should be a string. It is different from the JSON schema behavior, which may be the cause of confusion. On the supported JSON Schema keywords the doc says:

These keywords are supported with minor differences:
type – the value must be a single type and not an array of types. null is not supported as a type, use the nullable: true keyword instead.

As the conclusion from my side - this behavior comes from the Open API spec, not from Schemathesis. Let me know if the proposed change fixes your case.

Oops, sorry. You're right, I got mixed up between openAPI and json schema. That works with that.

No problem! Feel free to open an issue or reach me on Gitter in case of any further questions :)


Rewrite tradier.py as Python package and publish on PyPI

Currently, tradier.py contains the entire functionality of the tradier API wrapper. Specifically, it:

imports relevant helper packages/modules/libraries (e.g. pandas, numpy, requests, etc...)
load the users' tradier API account number and authorization token by using dotenv.load_dotenv to parse a .env file in the root directory of the project. tradier.py defines environment variables ACCOUNT_NUMBER and AUTH_TOKEN that correspond to .env variables tradier_acct and tradier_token, respectively.
Define the six wrapper classes (Tradier, Account, Quotes, EquityOrder, OptionsData, OptionsOrder)
Define an environment variable for each class, save for Tradier. This was done to expedite testing of the classes while building them. It will probably not be necessary going forward.

Convert the contents/functionality of tradier.py into a Python package called uvatradier (tradier and an annoying number of similar variants are already taken). The end effect will be that a user can access the wrapper with the usual pip install process (e.g. pip install uvatradier).
It seems possible that the parent Tradier class and the five child classes that inherit Tradier will need to be broken up into their own individual files. The (class, script) pairs would then be something like {(Account, Account.py), ..., (OptionsOrder, OptionsOrder.py)}.
Possible essential components to consider:
• Create root directory folder uvatradier/
• Create __init__.py file in uvatradier/ (e.g. /uvatradier/__init__.py) and write any necessary init-related code (if any needed).
• Create setup.py file in the uvatradier/ root directory that calls the setuptools.setup Distutils gateway function.
After creating the package correctly, I image it could get used as follows:
[bash] % pip install uvatradier
successful installation message returned by pip
[bash] % python # python3, jupyter notebook to start python environment

import uvatradier
import dotenv
Assuming that a uvatradier/.env file exists and contains a tradier_acct variable and auth_token variable
dotenv.load_dotenv( )
ACCOUNT_NUMBER = os.getenv('tradier_acct')
AUTH_TOKEN = os.getenv('tradier_token')
Instantiate Account object and fetch account data.
account  = uvatradier.Account(ACCOUNT_NUMBER, AUTH_TOKEN)
account.get_user_profile()
Instantiate Quotes object and fetch bar data for Allegion
quotes = uvatradier.Quotes(ACCOUNT_NUMBER, AUTH_TOKEN)
quotes.get_timesales(symbol='ALLE')

Note - I've tried putting this task through chatGPT. It produced results that created a package, but it was not functioning correctly at all. After going back and forth for awhile, I'm a little doubtful about chat's ability for making python packages.
It would be great to get this done because then the tradier interface/wrapper can be imported into code where we implement actual machine learning models. Without it, things could still work, but it might become a pain to keep track of exactly where the tradier.py file is relative to the project's root directory.

Package can be found here: https://pypi.org/project/uvatradier/
To install:
pip install uvatradier
Still working out bugs though.

All done.
pip install uvatradier
works