readPixels callback function is not called in headless mode

Im successfully save images via callback function with GLFW windows, but in headless mode it doesn't work, Text message inside callback does not appear. To simplify I run test code from from filament_rendering_test.cpp, where I can be wrong here?
static void callback(void* buffer, size_t size, void* user) {
    std::cout << "Here" << std::endl;
}

int runTest()
{
    mEngine = Engine::create(Engine::Backend::OPENGL);
    mSurface = mEngine->createSwapChain(16,16);
    mRenderer = mEngine->createRenderer();

    mScene = mEngine->createScene();

    mCameraEntity = utils::EntityManager::get().create();
    mCamera = mEngine->createCamera(mCameraEntity);

    mView = mEngine->createView();
    mView->setViewport({0, 0, 16, 16});
    mView->setScene(mScene);
    mView->setCamera(mCamera);

    mColorGrading = ColorGrading::Builder()
           .toneMapping(ColorGrading::ToneMapping::LINEAR)
            .build(*mEngine);
    mView->setColorGrading(mColorGrading);

    mSkybox = Skybox::Builder().build(*mEngine);
    mScene->setSkybox(mSkybox);

    size_t size = 16 * 16 * 4;
    void* buffer = malloc(size);
    memset(buffer, 0, size);
    PixelBufferDescriptor pd(buffer, size,
          PixelDataFormat::RGBA, PixelDataType::UBYTE,
          callback, nullptr);

    Renderer* pRenderer = mRenderer;
    pRenderer->beginFrame(mSurface);
    pRenderer->render(mView);
    pRenderer->readPixels(0, 0, 16, 16, std::move(pd));
    pRenderer->endFrame();

    mEngine->flushAndWait();

}

Which version of Filament are you using? I'm able to run your code and see "Here" printed out.

Didn't we recently fixed something for this?

We fixed a crash with headless SwapChains on macOS/OpenGL: https://github.com/google/filament/commit/a09037cec0694c51f33dc75c4f25c449f6e60820

hello! I have the same problem - in headless mode it doesn't work, text msg inside callback does not appear.
I run test code filament_rendering_test.cpp too
@bejado
I use filament 1.9.9
macOS 10.15.7 (19H2)

@noseeevil If you run filament_rendering_test.cpp, what output do you see?
./build.sh -p desktop debug test_filament
out/cmake-debug/filament/test/test_filament '--gtest_filter=RenderingTest.*'

Note that currently that test is failing for unrelated reasons (you can apply https://github.com/google/filament/pull/3407 to temporarily fix it).

@noseeevil If you run filament_rendering_test.cpp, what output do you see?
./build.sh -p desktop debug test_filament
out/cmake-debug/filament/test/test_filament '--gtest_filter=RenderingTest.*'

Note that currently that test is failing for unrelated reasons (you can apply https://github.com/google/filament/pull/3407 to temporarily fix it).

I've tried as well, and it's working fine.

I've tried as well, and it's working fine.


[DPP-14] Parse HTML page

The current Python implementation does not parse the the HTML but only does a rough include around the tag of interest.

Add Tagsoup as a dependency.
Parse the page title and add it to the output.
Parse the availability tag and add the content to the output.

Parsing each page and constructing a data type.


Direct send of a report request failed because of endpoints.repackaged.com.google.api.client.http.HttpResponseException

Hello,
I have a simple API built with Endpoints Frameworks (v. 2.0.7) for App Engine Standard (Java 7).
I've added API Management following the documentation at https://cloud.google.com/endpoints/docs/frameworks/java/adding-api-management.
The API has API keys with IP restriction (clients are web servers).
For most of the time all works fine, but sometimes (very rarely, in truth) I see this error in logs:
com.google.api.control.Client flushAndScheduleReports: direct send of a report request failed because of endpoints.repackaged.com.google.api.client.http.HttpResponseException: 400 (Client.java:354)
{
  "error": {
    "code": 400,
    "message": "Precondition check failed.",
    "errors": [
      {
        "message": "Precondition check failed.",
        "domain": "global",
        "reason": "failedPrecondition"
      }
    ],
    "status": "FAILED_PRECONDITION"
  }
}

I cannot actually understand the origin of the error and cannot find any clue in docs.
I noticed it happens when a new key is used for the first time by a client or when an existing key is edited, but this explanation of the error is a pure supposition.
Thank you.

@emremogn we probably need your project ID and service name to do some investigation. If you click the documentation page, you can click "Send Feedback" at the top right and fill in information there, if you don't want to reveal information here.

@tangiel sent a product feedback with additional information (project ID, service name, service version). Thank you.

@emremogn Are you using an autoscaling app or basic/manual?

@tangiel An autoscaling app.

Can you estimate how many requests per second or minute you get?

Requests can have an extreme variance; the API does nothing for long periods and then clients can generate sudden and heavy traffic in very short intervals (thousands of requests in few minutes). I'm sorry, but I cannot estimate, at the moment, the rate (requests / s or requests / min).

I think this is related. I think if you switch to basic scaling, it will fix this issue. The reason is because API management metrics are typically aggregated and flushed via a background thread, but automatic scaling doesn't support background threads. In this case, metrics are aggregated and flushed after some requests. But if your traffic is too intermittent, stale data gets sent, causing this issue.

Basic scaling fixed the issue. Metrics in endpoints dashboard are now ok. Thank you.

Just a clarification: does the background thread used by the API management run indefinitely? Dynamically added instances never shutdown, even if there are no requests and regardless of idle timeout. Am I wrong?

Yes, the thread runs indefinitely. I'm not sure what you mean by your second question. Auto and basic scaling instances should shut down when they aren't used.

It seems to me that API Management causes the instances to remain standing.
To test it, I've created a new endpoint project with no API Management. I've set basic scaling in config (appengine-web.xml) and instances have an idle timeout of 3m.
Instances are started and then, ~3m after receiving their last request, properly stopped.
In logs I can see
08:55:43.306 GET 404 234 B 3,1 s Unknown /_ah/start
08:58:47.252 GET 200 2 B 82 ms Unknown /_ah/stop
Now, if I add API Management to the project, instances (all the dinamically added instances) never shut down after receiving their last request, despite of idle timeout set in config.
Does the background thread used by API Management causes the instances to remain standing?
I can see a remarkable consumption and increasing costs also when there's no traffic at all and after hours since the last received request.
Thank you.

Thanks for the report. It appears you are correct. I'm looking into ways to rectify this.

@tangiel Hello, any news about this issue? Thank you very much.

I'd like an update too.
I had noticed the behaviour also, but hadn't traced it as far as @emremogn did.

Also, it is really confusing to have the log for the management API intrude on the log for a request.
It would be much better if the management API Thread generated its own entry. After all it should be entirely orthogonal to the requests.

I have a potential solution that hasn't been implemented yet, involving spinning down the background thread if no requests have been sent for awhile. It should solve this problem, if it works correctly. The log of the background thread in the request log is, unfortunately, beyond the scope of this project. This is an App Engine usability problem.


HW1

Description
Provide a brief description of the PR here.
Weekly Journal
Provide your weekly journal entry here.
Questions

[ ] Question1

Thank you, Sure I just commit and push it to my fork. Do I need to pull
again?
2018-07-16 15:38 GMT-04:00 Dominic A. Sirianni<EMAIL_ADDRESS>
@dsirianni requested changes on this pull request.
Nice work! Would you mind removing the binary file .DS_Store, before I
merge your PR? I'd like to keep these directories code-only. You can remove
it from your PR by using git rm .DS_Store (on the command line) or with
the desktop client, and then commit/push to your fork.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/GT-IDEaS/SkillsWorkshop2018/pull/17#pullrequestreview-137566413,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ad7GpblD5n424MpZ8Lg7BV1vutm2mhNoks5uHOuygaJpZM4VQkKe
.


Converting back side to D64 not possible

I had read a 1541 disk with a flippy modded drive to a SCP file.
With the greaseweazle tools it is only possible to extract a D64 from side A. For extracting side B it is nessesary to reverse the data. There is no possibility to tell greaseweazle tool to reverse the data to extract the D64 image. With g64conv it is possible, so the read data is ok.
The same is by playing back a D64 to the floppy. There is a need for a switch to reverse the data.

Thanks for this. I'm away this week but will be back in touch from the weekend to try out some patches.

Can you please supply a flippy flux file as gathered from Greaseweazle. For example as SCP or Kryoflux tream files? This would allow me to do some testing for this feature via "gw convert" and then you will only need to test the "gw read" and "gw write" changes.

test_ab_full.zip
test_ab.zip
I uploaded two files. Both are from the same 1541 disk.
test_ab is read with step 2 (Tracks 0-39)
test_ab_full is read with 80 tracks (with halftracks)

From my set of test images - those are my flippy disk test images for 1541 (and compatible):
sampleimages-flippydisk.7z.zip

I have a new gw convert option for you to try. This is on branch flippy-reverse. You can find Windows build here (you need to be logged in to GitHub to see the Artifact links):
https://github.com/keirf/greaseweazle/actions/runs/10487456321
Or if on Mac or Linux you can try installing with pipx:
pipx install git+https://github.com/keirf/greaseweazle@flippy-reverse

Here is a command line I use to convert a flippy side 1:
gw convert a.scp --tracks=hswap --reverse a.d64

I suppose the question then is whether this suffices?

Do you want to be able to reverse during gw read of side 1?
Do you want to be able to gw read both sides at once, reversing only side 1, and converting/analysing the two sides as two separate D64s?
Do you want to be able to write flippy disks?

And so on. The basic reverse mechanism was trivial to implement, so it's all about the workflow integration.

Yes, it works on an image I only read side 1.
I tested it with two images, where I read both sides, one with 80 tracks, one with 40 (step=2), but I'm not able to extract side 1.
These are the both files I attached above.
Your questions:

It is not necessary, but would be grea, because other tools wourld be able to read the SCP, too
It's the same. It's not necessary, but great
yes

Yes, it works on an image I only read side 1. I tested it with two images, where I read both sides, one with 80 tracks, one with 40 (step=2), but I'm not able to extract side 1. These are the both files I attached above.

I can definitely extract side 1 from your double-sided images. The trick is in the --tracks= option:
gw convert test_ab.scp test_ab_side1.d64 --tracks=hswap --reverse
gw convert test_ab_full.scp test_ab_full_side1.d64 --tracks=hswap:step=2 --reverse

Your questions:

It is not necessary, but would be grea, because other tools wourld be able to read the SCP, too
It's the same. It's not necessary, but great
yes

Then I think I should add the reverse option to the --tracks option. So you could do a raw dump like:
gw read --tracks=c=0-39:h1.off=-8:h1.reverse a.scp

What do you think?

Edit: OK, now I was successful with both images. But why I have not to set the head to h1? In the image are datas for h0 and h1.

Because hswap swaps the heads, so h1 becomes h0.

Because hswap swaps the heads, so h1 becomes h0.
But why it doesn't work with --tracks=c=0-39:h=1? That sould be the same result or what's wrong in this thinking?

Then I think I should add the reverse option to the --tracks option.

Actually you can do a raw plain old gw read --tracks=c=0-39:h1.off=-8 a.scp and then split out and analyse later. For example:
gw convert --tracks=h=0 a.scp a_side0.scp
gw convert --tracks=h=0:hswap --reverse a.scp a_side1.scp

Now you have split the two sides into separate flux files, with flux in the correct track order for both. You can now use third-party tools, or go through gw convert again, as you prefer:
gw convert a_side0.scp a_side0.d64
gw convert a_side1.scp a_side1.d64

This doesn't give a story on writing, but the sides could be written separately with side1 something like:
gw write --tracks=hswap:h0.off=-8 --reverse a_side1.d64

This does avoid adding even more complexity to --tracks= syntax. I don't know. I suspect most people will pull outless hair having it as a top-level option (--reverse) like this.

Because hswap swaps the heads, so h1 becomes h0.
But why it doesn't work with --tracks=c=0-39:h=1? That should be the same result or what's wrong in this thinking?

Because the format analyser is set up on tracks 0-39 head 0. So data presented as head 1 does not ge passed to the analyser. Hence the need to rename the tracks onto head 0, which is what hswap does.

Because the format analyser is set up on tracks 0-39 head 0. So data presented as head 1 does not get passed to the analyser. Hence the need to rename the tracks onto head 0, which is what hswap does.

OK, now I understood.

Then I think I should add the reverse option to the --tracks option.

Actually you can do a raw plain old gw read --tracks=c=0-39:h1.off=-8 a.scp and then split out and analyse later. For example:
gw convert --tracks=h=0 a.scp a_side0.scp
gw convert --tracks=h=0:hswap --reverse a.scp a_side1.scp

Now you have split the two sides into separate flux files, with flux in the correct track order for both. You can now use third-party tools, or go through gw convert again, as you prefer:
gw convert a_side0.scp a_side0.d64
gw convert a_side1.scp a_side1.d64

This doesn't give a story on writing, but the sides could be written separately with side1 something like:
gw write --tracks=hswap:h0.off=-8 --reverse a_side1.d64

This does avoid adding even more complexity to --tracks= syntax. I don't know. I suspect most people will pull out less hair having it as a top-level option (--reverse) like this.

That sounds good.

I will look into getting this all done and rolled into the next release, 1.19.


Fix the Github Actions CI for quickstarts

Fixes the filtering on a branch, which has been renamed to 'development' meanwhile.

For some reason, the CI thinks quickstarts are already on Java 11. What?

The facility location quickstart declares version 11, that's why it has failed.


new NativeEventEmitter() requires a non null argumen

Im getting the next error:

does anyone had a solution i follow the steps but i dont find the ansewer to resolve this bug

@AlbertJohanson  Can I ask you to give me a bit more details?

Sure! when i call the module in a component for my app and i call any of the method in the API throws me that error.

@tr3v3r
Sure! when i call the module in a component for my app and i call any of the method in the API throws me that error.

@AlbertJohanson By details I mean RN and lib version. bare or expo projects . Android or iOS and etc.

I see this error in Android - RN version 71, lib version 2.5.1

+1

I'm facing the same issue on Android SDK version 33, RN version 0.72.6, lib version 2.6.0.
Mostly I could ignore the warning but I'm facing issues like wrong return types and printer not being able to print on release after a few minutes screen off.


Add RestartPolicy parameter to Create Container

This has just randomly showed up in API 1.14 docs. I am not even sure why they modify docs after releasing it. It surely wasn't there before... https://docs.docker.com/reference/api/docker_remote_api_v1.14/#create-a-container

Fixed now in v<IP_ADDRESS>.


Seen this? RRDN GANS

https://github.com/idealo/image-super-resolution
You might be tempted to put that in your nice looking GUI as wel?

Thank you! I gave a look but the models are for Tensorflow not Pytorch so are not compatible


Add toggle documentation functionality

Fixes #674
I haven't documented yet how the setting works since I first want to get a thumbs up from @hrsh7th, but the idea is:

If completion.doc_visibility is 'OnEntryChange', then the documentation window will appear when the currently selected entry changes.
If set to 'Toggle', then it is assumed that the user will create the corresponding mapping to open/close the window.
If set to 'Disabled', then the window will never open.

This might be confusing with the current way to disable the documentation window via window.documentation, so if this goes in we might want to deprecate that setting.

Found a couple of issues. Will publish again soon.

I'll review it. Thank you.

Ahhh for some reason GitHub isn't showing all my commits. I'll open another PR.


mysql-cdc  MySQL user doesn't have enough privileges

Describe the bug
source cannot pass validation: INVALID_ARGUMENT: MySQL user doesn't have enough privileges: [RELOAD, SHOW DATABASES, REPLICATION SLAVE, REPLICATION CLIENT, SELECT]
Error message/log
24-03-18 21:12:34] [XX000] ERROR: Failed to execute the statement
[2024-03-18 21:12:34] Caused by these errors (recent errors listed first):
[2024-03-18 21:12:34] 1: gRPC request to meta service failed: Internal error
[2024-03-18 21:12:34] 2: failed to create source worker
[2024-03-18 21:12:34] 3: failed to create SplitEnumerator
[2024-03-18 21:12:34] 4: source cannot pass validation: INVALID_ARGUMENT: MySQL user doesn't have enough privileges: [RELOAD, SHOW DATABASES, REPLICATION SLAVE, REPLICATION CLIENT, SELECT]

To Reproduce
CREATE TABLE orders (
order_id int,
price decimal,
PRIMARY KEY (order_id)
) WITH (
connector = 'mysql-cdc',
hostname = 'localhost',
port = '3306',
username = 'root',
password = '123456',
database.name = 'db01',
table.name = 'orders'
);
Expected behavior
I give root user all permissions

How did you deploy RisingWave?
docker
The version of RisingWave
PostgreSQL 9.5.0-RisingWave-1.7.1 (3a545de8b9a46b80fb3172ba406cd5e5a74ce540)
Additional context
No response

Hi @SparkLover
are there enough permissions granted to the corresponding user in MySQL? https://docs.risingwave.com/docs/current/ingest-from-mysql-cdc/#set-up-mysql:

CREATE USER 'user'@'%' IDENTIFIED BY 'password';
GRANT SELECT, RELOAD, SHOW DATABASES, REPLICATION SLAVE, REPLICATION CLIENT ON . TO 'user'@'%';
FLUSH PRIVILEGES;

thanks ：
I can use it after creating a new user according to the official website's method. It's strange that it can't work if I use the root user.
At 2024-03-18 21:30:27, "lmatz" @.***> wrote:
Hi @SparkLover
are there enough permissions granted to the corresponding user in MySQL? https://docs.risingwave.com/docs/current/ingest-from-mysql-cdc/#set-up-mysql:
CREATE USER 'user'@'%' IDENTIFIED BY 'password';
GRANT SELECT, RELOAD, SHOW DATABASES, REPLICATION SLAVE, REPLICATION CLIENT ON . TO 'user'@'%';
FLUSH PRIVILEGES;
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

cc: @StrikeW @cyliu0   if

I can use it after creating a new user according to the official website's method. It's strange that it can't work if I use the root user.

is expected?

Hi @SparkLover , what version of MySQL are you using?

Hi @SparkLover, I think in v1.7.2 we have fixed the issue with GRANT ALL.  You may try out the v1.7.2 version.

thanks:
mysql 5.7
At 2024-03-19 12:56:28, "lmatz" @.***> wrote:
Hi @SparkLover , what version of MySQL are you using?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

thanks ，I'll try v1.7.2 versions
At 2024-03-19 13:13:59, "StrikeW" @.***> wrote:
Hi @SparkLover, I think in v1.7.2 we have fixed the issue with GRANT ALL. You may try out the v1.7.2 version.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

Sorry, the fix PR
#15395 didn't cherry-picked into v1.7.2 yet
We didn't consider the GRANT ALL for mysql 5.7 before, the fix has merged in main and will go into v1.8.


Trying to solve a 100-vertex Max-Cut problem but not getting accurate results?

Hello,
I am attempting to solve a 100-vertex max cut graph by using the max-cut code given here and inserting my own pre-built matrix, but even after increasing numruns to 3000 and chain_strength to 8, I am only getting a response that is 89.4% accurate after about 20 seconds of run time.
Meanwhile, using Dwave's simulated annealing program (https://docs.ocean.dwavesys.com/projects/neal/en/latest/reference/sampler.html) to solve the same matrix, I get a fully-solved response that is 100% accurate after just 0.01 seconds.
Is this the optimal quantum performance we could expect for a 100-vertex graph (i.e. <100% accuracy), or does my quantum annealing code need further tweaking? Are there other solvers or methods I should consider using?
For reference, I am simply using the code in this codebase but have inserted a 100-vertex graph with edges as such:
all_edges = [(1, 36), (1, 37),...]

and have edited the following two parameters as such:
# Set up QPU parameters
chainstrength = 8
numruns = 3000

Everything else in the code is basically the same.
Thanks and Best Regards,
R

Hi @robliou , because this is not a bug, but rather a question of how to optimize a program,  these sorts of questions will be answered better and more quickly in our community.

Hi @arcondello ,
I appreciate your prompt response! I have already posted this question to the community forum as well; hopefully I can get a response soon about how to utilize and optimize this type of problem:

Thanks and Best,
Rob


Add CWL version of the GATK from-FASTQ-to-Analysis-ready-BAM Workflow

Issue #, if available: N/A
Description of changes:
This change adds the first cwl workflow to the repository. It is a migration of the corresponding WDL workflow.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Thank you. I chosen to add it as the the builder-scripts expect this file: https://github.com/aws-samples/amazon-omics-tutorials/blob/74fc4a99034645db92fb9016cecea18f7f52d17b/example-workflows/_scripts/builder/init.py#L269


Analogous to otherLinks.displayIfNone for typingSnippets

Hello 👋
I have this import typing snippet:
{
   "sequence": "import",
   "body": "import { $0 } from '$1'",
   "when":{
      "languages": [...],
      "locations": [ "lineStart" ],
      "otherLines": [
         {
            "line": -1,
            "testRegex": "import(\\s)?({|\\w)|^$",  // If prev line is `import {` or `import Word`, or empty line
            "displayIfNoLine": true
         }
      ]
   }
}

I check to see if the previous line is an import or an empty line. This works fine if there is a string before it, but if there is no string, the snippet doesn't work, even with displayIfNoLine

Sorry, I missed the priority of this issue somehow, and I must admit otherLines is one of the most not tested features of the extension (hope to fix it soon!).

the snippet doesn't work

Not sure why, I'll look into it tomorrow.
I'm also thinking of renaming displayIfNoLine property to something else like acceptIfOutsideFile

Hey, @AgentRBY just realized via repository search that displayIfNoLine was never implemented. I just pushed a lot of fixes & refactors to make otherLines finally stable, so in theory. Also remember that you can always use typing snippet with fileStart location.
I also added skipEmptyLines for your case:
{
"sequence": "import",
            "body": "import { $0 } from '$1'",
            "when": {
                "locations": [
                    "lineStart"
                ],
                "otherLines": [
                    {
                        "line": -1,
                        "displayIfNoLine": true,
                        "skipEmptyLines": true,
                        "testRegex": "(^import(\\s)?({|\\w)$)|(^$)", // If prev line is `import {` or `import Word`, or empty line
                    }
                ]
            },
        },


the way to update docs off-cycle

The problem we have is how to update the docs between the releases when we need to add missing docs or fix something
the proposal is to have a long-lived branch named __docs that will only receive pull requests/pushes with docs additions. On push event to this branch we will rebuild the docs.
Once in a while we sync the merge __docs to master for master to have the additions made to __docs.
the workflow:

on a tagged release we merge the master to __docs
then, between the releases, if changes are needed to be rendered on the docs portal we create a PR that targets __docs branch
when docs changed is approved and such PR is merged, the changes will be pushed to __docs branch. That will trigger a documentation build and publish process
when we develop new features the PR will target master branch, therefore the docs for the features which are not yet released will not appear on the doc site.
if the changes are made to the structure of the doc portal in the __docs branch, and these changes are needed in the main branch, we merge __docs to master, not to the PR branch.

instead of "Once in a while we sync the merge __docs to master for master to have the additions made to __docs."
at step3. we should push the same changes to __docs and master

we should push the same changes to __docs and master

This won't be easy... to push the same change to __docs and master you would need to create two PRs targeting specific branch
I find it easier to just merge __docs into master. Potentially every time you touch docs dir in the feature PR


Agent flushes edge job entries when collecting logs

Before you start please confirm the following.

[X] Yes, I've searched similar issues on GitHub.
[X] Yes, I've checked whether this issue is covered in the Portainer documentation or knowledge base.

Problem Description
Agent flushes edge job entries when collecting logs
Expected Behavior
Agent should not flushes edge job entries when collecting logs
Actual Behavior
Agent flushes edge job entries when collecting logs
Steps to Reproduce
Check logs fro agent
{"level":"debug","schedule_id":1,"version":1,"time":1665510381,"caller":"/home/vsts/go/src/github.com/portainer/agent/edge/scheduler/scheduler.go:75","message":"found schedule with logs to collect"}
{"level":"debug","schedule_count":1,"time":1665510381,"caller":"/home/vsts/go/src/github.com/portainer/agent/edge/scheduler/scheduler.go:122","message":"writing cron file on disk"}
{"level":"debug","job_identifier":1,"time":1665510381,"caller":"/home/vsts/go/src/github.com/portainer/agent/edge/scheduler/logs.go:34","message":"started job log collection"}
Portainer logs or screenshots
No response
Portainer version
2.18.4
Portainer Edition
Business Edition (BE/EE) with 5NF / 3NF license
Platform and Version
Docker 24.0.3
OS and Architecture
ARM64
Browser
No response
What command did you use to deploy Portainer?
No response
Additional Information
No response

Agent PR -> https://github.com/portainer/agent/pull/477


Fix "window is not defined" when using HMR on worker

This fixes an error message that I got while using HMR in webpack-dev-server with target: "webworker". The error message can be reproduced with the example linked in this comment. @alexander-akait suggested to make a PR with a fix.
This PR just checks typeof window before calling window.location.reload() and changes the warning messages slightly when the page cannot be reloaded by webpack.
What kind of change does this PR introduce?
bugfix.
Did you add tests for your changes?
I tried to, but then I realized that the file /hot/dev-server.js is not tested anywhere, yet. Setting up a test scenario from scratch seems like a very hard thing to do :wink:.
I tested this manually with the example above to make sure it works as intended.

Does this PR introduce a breaking change?
no.
What needs to be documented once your changes are merged?
nothing.
PS: Thank you all for your fantastic work with this project!

The CLA signature website gives me a 502 error. Will try again later.


error while running angular4 application

I have an angular4 application in which I have imported private modules I had created and published in an NPM registry (these are also individual angular4 apps). Now, when I am trying to start the application I am getting the error. (P.S. I am able to run the application successfully If I comment the Pvt. module imports and uncomment it only after the app is successfully built)
ERROR in Error: Error encountered resolving symbol values statically. Calling function 'ɵmakeDecorator', function calls are not supported . Consider replacing the function or lambda with a reference to an exported function, resolving symbol NgModule in C:/sinopia/test/gtest/ node_modules/<EMAIL_ADDRESS>resolving symbol AppModule in C:/sinopia/test/gtest/node_modu<EMAIL_ADDRESS>resolving symbol AppModule in C:/sinopia/test/gtest/node_modules/@netapp/flash-adviso r-ui/src/app/app.module.ts     at Error (native)     at syntaxError (C:\sinopia\test\gtest\node_modules\@angular\compiler\bundles\compiler.umd.js:1513:34)     at simplifyInContext (C:\sinopia\test\gtest\node_modules\@angular\compiler\bundles\compiler.umd.js:23802:23)     at StaticReflector.simplify (C:\sinopia\test\gtest\node_modules\@angular\compiler\bundles\compiler.umd.js:23814:13)     at StaticReflector.annotations (C:\sinopia\test\gtest\node_modules\@angular\compiler\bundles\compiler.umd.js:23263:41)     at _getNgModuleMetadata (C:\sinopia\test\gtest\node_modules\@angular\compiler-cli\src\ngtools_impl.js:126:31)     at _extractLazyRoutesFromStaticModule (C:\sinopia\test\gtest\node_modules\@angular\compiler-cli\src\ngtools_impl.js:101:26)     at C:\sinopia\test\gtest\node_modules\@angular\compiler-cli\src\ngtools_impl.js:117:27     at Array.reduce (native)     at _extractLazyRoutesFromStaticModule (C:\sinopia\test\gtest\node_modules\@angular\compiler-cli\src\ngtools_impl.js:116:10)     at Object.listLazyRoutesOfModule (C:\sinopia\test\gtest\node_modules\@angular\compiler-cli\src\ngtools_impl.js:52:22)     at Function.NgTools_InternalApi_NG_2.listLazyRoutes (C:\sinopia\test\gtest\node_modules\@angular\compiler-cli\src\ngtools_api.js:79:3 9)     at AotPlugin._getLazyRoutesFromNgtools (C:\sinopia\test\gtest\node_modules\@ngtools\webpack\src\plugin.js:207:44)     at _donePromise.Promise.resolve.then.then.then.then.then (C:\sinopia\test\gtest\node_modules\@ngtools\webpack\src\plugin.js:443:24)     at process._tickCallback (internal/process/next_tick.js:103:7) webpack: Failed to compile.

Hello, errors like Error encountered resolving symbol values statically mean that there has been some problem in statically analyzing your app.
Angular CLI always runs some statical analysis, even on JIT mode, in order to discover lazy-loaded routes.
This may cause a lot of static analysis errors to surface when importing your project into the CLI, or upgrading for older versions where we didn't run this kind of analysis.
Below are good resources on how to to debug these errors:

https://angular.io/guide/metadata
https://gist.github.com/chuckjaz/65dcc2fd5f4f5463e492ed0cb93bca60
https://github.com/rangle/angular-2-aot-sandbox#aot-dos-and-donts

If your problem still persists, it might be a bug with the Angular Compiler itself.
In that case, please open an issue in https://github.com/angular/angular.


koord-scheduler: DeviceShare plugin allocates devices in ascending order of Minor

Signed-off-by: Joseph<EMAIL_ADDRESS>Ⅰ. Describe what this PR does
The DeviceShare plug-in allocates devices in ascending order of Minor to ensure predictable basic allocation logic.

Ⅱ. Does this pull request fix one issue?

Ⅲ. Describe how to verify it
Ⅳ. Special notes for reviews
V. Checklist

[x] I have written necessary docs and comments
[x] I have added necessary unit tests and integration tests
[x] All checks passed in make test

/approve


is able on ubuntu?

Hi,
thanks for sharing, i need to run my matlab code in ubuntu! so i decide to use docker, but for using your container it seems i need to install matlab in ubuntu which i'm not sure to be possible! is there any way to install matlab in ubuntu?
thanks

sorry, another question, is it possible to create a docker which runs windows server, and then within this container run a matlab code?


Fix the typedefs for BaseOrderInfo and WebsocketClient

@fb55 😄

@fb55 updated, not sure what I was going for with the last one...


Deep link to actual method details page for alarm, not the top level maint page

Type of issue

[x ] Bug
[ ] New feature
[ ] Improvement

Description
For an alarm, we need to Deep link to actual alarm details page, not the top level maint page

Related to the routing issue from https://github.com/Azure/pcs-remote-monitoring-webui/issues/438

@timlaverty Is this the same issue as https://github.com/Azure/pcs-remote-monitoring-webui/issues/438? The alarms list in the dashboard?

yes, look like dups.

Closing as a duplicate


Create an ERD for the web application database.

[ ] Identify the entities in the application, such as users, posts, jobs, and connections.

[ ] Determine the relationships between entities, such as one-to-one, one-to-many, or many-to-many.

[ ] Define the attributes for each entity, including primary keys, foreign keys, and other relevant properties.

[ ] Use an ERD tool or software (e.g., DBdiagram.io) to create the diagram.

[ ] Organize the entities, relationships, and attributes in a clear and logical manner.

[ ] Validate the ERD to ensure that it accurately represents the database structure and business logic of the application.

[ ] Collaborate with developers and instructors, to gather feedback and make necessary revisions.

[ ] Document any additional information or constraints, such as data types, cardinality, or constraints, within the ERD.


stop \ terminate running jobs without waiting for the timeout from the pods

Brief summary
Hi, is it possible to stop \ terminate a running job without waiting for the timeout from the pods?
deleting the k6 crd object will remove the pods but the operator will keep waiting for pod status until the timeout is reached
(version 0.0.7)
k6-operator version or image
operator:controller-v0.0.8rc1
K6 YAML
apiVersion: k6.io/v1alpha1
kind: K6
metadata:
name: k6-load-50fab991-31bd-48f6-ac5c-b3e879f10ce3
spec:
cleanup: post
arguments: --out influxdb=http://.....
parallelism: 6
runner:
resources:
limits:
cpu: "4"
memory: 5000Mi
script:
configMap:
name: k6-load-50fab991-31bd-48f6-ac5c-b3e879f10ce3-config
file: k6-load-50fab991-31bd-48f6-ac5c-b3e879f10ce3.tar
separate: true
Other environment details (if applicable)
kube v1.20, k6 v0.0.7
Steps to reproduce the problem

deploy k6 yaml and wait for k6 object status to become "started"
delete k6 object
all pods will terminiate immediately but the operator will keep waiting for pod status

2022-10-02T15:10:16.564Z	INFO	controllers.K6	0/6 jobs complete	{"k6": "k6-loadtest1/k6-load-50fab991-31bd-48f6-ac5c-b3e879f10ce3"}
2022-10-02T15:10:46.564Z	INFO	controllers.K6	0/6 jobs complete	{"k6": "k6-loadtest1/k6-load-50fab991-31bd-48f6-ac5c-b3e879f10ce3"}
2022-10-02T15:11:16.564Z	INFO	controllers.K6	0/6 jobs complete	{"k6": "k6-loadtest1/k6-load-50fab991-31bd-48f6-ac5c-b3e879f10ce3"}

once the k6 job timeout threshold is reached the operator will return an error message and will be able to start a new k6 job if any

2022-10-02T15:15:46.564Z	ERROR	controllers.K6	Waiting for pods to finish ended with error	{"k6": "k6-loadtest1/k6-load-50fab991-31bd-48f6-ac5c-b3e879f10ce3", "error": "timed out waiting for the condition"}
github.com/go-logr/zapr.(*zapLogger).Error
/go/pkg/mod/github.com/go-logr/zapr@v0.1.0/zapr.go:128...

2022-10-02T15:15:46.564Z	INFO	controllers.K6	Changing stage of K6 status to finished	{"k6": "k6-loadtest1/k6-load-50fab991-31bd-48f6-ac5c-b3e879f10ce3"}
2022-10-02T15:15:46.570Z	ERROR	controllers.K6	Could not update status of custom resource	{"k6": "k6-loadtest1/k6-load-50fab991-31bd-48f6-ac5c-b3e879f10ce3", "error": "Operation cannot be fulfilled on k6s.k6.io "k6-load-50fab991-31bd-48f6-ac5c-b3e879f10ce3": StorageError: invalid object, Code: 4, Key: /registry/k6.io/k6s/k6-loadtest1/k6-load-50fab991-31bd-48f6-ac5c-b3e879f10ce3, ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition: 01095a6b-f88c-4ee5-b1a2-5a828febe07b, UID in object meta: "}
github.com/go-logr/zapr.(*zapLogger).Error...

2022-10-02T15:15:46.570Z	ERROR	controller	Reconciler error	{"reconcilerGroup": "k6.io", "reconcilerKind": "K6", "controller": "k6", "name": "k6-load-50fab991-31bd-48f6-ac5c-b3e879f10ce3", "namespace": "k6-loadtest1", "error": "Operation cannot be fulfilled on k6s.k6.io "k6-load-50fab991-31bd-48f6-ac5c-b3e879f10ce3": StorageError: invalid object, Code: 4, Key: /registry/k6.io/k6s/k6-loadtest1/k6-load-50fab991-31bd-48f6-ac5c-b3e879f10ce3, ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition: 01095a6b-f88c-4ee5-b1a2-5a828febe07b, UID in object meta: "}
github.com/go-logr/zapr.(*zapLogger).Error...

2022-10-02T15:15:47.571Z	INFO	controllers.K6	Request deleted. Nothing to reconcile.	{"k6": "k6-loadtest1/k6-load-50fab991-31bd-48f6-ac5c-b3e879f10ce3"}
2022-10-02T15:15:47.571Z	DEBUG	controller	Successfully Reconciled	{"reconcilerGroup": "k6.io", "reconcilerKind": "K6", "controller": "k6", "name": "k6-load-50fab991-31bd-48f6-ac5c-b3e879f10ce3", "namespace": "k6-loadtest1"}

Expected behaviour
The operator should notice that k6 object was deleted and stop waiting for the return respond from pods
Actual behaviour
deleting the k6 crd object will remove the pods but the operator will keep waiting for pod status until the timeout is reached

Thanks for opening the issue, @shayb01. It will not be resolved separately but as part of https://github.com/grafana/k6-operator/issues/138.

I believe this issue was resolved during all the work on #138 (PRs https://github.com/grafana/k6-operator/pull/169 and https://github.com/grafana/k6-operator/pull/213) Closing this. @shayb01, please update to the latest version of k6-operator and if smth is off, let us know!


Update the documentation (manpage) for accessing typical swift openstack storage?

Hi,
I was trying to access a swift backend on openstack, but got errors like "Bad Request" with my config file:
$ cat  ~/.rclone.conf
[myoscluster]
type = swift
user = $OS_USERNAME
key = $OS_PASSWORD
auth = $OS_AUTH_URL
tenant = $OS_TENANT_NAME

After some fair amount of debugging, I found one example here:
https://elastx.se/en/blog/getting-started-application-backups-to-swift
Where he added "domain = default"
And after that it works fine.
Could you update the documentation accordingly?
Best,
(rclone v1.30, Sabayon Linux amd64 17.04, Openstack swift (served by ceph))

Are you using v3 auth?

i'm using v3 but it doesn't work for me
[bucket2]
type = swift
user = username
key = password
auth = http://keystoneauthurl:5000/v3/
domain = mydomain
tenant = myproject
region = region1

the authorization is not working:
$ rclone lsd bucket2:
2018/10/24 15:49:23 Failed to create file system for "bucket2:": Authorization Failed

'openstack container list' works

@kisahm what if you set the environment variables you set for openstack container list then use
[bucket2]
type = swift
env_auth = true

Does that work?


fix fsl build - add require and bison/flex versions to cmakelists

build fix for aaron's issue
#189
I have added checks to CMakeLists for Flex 2.6.4 and Bison 3.8.2.
This is a likely cause but I can not duplicate the problem on my system.
I have specified the versions I have tested with.
I have added guards for the macros in the Flex file (fsl.l), just in case
I have added werror and wall to fsl cmakefile

Checks have failed for MacOS.
CMake Error at /Users/runner/miniconda3/envs/riscv_perf_model/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find BISON: Found unsuitable version "2.3", but required is at
least "3.8.2" (found /usr/bin/bison)

Does MacOS have support for bison 3.8.2 or later?
Yeah, it's supported: https://anaconda.org/conda-forge/bison, but not part of the github/workflows/conda/macos_env.yml file.

For giggles, can you try adding this line to that file?
  - bison=3.*

did not work.  It's finding bison 2.3, which was released apparently 18 years ago.
I don't know anything about MacOs but is the image out of date ? Ubuntu image seems to find the package.
Supposedly Bison 3.8.3 was released nov/dec 2021. Not cutting edge.
We've got people that work on the Macs and can compile our model with FSL.
-- Found FLEX: /Users/runner/miniconda3/envs/riscv_perf_model/bin/flex (found suitable version "2.6.4", minimum required is "2.6.4")
CMake Error at /Users/runner/miniconda3/envs/riscv_perf_model/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find BISON: Found unsuitable version "3.8", but required is at
  least "3.8.2" (found

Well bummer.  For those that have Macs what is the path to bison?  Is it in conda?

Well, let me retract my claim. I'm asking, but I might be wrong about the time frame. We only really support 22.04 ubuntu but people have been able to run on their Macs, as I said I might be wrong about when the last time someone did that. I am double checking.
There are a number of hits for problem w/ bison and macos and it putting it into an unexpected PATH.
What other options might there be if this is can not be solved?


Kube-Prometheus can't access k3s kubernetes version

Environmental Info:
K3s Version:

k3s version v1.30.0+k3s1 (14549535)
go version go1.22.2
Node(s) CPU architecture, OS, and Version:

Linux rageeb-onprem 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Cluster Configuration:

NAME            STATUS   ROLES                  AGE     VERSION
rageeb-onprem   Ready    control-plane,master   5d12h   v1.30.0+k3s1
Describe the bug:

I installed the kube-prometheus stack  latest version with these values
prometheusOperator:
tls:
enabled: false
adminissionWebhooks:
enabled: false
I'm getting this error on the opeator
k logs kube-prometheus-kube-prome-operator-5554cdff77-qhfz6 -f
level=info ts=2024-05-22T10:33:57.140735311Z caller=main.go:186 msg="Starting Prometheus Operator" version="(version=0.73.2, branch=refs/tags/v0.73.2, revision=20beb0b00b0bb61840ec2461ace4f22e4037b474)"
level=info ts=2024-05-22T10:33:57.140786212Z caller=main.go:187 build_context="(go=go1.22.2, platform=linux/amd64, user=Action-Run-ID-8756162704, date=20240419-15:41:23, tags=unknown)"
level=info ts=2024-05-22T10:33:57.140811012Z caller=main.go:198 msg="namespaces filtering configuration " config="{allow_list="",deny_list="",prometheus_allow_list="",alertmanager_allow_list="",alertmanagerconfig_allow_list="",thanosruler_allow_list=""}"
level=error ts=2024-05-22T10:34:27.142774894Z caller=main.go:222 msg="failed to request Kubernetes server version" err="Get "https://<IP_ADDRESS>:443/version\": dial tcp <IP_ADDRESS>:443: i/o timeout"
Steps To Reproduce:

Installed K3s:

Expected behavior:

Actual behavior:

Additional context / logs:

I don't know where this pod is running, but for some reason it's unable to access the in-cluster apiserver endpoint. Normally this is handled by kube-proxy and the CNI. Verify that you've opened the correct CNI ports between your agent and server nodes: https://docs.k3s.io/installation/requirements#inbound-rules-for-k3s-nodes


Make heatmap shades linear

Previously, shades were 50%, 60%, 70%, 80%, 100%. Make them linearily increasing instead at 60%, 70%, 80%, 90%, 100%.

:rocket:


⭕❌ TicTacToe GUI

The repo already contains one Tictactoe-Using-Minmax but it is implemented using Command line and it is single player (player VS computer)

Aim

TicTacToe implemented using GUI
Two players game
Interactive and more playful

Details

Libraries to be used numpy , pygames and sys

I m ready to grab it .

https://github.com/avinashkranjan/Amazing-Python-Scripts/issues/768
Issue already assigned


[SPARK-44588][CORE] Fix double encryption issue for migrated shuffle blocks

What changes were proposed in this pull request?
Fix double encryption issue for migrated shuffle blocks
Shuffle blocks upon migration are sent without decryption when io.encryption is enabled. The code on the receiving side ends up using serializer.wrapStream on the OutputStream to the file which results in the already encrypted bytes being encrypted again when the bytes are written out.
This patch removes the usage of serializerManager.wrapStream on the receiving side and also adds tests that validate that this works as expected. I have also validated that the added tests will fail if the fix is not in place.
Jira ticket with more details: https://issues.apache.org/jira/browse/SPARK-44588
Why are the changes needed?
Migrated shuffle blocks will be double encrypted when spark.io.encryption = true without this fix.
Does this PR introduce any user-facing change?
No
How was this patch tested?
Unit tests were added to test shuffle block migration with spark.io.encryption enabled and also fixes a test helper method to properly construct the SerializerManager with the encryption key.

+CC @holdenk, @dongjoon-hyun

Thank you for pinging me, @mridulm .

Thank you, @henrymai .
Merged to master/3.5.
There is a conflict in branch-3.4 and older. Could you make two backporting PRs for branch-3.4 and branch-3.3 separately, @henrymai ?

In addition, welcome to the Apache Spark community, @henrymai .
I added you to the Apache Spark contributor group and assign SPARK-44588 to you.

Thank you, @henrymai .
Merged to master/3.5.
There is a conflict in branch-3.4 and older. Could you make two backporting PRs for branch-3.4 and branch-3.3 separately, @henrymai ?

Will do. Thanks for merging this in!

@dongjoon-hyun
Here are the backports:
https://github.com/apache/spark/pull/42277
https://github.com/apache/spark/pull/42279
As I mentioned on the 3.4 one, not sure why appveyor is saying it can't be merged.

Thank you, @henrymai .


Fix license metadata in package.json

See https://docs.npmjs.com/cli/v10/configuring-npm/package-json#license

ping @hejny

I've emailed Pavol about this and https://github.com/hejny/spacetrim/pull/10  in case he has missed the notification as I often do.

Thanks for the ping, merging and releasing new version with that change...

@jayvdb Thanks for the ping, merging and releasing new version with that change...


CI: for Puppet 7, use 7.24 or newer

This will prevent pulling in the broken 7.21 release or earlier, where ruby-concurrent in 1.2 is allowed, which is incompatible with Puppet.

this will fix the CI problems in https://github.com/voxpupuli/voxpupuli-test/pull/100


Dec 865 missing apple touch icons

Change favicon and add support for apple icons

Coverage remained the same at 96.022% when pulling f45649537557ab4d77def3be6d6e8a8cbfa4157f on DEC-865-missing-apple-touch-icons into f710ad97624a9febf77330a45e0ec9544305c6d9 on master.


An error occurred while installing scanner script to remote server: '/bin/bash: No such file or directory'.

Running under Docker Ubuntu server
2020/10/31 12:49:29 - ERROR - seedsync - Caught exception
Traceback (most recent call last):
File "/app/python/seedsync.py", line 164, in run
controller_job.propagate_exception()
File "/app/python/common/job.py", line 77, in propagate_exception
raise exc_info[1].with_traceback(exc_info[2])
File "/app/python/common/job.py", line 44, in run
self.execute()
File "/app/python/controller/controller_job.py", line 29, in execute
self.__controller.process()
File "/app/python/controller/controller.py", line 199, in process
self.__propagate_exceptions()
File "/app/python/controller/controller.py", line 526, in __propagate_exceptions
self.__remote_scan_process.propagate_exception()
File "/app/python/common/app_process.py", line 124, in propagate_exception
raise exc.re_raise()
File "/app/python/common/app_process.py", line 30, in re_raise
raise self.ee.with_traceback(self.tb)
File "/app/python/common/app_process.py", line 87, in run
self.run_loop()
File "/app/python/controller/scan/scanner_process.py", line 90, in run_loop
files = self.__scanner.scan()
File "/app/python/controller/scan/remote_scanner.py", line 51, in scan
self._install_scanfs()
File "/app/python/controller/scan/remote_scanner.py", line 100, in _install_scanfs
recoverable=False
controller.scan.scanner_process.ScannerError: An error occurred while installing scanner script to remote server: '/bin/bash: No such file or directory'.
2020/10/31 12:49:31 - INFO - seedsync.Controller - Exited controller

What operating system do you have installed on the remote server? SeedSync assumes that the remote server has Bash installed, but I think I should relax that assumption.

Just had this same issues, what fixed it for me was adding a backslash after the final dir in Server Script Path, e.g;
"/home/user/files/downloads" to  "/home/user/files/downloads/"
I'd also wager it shouldn't be going in bin/bash but the directory you are looking to download from.


Extractor creep is spawned when prio is low and room is not ready

Please check conditions and make the spawn prio lower.

Thanks! I'll review the spawning code and fix this.

I think that creep is from your old bot, not the current one.


Is there a helm chart for Elastic App Search?

There appears to be a docker image for App Search here: docker.elastic.co/app-search/app-search:7.3.0
But I am not seeing a corresponding helm chart in this repo.
More about this feature here:
https://www.elastic.co/blog/elastic-app-search-a-free-product-for-building-great-search-experiences
I don't see any way of installing it for kubernetes though. Am I missing/misunderstanding how this works?
Thanks!
Brad

Hey @bab5470,
App Search is now part of Elastic Enterprise Search, there is no chart for it but you deploy it on K8S using ECK: https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-enterprise-search.html


bargain stocks wasnt working

changed to this code to make it work
// ==UserScript==
// @name         Neopets: Show Best Bargain Stocks
// @author       Hiddenist
// @namespace    https://hiddenist.com
// @version      0.1
// @description  Shows a list of the best priced stocks on the Neopets bargain stocks page
// @match        https://www.neopets.com/stockmarket.phtml?type=list&full=true*
// @grant        none
// ==/UserScript==
(function() {
'use strict';
var stocksTable = document.querySelector('.content table');
var cheapest = [];
var minPurchase = 15;
var closestCurrent = 20;

for (let row of stocksTable.rows) {
    let cost = parseInt(row.cells[5].textContent);
    if (cost < closestCurrent && cost >= minPurchase) {
        closestCurrent = cost;
        cheapest = [];
        cheapest.push(row);
    } else if (cost == closestCurrent) {
        cheapest.push(row);
    }
}

function s(num, plural = "s", singular = "") {
    if (num == 1) {
        return singular;
    } else {
        return plural;
    }
}

var content;
if (cheapest.length) {
    content = `<p><b>The following ${cheapest.length} stock${s(cheapest.length)} can be purchased at ${closestCurrent} NP:</b></p><ul>`;

    for (let row of cheapest) {
        let ticker = row.cells[1].textContent;
        content += `<li><a href="http://www.neopets.com/stockmarket.phtml?type=buy&ticker=${ticker}">${ticker}</a></li>`;
    }

    content += `</ul>`;
} else {
    content = `<p><b>No stocks are currently available between ${minPurchase} and ${closestCurrent} NP. :(`;
}

var container = document.createElement('div');
container.innerHTML = content;

stocksTable.parentNode.insertBefore(container, stocksTable);

})();

Thanks, I'll take a look at this and make any necessary updates

thanks! could is there a way to have it change for "cheaper by the dozen" boon and 10NP stocks

Hi! I don't care about Neopets anymore, please don't @ me.

@cdyz94 go ahead and open up a new issue for the feature requests, and I'll look into it!
(@grant Sorry, it looks like you got tagged because the @grant from the code inadvertantly has your username in it. I don't think anybody meant to tag you.)


Understand the code and write comments.

I want you to understand the code, but first understand the clean architecture. And then try to understand the code and add comments.

Hi, I would like to work on this can assign this to me. Thank you


Feature request: command to output the path of the related kubeconfig file

don't want to have to hunt down the file everytime I need to switch clusters.
I'd like to always be able to do something like export KUBECONFIG=kube-spawn -c mycluster --kubeconfig to set the KUBECONFIG file.

Couldn't figure out how to get backtick literal. :(

It is also possible to add several directories in $KUBECONFIG and to use kubectl config subcommands to switch. Maybe something to explore.

I think what would be nice in terms of UX is to automatically add/remove entries to/from ~/.kube/config with kube-spawn start/stop. The info message could then tell users how to use the context (either kubectl --context <my kube-spawn cluster> ... or kubectl config set-context <my kube-spawn cluster> && kubectl ...). kube-spawn could also allow users to set "switch to new context automatically " in kube-spawn's configuration.

This way users could also use kubectl config get-contexts to learn about existing kube-spawn cluster.

@schu it would be good but kube-spawn runs as root and the user for ~/.kube/config is not root. Not sure how to do it correctly with that constraint.


Adding Color Changer Website Project

This is a basic HTML website where we can randomly change the background color of the page by clicking the button provided.
We can either select simple colors or hex colors from the select option available.

Ok I will do it


Conisder spark-daria

https://github.com/mrpowers/spark-daria

Spark helper methods to maximize developer productivity.

Just because Daria, duh....

cc @MrPowers

Let me know if this is cool and I'll be happy to submit a PR ;)

In general I am fine with that, but when it comes to merging I always prefer to get another opinion from one of the remaining team members :)

LGTM I was thinking about this last week as well.


Dataset/OpenBookQA datasets

Checklist:

[ ] I've added Google style docstrings to my code.
[ ] I've used pydantic for typing when/where necessary.
[ ] I have linted my code
[ ] I have added tests to cover my changes.

If there are any changes which are required please let me know


Split words correctly in java19

In Java 19 the behaviour of the word boundary was changed. It only matches ascii per default.
see https://bugs.openjdk.org/browse/JDK-8264160

@fp7 hi, it would be perfect if you help me to write test cases for this.

@Homyakin The tests are already there. They just have to be executed with a jdk version >=19.


Support interactive user input ('input' steps)

The Jenkins Pipeline plugin supports steps that require interactive input from users, to allow for example something like "Approve? [yes button] [no button]". Interactive inputs are declared in the Jenkinsfile with the input step, for example
stage 'build'
input message: 'You REALLY want to build?', ok: 'Yes'
... proceed the build

When it reaches the input step, the build is paused and waits for user input. Jenkins provides a URL like /job/sample-pipeline/ID/input/ where the user can manually approve the step in a screen similar to this:

So we need the Sync Plugin to sync back to the Build annotations

something that allows us to know the build is waiting for user input (maybe a "waiting for input" status?),
the URL "job/sample-pipeline/ID/input/" for manual approval.

With this we will be able to know in OpenShift that the given build is waiting for user input, display something about it, and link the URL pointing the user where to go to manually provide the information required and then continue the build.

cc @jwforres @spadgett @ALRubinger

Since for some reason I'm not seeing https://github.com/fabric8io/openshift-jenkins-sync-plugin/issues/85#issuecomment-231492176 anymore this morning, I just noticed we already have the PAUSED_PENDING_INPUT status which should fulfill 1. I should be able to guess 2 with openshift.io/jenkins-build-uri + the /input/ suffix, but it would still be interesting to have it added to the information synced back to the build.

I'm hesitant to assume anything about what the approval URL will be unless we're locking to a Jenkins version.

What when 1 user uses OpenShift UI to approve but a millisecond later, someone else uses Jenkins Web UI or API to abort. The sync plugin will see the change on OpenShift side and try to "yeah totes" it or will it see the "abort" status on the Jenkins side? What feedback will the OpenShift users get? Will it just changed to "abort"

It isn't using our UI to approve, the approval link goes to the approval
page in Jenkins.
On Jul 11, 2016 10:30 PM, "Steve Speicher"<EMAIL_ADDRESS>wrote:

What when 1 user uses OpenShift UI to approve but a millisecond later,
someone else uses Jenkins Web UI or API to abort. The sync plugin will see
the change on OpenShift side and try to "yeah totes" it or will it see the
"abort" status on the Jenkins side? What feedback will the OpenShift users
get? Will it just changed to "abort"
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/fabric8io/openshift-jenkins-sync-plugin/issues/94#issuecomment-231921418,
or mute the thread
https://github.com/notifications/unsubscribe/ABZk7TR8uwHSmJtSyZqNyh1zpzDV_lNcks5qUvxWgaJpZM4JIeR8
.

PR https://github.com/openshift/jenkins-sync-plugin/pull/137 is adding the annotation for 2)
when it merges (and it should after 3.6 code freeze), I am going to close this issue out
@sspeiche - to add to @jwforres 's clarification, the race condition you noted exists with OpenShift UI out of the picture and 2 users from the Jenkins Web UI doing "simultaneous" abort / approve ... I see no coordination/locking on the Jenkins side ... going to punt on it from a sync plugin perspective

Update - PR https://github.com/openshift/jenkins-sync-plugin/pull/137 has merged with its annotation for 2).
We are not including that change in 3.7, so I will not cut a version of the plugin / update the jenkins centos image with this until after 3.7 is out the door, and will hence still leave this open for now.
But I'll close this out when those two items in fact occur and y'all have something to try out.

I should be able to craft the new version of sync pluging (think I'm going to call it 1.0) sometime this week with the new prompt annotation.
As a preview using the openshift bluegreen example template, the json in the annotation will look like:
[{"id":"Approval","proceedText":"Proceed","message":"Test deployment: http://green-nodejs-mongodb-example-myproject.<IP_ADDRESS>.nip.io. Approve?","inputs":[],"proceedUrl":"//job/myproject/job/myproject-bluegreen-pipeline/1/wfapi/inputSubmit?inputId=Approval","abortUrl":"//job/myproject/job/myproject-bluegreen-pipeline/1/input/Approval/abort","redirectApprovalUrl":"//job/myproject/job/myproject-bluegreen-pipeline/1/input/"}]

the oenshift jenkins centos image on docker hub now as the sync plugin change that supports what I've documented above
closing out
enjoy :-)


wip: new(ci): added update rules index gha.

What type of PR is this?
/kind feature

Any specific area of the project related to this PR?
/area registry

What this PR does / why we need it:
This PR introduces the GHA responsible for updating the index on resitry.yaml updates.
This task is currently accomplished by update-rules-index prow job.
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
NONE

@cappellinsamuele: The label(s) kind/feature, area/registry cannot be applied, because the repository doesn't have them.

In response to this:

What type of PR is this?
/kind feature
Any specific area of the project related to this PR?
/area registry
What this PR does / why we need it:
This PR introduces the GHA responsible for updating the index on resitry.yaml updates.
This task is currently accomplished by update-rules-index prow job.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
NONE

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: cappellinsamuele
Once this PR has been reviewed and has the lgtm label, please assign fededp for approval. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/kind feature
/area registry

Thanks for your pull request. Before we can look at it, you'll need to add a 'DCO signoff' to your commits.
:memo: Please follow instructions in the contributing guide to update your commits with the DCO
Full details of the Developer Certificate of Origin can be found at developercertificate.org.
The list of commits missing DCO signoff:

4262f93 Merge branch 'falcosecurity:main' into new/udpate_index_gha

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Thanks for your pull request. Before we can look at it, you'll need to add a 'DCO signoff' to your commits.
:memo: Please follow instructions in the contributing guide to update your commits with the DCO
Full details of the Developer Certificate of Origin can be found at developercertificate.org.
The list of commits missing DCO signoff:

4262f93 Merge branch 'falcosecurity:main' into new/udpate_index_gha

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

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

/remove-lifecycle stale
@cappellinsamuele @FedeDP, any progress on this?

Hey Leo, given that his PR is trying to push to falcoctl gh-pages branch from the rules repo, i think this is not possible (or it's really hard) to do with github actions.
Imho this can be closed; leaving this job on poiana is not that wrong after all!


HDDS-5738. EC: Resolve findbugs warnings after branch merge

What changes were proposed in this pull request?
After merging master into the EC branch, there are findbugs warnings on the branch. This PR is to fix them.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-5738
How was this patch tested?
No tests

I tried running findbugs again locally, and the problem is not coming up now. I am not sure what happened before. I will close this PR for now and open again later if needed.

ok sure. I am not seeing this complaints as well so far.


conflicting licenses in the repo

Description of feature
The LICENSE has an unresolved merge conflict and shows two open source licenses (i.e. MIT and GPLv3). While these licenses are largely compatible, GPLv3 is more restrictive than MIT and the ambiguity may affect projects interested in leveraging workflows in this repo.
Upon inspecting the history, it seems the original intention was to replace GPL with MIT and later accidentally the conflict was introduced without being resolved.
Can you confirm which license is the correct one? I'd happily send a pull request with the change if that helps

@romerocesar Thanks for catching that conflict. The issue was resolved back to MIT


Add table detection tests and a basic table detector for guessing table regions

The changes on this branch do a bunch of stuff:

Creates a new "detectors" package in tabula for table detection algorithms
Implements a SpreadsheetDetectionAlgorithm there to replicate the simple table detection from tabula (web) and tabula-extractor
The command line app now uses the new detector when the -g argument is passed (basic fix for #49)
Adds ICDAR 2013 ground truth documents for testing purposes (I know there was a new project set up mentioned in #51 but maybe we can migrate the tests over there later?)
Adds (currently ignored) tests for testing table detection algorithms (2 out of 67 tests currently pass!)

This should provide a basis for people to start contributing and evaluating different table detection algorithms

Fantastic, @mcharters! Thanks a LOT. Some comments:

I guess we can consider that your contribution closes #51. @melisabok, unless you really want to keep working on the Scala version, there's no need to do it.
Can you add a test for the -g flag in TestCommandLineApp.java?
At some point, it would be awesome to have a report that shows how the detection accuracy evolves over time, à la PyPy Speed Center — I'll try to give it a shot over the holiday break.

Sure, I'll add a test for the command line app.
My tests don't test the full "truth" of the IDCAR data - only table detection. Table extraction/verification is a whole other can of worms. Dunno if you want to keep #51 around until all a full test suite is implemented?

My tests don't test the full "truth" of the IDCAR data - only table detection. Table extraction/verification is a whole other can of worms. Dunno if you want to keep #51 around until all a full test suite is implemented?

You're right, spoke too soon. @melisabok, it's up to you if you want to use @mcharters's code as a starting point or keep working on the Scala project.

I think we can keep working in what @mcharters did, it is not necessary to do it in scala we can continue with java. You can commit it here or in the new repo,  is the same for me.

Why don't move the SpreadsheetDetectionAlgorithm behavior into the SpreadsheetExtractionAlgorithm extract method. And the extract method decide if it has to detect or not the tables.
I noticed that the extract method is calling to findCells too, so we could refactor it and call it just once.  What do you think?
@mcharters very nice work! if you want you can commit the code related to the test suite here(replacing the scala code): https://github.com/tabulapdf/icdar-testsuite, and then we can improve the tests to get the full 'truth', What do you think?

@melisabok from briefly reading over some of the papers @jazzido linked to, it seems to me like there are two steps to getting tables from PDFs - first detecting table regions and then extracting the data from those regions. I thought it would be useful to keep them logically separate, that way you could mix and match if you wanted.
In fact, if you look at the code that gets run when you pass -g on the command line, I'm doing just that: the SpreadsheetDetectionAlgorithm finds the tables and then the BasicExtractionAlgorithm is used to get data from the page region - the extract method of the SEA never gets called.
In fact maybe the opposite should be true: the logic in the SpreadsheetExtractionAlgorithm that relates to table detection should maybe get moved entirely to SpreadsheetDetectionAlgorithm and then get called from the SEA. But I'm just getting to know the code so I'm not sure if that's feasible right now.

Hi @mcharters, quick question: How to run the ICDAR tests? mvn test seems to skip them over.

Hi @jazzido, I tagged the tests with @Ignore because so many of them were failures. I didn't know if having a bunch of failing tests would mess up integration testing.
To run them just comment out the @Ignore tag and then mvn test will work. Note that there's also a bunch of debug noise in the tests currently that I was using to make sure my test implementation was right. :)

Good call. In any case, expecting 0% failures would be unrealistic for the ICDAR dataset, so I guess we should not assert() things. Instead, we should emit some kind of report that we can use to track progress/regressions with the detection algorithms.

Sounds like a plan. I suppose to start we could track a baseline of failures to make sure changes don’t make more failures happen and alert us when things improve.

On Dec 21, 2015, at 10:54 AM, Manuel Aristarán<EMAIL_ADDRESS>wrote:
Good call. In any case, expecting 0% failures would be unrealistic for the ICDAR dataset, so I guess we should not assert() things. Instead, we should emit some kind of report that we can use to track progress/regressions with the detection algorithms.
—
Reply to this email directly or view it on GitHub https://github.com/tabulapdf/tabula-java/pull/53#issuecomment-166338496.

I opened #54 to track development.


feat: CI: GHA: Add upgrade tests

Description

This PR adds an upgrade-tests job, analogous to the tests job. In it we test, for both Diego and Eirini:

Install of KubeCF General Availability (latest public release)
Upgrade from latest GA minor version (kubecf-bundle-ga) to release under test (kubecf-bundle).
Upgrade from release under test (kubecf-bundle) to release under test (kubecf-bundle).
Upgrade from release under test (kubecf-bundle) to future, non-existent yet, release (kubecf-bundle-next).

Notes:

We aren't testing "Upgrade from latest GA major version to release under test". Currently, this is the same as "1." as we started supporting upgrades between major versions with 2.X, so we don't need to test upgrades from 1.X to 2.X, and we have not bumped the major version yet to 3.x .
There is repetition between upgrade-tests, build, and tests job. For the GHA boilerplate code this may be ok. I have made an effort in deduplicating the shellscripts that are around, and moving them to either catapult or scripts/. GHA doesn't support yaml anchors yet nor a way to not repeat steps. If we want to remove all repetition, we should run the yaml through templating, but then we should have lint and tests for it.
Creation of kubecf-bundle-next is by doing a bersion bump, no change to k8s objects, DB schema, etc. This should improve in the future.
We are not enabling yet either HA (needs a bump on instance type) nor Autoscaler (needs https://github.com/cloudfoundry-incubator/kubecf/pull/1632).

Motivation and Context

Closes https://github.com/cloudfoundry-incubator/kubecf/issues/1147.
How Has This Been Tested?

Tested in runs at: https://github.com/viccuad/kubecf/pull/2
See: https://github.com/viccuad/kubecf/actions?query=workflow%3A"Pull+Request+Tests"
Screenshots (if appropriate):
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)

Checklist:

[ ] My code has security implications.
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.

@mook-as requested your review even if it is a draft, because of the repetition problem. What do we want to do?
I vote for repeating GHA boilerplate code, and move scripts out of run actions; at the end we should have only make targets in run actions for it to be acceptable.

I will go with extracting scripts then.
For the record, I really don't like templating it, and if we do it, yes, we should have lintings or tests for it. I'm on the opinion that the pipelines should have 0 logic, which should go to catapult or kubecf/scripts. Extracting scripts makes me more than happy.

Rebased, reworded PR comment, ready for review :).

Sigh, it seems that diego upgrades failed on a smoke post upgrade, and eirini failed on deployment.
For a successfull diego upgrades run, one can see: https://github.com/viccuad/kubecf/runs/1463690679?check_suite_focus=true

Ready for review.
With current master, upgrades seem to fail from GA to chart-under-test.
I have pinned charts beforehand, and it worked.
Here is the latest run (still ongoing) in my fork: https://github.com/viccuad/kubecf/pull/2/checks?check_run_id=1499733138

Retriggered CI, it passses. Merging. Thanks for the reviews!


Update our Shared Responsibility Model

Describe the issue
Our Shared Responsibility Model has some pieces tacked on for our Early Adopters - we're now ready to remove these temporary add-ons and tidy up the visual representation in preparation for this model being a centre-piece of our collaboration with ministry teams as they come onboard.
Which Sprint Priority is this issue related to?
Priorty 1
Additional context
Add any other context, attachments or screenshots
Definition of done

Shared Responsibility Model tidied up
Review with Product Owner and amend if and as required

Early Adopters call out removed, bottom row aligned - new version saved to General > 005 - Architecture - Managed Cloud Service Blueprint

Early Adopters call out removed, bottom row aligned - new version saved to General > 005 - Architecture - Managed Cloud Service Blueprint


Crawling script

Hi, Yanghua,
Can you please open sources the script you used for crawling from www.getchu.com ? In this way, you can avoid copyright issue.
Best Regards,
Satoshi

Hi, Satoshi
Thank you for your interest.
Upload scripts here
I use ErogameScape's SQL API to get basic information.
Check illustration2vec for tag prediction.

Hi, Yanghua,
Thank you so much!   I was able to run your code. I extracted the image urls into a single text file.
getchu.com.img.urls.txt
Now everyone can get images like
'''wget -i getchu.com.img.urls.txt'''
I think you should mention this in the Readme.
If possible, could you please give me the predicted tags ? A text where each line has something like "c840297chara2.jpg tags ... "
Satoshi

@apple2373 thanks, this is what i need


chore: Fixing 589 warnings on JetBrains Rider

Fixing 589 Warnings on Rider
Currently
To Reproduce
Steps to reproduce the behavior:

Download Jetbrains Rider
Click on problems
Check to enable "Warnings"
See Warnings

After:

I created team Resharper configuration file for myself as well to be honest. But I putting rules based on style. I think it is good idea to have that one which sets rules for Rider, Resharper and Visual Studio. There is a lot of text undersocred and it will helps for orientation. Also generators setting should be set. Eg. fully defined namespaces in inner usings etc.
The question is how to set it up.

I think it is good idea to have that one which sets rules for Rider, Resharper and Visual Studio.

From my experience there is no configuration that covers all IDEs well. There are rules that are not available in one of the other. Sometimes rules even conflict with each other. The IDEs suggest different recommendations for the same rule. Keeping the configurations in sync is another topic...

There is a lot of text undersocred and it will helps for orientation.

Hm, I think it's just the namespaces and some words or abbreviations Rider or ReSharper are not aware of. We have no build warnings or something line that.

The question is how to set it up.

Having the same rules (configurations) across all common IDEs would be great 👍. IMO it's necessary to support other (most common) IDEs too. Everyone should be able to contribute with the tools they like.
Is it possible to share the same configuration between Visual Studio (w/o ReSharper) and Rider for example?

I understand that Jetbrains Rider may not be to your taste, however, the rule is that namespace must match folder and if not it should indicate to developer that there is a puporse for this convension, specially if you are using a popular IDE that is throwing unsolved warnings, it makes it difficult to collebate with other developers when you still have warnings that are pending.
It would open your code for a broader community of developers to contribute to code.

I must add that I find this project very interesting and I would to invite my development teams to use, that also means that we will actively contribute to the project to find bugs we can report or address with a PR

I understand that Jetbrains Rider may not be to your taste

I use Rider as well. I don't have any issues with those warnings. I just care about the build output and Sonar (same results across all development environments).

the rule is that namespace must match folder

As I said, I don't agree with that rule. If you look into the namespaces you're using in a test, the current approach is much cleaner.

specially if you are using a popular IDE that is throwing unsolved warnings

That's the point. It's just (one) the IDE. If you're using a different IDE, you won't benefit from those rules. You won't notice any warnings. If someone creates a pull request, I don't know if all Rider or ReSharper rules are considered. This might work fine for companies that use the same development environment.
Improving the current configuration is good, but I don't like to pollute all classes with IDE specific rules. Especially if they are not considered by other IDEs.
I think a proper .editorconfig and DotSettings file that cover Rider, ReSharper, Visual Studio and the different Roslyn analyzers would be a better approach.

I understand that Jetbrains Rider may not be to your taste

I use Rider as well. I don't have any issues with those warnings. I just care about the build output and Sonar (same results across all development environments).

the rule is that namespace must match folder

As I said, I don't agree with that rule. If you look into the namespaces you're using in a test, the current approach is much cleaner.

specially if you are using a popular IDE that is throwing unsolved warnings

That's the point. It's just the (one) IDE. If you're using a different IDE, you won't benefit from those rules. You won't notice any warnings. If someone creates a pull request, I don't know if all Rider or ReSharper rules are considered. This might work fine for companies that use the same development environment.
Improving the current configuration is good, but I don't like to pollute all classes with IDE specific rules. Especially if they are not considered by other IDEs.
I think a proper .editorconfig and DotSettings file that cover Rider, ReSharper, Visual Studio and the different Roslyn analyzers would be a better approach.

You have a good point and valid point Andre
I will try to find an alternative and fix the PR
Cheers
Mason

Hi @HofmeisterAn
I have adjusted the PR to ensure the code is minimal within the code base,
Can you please review it again?
Cheers
Mason

I have adjusted the PR to ensure the code is minimal within the code base,
Can you please review it again?

Thanks for the changes 🙏.

https://github.com/testcontainers/testcontainers-dotnet/pull/564/commits/96c72633858d7e2f64d457035faaa4803c4b0f21, closes #562, #560. I think this covers most. If there is anything left, just let me know.

Should I improve this to be merged?

Should I improve this to be merged?

Is anything particular missing? Did you check the latest configuration in develop?


Start transaction with car and tag

@mahdibenromdhane: Conflicts to resolve.

@mahdibenromdhane: Conflicts to resolve.

Done


MM-14040 update marked for parentheses

Summary
This pull request updates the marked lib, so that nested parenthesis in urls are properly rendered.
e.g.
how about: [hmmm](https://somewhere/?param=(currentUser()))?

Ticket Link
https://github.com/mattermost/mattermost-server/issues/10407
Support repos
Depends upon https://github.com/mattermost/marked/pull/12

It appears I didn't run tests first to see the markdown errors occurring in other things.  Marking this as WIP

@hmhealey I tested this change fixes the markdown nested parentheses example, however the build failed.  All the steps passed except build-docker - Unauthorized.  I haven't seen this before, is this something I can fix on my end?

I rerun the build and it's now green. Sorry for the confusion.


New chromium vulnerabilities (CVE-2024-0222 up to CVE-2024-0225)

Sadly new CVEs have been issued for chromium, see
CVE-2024-0222
CVE-2024-0223
CVE-2024-0224
CVE-2024-0225
Would you be be so kind and update to Chromium to a newer release and provide new binary builds for us?

Thank you a lot,
Michael

I've started a new build for the recent jcef fixes, but not for 120 yet. Maybe you can ask/contribute on the jcef repository for an update to the newest version? Sadly I currently lack the time.

If I get the CVEs right, .199 should be fine, too. Thank you!

Done... https://github.com/chromiumembedded/java-cef/issues/460
I hope they'll update soon....

Now updated to 122.1.10 :)


lagoon-logging fails on eks 1.20

trying to install lagoon-logging on an EKS with 1.20 installed fails:
  Error: chart requires kubeVersion: >= 1.19.0 which is incompatible with Kubernetes v1.20.7-eks-d88609

maybe the check fails because the reported version is prefixed with v?

Hey @Schnitzel I've added a fix for this so the chart will install. However as discussed previously note that the version of the chart with that constraint only supports containerd as the runtime, not docker. AFAIK containerd is only going to be the default runtime in EKS from 1.22, but you can select it manually.


Extra footer actions are triggering a MethodNotFoundException

Package
filament/filament
Package Version
3.0.53
Laravel Version
10.23.1
Livewire Version
3.0.5
PHP Version
8.2.8
Problem description
I tried to create an action in the footer of an Action moodal, and it triggers MethodNotFoundException.
https://github.com/filamentphp/filament/assets/10696975/29798683-7d25-485b-ada7-41eb76d4a5ed
Here is the documenation section:
https://filamentphp.com/docs/3.x/actions/modals#opening-another-modal-from-an-extra-footer-action
Expected behavior
Trigger the action when pressing the button in the Action modal footer.
Steps to reproduce

Clone the repository: https://github.com/alexmanase/filament-action-in-footer-issue
Follow the instructions from README.md
Open an "edit" modal
Press the "Generate" button.

Reproduction repository
https://github.com/alexmanase/filament-action-in-footer-issue
Relevant log output
https://flareapp.io/share/x7XrLRRm

Please use Filament\Tables\Actions\Action instead of Filament\Actions\Action
Child actions need to be the same class as their parent

@danharrin I just did it and now I get an error when I try to use $set:
Typed property Filament\Forms\Components\Component::$container must not be accessed before initialization

I also updated the demo.

$set is part of the forms package, not the tables package. What are you trying to do?

I want to change the value of the name input from the modal.
This one:

that's gonna be tricky, probably $this->mountedTableActionsData['edit']['name'] = 'new value', which isn't very clean

This one worked for me:
$this->mountedTableActionsData[0]['name'] = 'New generated content';

It's enough for me.
Thank you for your help!


Add Fabric Twitter Kit

Configuration for Fabric Twitter Kit
See: https://dev.twitter.com/twitter-kit/android/integrate

@jenzz, looks good to me, thanks!


Add extensibility to various classes

Description
Add new functions to register various updaters and visualizers to support custom entities and data constructs.

Issue number and link
No issue

Testing plan

Run the specs and make sure they all still pass
Try the sandcastles related to entities, primitives and CZML and make sure they all still behave as intended.

Author checklist

[x] I have submitted a Contributor License Agreement
[x] I have added my name to CONTRIBUTORS.md
[ ] I have updated CHANGES.md with a short summary of my change
[x] I have added or updated unit tests to ensure consistent code coverage
[x] I have update the inline documentation, and included code examples where relevant
[x] I have performed a self-review of my code

@jjspace I just added you to the Cesium CLA list. You're good to go!

@ggetz thanks for the comments, I believe I've addressed them all

Thanks @ggetz I just forgot to link them. Looks like this is good now! :pray:


first paper draft

OpenReview Submission Thread

Checklist before opening a PR

[ ] I am opening a pull request against the main branch of the 2024 repo.
[ ] The title of my PR is exactly the name of my markdown file

i.e. _posts/2024-05-07-[SUBMISSION NAME].md would require a PR name 2024-05-07-[SUBMISSION NAME]

[ ] I have anonymized my post: my author's list is Anonymous, and there is no potential
content which can reveal my/my collaborators identities.
[ ] My post matches the formatting requirements, including (but not limited to):

[ ] I have ONLY MODIFIED files in the following locations (failure to do so will result in
your PR automatically being closed!):

a Markdown (or HTML) file in _posts/ with the format _posts/2024-05-07-[SUBMISSION NAME].md (or .html)
static image assets added to assets/img/2024-05-07-[SUBMISSION NAME]/
interactive HTML figures added  to assets/html/2024-05-07-[SUBMISSION NAME]/
citations in a bibtex file in assets/bibliography/2024-05-07-[SUBMISSION NAME].bib

[ ] I have a short 2-3 sentence abstract in the description field of my front-matter (example)
[ ] I have a table of contents, formatted using the toc field of my front-matter (example)
[ ] My bibliography is correctly formatted, using a .bibtex file as per the sample post

Any other comments

hey @jerpint . The title of the pull request should be 2024-05-07-hackaprompt
Thanks!

Excellent, don't hesitate to ping me if you have any questions
On Thu, Nov 30, 2023, 17:28 Jeremy Pinto @.***> wrote:

Hey @fabianp https://github.com/fabianp sorry i hadn't meant to open
the PR just yet - I got confused with my own fork. I'll open a new PR when
ready
—
Reply to this email directly, view it on GitHub
https://github.com/iclr-blogposts/2024/pull/56#issuecomment-1834110601,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACDZB7QHO3PA7YNN2M64YTYHCXZZAVCNFSM6AAAAABAAI4MMWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZUGEYTANRQGE
.
You are receiving this because you were mentioned.Message ID:
@.***>


Questions about API usage

So I've been trying to leverage turbulence for a game I'm writing (a networked fighting game), and I've been trying to make a lobby system to enable a better networked place experience.  So far, I've been running into inconveniences while using the API, but I'm not sure if that's me not approaching the problem the correct way or not understanding the API.  Here is my actual code that I've been working on for context.
My two main pain points are as follows, hopefully you have ideas on how I can address them:

MessageChannels doesn't differentiate between connections (i.e. different people connecting to the same client).  I've been approaching this by spawning a new MessageChannels for each connection, which seems to work just fine, but makes it a little painful when trying to read from the socket, because I have to check to make sure that the datagram I'm receiving is from the right address.  It also leads me to having to setup a new task to create connections whenever a new address sends data.
Not great compatibility with what I've been trying to do as an async workflow.  Here is the code for my message loop:

async fn messages_loop_t(channels: ChannelList, mut messages: MessageChannels) {
    let messages = &mut messages;
    loop {
        // forwards incoming requests out
        if let Ok(value) = channels.join_request.incoming.try_recv() {
            messages.async_send(value).await.unwrap();
            messages.flush::<JoinRequest>();
        }
        if let Ok(value) = channels.join_response.incoming.try_recv() {
            messages.async_send(value).await.unwrap();
            messages.flush::<JoinResponse>();
        }

        // checks received data, and forwards it
        if let Some(value) = messages.recv::<JoinRequest>() {
            channels.join_request.outgoing.send(value).await.unwrap()
        }
        if let Some(value) = messages.recv::<JoinResponse>() {
            channels.join_response.outgoing.send(value).await.unwrap()
        }

        yield_now().await
    }
}

As you can see, I call the sync nonblocking methods of the messages object to check if theres any data to receiver, and yield_await at the end of the loop.  It seems like a better approach would be selecting on the message type OR spawning a new task for each message, but neither of these are viable given that recv/send require an &mut MessageChannels.  Additionally each recv Future is tied to the lifetime of the borrow, which means I can't return the future to be held around somewhere else.  This code forwards each recieved data to a smol::channel, which lets me clone consumers allowing me to engage in behavior like the following:
    async fn request_join(&mut self, lobby: Self::LobbyId) -> Result<Self::LobbyId, JoinError> {
        let handle = self.handle.clone();
        let (incoming, outgoing) = {
            let mut inner = self.handle.write().await;
            let inner = inner.deref_mut();
            let connection = inner.connections.get_or_create_connection(
                lobby,
                inner.socket.clone(),
                inner.runtime.clone(),
            );
            (
                connection.channels.join_response.incoming.clone(),
                connection.send_request(JoinRequest { addr: lobby }),
            )
        };

        outgoing.await.unwrap();

        let response = incoming.recv().await.unwrap();

        match response {
            JoinResponse::Denied => Err(JoinError::Denied),
            JoinResponse::Accepted { self_addr } => {
                let mut lock = handle.write().await;
                lock.mode = Mode::Client(lobby);
                lock.self_addr = self_addr;
                Ok(lobby)
            }
        }
    }

Are there any solutions you would suggest to my issues/should I attempt to PR a design to address them?  Thank you for making this really cool library either way!

Hey, sorry I've been behind on issues and PRs, I'm slowly going back through my backlog to catch up.

MessageChannels doesn't differentiate between connections (i.e. different people connecting to the same client). I've been approaching this by spawning a new MessageChannels for each connection, which seems to work just fine, but makes it a little painful when trying to read from the socket, because I have to check to make sure that the datagram I'm receiving is from the right address. It also leads me to having to setup a new task to create connections whenever a new address sends data.

This is correct, turbulence takes an unreliable stream of packets and turns it into a multiplexed stream of optionally reliable messages.  How to organize these into different logical connections is out of scope for turbulence.  Generally what's expected is that you would do exactly what you figured out, each connection (if this is going over UDP, this would be identified by the source address and source port) would get its own individual PacketMultiplexer and MessageChannels instance.  Additionally, how to establish new connections and how to prevent your server from being vulnerable to being tricked into creating lots of server side state on every single new UDP packet is again, out of scope for turbulence.

As you can see, I call the sync nonblocking methods of the messages object to check if theres any data to receiver, and yield_await at the end of the loop. It seems like a better approach would be selecting on the message type OR spawning a new task for each message, but neither of these are viable given that recv/send require an &mut MessageChannels. Additionally each recv Future is tied to the lifetime of the borrow, which means I can't return the future to be held around somewhere else. This code forwards each recieved data to a smol::channel, which lets me clone consumers allowing me to engage in behavior like the following:

My brain is a little fried at the moment so I'm having trouble thinking through the specifics of this sort of use case, but mostly this library is intended for networked realtime games.  How I personally use the library is that the main message loop is ONLY nonblocking.  The reason for this is that if you do something like messages.async_send(value).await.unwrap(); and the message type is reliable, think about what this does: it allows a game client to indefinitely block the game loop until the value can be sent.
It's possible that you're adding another layer that handles this nonblocking behavior in a loop that's in front of MessageChannels, but the original design goal was that the actual, real main game loop (which is not async, after all it has to run at 30hz, 60hz, 120hz whatever) would interact with the MessageChannels for each client directly.  If there is no room in a particular channel.. something must happen, either the messages are dropped or the client is prevented from generating new data that it needs or is frozen in place or just dropped or something other than the server creating arbitrary amounts of unsent data and filling RAM.  What specifically to do when messages are unsent would be specific to each message type.
The async API is mostly for startup / shutdown procedures where the client is not yet itself doing a similar 60hz loop.
However, in either case, there is a potentially better channels implementation that would allow MessageChannels methods to all be &self which I was considering anyway, and that might help the use case you have in mind?


Conda Forge

Hello! I have successfully put this package on to Conda Forge, and I am extending the invitation for the owner/maintainers of this package to be maintainers on Conda Forge as well. Let me know if you are interested! Thanks.
https://github.com/conda-forge/sqlalchemy2-stubs-feedstock

Thanks.
I personally have never published anything on conda forge, so I would not know where to begin.
You are welcome to publish it though!

Hello! Sorry, let me clarify. The package has been published on Conda and it's working, but just wanting to know if you would like to be co-maintainer of it. It requires very little work as anytime an update is made on PyPI the bots will make a PR to update downstream as well. We can must merge the PR if all tests apsses.

oh ok! I don't think it's necessary for me to be a co-maintainer, but if you are looking for one I would be ok to help!

No pressure at all; if you changed your mind and would live to join as a maintainer you know where to find me!


Applicant - Translate Password Reset View

Description
Password reset needs a set of blade translation files.

Now that this has been investigated, translation files already existed.


Stats: Adds the amount of reused connections to PoolStats

Adds the amount of reused connections to PoolStats.
modified:   httpcore-nio/src/main/java/org/apache/http/nio/pool/AbstractNIOConnPool.java
modified:   httpcore-nio/src/main/java/org/apache/http/nio/pool/RouteSpecificPool.java
modified:   httpcore/src/main/java/org/apache/http/pool/AbstractConnPool.java
modified:   httpcore/src/main/java/org/apache/http/pool/PoolStats.java
modified:   httpcore/src/main/java/org/apache/http/pool/RouteSpecificPool.java

https://stackoverflow.com/questions/66994366/get-stats-of-reused-connections-with-poolinghttpclientconnectionmanager

Can you describe your usecase?

@mreaugusto I am sorry but we are not going to add any new features to the 4.5.x line.
You could consider porting the change-set to master (5.1) but I think in your particular case you should build a custom connection manager (likely as a decorator for the standard pooling connection manager) instead of making any changes to the library.

Can you describe your usecase?

I need to monitor the amount of reused connections over time.
I want to maximise the number of reused connections and tweak the TTL to give me more thoughput.

Could you compare the number or rate of new connections to the number or rate of outgoing requests? Reused connections will be the difference between the two.

Please see the SO discussion.

Could you compare the number or rate of new connections to the number or rate of outgoing requests? Reused connections will be the difference between the two.

Thanks. That makes sense.


SF-1202: Commit generated docs

Codecov Report

Merging #12 into master will increase coverage by 0.84%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master      #12      +/-   ##
==========================================
+ Coverage   92.96%   93.81%   +0.84%
==========================================
  Files         198      201       +3
  Lines        5163     5335     +172
  Branches      617      632      +15
==========================================
+ Hits         4800     5005     +205
+ Misses        280      246      -34
- Partials       83       84       +1

Impacted Files
Coverage Δ

...storefront/breadcrumbs/src/original-query/index.ts
100% <0%> (ø)
:arrow_up:

...ont/flux-capacitor/src/core/reducers/is-running.ts
100% <0%> (ø)
:arrow_up:

...capacitor/src/core/reducers/data/productsLoaded.ts
100% <0%> (ø)
:arrow_up:

...orefront/breadcrumbs/src/refinement-crumb/index.ts
100% <0%> (ø)
:arrow_up:

...storefront/navigation/src/refinement-pill/index.ts
100% <0%> (ø)
:arrow_up:

<EMAIL_ADDRESS>100% <0%> (ø)
:arrow_up:

...ront/flux-capacitor/src/core/reducers/data/area.ts
100% <0%> (ø)
:arrow_up:

...ont/flux-capacitor/src/core/reducers/data/index.ts
100% <0%> (ø)
:arrow_up:

...x-capacitor/src/core/reducers/data/record-count.ts
100% <0%> (ø)
:arrow_up:

.../flux-capacitor/src/core/reducers/data/redirect.ts
100% <0%> (ø)
:arrow_up:

... and 27 more

Continue to review full report at Codecov.

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