Different spike counts from miniapp after PR#287

After including the fix for issue #307, running the miniapp from the current master 70d1a1b4ac9ddbda51db6fdb999767614deefb8c and in the previous master commit 1590585a1fd6a93e844562b7ac7202ecafb05f4a gives differing spike counts.
For reference, halfflat/nestmc-proto@1dce11a47abfda550cce75c682d35d22b98fd4d8 (https://github.com/halfflat/nestmc-proto/tree/bugfix/miniapp-assertion-failure) contains the bug fix applied to current master and halfflat/nestmc-proto@69de7d0382562b9a905e1c65a01a7cb5ffb58bb4 (https://github.com/halfflat/nestmc-proto/tree/bug/differing-spikes-after-pr287) contains the bugfix applied to the previous master (before PR#287).
Latest version, running on CPU (release build, assertions on, bug fix applied):
% ./miniapp/miniapp.exe -n 100
====================
  starting miniapp
  - CThread Pool threading support
  - communication policy: serial (1)
  - gpu support: off
====================
there were 395 spikes
% ./miniapp/miniapp.exe -n 1000
====================
  starting miniapp
  - CThread Pool threading support
  - communication policy: serial (1)
  - gpu support: off
====================
there were 3967 spikes

Previous version, running on CPU  (release build, assertions on, bug fix applied):
% ./miniapp/miniapp.exe -n 100
====================
  starting miniapp
  - CThread Pool threading support
  - communication policy: serial (1)
  - gpu support: off
====================
there were 399 spikes
% ./miniapp/miniapp.exe -n 1000
====================
  starting miniapp
  - CThread Pool threading support
  - communication policy: serial (1)
  - gpu support: off
====================
there were 4016 spikes

4016 spikes were also produced in earlier testing for the asynchronous event delivery on GPU.

Totally innocuous: new code registers one spike at t=0, corresponding to the single rss_cell, instead of one spike per 20 regular cells that was injected directly in the previous code.
Spike counts of new vs old should differ by ncells/20 - 1, which is exactly as observed.


Windows: extend WinSDK module further

This extends the WinSDK modulemap to cover Winsock2 and IPHelp API Set.
These are used in Foundation.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

@swift-ci please smoke test and merge

@swift-ci please test Linux platform


all tests failed when make test

when I make test, the following errors occurred:
Running tests...
Test project /home/zd/flashlight/build
    Start 1: AutogradTest
1/7 Test #1: AutogradTest .....................***Failed    0.00 sec
    Start 2: OptimTest
2/7 Test #2: OptimTest ........................***Failed    0.00 sec
    Start 3: ModuleTest
3/7 Test #3: ModuleTest .......................***Failed    0.00 sec
    Start 4: SerializationTest
4/7 Test #4: SerializationTest ................***Failed    0.00 sec
    Start 5: DatasetTest
5/7 Test #5: DatasetTest ......................***Failed    0.00 sec
    Start 6: MeterTest
6/7 Test #6: MeterTest ........................***Failed    0.00 sec
    Start 7: AllReduceTest
7/7 Test #7: AllReduceTest ....................***Failed    0.00 sec

0% tests passed, 7 tests failed out of 7

Total Test time (real) =   0.03 sec

The following tests FAILED:
	  1 - AutogradTest (Failed)
	  2 - OptimTest (Failed)
	  3 - ModuleTest (Failed)
	  4 - SerializationTest (Failed)
	  5 - DatasetTest (Failed)
	  6 - MeterTest (Failed)
	  7 - AllReduceTest (Failed)
Errors while running CTest
Makefile:106: recipe for target 'test' failed
make: *** [test] Error 8

My Ubuntu is 18.04 and cuda is 10.1.
I really don't know how to solve it.

@zdgithub — my guess is that this is a problem with ArrayFire. Can you run those tests/see if they pass? If you didn't download ArrayFire from source, I might recommend doing so since the prepackaged libraries can't yet analyze system requirements.. Might be helpful https://github.com/facebookresearch/flashlight/issues/37.

Thank you, it's ArrayFire's problem


Is there any way to configure number of events that are sent during 1 request or time between batch writes ?

These options are available for NLog AsyncTaskTarget:
https://github.com/NLog/NLog/wiki/How-to-write-a-custom-async-target#batch-logic

Discovered that the BlobTarget was missing configuration of batchSize=100. This will be fixed.

@snakefoot looks like you included the fix for this in #64
Is that right?

@JDetmar Yes now the documentation also describes how to setup batching.

@JDetmar And with #65 then the fix to BlobStorage can be released as ver. 2.3.0


no-unpublished-require/no-unpublished-bin false positives

In published bin files in npm packages, there are false positive for the no-unpublished-require and no-unpublished-bin rules when a path is included in the package.json files array relative to ..
For example, with package.json:
  "bin": "./bin/foo.js",
  "exports": "./index.js",
  "files": [
    "index.js",
    "bin/",
    "lib/"
  ]

The following ./bin/foo.js does not show any no-unpublished-require errors:
#!/usr/bin/env node
'use strict';

const foo = require('..');
const bar= require('../lib/bar.js');

If the package.json is changed to:
  "bin": "./bin/foo.js",
  "exports": "./index.js",
  "files": [
    "./index.js",
    "bin/",
    "./lib/"
  ]

then ./bin/foo.js shows a no-unpublished-require error for both requires. This seems to only occur in bin files. For example, if ./lib/bar.js includes a require('../') it doe snot show a no-unpublished-require` error. The required files are, however, published.
Similarly, if the files entry bin/ is changed to ./bin/, then the entire ./bin/foo.js file shows a no-unpublished-bin error (it seems related).
There's an example at https://github.com/aarongoldenthal/eslint-n-require-false-positive.

This looks to be the same as #99
I will see if I can find some time this week to look


Bump embedded Python to 2.7.17 for windows

What does this PR do?
Bump embedded Python to 2.7.17.
Motivation
2 fixed CVEs are mentioned there: https://github.com/python/cpython/blob/2.7/Misc/NEWS.d/2.7.17rc1.rst
Additional Notes
@derekwbrown: Can you check the content of https://s3.amazonaws.com/dd-agent-omnibus/python-windows-2.7.17-x86.zip and https://s3.amazonaws.com/dd-agent-omnibus/python-windows-2.7.17-nopip-2-amd64.zip.
Here are the steps I used to create these 2 files:
For https://s3.amazonaws.com/dd-agent-omnibus/python-windows-2.7.17-x86.zip

Install https://www.python.org/ftp/python/2.7.17/python-2.7.17.msi with default settings to C:\Python27
Copy C:\Windows\SysWOW64\python27.dll to C:\Python27
Copy msvcr90.dll and Microsoft.VC90.CRT.manifest from https://s3.amazonaws.com/dd-agent-omnibus/python-windows-2.7.16-x86.zip to C:\Python27
Remove C:\Python27\Scripts and C:\Python27\Doc
Remove *.pyc from C:\Python27\Lib
Create a zip from C:\Python27

For https://s3.amazonaws.com/dd-agent-omnibus/python-windows-2.7.17-nopip-2-amd64.zip

Install https://www.python.org/ftp/python/2.7.17/python-2.7.17.amd64.msi  with default settings to C:\Python27
Copy C:\Windows\System32\python27.dll to C:\Python27
Nothing to do for msvcr90.dll and Microsoft.VC90.CRT.manifest
Same as before
Same as before
Same as before

I checked and we get the same result with the following steps:
Install https://www.python.org/ftp/python/2.7.17/python-2.7.17.amd64.msi  with default settings to C:\Python27  with the option Install just for me
Step 2 is not not needed anymore
Same as before
Tests performed on the agent installer built for this pipeline after commit Update sha256 sums for new zips https://gitlab.ddbuild.io/DataDog/datadog-agent/-/jobs/21427944:

Windows 10: (x64/x86): Run a custom check with python 2. Python interpreter and pip list command can be run.
Windows 2008: (x64 only): Run a custom check with python 2. Python interpreter command can be run. pip list failed to create process. but python -m pip list succeed.

Changed the base from master to 6.15.x. The flow is to merge everything in master and then cherry-pick.

Since we want this for 6.15.1 (which as of now is Linux-only), I've split the Linux part into a separate PR so the Windows part doesn't block Linux: https://github.com/DataDog/datadog-agent/pull/4430

(note: we're not supposed to run the pip.exe exec directly on Windows, instead we should always call python.exe -m pip)


Removed the LineUpdate demoProps.js

Hey! I cannot merge your pull request because it does not follow the guidelines 🙁.
You can read the contributing guidelines and the commit style guide and try again!
Thanks!


how to change uart tx rx pins in zephyr

Hi,
I'm using nordic nrf52810 development board and flashed hci_uart code of zephyr to communicate over HCI commands.
Default zephyr uses pins 6 and 8 of uart0 instance. But unfortunately the nordic has other uart tx and rx pins.
Can you please let me know where to change the tx and rx pins in zephyr code?

Hi,
I'm using nordic nrf52810 development board and flashed hci_uart code of zephyr to communicate over HCI commands.
Default zephyr uses pins 6 and 8 of uart0 instance. But unfortunately the nordic has other uart tx and rx pins.
Can you please let me know where to change the tx and rx pins in zephyr code?

You might want to consider the mailing list or Slack for these kind of questions.
You need to use Device Tree

Hi @carlescufi
I have changed the uart pins in file nrf52810_pca10040.dts in zephyrproject/zephyr/boards/arm/nrf52810_pca10040 folder.
And it worked..
But want to know if it is the correct place and only place where the pins has to be changed??

Hi @carlescufi
I have changed the uart pins in file nrf52810_pca10040.dts in zephyrproject/zephyr/boards/arm/nrf52810_pca10040 folder.
And it worked..
But want to know if it is the correct place and only place where the pins has to be changed??

No, you can also create your own board, and with it your own set of .dts files, or you can also use DT overlays, please see the documentation or look for files named .overlay.


Gear Gurus 2.0 Retrospective review ticket

Team

Crossover Score
Runtime
Plan
Github

1/1  🙏
Frontend Link
Plan
Frontend Repo Backend Repo

individual

Name
Team + Indi + Teacher
Runtime
Key Commits
Analytics
Video

Soham

https://anicricket.github.io/gear-gurus2.0/cars2
Backend & Frontend
Backend & Frontend
https://youtu.be/WEEmQ8A19fQ

Mati

Runtime link (aws broken, only work with local host backend)
Frontend Backend
frontend Backend profile
https://www.youtube.com/watch?v=M0qLpgLSlso

Aniket

Frontend Runtime Link
Key Commits
Frontend Backend Profile
Video

Issues we ran into:
class Fibo {
    private BufferedImage image;
    private Graphics graphics;
    private Random random;
    private Supplier<BufferedImage> generator;

    private static final float SQRT5 = (float)Math.sqrt(5);
    // private static final int CANVAS_WIDTH = 600;
    // private static final int CANVAS_HEIGHT = 400;
    private static final int CANVAS_WIDTH = 5000;
    private static final int CANVAS_HEIGHT = 5000;

    public Fibo(String type) {
        final ArrayList<Supplier<BufferedImage>> list = new ArrayList<>();
        list.add(this::recursiveArt);
        list.add(this::recursiveArtWithBinet);
        list.add(this::iterativeArt);
        list.add(this::maxtrixArt);

        image = new BufferedImage(CANVAS_WIDTH, CANVAS_HEIGHT, BufferedImage.TYPE_INT_RGB);
        graphics = image.createGraphics();
        random = new Random();

        if(type.equals("random")) {
            generator = list.get(random.nextInt(list.size()));
        } else {
            generator = switch (type) {
                case "recursive" -> list.get(0);
                case "recursiveWithBinet" -> list.get(1);
                case "iterative" -> list.get(2);
                case "matrix" -> list.get(3);
                default -> list.get(0);
            };
        }
    }

    public BufferedImage generate() {
        return generator.get();
    }

    private BufferedImage recursiveArt() {
        final int centerX = CANVAS_WIDTH / 2;
        final int centerY = CANVAS_HEIGHT / 2;
        recursiveDraw(centerX, centerY, 1, 1, 0, 20);
        return image;
    }

    private void recursiveDraw(int x, int y, int a, int b, int count, int maxInterations) {
        if(count < maxInterations) {
            graphics.setColor(randomHSLColor());
            graphics.fillArc(x, y, (int)(a * 2.5), (int)(a * 2.5), 0, radianToDegree(2*Math.PI));
            final int nextX = x + (int)(b * 3 * Math.cos((double)count));
            final int nextY = y + (int)(b * 3 * Math.sin((double)count));
            recursiveDraw(nextX, nextY, b, a + b, count + 1, maxInterations);
        }
    }

    private int radianToDegree(double radian) {
        return (int)(radian * 180 / Math.PI);
    }

    private Color randomHSLColor() {
        float h = random.nextFloat() * 360;
        float s = 70.0f;
        float l = 50.0f;
        return Color.getHSBColor(h, s, l);
    }

    private BufferedImage recursiveArtWithBinet() {
        final int centerX = CANVAS_WIDTH / 2;
        final int centerY = CANVAS_HEIGHT / 2;
        recursiveDrawWithBinet(centerX - 300, centerY - 200, 0.5, 20, 0.0);
        return image;
    }

    private void recursiveDrawWithBinet(int x, int y, double size, int remainingIterations, double angle) {
        if(remainingIterations > 0) {
            graphics.setColor(randomHSLColor());
            graphics.fillArc(x, y, (int)(size), (int)(size), 0, radianToDegree(2*Math.PI));
            final int newSize = fibonacciBinet(remainingIterations);
            final int nextX = x + (int)(newSize * 0.02 * Math.cos(angle));
            final int nextY = y + (int)(newSize * 0.02 * Math.sin(angle));
            final double newAngle = angle + Math.PI / 3;
            recursiveDrawWithBinet(nextX, nextY, newSize * 0.1, remainingIterations - 1, newAngle);
        }
    }

    private int fibonacciBinet(int n) {
        return Math.round(
            (1.0f / SQRT5) *
            (pow((1 + SQRT5)/2, n) - pow((1 - SQRT5)/2, n))
        );
    }

    private float pow(float a, int n) {
        if(n <= 0) {
            return 1;
        }
        float output = 1;
        for(int i = 0; i < n; i++) {
            output *= a;
        }
        return output;
    }

    private BufferedImage iterativeArt() {
        final int centerX = CANVAS_WIDTH / 2;
        final int centerY = CANVAS_HEIGHT / 2;
        int x = centerX;
        int y = centerY;
        int a = 1;
        int b = 1;
        int count = 0;
        for(int i = 0; i < CANVAS_WIDTH; i++) {
            graphics.setColor(randomHSLColor());
            graphics.fillArc(x, y, (int)(a * 2.5), (int)(a * 2.5), 0, radianToDegree(2*Math.PI));
            final int nextX = x + (int)(b * 3 * Math.cos((double)count));
            final int nextY = y + (int)(b * 3 * Math.sin((double)count));
            x = nextX;
            y = nextY;
            a = b;
            b = a + b;
            count++;
        }
        return image;
    }

    private int fibonacciMatrix(int n) {
        if (n == 0) {
            return 0;
        }

        final int[][] baseMatrix = {
            {1, 1},
            {1, 0}
        };

        final int[][] result = matrixPower(baseMatrix, n - 1);
        return result[0][0];
    }

    private int[][] matrixPower(int[][] matrix, int power) {
        int[][] result = {{1, 0}, {0, 1}};

        if (power == 0) {
            return result;
        }

        while(power > 0) {
            if ((power & 1) == 1) {
                result = multiplyMatrix(result, matrix);
            }
            matrix = multiplyMatrix(matrix, matrix);
            power >>= 1;
        }
        return result;
    }

    private int[][] multiplyMatrix(int[][] a, int[][] b) {
        final int[][] result = new int[a.length][b[0].length];
        for (int i = 0; i < a.length; i++) {
            for (int j = 0; j < b[0].length; j++) {
                for (int k = 0; k < b.length; k++) {
                    result[i][j] += a[i][k] * b[k][j];
                }
            }
        }
        return result;
    }

    private BufferedImage maxtrixArt() {
        final int centerX = CANVAS_WIDTH / 2;
        final int centerY = CANVAS_HEIGHT / 2;
        double angle = 0;
        final double scale = 0.8;
        for(int i = 1; i < 20; i++) {
            final int fibNumber = fibonacciMatrix(i);
            final int size = (int)(fibNumber * scale);
            final int x = centerX + (int)(size * 1 * Math.cos(angle));
            final int y = centerY + (int)(size * 1 * Math.sin(angle));
            graphics.setColor(randomHSLColor());
            graphics.fillArc(x, y, size, size, 0, radianToDegree(2*Math.PI));
            angle += Math.PI / 6;
        }
        return image;
    }
}

issues in the code

Memory Usage:
Generating large images (e.g., 5000x5000 pixels) may lead to high memory usage, potentially causing performance issues or even OutOfMemoryError. Ensure that the chosen image dimensions are reasonable for the available memory.
Random Number Usage:
The randomHSLColor method generates random HSL colors. Depending on your application, you might want to ensure that the colors generated are visually pleasing and that they provide enough contrast for the art.
Code Redundancy:
There is some redundancy in code, particularly in the initialization of the list of Supplier objects. Consider refactoring to eliminate redundancy and improve code readability.
Error Handling:
The code does not include error handling for potential issues, such as invalid input for the Fibo constructor or potential exceptions during matrix operations. Implement appropriate error handling to make the code more robust.
Code Structure:
The code structure may be improved by breaking down the large class into smaller, more manageable classes or methods. This can enhance readability, maintainability, and testability.

@RestController
@RequestMapping("/api/fibo")
public class FiboApiController {
    String last_run = null;

    @GetMapping("/generate")
    public byte[] getFibonacci() {
        Fibo fibo = new Fibo("random");
        BufferedImage image = fibo.generate();
        try {
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            ImageIO.write(image, "png", baos);
            byte[] bytes = baos.toByteArray();
            return bytes;
        }
        catch (IOException e) {
            return null;
        }

    }
}

Issue that the code can face:

Tread Safety:
The last_run variable is shared across multiple requests without synchronization. If this variable is meant to be accessed and modified concurrently, consider making it thread-safe (e.g., using AtomicReference).
Error Handling:
The IOException caught during image writing is logged but not propagated or handled appropriately. You might want to log the exception details or return a meaningful error response to the client.
Exception Handling:
Consider adding more specific exception handling for potential failures during the Fibonacci generation or image writing process. For instance, handle exceptions related to invalid input or failures in the Fibonacci generation.
Resource Cleanup:
It's good practice to close the ByteArrayOutputStream (baos) in a finally block or, better yet, use try-with-resources to ensure proper resource cleanup.
Magic String:
The string "png" is a magic string. Consider defining it as a constant to avoid potential typos and make the code more maintainable.

final runtime

Individual Review "Haoxuan" grading "Mati"

[ ] Individual should show that they were key contributor and example to team.  This includes their participation in ideas, plans, creating individual issues, providing code commits to project, crossover grading participation, being on task and positive example in the classroom.

Individuals Video, Issue(s), Commits(s)

[ ] Video, includes Web demo of key contribution to project, 1 minute
[ ] Issue(s) that show plans/progress to team objectives
[ ] Highlights of key commit(s) in Issues, summarizes code contributions
[ ] Review GitHub analytics for key commits in each weeks during the project, shows consistent participation for 3 weeks

Per check.
0.55 not attempted/no check
0.7 attempted, incoomplete, but some runtime
0.8 mastery and runtime
0.9 above and beyond.
Freeform comment.
Provide positivies and growth summary.
Justify or comment on final score.
Be sure to provide extra details on anything below 0.7 average or above 0.8.

Individual Review Aditya Ajay Nawandhar grading Soham K

[ ] Individual should show that they were key contributor and example to team.  This includes their participation in ideas, plans, creating individual issues, providing code commits to project, crossover grading participation, being on task and positive example in the classroom.

Individuals Video, Issue(s), Commits(s)

[ ] Video, includes Web demo of key contribution to project, 1 minute
[ ] Issue(s) that show plans/progress to team objectives
[ ] Highlights of key commit(s) in Issues, summarizes code contributions
[ ] Review GitHub analytics for key commits in each weeks during the project, shows consistent participation for 3 weeks

Per check.
0.55 not attempted/no check
0.7 attempted, incoomplete, but some runtime
0.8 mastery and runtime
0.9 above and beyond.
Freeform comment.
Provide positivies and growth summary.
Justify or comment on final score.
Be sure to provide extra details on anything below 0.7 average or above 0.8.

Team Review "Tanisha" grading "Aniket"

[ ] The team should have a Web Page(s) that teach/explain: Fibonacci, Algorithm, etc.
[ ] The team should have a Web Page(s) that teach/explain: Sorting, Timing, Compares Swaps, etc.

Team Review ticket containing key Team and individual contributions

[ ] Growth/Accomplishments in work is according to historical Team Plan, or they show revisions to plan according to work
[ ] Short falls/Improvement that could be made in Work or Team Plan, team highlights next steps or improvements that could be made
[ ] Showing key accomplishments according to requirement in Java Backend such as API, Abstract Class(es), Inheritance, Polymorphic behavior, Sorting Algorithms, etc.  In Sorting, there should NOT be static classes or static methods.
[ ] Showing key user interaction and learning(s).  For instance how you visualized Sorting Algorithm: Bubble, Insertion, Selection, Merge... how you captured Big O, analytical data, usage of Data Structures...  And/or, how you provided response and Feedback to user on their success in learning or experiencing your interface.

Per check.
0.55 not attempted/no check
0.7 attempted, incoomplete, but some runtime
0.8 mastery and runtime
0.9 above and beyond.
Freeform comment.
Provide positivies and growth summary.
Justify or comment on final score.
Be sure to provide extra details on anything below 0.7 average or above 0.8.

Individual Review "My name" grading "Their name"

[ ] Individual should show that they were key contributor and example to team.  This includes their participation in ideas, plans, creating individual issues, providing code commits to project, crossover grading participation, being on task and positive example in the classroom.

Individuals Video, Issue(s), Commits(s)

[ ] Video, includes Web demo of key contribution to project, 1 minute
[ ] Issue(s) that show plans/progress to team objectives
[ ] Highlights of key commit(s) in Issues, summarizes code contributions
[ ] Review GitHub analytics for key commits in each weeks during the project, shows consistent participation for 3 weeks

Per check.
0.55 not attempted/no check
0.7 attempted, incoomplete, but some runtime
0.8 mastery and runtime
0.9 above and beyond.
Freeform comment.
Provide positivies and growth summary.
Justify or comment on final score.
Be sure to provide extra details on anything below 0.7 average or above 0.8.

Project Summary
Initial Plan
Changes we made to the plan
Issues we ran into / how we resolved them
Issues we ran into:
class Fibo {
    private BufferedImage image;
    private Graphics graphics;
    private Random random;
    private Supplier<BufferedImage> generator;

    private static final float SQRT5 = (float)Math.sqrt(5);
    // private static final int CANVAS_WIDTH = 600;
    // private static final int CANVAS_HEIGHT = 400;
    private static final int CANVAS_WIDTH = 5000;
    private static final int CANVAS_HEIGHT = 5000;

    public Fibo(String type) {
        final ArrayList<Supplier<BufferedImage>> list = new ArrayList<>();
        list.add(this::recursiveArt);
        list.add(this::recursiveArtWithBinet);
        list.add(this::iterativeArt);
        list.add(this::maxtrixArt);

        image = new BufferedImage(CANVAS_WIDTH, CANVAS_HEIGHT, BufferedImage.TYPE_INT_RGB);
        graphics = image.createGraphics();
        random = new Random();

        if(type.equals("random")) {
            generator = list.get(random.nextInt(list.size()));
        } else {
            generator = switch (type) {
                case "recursive" -> list.get(0);
                case "recursiveWithBinet" -> list.get(1);
                case "iterative" -> list.get(2);
                case "matrix" -> list.get(3);
                default -> list.get(0);
            };
        }
    }

    public BufferedImage generate() {
        return generator.get();
    }

    private BufferedImage recursiveArt() {
        final int centerX = CANVAS_WIDTH / 2;
        final int centerY = CANVAS_HEIGHT / 2;
        recursiveDraw(centerX, centerY, 1, 1, 0, 20);
        return image;
    }

    private void recursiveDraw(int x, int y, int a, int b, int count, int maxInterations) {
        if(count < maxInterations) {
            graphics.setColor(randomHSLColor());
            graphics.fillArc(x, y, (int)(a * 2.5), (int)(a * 2.5), 0, radianToDegree(2*Math.PI));
            final int nextX = x + (int)(b * 3 * Math.cos((double)count));
            final int nextY = y + (int)(b * 3 * Math.sin((double)count));
            recursiveDraw(nextX, nextY, b, a + b, count + 1, maxInterations);
        }
    }

    private int radianToDegree(double radian) {
        return (int)(radian * 180 / Math.PI);
    }

    private Color randomHSLColor() {
        float h = random.nextFloat() * 360;
        float s = 70.0f;
        float l = 50.0f;
        return Color.getHSBColor(h, s, l);
    }

    private BufferedImage recursiveArtWithBinet() {
        final int centerX = CANVAS_WIDTH / 2;
        final int centerY = CANVAS_HEIGHT / 2;
        recursiveDrawWithBinet(centerX - 300, centerY - 200, 0.5, 20, 0.0);
        return image;
    }

    private void recursiveDrawWithBinet(int x, int y, double size, int remainingIterations, double angle) {
        if(remainingIterations > 0) {
            graphics.setColor(randomHSLColor());
            graphics.fillArc(x, y, (int)(size), (int)(size), 0, radianToDegree(2*Math.PI));
            final int newSize = fibonacciBinet(remainingIterations);
            final int nextX = x + (int)(newSize * 0.02 * Math.cos(angle));
            final int nextY = y + (int)(newSize * 0.02 * Math.sin(angle));
            final double newAngle = angle + Math.PI / 3;
            recursiveDrawWithBinet(nextX, nextY, newSize * 0.1, remainingIterations - 1, newAngle);
        }
    }

    private int fibonacciBinet(int n) {
        return Math.round(
            (1.0f / SQRT5) *
            (pow((1 + SQRT5)/2, n) - pow((1 - SQRT5)/2, n))
        );
    }

    private float pow(float a, int n) {
        if(n <= 0) {
            return 1;
        }
        float output = 1;
        for(int i = 0; i < n; i++) {
            output *= a;
        }
        return output;
    }

    private BufferedImage iterativeArt() {
        final int centerX = CANVAS_WIDTH / 2;
        final int centerY = CANVAS_HEIGHT / 2;
        int x = centerX;
        int y = centerY;
        int a = 1;
        int b = 1;
        int count = 0;
        for(int i = 0; i < CANVAS_WIDTH; i++) {
            graphics.setColor(randomHSLColor());
            graphics.fillArc(x, y, (int)(a * 2.5), (int)(a * 2.5), 0, radianToDegree(2*Math.PI));
            final int nextX = x + (int)(b * 3 * Math.cos((double)count));
            final int nextY = y + (int)(b * 3 * Math.sin((double)count));
            x = nextX;
            y = nextY;
            a = b;
            b = a + b;
            count++;
        }
        return image;
    }

    private int fibonacciMatrix(int n) {
        if (n == 0) {
            return 0;
        }

        final int[][] baseMatrix = {
            {1, 1},
            {1, 0}
        };

        final int[][] result = matrixPower(baseMatrix, n - 1);
        return result[0][0];
    }

    private int[][] matrixPower(int[][] matrix, int power) {
        int[][] result = {{1, 0}, {0, 1}};

        if (power == 0) {
            return result;
        }

        while(power > 0) {
            if ((power & 1) == 1) {
                result = multiplyMatrix(result, matrix);
            }
            matrix = multiplyMatrix(matrix, matrix);
            power >>= 1;
        }
        return result;
    }

    private int[][] multiplyMatrix(int[][] a, int[][] b) {
        final int[][] result = new int[a.length][b[0].length];
        for (int i = 0; i < a.length; i++) {
            for (int j = 0; j < b[0].length; j++) {
                for (int k = 0; k < b.length; k++) {
                    result[i][j] += a[i][k] * b[k][j];
                }
            }
        }
        return result;
    }

    private BufferedImage maxtrixArt() {
        final int centerX = CANVAS_WIDTH / 2;
        final int centerY = CANVAS_HEIGHT / 2;
        double angle = 0;
        final double scale = 0.8;
        for(int i = 1; i < 20; i++) {
            final int fibNumber = fibonacciMatrix(i);
            final int size = (int)(fibNumber * scale);
            final int x = centerX + (int)(size * 1 * Math.cos(angle));
            final int y = centerY + (int)(size * 1 * Math.sin(angle));
            graphics.setColor(randomHSLColor());
            graphics.fillArc(x, y, size, size, 0, radianToDegree(2*Math.PI));
            angle += Math.PI / 6;
        }
        return image;
    }
}

issues in the code

Memory Usage:
Generating large images (e.g., 5000x5000 pixels) may lead to high memory usage, potentially causing performance issues or even OutOfMemoryError. Ensure that the chosen image dimensions are reasonable for the available memory.
Random Number Usage:
The randomHSLColor method generates random HSL colors. Depending on your application, you might want to ensure that the colors generated are visually pleasing and that they provide enough contrast for the art.
Code Redundancy:
There is some redundancy in code, particularly in the initialization of the list of Supplier objects. Consider refactoring to eliminate redundancy and improve code readability.
Error Handling:
The code does not include error handling for potential issues, such as invalid input for the Fibo constructor or potential exceptions during matrix operations. Implement appropriate error handling to make the code more robust.
Code Structure:
The code structure may be improved by breaking down the large class into smaller, more manageable classes or methods. This can enhance readability, maintainability, and testability.

@RestController
@RequestMapping("/api/fibo")
public class FiboApiController {
    String last_run = null;

    @GetMapping("/generate")
    public byte[] getFibonacci() {
        Fibo fibo = new Fibo("random");
        BufferedImage image = fibo.generate();
        try {
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            ImageIO.write(image, "png", baos);
            byte[] bytes = baos.toByteArray();
            return bytes;
        }
        catch (IOException e) {
            return null;
        }

    }
}

Issue that the code can face:

Tread Safety:
The last_run variable is shared across multiple requests without synchronization. If this variable is meant to be accessed and modified concurrently, consider making it thread-safe (e.g., using AtomicReference).
Error Handling:
The IOException caught during image writing is logged but not propagated or handled appropriately. You might want to log the exception details or return a meaningful error response to the client.
Exception Handling:
Consider adding more specific exception handling for potential failures during the Fibonacci generation or image writing process. For instance, handle exceptions related to invalid input or failures in the Fibonacci generation.
Resource Cleanup:
It's good practice to close the ByteArrayOutputStream (baos) in a finally block or, better yet, use try-with-resources to ensure proper resource cleanup.
Magic String:
The string "png" is a magic string. Consider defining it as a constant to avoid potential typos and make the code more maintainable.

Final Runtime Link
Future improvements
Some things we were thinking of were having animations to help the user visualize the sorting algorithms, rather than just see the comparison in time durations of each.


Why is  GO:0030041 actin filament polymerization showing as a direct child of biological process?

See http://amigo.geneontology.org/amigo/term/GO:0008150#display-lineage-tab

But when clicked on it shows much further down the graph:

Same thing for GO:0030097 hemopoiesis. Very weird

It looks like possibly a more-or-less direct link:
http://amigo.geneontology.org/visualize?inline=false&term_data=GO%3A0030041&format=png&term_data_type=string&mode=amigo
This is probably better in the ontology tracker?

But why is that direct link there at all? Seems like it should be removed
as there is a more accurate is_a path to BP
On Fri, Aug 3, 2018 at 4:10 PM kltm<EMAIL_ADDRESS>wrote:

It looks like possibly a more-or-less direct link:
http://amigo.geneontology.org/visualize?inline=false&term_data=GO%3A0030041&format=png&term_data_type=string&mode=amigo
This is probably better in the ontology tracker?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/geneontology/amigo/issues/525#issuecomment-410398364,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABcuEGAwTC0eNcODKLxSwq4MXUCiAxKgks5uNNhggaJpZM4Vub4p
.

@selewis As far as AmiGO is concerned, unless there is a bug in its graph interpretation lib, it's above its pay grade. I'm just trying to figure out where we at least open an analogous ticket so people capable of fixing it have the chance to see there there is an issue in the first place--this tracker is likely not that venue.

Hi @kltm
All other classes I looked at that are direct children of 'biological process' in AmiGO are also asserted to be 'biological process' in GO, but GO:0030041 actin filament polymerization and hemopoiesis are not.

Can you check whether there is a bug in the graph interpretation lib?
Thanks, Pascale

@pgaudet AmiGO does nothing--it is an almost completely transparent layer over data generated elsewhere in the pipeline. The question here is whether the source issue is in go-ontology or elsewhere--reporting details here will only get seen by me, and I will not be the one fixing the ontology.

As shown in the screenshot, in the ontology these terms are not direct children of biological process, so (if I understand correctly) this should be reflected in AmiGO. What would be the next step in troubleshooting this ? For me what's in between is a black box.
Thanks, Pascale

As an example, what you see in AmiGO is the state of the data a month ago (some excitement earlier prevented the release last week: https://build.geneontology.org/job/geneontology/job/pipeline/job/release/). The first thing might be to see if this is a problem only with the old ontology. Those should be available here:
http://current.geneontology.org/ontology/index.html
If it is a problem with the old, but not the new, this would either get closed or go to "Clearing" in the current project.

I dont see where the ontology is here: https://build.geneontology.org/job/geneontology/job/pipeline/job/release/).
In any case, shouldn't I see something different in the go-edit version of the ontology, if there had been a change since the last release ? 'Current',  'July 2-2018 releases', and the go-edit versions  have the same information:
[Term]
id: GO:0030041
name: actin filament polymerization
namespace: biological_process
def: "Assembly of actin filaments by the addition of actin monomers to a filament." [GOC:mah]
synonym: "actin polymerization" EXACT []
synonym: "actin polymerizing activity" RELATED []
is_a: GO:0008154 ! actin polymerization or depolymerization
is_a: GO:0051258 ! protein polymerization

and there is no ticket stating that these terms have been modified.
What would be the next step ?
Thanks, Pascale

@pgaudet
The first thing might be to see if this is a problem only with the old ontology. Those should be available here:
http://current.geneontology.org/ontology/index.html

@kltm
I pasted what I see in 'current' above. This seems right to me. Sorry if I misunderstood your point.
Pascale

This is very odd. It's also quite confusing for users. Can we increase the priority on improving this ?


Facebook connect creating crash

going through onboarding, tapped on connect with facebook (I have the facebook app and am logged in so I get sent there), I am asked to authorize artsy, when I get back to artsy, I see the splash screen and then it crashes.

These two crashes showed up in hockey at that time (that could be the reason it’s happening)
https://rink.hockeyapp.net/manage/apps/37020/crash_reasons/147486486/multiple
https://rink.hockeyapp.net/manage/apps/37020/crash_reasons/147486579/multiple
(they look like they’re the same)

Looks like I nuked a bit too much code in the original PR.
Fixing it now, and will close the associated crashes (all of them regarding 3.0.2. that seem to be in the Emission App delegate about inserting a nil object).
Thanks for flagging @katarinabatina :+1:

This got fixed ages ago lol.


Add MAC ACL support

Enhancement summary
Add support for MAC ACLs in eos_cli_config_gen.
Which component of AVD is impacted
eos_cli_config_gen
Use case example
MAC ACLs are needed for the IXP L2 peering network I'm working on porting to AVD. This feature will allow defining an ingress MAC ACL, which gets applied to the connected end points as port_profiles: structured_config: mac_access_group_in.
Describe the solution you would like
Since this is essentially going to be the same as IPv6, I think the AVD structure syntax is already pretty set. The MAC ACLs need to be globally defined, then also assigned to interfaces, so the steps are:

mac_access_lists: with children for each MAC ACL name, and their sequence numbers with raw action strings. (I'm assuming we don't want to get in the business of building individual  ACL lines as structured config)
ethernet_interfaces: Ethernet_interface_1: mac_access_group_in & mac_address_group_out - The same for port-channels and SVIs? I don't know how much commonality there is in the code base between different interface types, so I'll need to dig into this.
Documentation updates.
Unit tests? I'll need help once I get to this point.

This won't be integrated into eos_designs since it seems like the existing ACLs aren't integrated into that either. Are we eventually going to want eos_designs endpoint adapters / port profiles to include support for IPv4/IPv6/MAC ACLs, or leave those to custom structured config?
Describe alternatives you have considered
It seems like the current solution would be to dump the MAC ACL entirely as raw EOS config lines into the ports.
Additional context
No response
Contributing Guide

[X] I agree to follow this project's Code of Conduct

I'm looking at the documentation templates and I figure I can either create a new table after IPv6 for just MAC ACLs, or would we rather add them as two more columns in the L2 table? I don't know how cluttered we want to make each table with all the possible features.
Thoughts?

I guess we also don't document IPv4/IPv6 ACLs for unrouted switchports. So maybe after the L2 table we want to create an L2 Port ACL table for v4,v6,MAC port ACLs.


Heartbeat data is returned for longer while editing custom CSS?

📑 I have found these related issues/pull requests
I have checked and cannot see a similar issue
🛡 Security Policy

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

Description
When editing the custom CSS on a status page, I can see that the data on the heartbeat bar(?) is completely filled out.

When I save this CSS, however, only approx. 15 minutes of data is returned

👟 Reproduction steps
Edit Custom CSS
Save Custom CSS
👀 Expected behavior
Data is fully returned to fill all heartbeat bars
😓 Actual Behavior
Data is not fully propagated to heartbeat bars
🐻 Uptime-Kuma Version
1.23.11
💻 Operating System and Arch
Ubuntu 22.01.1 LTS x64
🌐 Browser
Chrome 122.0.6261.95
🖥 Deployment Environment

Runtime: nodejs
Database: sqlite embedded
Filesystem used to store the database on: Windows
number of monitors: 65

📝 Relevant log output
No response

Please see https://github.com/louislam/uptime-kuma/issues/4482
How have you deployed concretely?


Docs Aren't Friendly // Add Introduction

There's no friendly introduction to the documentation explain what this is all about. It's not what I expected to find when exploring the documentation.

Can you be more specific? Any links to examples where you feel this is done well would be much appreciated. Thanks!

Kenny uses writes pretty good docs pages: http://docs.python-tablib.org/en/latest/
Usage example, mission/philosophy, basic usage, advanced usage, contributing, support.

Maybe we could organize it like this:

Describe refine.bio and what someone can do with it (i.e search and download data)
Who/What is it for?

Link to example use cases

Who/What is it NOT for?
List of FAQs (Pick the top 5)
Contents (if we really want it. It's sticky and always visible on the left)
Questions/Feedback? Email<EMAIL_ADDRESS>[ or another preferred method]

Closed by #56


Cannot build with Gradle

gradlew build
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
I have not used grade before and I have installed the latest gradle, 2.12

Re-Added gradle wrapper jar with latest commit. I've tried it and it worked for me.


Multiple libraries were found for "SD.h" when using both FirebaseJson and ESP Firebase Client

I installed both Firebase Arduino Client Library for ESP8266 and ESP32 version 2.5.1 and FirebaseJSON version 2.5.0. As I try to upload the script to my WeMos, I get the error meesage:
collect2: error: ld returned 1 exit status Multiple libraries were found for "SD.h"  Used: /Users/user/Library/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SD  Not used: /Users/user/Desktop/Arduino.app/Contents/Java/libraries/SD
exit status 1 Error compiling for board LOLIN(WEMOS) D1 mini Pro.
When removing the Firebase Arduino Client Library for ESP8266 and ESP32 imports, the script uploads fine without problem to my WeMos.
I also get a repeating red text on my Arduino IDE console:
/Users/phakheeman/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld: /var/folders/nm/1d0_95tn0876rwqns3f33c300000gn/T/arduino_build_344249/libraries/FirebaseJson/cJSON/cJSON_Utils.c.o: in function cJSONUtils_FindPointerFromObjectTo':
/Users/phakheeman/Documents/Arduino/libraries/FirebaseJson/src/cJSON/cJSON_Utils.c:199: multiple definition of cJSONUtils_FindPointerFromObjectTo'; /var/folders/nm/1d0_95tn0876rwqns3f33c300000gn/T/arduino_build_344249/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/json/cJSON/cJSON_Utils.c.o:/Users/phakheeman/Documents/Arduino/libraries/Firebase_Arduino_Client_Library_for_ESP8266_and_ESP32/src/json/cJSON/cJSON_Utils.c:199: first defined here /Users/phakheeman/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld: /var/folders/nm/1d0_95tn0876rwqns3f33c300000gn/T/arduino_build_344249/libraries/FirebaseJson/cJSON/cJSON_Utils.c.o: in function cJSONUtils_GetPointer':`
I'm using a Macbook Pro 2020 with an M1 chip.
I tried installing the Firebase client that's only for ESP8266 but that didn't fix it either.

The error showed the problem already.
Because you install other third party libraries named SD.h which is already installed in ESP8266 Arduino Core library
Remove this folder.
/Users/user/Desktop/Arduino.app/Contents/Java/libraries/SD

Are you new to this Firebase library?
The FirebaseJson library was included in the Firebase library already and not need to install.

Im indeed new, sorry :))


E2E testing: editor

Checklist

basic formats
customized features: image upload, mention, embeds
normalization: copy & paste from other sources (e.g. Google Docs)

Refs

https://matters.canny.io/bug-reports/p/4adb39

uni tests might be better


Added repository autogeneration for GitHub teams

Note: This PR contains a superset of the changes made in #177. That one should probably be merged first.
Warning: When testing this functionality, be advised that this is the first feature in the app to actually modify GitHub data rather than simply read it (though it only creates repos, does not delete anything). I've tested it and it works fine, but proceed with caution on real course organizations.
This PR adds the functionality outlined in #176. It adds the following:

A new "Create Team Repos" view at ``/courses/:course_id/teams/create_team_repos that allows the user to specify:

A naming pattern for the repositories using {team}. For example, given teams foo and bar, specifying the naming pattern {team}-feedback would create repos foo-feedback and bar-feedback.
A team name Regex: if you don't want to create repos for every team, you can specify with a regular expression which teams to create repos for. If you specified fo as your regex in the above example, only foo-feedback would be created.
Team permission: the permission level the team is given to the repository. Options are read (pull), write (push), admin.
Repo visibility: whether the repo should be public or private.
The form looks like this:

To facilitate the repo creation, a new CourseJob is implemented called CreateTeamReposJob. This job is not available on the jobs menu; rather, the job is triggered when the create team repos form is submitted. The result summary is available in the job log on the jobs menu.

This job implements all the interactions with the GitHub API necessary to create the repositories and set up permissions correctly. This uses GraphQL queries as well as one REST API query because the GraphQL API did not have the requisite functionality (I mention this because this counts against a rate limit not displayed, but the impact is fairly negligible).

A button to the create team repos page is added to the top right of the teams page of a course.

This closes #176.

Updated this PR to fix #183, "View Jobs" button is now styled similarly to the dropdowns next to it.

Updated this PR to add team contributors to repos to the repo search page as well. Note that the UX on this page is fairly messy at this point and we should redo it at some point. This closes #184.


Some strange NaNs popping up during training

Please dismiss this issue if it's just user error - I have not checked this against running the same data against a similar model in PyTorch but I've been doing some validation training on some data on a "toy" network and have been seeing NaNs cropping up after a certain amount of time.
The code below shows the forward pass and loss function, using the tanh on the last layer before the sigmoid seems to be resolving the NaNs in training (either SGD or Adam) so my guess is that maybe the activations are just getting really really large - so this well could be the issue although I haven't taken a minute to inspect the actual weights to confirm.
I'm including the loss, although I don't think this is the issue - I switched to an L2 norm loss, and am using max entropy as well since this toy model is meant to confirm this.
Figured I'd ask, and if there is a better place/forum for this kind of thing please let me know as this is less of a confirmed issue and more a request for a bit of clarification if I'm not using the library correctly (as mentioned, I haven't tried to repro on PyTorch or anything).  Meanwhile, using the tanh instead of ReLU seems to resolve the NaNs in training.
`fn forward(&self, xs: &Tensor, train: bool) -> candle_core::Result {
let (b_sz, _img_dim) = xs.dims2()?;
let (w, h, c) = self.in_image_shape_whc;
    let xs = xs
        .reshape((b_sz, w, h, c))?
        .permute((0, 3, 1, 2))?
        .apply(&self.conv1)?
        .apply(&self.conv2)?
        .max_pool2d(2)?
        .apply(&self.conv3)?
        .apply(&self.conv4)?
        .max_pool2d(2)?
        .apply(&self.conv5)?
        .apply(&self.conv6)?
        .max_pool2d(2)?
        .apply(&self.conv7)?
        .max_pool2d(2)?
        .flatten_from(1)?
        .apply(&self.fc1)?;

    let xs = &xs.tanh()?;

    let xs = self.dropout.forward(&xs, train)?.apply(&self.fc2)?;
    //let xs = xs.apply(&self.fc2)?;
    let xs = sigmoid(&xs)?;

    return Ok(xs);
}`

`
let lambda_maxent = (0.002 / batch_n as f64);
let log_states = output_states_eps.log()?;
let ent_states = (lambda_maxent * (-1.0 * output_states_eps.broadcast_mul(&log_states)?)?.sum_all()?)?;
let lambda_l2 = 1.0;
//let mse_loss = (lambda_mse * loss::mse(&output_states, &target_states)?)?;
let L2_loss = (lambda_l2 * (&output_states.powf(2.0)? - &target_states.powf(2.0)?)?
.abs()?
.mean_all()?
)?;
let loss = (L2_loss - ent_states)?;
    return Ok(loss);

`
Thanks, and really excited about this library!

I am so sorry - I meant to post this in the candle repository and didn't realize I had both issue panes on both respective repos open, please ignore this / would delete if I could but I don't see the option to.


Trajectory prediction distribution visualization.

Hi Inhwan,
Do you know how to visualize the distribution-like trajectory like in Sophie?
Thanks.

Hi @daleigehhh,
You can achieve this using the Seaborn library.
Just substitute the generated trajectories with seaborn.displot.

Thank you, I successfully plot the distribution by using seaborn.kdeplot

Hi @InhwanBae,
I appreciate to your kind reply. And I have another question.
In your code, 'utils/dataloader_image.py':
def __getitem__(self, index):         start, end = self.seq_start_end[index]         frame = self.frame_list[index] + 70 - 5         out = [self.obs_traj[start:end, :], self.pred_traj[start:end, :],                self.frame_list[index], self.get_image_from_frame(frame)]         return out
When acquiring the starting frame image corresponding to trajectories, why  frame = self.frame_list[index] + 70 - 5. I am confusing about the numbers 70 and 5. I guess the number 70 represents the total frames counted in 8-12 protocol, what if I organize the training data's obs length to 2,4,6,8. Should I change the number as well or just directly locate the frame in the dataset table. Thanks!

Hi @daleigehhh,
You are right. 70 is used to obtain the frame ID of the last observation frame, calculated as ({obs_len} - 1) * 10 (10 is the multiplier between video fps and trajectory fps). Here, we manually subtract 5 for better visualization. You can use 10-5, 30-5, 50-5, 70-5 for each observation length of 2, 4, 6, and 8, respectively.


Intermittent Floating Point Exception on N64Digital-modded console

Had someone approach me with an issue in the Mimi ROM: Around 50% of the time, they're experiencing a floating point exception after the reading last input in the range test, just before the results are displayed. When performing a 3- or 5-sample test, it collects the first 2 or 4 samples without issue, then crashes at the end of the final one. They're using an N64Digital-modded console and reported that the issue first appeared after they installed the mod.
Details I've been able to gather:

N64Digital-modded NTSC console

No clock mod
v2.1.34 firmware
Using HDMI output

Console has expansion pak installed
ROM is running on Everdrive X-5
Exception occurs at end of input read approx. 50% of the time
Exception occurs on both original release (2022-12-25) and latest (2023-04-13)
Exception did not occur prior to installation of N64Digital
Exception occurs with OEM controller as well as others, incl. Hori

I have a similar setup with two notable distinctions: Everdrive (X7 vs. X5) and FW version (2.1.43 vs. 2.1.34). I'm unable to replicate the issue. Do you have any ideas or thoughts?
https://user-images.githubusercontent.com/26632151/235372086-b8a43778-0881-49b8-9365-8290d509a01a.mp4

hi. quick investigation:

looking at the disassembly, the exception seems to be caused by a sqrtf instr in get_range_color_diagonal
cause appears to be inexact operation. from vr4300 manual:

The FPU generates the inexact operation exception in the following cases.

If the accuracy of the rounded result drops
If the rounded result overflows
If the rounded result underflows and if the FS bit of FCR31 is set with the underflow and illegal operation exceptions disabled

from what i understand, if the exception is enabled it really should happen pretty much All The Time. so the question is why does it happen on their console and not everywhere else. looking at the code further, it doesn't really seem __init_cop1 clears any enabled exceptions that could be left over from previously ran software (ed64 menu in this case?). the only other place where fcr31 gets set is in the interrupt end handler, which ig could be caused by stack corruption or so.
setting the the inexact op enable flag manually makes me able to reproduce the issue, so i made a build where i clear it instead. let me know if that resolves the issue
mimi-11d82bc.zip

Sounds like your investigation led you in the right direction - this resolved the user’s issue. Thanks for once again lending your expertise.
I’d love to dive deeper into the cause of this one but that seems difficult without being able to reproduce directly. Is there any way a bug in the Everdrive firmware could cause an issue like this? (I don’t see anything in their change log to support this, FWIW). Alternatively, could anything user-controllable on the Everdrive, like settings, wallpaper, or GS codes, be the culprit?
If you’re ok with the current fix, feel free to close this issue. Thanks again!


Notifier: fails to notify Archivematica, and doesn't have any logs about it

Probably because it can't send callbacks to our Archivematica instance.
See ingest ID d5ff7a8a-4d8b-48cd-80c5-d05ae1d2f8e5

Ah, I did find the logs, there's just no big traceback.

Archivematica is world-readable in wellcometrust/archivematica@03749d2, so the notifier can make callbacks. It seems to be getting a 401 in the callback response:
[WARN] [03/28/2019 14:53:26.750] [main-actor-system-akka.actor.default-dispatcher-1946] [main-actor-system/Pool(shared->https://archivematica-storage-service.wellcomecollection.org:443)] [0 (WaitingForResponseEntitySubscription)] Response entity was not subscribed after 1 second. Make sure to read the response entity body or call `discardBytes()` on it. POST /api/v2/file/0ba7cdd8-e0ce-4f90-a87e-c6aaa3821f0a/wellcome_callback/ Strict(986 bytes) -> 401 Unauthorized Chunked
No newer events found at the moment. Retry.

This works!


Passing config options to openssl

How do I configure hunter to pass a config option like no-afalgeng to the build process?

From Gitter chat:

Update OpenSSL scheme https://github.com/ruslo/hunter/blob/a4e16e4386b03ef0d5ba15487a786b0c6b1a721e/cmake/projects/OpenSSL/schemes/url_sha1_openssl.cmake.in
change PACKAGE_INTERNAL_DEPS_ID for OpenSSL: https://docs.hunter.sh/en/latest/reference/user-modules/hunter_download.html
test it with jenkins.py: https://github.com/ruslo/hunter/wiki/dev.hunter.root
If it works then open pull request

Question for me now is about the cases when current OpenSSL scheme doesn't work. What do we missing and how can we detect this case using CMake. I.e. we need:
if(<something-bad>)
  list(APPEND configure_command no-afalgeng)
endif()

Closing inactive discussion.


170 - System Search and Station Search By System Name for Trade

closes #170

Closed to be revisited in the future.
Going for one endpoint for each search bar/ drop down


The issue of increased load due to Prometheus hot restart

What did you do?
Manually executing command：curl -XPOST -k -u prometheus:xxxxxxxxxxxxxx https://<IP_ADDRESS>:8888/prometheus/-/reload，The node's system kernel is consuming an excessively high amount of CPU, leading to increased node load. This issue consistently occurs on CentOS 7.9, and Prometheus is accessed via an Nginx proxy.
system info：

cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

uname -a
Linux zhangxiaoming-5.novalocal 3.10.0-1127.el7.x86_64 #1 SMP Tue Mar 31 23:36:51 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

What did you expect to see?
No response
What did you see instead? Under which circumstances?

System information
Linux  3.10.0-1127.el7.x86_64
Prometheus version
Version	2.51.0
Revision	c05c15512acb675e3f6cd662a6727854e93fc024
Branch	HEAD
BuildUser	root@b5723e458358
BuildDate	20240319-10:54:45
GoVersion	go1.22.1

Prometheus configuration file
No response
Alertmanager version
No response
Alertmanager configuration file
No response
Logs
ts=2024-06-14T04:48:19.057Z caller=main.go:1335 level=info msg="Loading configuration file" filename=/etc/prometheus/prometheus.yml
ts=2024-06-14T04:48:28.776Z caller=main.go:1372 level=info msg="Completed loading of configuration file" filename=/etc/prometheus/prometheus.yml totalDuration=9.718856262s db_storage=5.131µs remote_storage=3.412µs web_handler=718ns query_engine=3.207µs scrape=61.007595ms scrape_sd=1.374906ms notify=55.92µs notify_sd=50.489µs rules=9.654588734s tracing=13.889µs

How many recording rules do you have?

I'm not sure if it depends on the amount of recording rules. I think it is related to the call of the reload URL. If I restart Prometheus with all rules and configs already generated, no need for the reload call, it will run normally with very low CPU usage.


Add enable_position_increments as a Property on ITokenCountProperty

What I'm trying to achieve
I am trying to create a 'CreateIndexDescriptor' mapping descriptor using NEST Fluent API and I found that the enable_position_increments is not available on the TokenCountProperty class or on the TokenCountPropertyDescriptor (https://github.com/elastic/elasticsearch-net/blob/master/src/Nest/Mapping/Types/Specialized/TokenCount/TokenCountProperty.cs)
For my use case scenario, I need to store the token_count on a StopWords Analayzer with enable_position_increments set to false so that in stores the count after the Stopwords analyzer strips out the stop words. As per documentation here, https://www.elastic.co/guide/en/elasticsearch/reference/current/token-count.html , it defaults to true. So i need to explicitly set it to false for my use case.
This is how I set the "token_count" property (portion of the code on the fluent api)
.Properties(ps => ps.Text(
    ns => ns.Name(a => a.Value)
            .Analyzer("name_analyzer")
            .Fields(fs => fs
                .Text(ss => ss.Name("StopWords")
                    .Analyzer("stop_words_analyzer")
                    .Fields(f => f
                        .TokenCount(tc => tc
                                    .Name("length")
                                    .Analyzer("standard")))))

which generates this portion as a part of my mapping JSON
"StopWords": {
    "type": "text",
    "fields": {
        "length": {
            "type": "token_count",
            "analyzer": "standard"
            }
        },
        "analyzer": "stop_words_analyzer"
}

I want to be able to add enable_position_increments to this JSON via the NEST Fluent API
"StopWords": {
    "type": "text",
    "fields": {
        "length": {
            "type": "token_count",
            "analyzer": "standard",
           "enable_position_increments" : false
            }
        },
        "analyzer": "stop_words_analyzer"
}

The solution I would like
A bool property on ITokenCountProperty
[DataMember(Name ="enable_position_increments")]
bool? EnablePositionIncrements { get; set; }

and the Descriptor implementation for the same
Alternatives considered
I tried using the Custom method as suggested in guide post (https://www.elastic.co/guide/en/elasticsearch/client/net-api/current/extending-nest-types.html) but that Custom method seems to be available only on the PropertiesDescriptor class and not on the IPropertiesDescriptor interface... It's not available on the TokenCountPropertiesDescriptor class
Additional context
Is there any other workaround that I can use to set the enable_position_increments to false via NEST Client?

Also I have the fix for this feature in a local branch with updated Unit Tests... I don't seem to have permissions to push up my branch so that I can submit a PR for it. I did sign the "Individual Contributor License Agreement" and submit the docusign document

Also I have the fix for this feature in a local branch with updated Unit Tests... I don't seem to have permissions to push up my branch so that I can submit a PR for it.

In order to submit a PR, you'll need to

fork the repository to an account under your control e.g. https://github.com/rdasan,
configure https://github.com/elastic/elasticsearch-net as a remote repository (usually named upstream) of the fork
create a branch on the fork with the fix
open a PR against upstream,

Take a look at https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request-from-a-fork for more details

@russcam Thanks for the tip... Have submitted the PR : https://github.com/elastic/elasticsearch-net/pull/5188

Have opened a PR against the 7.x branch as well. Since I'm using the latest 7.10.1 NEST nuget package. I'm assuming that's the correct branch for the PR merge? #5189

I've merged #5188, thank yo @rdasan. I'll backport this and it'll be included in the 7.11 release.

@stevejgordon / @russcam what would be the tentative date for 7.11 release?

@rdasan You're welcome. I don't have exact dates for it yet, but it'll hopefully be sometime relatively soon in the new year.


place_and_route: detailed_routing: Add reports

It would be nice to have additional reports after detailed routing is finished.
This PR adds those in detailed_routing step. Report commands are similar to the ones in global_routing step.
This is part of https://github.com/hdl/bazel_rules_hdl/pull/243 and https://github.com/google/xls/issues/1226
@mithro please take a look

Will merge on Monday, remind me if you don't see that happening.


fix: do not let closest peers run forever

The DHT takes a signal not a timeout so if a timeout is passed,
create a TimeoutController that will abort the query after the
timeout.

I think longer term we need to sweep the codebase and rationalise all this stuff.  Drop timeouts and switch everything to AbortSignal/AbortControllers.


Org submitting account request with duplicate org name following incorrect phone number submission

Description
We're seeing many errors like this: https://portal.azure.com/#blade/AppInsightsExtension/DetailsV2Blade/ComponentId/{"SubscriptionId"%3A"7d1e3999-6577-4cd5-b296-f518e5c8e677"%2C"ResourceGroup"%3A"prime-simple-report-prod"%2C"Name"%3A"prime-simple-report-prod-insights"%2C"LinkedApplicationType"%3A0%2C"ResourceId"%3A"%252Fsubscriptions%252F7d1e3999-6577-4cd5-b296-f518e5c8e677%252FresourceGroups%252Fprime-simple-report-prod%252Fproviders%252FMicrosoft.Insights%252Fcomponents%252Fprime-simple-report-prod-insights"%2C"ResourceType"%3A"microsoft.insights%252Fcomponents"%2C"IsAzureFirst"%3Afalse}/DataModel/{"eventId"%3A"7255abb0-e32e-11eb-808d-bd923c1f437a"%2C"timestamp"%3A"2021-07-12T16%3A30%3A14.034Z"%2C"cacheId"%3A"dfb35ece-abc8-4e24-ae90-e2766443afca"%2C"eventTable"%3A"requests"} following a slew of other errors like this: https://portal.azure.com/#blade/AppInsightsExtension/DetailsV2Blade/ComponentId/{"SubscriptionId"%3A"7d1e3999-6577-4cd5-b296-f518e5c8e677"%2C"ResourceGroup"%3A"prime-simple-report-prod"%2C"Name"%3A"prime-simple-report-prod-insights"%2C"LinkedApplicationType"%3A0%2C"ResourceId"%3A"%252Fsubscriptions%252F7d1e3999-6577-4cd5-b296-f518e5c8e677%252FresourceGroups%252Fprime-simple-report-prod%252Fproviders%252FMicrosoft.Insights%252Fcomponents%252Fprime-simple-report-prod-insights"%2C"ResourceType"%3A"microsoft.insights%252Fcomponents"%2C"IsAzureFirst"%3Afalse}/DataModel/{"eventId"%3A"5a179b94-e31f-11eb-bd23-438e08a89a9d"%2C"timestamp"%3A"2021-07-12T14%3A42%3A15.483Z"%2C"cacheId"%3A"5dd00b6a-be85-4d37-b2d5-8f1d239b6320"%2C"eventTable"%3A"exceptions"}
This suggests that this org tried to submit an account request with an invalid phone number, failed, but in the process created an org with their name, and then when they corrected the phone number, they could no longer submit the form due to organization name constraints. We need to investigate why orgs are being created when phone numbers are incorrect in the first place, or adjust messaging to the user so they don't keep submitting forms and encountering these failures.

wont fix. We will be rewriting the form in https://docs.google.com/document/d/1DCiFyo0pYrZ8ORt6NJNEl9yHimubklikDXONQZaX2FY/edit#


Please, use peerDependencies instead of dependencies

Since this is a react component, it's more like a plugin, so please use peerDependencies.
You don't want to introduce extra copies of node modules, especially with react. Multiple copies of React will result in: https://gist.github.com/jimfb/4faa6cbfb1ef476bd105

Thanks ur information


Clean code in PMMLModel constructor when loading model signature

Create separate class responsible for loading pmml model (using pmml api) which will be used twice

to load signature in model
to create model instance which will be evaluated in model instance

Consider doing something similar in case of h2o model


Integrate wasm to cosmos-sdk failed.

I tried to integrate v0.27.0-rc0 into our project, and imported the nameservice contract according to the documentation, and successfully executed a series of query and tx commands. But when I try to stop the chain (via starport), the chain crashes, below is part of the error stack:
[STARPORT] 💿 Saving genesis state...
panic: Error calling the VM: Cache error: Error opening Wasm file for reading: No such file or directory (os error 2)

goroutine 1 [running]:
chain/x/wasm/keeper.ExportGenesis.func1(0x1, {{0x140016f07e0, 0x20, 0x20}, {0x14001522960, 0x2a}, {0x3, {0x0, 0x0}}})
        /path/to/chain/x/wasm/keeper/genesis.go:93 +0x264
chain/x/wasm/keeper.Keeper.IterateCodeInfos({{0x102c9e648, 0x14001690500}, {0x102cc7030, 0x140011d98f0}, {0x102cb5788, 0x140000ef200}, {0x102c9c5b8, 0x140016911d0}, {0x102c984b8, 0x140000310f8}, ...}, ...)
        /path/to/chain/x/wasm/keeper/keeper.go:741 +0x1f8
chain/x/wasm/keeper.ExportGenesis({{0x102cb6670, 0x1400005a0c8}, {0x102cc5718, 0x140016932c0}, {{0x0, 0x0}, {0x0, 0x0}, 0x338, {0x0, ...}, ...}, ...}, ...)
        /path/to/chain/x/wasm/keeper/genesis.go:90 +0x1dc
chain/x/wasm.AppModule.ExportGenesis({{}, {_, _}, _, {_, _}, {_, _}, {_, _}}, ...)
        /path/to/chain/x/wasm/module.go:172 +0x84
github.com/cosmos/cosmos-sdk/types/module.(*Manager).ExportGenesis(_, {{0x102cb6670, 0x1400005a0c8}, {0x102cc5718, 0x140016932c0}, {{0x0, 0x0}, {0x0, 0x0}, 0x338, ...}, ...}, ...)

// ExportGenesis returns a GenesisState for a given context and keeper.
func ExportGenesis(ctx sdk.Context, keeper *Keeper) *types.GenesisState {
	var genState types.GenesisState

	genState.Params = keeper.GetParams(ctx)

	keeper.IterateCodeInfos(ctx, func(codeID uint64, info types.CodeInfo) bool {
		bytecode, err := keeper.GetByteCode(ctx, codeID)
		if err != nil {
			panic(err)
		}
		genState.Codes = append(genState.Codes, types.Code{
			CodeID:    codeID,
			CodeInfo:  info,
			CodeBytes: bytecode,
			Pinned:    keeper.IsPinnedCode(ctx, codeID),
		})
		return false
	})

	keeper.IterateContractInfo(ctx, func(addr sdk.AccAddress, contract types.ContractInfo) bool {
		var state []types.Model
		keeper.IterateContractState(ctx, addr, func(key, value []byte) bool {
			state = append(state, types.Model{Key: key, Value: value})
			return false
		})
		// redact contract info
		contract.Created = nil
		genState.Contracts = append(genState.Contracts, types.Contract{
			ContractAddress: addr.String(),
			ContractInfo:    contract,
			ContractState:   state,
		})
		return false
	})

	for _, k := range [][]byte{types.KeyLastCodeID, types.KeyLastInstanceID} {
		genState.Sequences = append(genState.Sequences, types.Sequence{
			IDKey: k,
			Value: keeper.PeekAutoIncrementID(ctx, k),
		})
	}

	return &genState
}

Device: Macbook pro  M1

We do not support starport. And last I heard they don't support CosmWasm integration anymore.
This has to do with not providing proper directory to store the wasm files. Please check with the starport team about adding better support

We do not support starport. And last I heard they don't support CosmWasm integration anymore.
This has to do with not providing proper directory to store the wasm files. Please check with the starport team about adding better support

Sorry, I may not have been clear. I am referring to wasmd, the manually integrated CosmWasm.
Below is my code to create Wasm keeper:
	wasmDir := filepath.Join(homePath, "wasm")
	wasmConfig, err := wasm.ReadWasmConfig(appOpts)
	if err != nil {
		panic(fmt.Sprintf("error while reading wasm config: %s", err))
	}
	// The last arguments can contain custom message handlers, and custom query handlers,
	// if we want to allow any custom callbacks
	supportedFeatures := "iterator,staking,stargate"
	app.wasmKeeper = wasm.NewKeeper(
		appCodec,
		keys[wasm.StoreKey],
		app.GetSubspace(wasm.ModuleName),
		app.AccountKeeper,
		app.BankKeeper,
		app.StakingKeeper,
		app.DistrKeeper,
		app.IBCKeeper.ChannelKeeper,
		&app.IBCKeeper.PortKeeper,
		scopedWasmKeeper,
		app.TransferKeeper,
		app.MsgServiceRouter(),
		app.GRPCQueryRouter(),
		wasmDir,
		wasmConfig,
		supportedFeatures,
		wasmOpts...,
	)

I know. starport chain serve -r is odd, does things with state we don't normally do, and doesn't support CosmWasm last I heard.
If you have trouble running normal wasmd commands, we would be more likely to help (and link your entire app.go). But it is a known issue that starport doesn't play well with x/wasm

Thanks for your answer, I will try it later without using starport.

I no longer encounter this problem after I no longer use starport.


Fixes #11 - set_params handles symbol parameters

As mentioned in issue #11, allows for slightly less verbose parameter passing.

I've got no objection to this. It'd be good to demonstrate the behaviour in the specs and docs - particularly mixed string / symbol keys since common param naming uses dashes which are awkward for symbols.

I've added a test - I'll add another line in the README...
On Wed, Sep 2, 2015 at 2:33 AM, Matt Patterson<EMAIL_ADDRESS>wrote:

I've got no objection to this. It'd be good to demonstrate the behaviour
in the specs and docs - particularly mixed string / symbol keys since
common param naming uses dashes which are awkward for symbols.
—
Reply to this email directly or view it on GitHub
https://github.com/fidothe/saxon-xslt/pull/12#issuecomment-136950536.

Take a gander at the README.  I didn't add much text re: symbols and
dashes, because, well, that feels like Ruby doc rather than saxon-xslt
doc.  But I did use a dashed symbol as one of the examples, so hopefully
that will make people stop and think for a sec.
On Wed, Sep 2, 2015 at 9:50 AM, David Mayo<EMAIL_ADDRESS>wrote:

I've added a test - I'll add another line in the README...
On Wed, Sep 2, 2015 at 2:33 AM, Matt Patterson<EMAIL_ADDRESS>wrote:

I've got no objection to this. It'd be good to demonstrate the behaviour
in the specs and docs - particularly mixed string / symbol keys since
common param naming uses dashes which are awkward for symbols.
—
Reply to this email directly or view it on GitHub
https://github.com/fidothe/saxon-xslt/pull/12#issuecomment-136950536.

Ping @fidothe in case this fell off the radar

Ooops.

Aside from typo in README it looks great, thanks again

Will fix now! Glad to be of service!
On Tue, Sep 8, 2015 at 1:04 PM, Matt Patterson<EMAIL_ADDRESS>wrote:

Aside from typo in README it looks great, thanks again
—
Reply to this email directly or view it on GitHub
https://github.com/fidothe/saxon-xslt/pull/12#issuecomment-138635619.


Specify dependencies in setup.py

Specify packages which are required for PyCC in setup.py.
They are automatically installed when PyCC is installed.
Note: I did not include psi4 since it cannot be installed by pip (form what I know).
Status

Ready to go

Codecov Report

Merging #13 (6cee210) into main (9218ef5) will not change coverage.
The diff coverage is n/a.


Angular 9 production build errors for type without a generic type argument

Add LockerModule to AppModel using withConfig
Run ng serve - all good
Run ng serve --prod getting error as follows:

ERROR in node_modules/angular-safeguard/dist/Locker.module.d.ts:4:51 - error NG6005: LockerModule.withConfig returns a ModuleWithProviders type without a generic type argument. Please add a generic type argument to the ModuleWithProviders type. If this occurrence is in library code you don't control, please contact the library authors.
4     static withConfig(userConfig: ILockerConfig): ModuleWithProviders;

Sorry this somehow wasn't seen in my issue list, I'll fix this up on the weekend unless you wouldn't mind making a PR @sittingbool !

hi!!
got same error

"dependencies": {     "@angular/animations": "~10.0.0",     "@angular/common": "~10.0.0",     "@angular/core": "~10.0.0",     "@angular/fire": "6.0.3",     "@angular/forms": "~10.0.0",     "@angular/platform-browser": "~10.0.0",     "@angular/platform-browser-dynamic": "~10.0.0",     "@angular/router": "~10.0.0",     "@capacitor/android": "^2.4.2",     "@capacitor/core": "2.4.2",     "@capacitor/ios": "^2.4.2",     "@ionic-native/base64": "^5.23.0",     "@ionic-native/core": "^5.0.0",     "@ionic-native/file": "^5.23.0",     "@ionic-native/file-chooser": "^5.23.0",     "@ionic-native/file-opener": "^5.23.0",     "@ionic-native/file-path": "^5.23.0",     "@ionic-native/file-transfer": "^5.23.0",     "@ionic-native/firebase": "5.29.0",     "@ionic-native/splash-screen": "^5.0.0",     "@ionic-native/launch-navigator": "^5.24.0",     "@ionic/angular": "^5.0.0",     "@types/stripe-checkout": "^1.0.3",     "angular-safeguard": "^2.1.0",     "animate.css": "^3.7.2",     "apollo-angular": "^1.8.0",     "apollo-angular-link-http": "^1.9.0",     "apollo-cache-inmemory": "^1.6.0",     "apollo-client": "^2.6.0",     "apollo-link": "^1.2.11",     "aws-amplify": "^1.1.22",     "aws-amplify-angular": "^3.0.3",     "firebase": "^7.24.0",     "graphql": "^14.5.0",     "graphql-tag": "^2.10.0",     "moment": "^2.24.0",     "moment-timezone": "^0.5.27",     "ng-lazyload-image": "^9.0.1",     "ngx-image-compress": "^8.0.4",     "rxjs": "~6.5.5",     "tslib": "^2.0.0",     "zone.js": "~0.10.3"   },   "devDependencies": {     "@angular-devkit/build-angular": "~0.1000.0",     "@angular/cli": "~10.0.5",     "@angular/compiler": "~10.0.0",     "@angular/compiler-cli": "~10.0.0",     "@angular/language-service": "~10.0.0",     "@capacitor/cli": "2.4.2",     "@ionic/angular-toolkit": "^2.3.0",     "@types/jasmine": "~3.5.0",     "@types/jasminewd2": "~2.0.3",     "@types/node": "^12.11.1",     "@types/stripe-v3": "^3.1.14",     "codelyzer": "^6.0.0",     "jasmine-core": "~3.5.0",     "jasmine-spec-reporter": "~5.0.0",     "karma": "~5.0.0",     "karma-chrome-launcher": "~3.1.0",     "karma-coverage-istanbul-reporter": "~3.0.2",     "karma-jasmine": "~3.3.0",     "karma-jasmine-html-reporter": "^1.5.0",     "protractor": "~7.0.0",     "ts-node": "~8.3.0",     "tslint": "~6.1.0",     "typescript": "~3.9.5"   },

Hello @MikaAK @sittingbool
Hope you are doing well.
With Angular 13,
With Node JS v14.23.1, It's forcibly expecting the GenericType to be provided wth ModuleWithProviders.
I see that the following Commits are pushed.
95114ab41420fd31b49939d1058e49de96678fdc
280e1ee7d022747df799514af9139ac04443480c
c38f43a611bb496ed1dd04f41c85dc142db35340
Could you please expedite to Release a New Version with the Necessary Changes.
It would be highly appreciated.
Thanks in advance.


naming convection tiryoh/ros2-desktop-vnc:humble-arm64-20220921T0434

can you explain this naming convection? 20220921T0434
https://hub.docker.com/r/tiryoh/ros2-desktop-vnc
is there a built version for 20.04 ubuntu focal ros2?

can you explain this naming convection? 20220921T0434

This is a timestamp based on the built time. YYYYMMDDTHHmm

is there a built version for 20.04 ubuntu focal ros2?

There is a foxy version pre-build image. You can use with : docker run -p 6080:80 --shm-size=512m tiryoh/ros2-desktop-vnc:foxy

can you explain this naming convection? 20220921T0434

This is a timestamp based on the built time. YYYYMMDDTHHmm

is there a built version for 20.04 ubuntu focal ros2?

There is a foxy version pre-build image. You can use with : docker run -p 6080:80 --shm-size=512m tiryoh/ros2-desktop-vnc:foxy

oh ok, thanks, but sorry for this unrelated question, I was actually trying to use isaac sim inside docker-desktop windows, i have no luck, do you have any experience with it?
https://docs.omniverse.nvidia.com/isaacsim/latest/installation/install_container.html
.

I don't know much about Omniverse, but this project is not suitable for use with NVIDIA devices.
The following project may be of use to you.
https://github.com/atinfinity/nvidia-egl-desktop-ros2

Due to inactivity, I'm closing this issue. Feel free to reopen it if needed.


delay is inserted regardless of PUT or GET

The logic below is flawed.  isPutCommand always evaluates to true and the delay is always present even on GET.
var isPutCommand = xml.indexOf("cmd="PUT"" >= 0);
var delay = isPutCommand ? this.responseDelay * 1000 : 0;

thanks for the bug report, I fixed this here https://github.com/PSeitz/yamaha-nodejs/commit/68efe1e6b44d37964325ecdf4be8cb891d31ce9d

Published version 0.8.0 on npm


Security vulnerability in transitive dependencies

Issue workflow progress

Progress of the issue based on the
Contributor Workflow

[ ] 1. The issue provides a reproduction available on GitHub, Stackblitz or CodeSandbox

For example, you can start off by editng the
'basic' example on Stackblitz.

Please make sure the graphql-eslint version under package.json matches yours.

[ ] 2. A failing test has been provided

[ ] 3. A local solution has been provided

[ ] 4. A pull request is pending review

Describe the bug
Dependabot is reporting a transitive dependency needs updating:

It would be great if graphql-eslint could update its dependencies on graphql-tools once they release their updates.
They updated their version of ws in the last week:
https://github.com/ardatan/graphql-tools/pull/6273

To Reproduce Steps to reproduce the behavior:

Expected behavior
No more vulnerability in transitive dependencies!
Thanks!

It seems the a recent version (>5) of graphql-config does not have this dependency chain anymore, and it was already updated in https://github.com/dimaMachina/graphql-eslint/commit/296f700de147f2e5d218cfbf03921a7f41944764 so a fresh release of @graphql-eslint/eslint-plugin would already resolve the issue, I think.

@dimaMachina What are the plans for a new release? The last release was almost a year ago.

@dimaMachina @dotansimha Also seeing this issue also through npm, is it possible to get a release?

Hi @comatory @dimaMachina, any plans for a new release to fix security vulnerabilities?

For the ones that needs it fixed without waiting for a new release, you can override the graphql-config version in the package.json since they have already fixed the issue. This will make the audit errors go away.
For yarn just add this to package.json :
"resolutions": {     "@graphql-eslint/eslint-plugin/graphql-config": "5.0.0"    }
For npm:
  "overrides": {     "@graphql-eslint/eslint-plugin": {       "graphql-config": "5.0.0"     }   }
You will still get a warn saying the versions are incompatible, but the errors go away.

sorry, no more updates for v3, try v4 alpha where graphql-config is set to:
  "dependencies": {
    "graphql-config": "^5.1.0"


feat: 5594 - multi product scan mode as a dev mode option for price receipt input

What

Now there's a new switch in DEV MODE: "multi-products selection for prices"
When the switch is true (default is false), when we scan products for prices (e.g. new receipt page) we're able to scan several barcodes in a row, and tap on the floating action button to say "hey, I'm done"

Screenshots

dev mode switch
1 scanned product

2 scanned products
receipt w/ 2 products

Fixes bug(s)

Closes: #5994

Impacted files

price_add_product_card.dart: now calling the scan card with the bool multi product scan mode parameter, and manages a list of scanned barcodes
price_scan_page.dart: now manages a multi product scan mode, with floating action button and snackbar
user_preferences_dev_mode.dart: new flag for "multi product scan in price receipt"

Codecov Report
Attention: Patch coverage is 0% with 66 lines in your changes missing coverage. Please review.

Project coverage is 6.48%. Comparing base (4d9c7fc) to head (5668047).
Report is 556 commits behind head on develop.

Files with missing lines
Patch %
Lines

...h_app/lib/pages/prices/price_add_product_card.dart
0.00%
35 Missing :warning:

...s/smooth_app/lib/pages/prices/price_scan_page.dart
0.00%
25 Missing :warning:

...b/pages/preferences/user_preferences_dev_mode.dart
0.00%
6 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##           develop   #6008      +/-   ##
==========================================
- Coverage     9.54%   6.48%   -3.06%
==========================================
  Files          325     441     +116
  Lines        16411   25024    +8613
==========================================
+ Hits          1567    1624      +57
- Misses       14844   23400    +8556

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

@monsieurtanuki @g123k  this would be interesting to quickly populate user lists (eg a shopping list).

@monsieurtanuki @g123k this would be interesting to quickly populate user lists (eg a shopping list).

@teolemon That wouldn't be a problem as we already have the tool for that: a camera+scanner that calls an "I've just found that barcode!" method. In this PR the method populates a list of barcodes, pop'ed only when the user clicks on the FAB.
If you have a new idea for user lists, please create a specific issue.
And don't hesitate to review the current PR ;)

Thank you @g123k for your numerous approvals, it's like an early Xmas!


Add CI for kernel changes

Add a job for jenkins that builds the kernel and runs the CI test to verify the config and patches works.
\cc @chavafg  @devimc

No implemented. We run CI test on new kernel changes.


(SERVER-768) trapperkeeper-authorization POC [FOR REVIEW ONLY]

This PR is for review only, these changes should not be merged into a mainline
branch because preview packages will be built from this topic branch and made
available for evaluation and further scoping in
SERVER-769.
This patch replaces the client whitelist authorization strategy with a
rules based strategy using Brice's trapperkeeper-authorization
library.  This patch is not meant to be the final solution
but is instead intended to evaluate and scope additional work on the
authorization behavior.
This patch replaces the whitelist checking ring middleware with a
middleware that loads rules from /etc/puppetlabs/puppetserver/rules.conf
if present.  If the file does not exist then hard-coded default rules
which deny everything are used.
Hacks for the POC related to the complexity of the changes required are:
This patch removes the previous behavior of being able to turn off
access control entirely.  Similar behavior is provided using permissive
authorization rules, however this patch requires an SSL certificate from
the client.  If no client certificate is present then the request is
forbidden.

Decision needed: Do we need to preserve the behavior of disabling authz
entirely?

The following tests are removed because they make assumptions about
client-whitelist.  These tests are expected to be fairly straightforward
to update.  The test set-up behavior needs to replace the
client-whitelist configuration with an approach that configures the
authz rules.  All of these tests should be able to be treated in the
same manner:

puppet-environments-int-test
puppet-admin-int-test
jruby-pool-int-test

There will be some complexity around this test, which may require
special handling relative to the mechanical nature of replacing the
client-whitelist configuration:

jruby-pool-int-test (The wait-for-new-pool function enters an
infinite loop with the certificate whitelist implementation removed.)

Similarly, the legacy-routes-test/legacy-routes test completely disables
access control, however there should be no additional complexity fixing
this test beyond either adopting the new way to disable AuthZ entirely
(if we do that) or configuring the test to make an authorized request by
adjusting the rules.

legacy-routes-test/legacy-routes

@jeffmccune Since this is just for a POC, how long were you hoping to keep this PR open?  No rush from my side but wanted to see if you had already gotten what you were hoping to get out of it for now.


Message 2/3 Not backed up in multipart (sent side only) Cyanogen 11M12 & 8SMS 1.48

In a multipart sent text message from 8sms message 2/3 is not backed up despite the total number of backed up items is correct (I can duplicate by sending myself a 3 part message).
I don't see how the log is useful but I included it anyway.
I'm happy to provide more information please just let me know what you need.
01-06 10:08 Backup requested (incoming)
01-06 10:08 Starting backup (INCOMING)
01-06 10:08 Backing up (11 SMS, 0 MMS, 0 call log)
01-06 10:08 Using config: BackupConfig{imap=BackupImapStore{uri=imap+ssl+://XOAUTH2:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX@imap.gmail.com:993}, skip=false, currentTry=0, maxItemsPerSync=-1, groupToBackup=ContactGroup{_id=-1, type=EVERYBODY}, backupType=INCOMING, debug=true, typesToBackup=[SMS, MMS, CALLLOG]}
01-06 10:09 BackupState{currentSyncedItems=11, itemsToSync=11, backupType=INCOMING, exception=null, state =FINISHED_BACKUP}
01-06 10:09 Backup finished
01-06 10:09 Backup requested (manual)
01-06 10:09 Starting backup (MANUAL)
01-06 10:09 Backing up (2 SMS, 0 MMS, 0 call log)
01-06 10:09 Using config: BackupConfig{imap=BackupImapStore{uri=imap+ssl+://XOAUTH2:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX@imap.gmail.com:993}, skip=false, currentTry=0, maxItemsPerSync=-1, groupToBackup=ContactGroup{_id=-1, type=EVERYBODY}, backupType=MANUAL, debug=true, typesToBackup=[SMS, MMS, CALLLOG]}
01-06 10:09 BackupState{currentSyncedItems=2, itemsToSync=2, backupType=MANUAL, exception=null, state =FINISHED_BACKUP}
01-06 10:09 Backup finished
01-06 10:10 Backup requested (incoming)
01-06 10:10 Starting backup (INCOMING)
01-06 10:10 Skipped (no items found)
01-06 10:10 BackupState{currentSyncedItems=0, itemsToSync=0, backupType=INCOMING, exception=null, state =FINISHED_BACKUP}
01-06 10:10 Backup finished
01-06 10:10 Backup requested (incoming)
01-06 10:10 Starting backup (INCOMING)
01-06 10:10 Skipped (no items found)
01-06 10:10 BackupState{currentSyncedItems=0, itemsToSync=0, backupType=INCOMING, exception=null, state =FINISHED_BACKUP}
01-06 10:10 Backup finished

Also tested on 1.5.8-BETA2. Same result.

Using 1.5.9 on a new Galaxy S6 and it is still a problem. I have confirmed by doing the same backup multiple times and the exact same results are observed: only the first "message" of a multi part message are backed up. The rest are ignored.
I am also open to providing any details or sample files that can be used to recreate the problem.

Sample files would be, not sure how to recreate the problem in an emulator.

No activity, closing


[TACHYON-556] Clean direct bytebuffer in blockoutstream.

https://tachyon.atlassian.net/browse/TACHYON-556

Must "CommonUtils.cleanDirectBuffer" be called after all map() calls? Along with this call (and the similar call in the remote write PR), in BlockHandlerLocal.read() it maps the file before the dataserver sends it. That should have a cleanDirectBuffer() afterwards too?

I noticed memory leaking during write heavy workloads but not read heavy workloads.

So, with this change, the leak is no longer noticed?

LGTM


doc(portal): add documentation for auth0 dcr metadata TDX-3342

Description

Adds documentation around auth0 metadata, and how to use it via an action.  https://konghq.atlassian.net/browse/TDX-3342
Testing instructions
tdx-3338-auth0-app-metadata featureflag must be on. This is currently enabled for all on Dev, and kongers on Prod.
Preview link: https://deploy-preview-6096--kongdocs.netlify.app/konnect/dev-portal/applications/dynamic-client-registration/auth0/
Checklist

[x] Review label added
[x] PR pointed to correct branch (main for immediate publishing, or a release branch: e.g. release/gateway-3.2, release/deck-1.17)

@c3pko , this PR is ready for you to merge.

@c3pko I've set this to DNM again while we're in the Summit release window. Will let you know when we're finished those and will clean up the conflicts that will occur before I give you the green light again.


[NixOS] mbtiles build error at query! macros

A NixOS package build fails with:
   Compiling mbtiles v0.9.1
error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache
   --> /build/bbox-services-0.6.0-vendor.tar.gz/mbtiles/src/mbtiles.rs:135:21
    |
135 |         let query = query! {"SELECT tile_data from tiles where zoom_level = ? AND tile_column = ? AND tile_row = ?", z, x, y};
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `query` (in Nightly builds, run with -Z macro-backtrace for more info)

I can't reproduce it myself. Any ideas?

hmm, need to look at it in depth. I am a bit overbooked at the moment (just got back from a vacation), will try to get to it soonish

In https://github.com/NixOS/nixpkgs/pull/335821#issuecomment-2310017703 it was stated that .sqlx is missing, which is needed for startup.
I don't think this is an issue with martin, but rather with how said package is build
=> lets track it in said PR instead


Unable to install 1.9 via CocoaPods

Just updated my pods in an iOS project, including Sourcery from 1.8.1 to 1.9. Installation now fails with this error:

[!] The platform of the target Kiwi (iOS 14.0) is not compatible with Sourcery (1.9.0), which does not support iOS.

My project is indeed an iOS only project (platform :ios, '14.0'), but that shouldn't be an issue, as it previously worked with 1.8.1 (and older). The problem is this commit which incorrectly added a s.platform  = :osx, '10.15' to the Sourcery.podspec file. The other podspecs have it because they need to be built on macOS, but the general podspec doesn't (it's a tool).
Note: did a quick search for other issues but couldn't find any dupes.

same here.
s.platform = :osx, '10.15' just breaks any iOS only project unless they stay with 1.8.x.


fix(core): update resources to schema v4.15.1 #301

:tada: This PR is included in version 5.18.1 :tada:
The release is available on:

GitHub release
npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:


Strange behavior with react tabs

I am using formsy with react-tabs and getting some strange behavior.  I setup my from like so:
 <Formsy.Form ref="frmSearch" onValidSubmit={this.submit}>
                         <Tabs>
                             <TabList>
                                 <Tab>By Date</Tab>
                                 <Tab>By Call Details</Tab>
                                 <Tab>By Server</Tab>
                                 <Tab>By Outcome</Tab>
                                 <Tab>By Facility</Tab>
                             </TabList>

                             <TabPanel>

Choose the date/date range you would like to view

                                        <Controls.DateTimeBox name="StartDate" label="Start Date" />

                                        <Controls.DateTimeBox name="EndDate" label="End Date" />

                             </TabPanel>
                             <TabPanel>

Type in any of the call detail filters

                                        <Controls.TextBox name="CallerIdNumber" label="Caller Id Number" />

                                        <Controls.TextBox name="CallerIdName" label="Caller Id Name" />

                                        <Controls.TextBox name="CalledNumber" label="Called Number" />

                            </TabPanel>
                   </Tabs>
</Formsy.Form>

In the on submit when I inspect the model it only has properties for the visible tab.  Everything renders fine but if the tab is not selected, the formsy model parameter will not contain any fields for it.

I'm facing this "issue" too (but with Stepper from material-ui) and would like suggestions.
Actually it's logical: when you submit your form, your first tabs are not mounted in the DOM anymore. The only existing inputs are those in the last tab.
The question is, how to handle such cases ? The only work around I see is to populate a global "formData" variable before switching on each tab, But then you can't use form validation, form submit event, ...
It would be nice to have your point of view !

I'm using stepper from material-ui as well. I just ran into this problem too.
You could create a global variable (or use state) but, like @Colmea noted, at that point there is no reason to use formsy (no submit, validation, etc.)
right now I have the stepper nested inside formsy (which doesnt work):
<Formsy.Form> // stepper stuff </Formsy.Form>
I may try a formsy inside each stepper content section... and have the "next button" populate state or something.
        <Stepper activeStep={stepIndex} orientation="vertical" linear={false}>
          <Step>
            <StepButton onTouchTap={() => this.setState({stepIndex: 0})}>
              Basic Information
            </StepButton>
            <StepContent>
            <Paper zDepth={2} style={styles.paperStyles}>
            <Formsy.Form
              onValid={this.enableButton.bind(this)}
              onInvalid={this.disableButton.bind(this)}
              onValidSubmit={this.submitForm.bind(this)}
              onInvalidSubmit={this.notifyFormError.bind(this)}
          >
            <FormsyText
              name="title"
              validations="isWords"
              validationError={errorMessages.wordsError}
              required
              hintText="e.g. title of this opportunity"
              floatingLabelText="Title"
              style={styles.fieldStyle}
            />
            <RaisedButton
              style={styles.submitStyle}
              type="submit"
              label="Next"
              disabled={!this.state.canSubmit}
              primary={true}
            />
         </Formsy.Form>
            </Paper>
              {this.renderStepActions(0)}
            </StepContent>
          </Step>

But it is probably better to just build from scratch at this point.


data sampling refactor + online eval

submitting as one PR because disentangling some of the commits was going to require a lot of re-writing

remaining issues: online eval does not give the same results as master branch for cheetah-vel

final status: online latent context computation doesn't quite match with batch computation - probably a numerical issue - so we will close this PR as is and revert back to encoding context batch-wise in a future PR.


define definitly what is 'truthy' Any.bool()

Value
Type
Description

false
bool
boolean false

0
number
number zero, also including 0.0

""
string
empty string value


hotspot_jre: runtime/ErrorHandling/TestCrashOnOutOfMemoryError.java failed

18:30:52 ACTION: build -- Not run. Test running...
18:30:52 REASON: User specified action: run build jdk.test.lib.*
18:30:52 TIME:   .lib.* seconds
18:30:52 messages:
18:30:52 command: build jdk.test.lib.*
18:30:52 reason: User specified action: run build jdk.test.lib.*
18:30:52
18:30:52 TEST RESULT: Error. can't find jdk.test.lib.* in test directory or libraries
same issue for following tests:
runtime/ErrorHandling/TestCrashOnOutOfMemoryError.java
runtime/ErrorHandling/TestExitOnOutOfMemoryError.java

This is a duplicate of openjdk bug https://bugs.openjdk.java.net/browse/JDK-8151295.

Closing as now listed in summary issue #345

Actually JDK-8151295, was not backported to openjdk 8. New bug was created instead: JDK-8218613.


Fix operation on NVIDIA Jetson

Fix a couple of issues that showed up on NVIDIA Jetson running Linux for
Tegra (L4T). I'm not sure if these issues show up due to the kernel
version (4.9), the 64-bit ARM architecture, or some other reason.

Specify the protocol for the socket. Without this, a non-TCP socket is
created, and TCP connection attempts never reach it.

Specify a backlog of 1. Without this, the kernel rejects all new TCP
connections.

Any thoughts here, @RHSResearchLLC ? Thanks.


Markdown-HTML interaction

The text editor in dataset/model page is not fully compatible with markdown, and items such as code or lists are not parsed from the description correctly.

Tables do not work, check if we can support them as well.