Support for / Routes for Proxy?

Hi all,
I'm having trouble with a path on my site that I would like to proxy to a separate app, i.e. I have a tiny single page app running on port 9000 (not the same port as my static site), so I would like the path /tiny-app on my static site to forward to that port 9000:
https://my-super-cool-site-built-with-react-static.com/tiny-app --> localhost:9000
Unless I'm mistaken, something like proxying can't be done within static.config.js? So I've made attempts with my own server.js with this using express, i.e.:
// Serve static assets
app.use(express.static('./dist')); // <-- the dist folder generated by react-static
// proxy
app.all('/tiny-app*', function(req, res) {
   proxy.web(req, res, { target: 'http://<IP_ADDRESS>:9000' }); // southpark markov chain app
});

The problem is, the page breaks because somewhere the /assets/app.js file is still being requested - I would guess somewhere with react-static
So I suppose my question(s) are: 1. Is proxying/forwarding actually possible from localhost:9000 (or any localhost/ different endpoint for that matter), or am I best doing this sort of thing with my own server.js? and 2. With the proxy seemingly working (?), how can I prevent the /assets/app.js and other css/asset requests from going to the react-static assets?
This is probably a basic question, I'm sure someone with much more express and SSR experience can point me in the right direction.

Because react-static simply generates static content, you would need to do this on a server. React-static will soon support static redirects, but since there is no server being used (other than just serving static files), there is no opportunity to intercept or proxy a request to a certain endpoint to another without using some type of server.  If this is something you'd like to do, I would first double check that you couldn't do something similar by using a different sub-domain of sorts or if your use case is valid. If you end up still needing this functionality, I suggest investigating using something like express or nginx to proxy requests from that route to a different location. Be aware though, that sticking a server in front of a static site could potentially slow it's performance, depending on how it is implemented.

I am interested in this for serving a development build of netlify-cms from another webpack instance. The proxy is not required in production because netlify-cms is also built to static files.
The way I have things set up right now, react-static builds to dist and I have a separate webpack build for netlify-cms which builds to dist/admin. I would like the react-static server to proxy /admin to the netlify-cms dev server during development.

You can do this by extending the webpack dev server as you normally would
with webpack. https://react-static.js.org/docs/config/#devserver
On Fri, May 4, 2018 at 7:08 PM Ken Powers<EMAIL_ADDRESS>wrote:

I am interested in this for serving a development build of netlify-cms
from another webpack instance. The proxy is not required in production
because netlify-cms is also built to static files.
The way I have things set up right now, react-static builds to dist and I
have a separate webpack build for netlify-cms which builds to dist/admin.
I would like the react-static server to proxy /admin to the netlify-cms
dev server during development.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/nozzle/react-static/issues/157#issuecomment-386768458,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFUmCbCbvAT_ZvgjVxwhglGMXMuXUFFnks5tvPuTgaJpZM4QcVbw
.


New code blocked by Cross-Origin Read Blocking (CORB)

I have cloned the project again, I have configured my shoutcast v2 radio and now it does not play anything.
The new error refers to CORB.

From what I read in the link shown in the chrome console: https://www.chromestatus.com/feature/5629709824032768
Cross-Origin Read Blocking (CORB) is an algorithm that can identify and block dubious cross-origin resource loads in web browsers before they reach the web page. CORB reduces the risk of leaking sensitive data by keeping it further from cross-origin web pages. In most browsers, it keeps such data out of untrusted script execution contexts. In browsers with Site Isolation, it can keep such data out of untrusted renderer processes entirely, helping even against side channel attacks like Spectre.
CONFIG.JS:
| Configuration
|--------------------------------------------------------------------------
|
| To configure your streaming, define the name of your radio, url and
| type of your streaming below.
|
*/

var settings = {
    'radio_name': 'OsiriS Radio FM',

    // URL of streaming without / on the final, eg: http://streaming.com:8080
    'url_streaming': 'https://osirisradio.ml:9999',

    // When choosing icecast, make sure the file 'player.log' in the document root is writeable.
    // Choose between 'shoutcast' or 'icecast'
    'streaming_type': 'shoutcast',

    // Visit https://api.vagalume.com.br/docs/ to get your API key
    'api_key': '18fe07917957c289983464588aabddfb',

    // Set to true to get the last songs played
    'historic': true,

    // Only for SHOUTCast!
    // Set to true to show the next song to be played.
    // Make sure your streaming show this information!
    'next_song': true,

    // Path to default cover art when none are found
    'default_cover_art': 'img/bg-capa.jpg',
};

const RADIO_NAME = settings.radio_name;
const URL_STREAMING = settings.url_streaming;
const STREAMING_TYPE = settings.streaming_type;
const API_KEY = settings.api_key;
const HISTORIC = settings.historic;
const NEXT_SONG = settings.next_song;
const DEFAULT_COVER_ART = settings.default_cover_art;

My web
It is not a problem of my streaming since I have tried to make it work with another player. Look here:
EDIT
Here is another streaming Shoutcast v2 that doesn't work in the player: https://audiossl.radiosolution.info:9625
I hope this data helps you correct the code to work with all Shoutcast V2 radios.

I don't know if this issue can be easily fixed with code, since CORS/CORB is a security feature of the browser.
In my setup the webradio player and the streaming server are running on the same domain, so that this is not an issue.
If you have control over your server you could setup a revese-proxy to make the foreign streaming URL available on your domain and circumvent the error.

I don't know if this issue can be easily fixed with code, since CORS/CORB is a security feature of the browser.
In my setup the webradio player and the streaming server are running on the same domain, so that this is not an issue.
If you have control over your server you could setup a revese-proxy to make the foreign streaming URL available on your domain and circumvent the error.

I have no control over hosting server.
But still this is accomplished with JSONP.
Here I share an example for you to try with a shoutcast v2 server where player and streaming use different domains.
Change your_streaming_URL and your_port and you will see the results in the web console:
<!DOCTYPE html>

<html lang="es-ES">

<head>

<meta charset="utf-8">

<title></title>

<script src="//ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>

</head>

<body>

<script>

$.ajax({

	url : "https://your_streaming_URL:your_port/stats?sid=1&json=1",

	dataType: 'JSONP',

	type : "GET",

	success:function(data){

        console.log(data);

	}

});

</script>

</body>

</html>

Hi @juanamm,
I realized that the api file on your server never returns data. Is cURL active on your server?
Try to clone the project on your machine, set up a local server and see if, in this way, some data will be returned.
It is not necessary for the player and streaming to be in the same domain. As it is today, only the api.php file needs to be in the same domain as the player, but if you want to separate them, just make the following change on line 205 of the api.php file:
$urlHost = 'your player url';

Thus, your api file accepts requests from the domain where your player is located.
Hope this helps.

Hi @gsavio,
I have just verified the information about the modules installed on the player server which uses PHP 7.4.7 and cURL is activated.

The api.php file is at the root of the player's server, but it has only 138 lines, I did not understand what you told me about modifying line 205.
The issue is CORB that blocking streaming does not allow data transfer.

More data:
In addition to CORB (in the case of my streaming) there are problems to obtain the metadata in those streams that can be played without being blocked by CORB.
Look at this example:
https://fabiotech.github.io/radio/
The song is playable, this streaming is not blocked by CORB, but metadata is not fetched.
https://noplayer.fabiosakamoto.com/api.php?url=https://stm6-ssl.painelcast.com:6934&streamtype=shoutcast&historic=true&next=true
[img]https://s7.gifyu.com/images/failed.png[/img]

Testing using this url, because here I can say that it is updated.
And to make sure your project is up to date, download the player here.

I have used your url to test the api.php file and it works.
But when I do it on my side it doesn't work.
I have even uploaded the updated project to the server where I have the streaming and where I am a root user and it did not work either.
I can't get the metadata, the api.php does not work neither in the free hosting nor in the streaming server (I don't understand the reason).
I can't play the songs either, but this is another problem that gives me only with your player.
The ip/host streaming:port leads me to the shoutcast panel (as it happens to most, which does not use another panel like centovacast, etc).
If you open this streaming in the browser you will see what I have told you before.
At https://host_streaming.com:port
It transforms in
https://host_streaming.com:port /index.html?sid=1
I have looked at the mozilla firefox error console and it says:
The HTTP "Content-Type" of "text/html" is not supported. Loading media resource https://host_streaming.com:port/ failed.
The media cannot be played. There are no decoders for the requested formats: text/html
And in Microsoft Edge console it gives CORB crash error.
The truth is I have given up, I have already tried everything and nothing works.

@gsavio, I have found information that may be useful for those of us who have a Shoutcast server and the browser interprets stream as an html page (response 3 below). I share:

SHOUTcast can serve three different types of response:

a native-SHOUTcast “ICY” protocol streaming audio response. It decides to do this if the player accessing the stream includes an icy-metadata: 1 header.

a plain-HTTP streaming audio response, without extra metadata, for media players with no ICY support.

the “SHOUTcast D.N.A.S. Status” page and other pages on the web interface.

How does it decide whether to serve a web page instead of an audio stream? It guesses whether you're using a web browser. By looking to see whether the User-Agent header starts with Mozilla/...

So when Chrome/Mozilla etc tries to fetch the audio stream to play, SHOUTcast thinks it's a web browser (well... it is) and refuses to give it the audio stream instead it gets the admin web page.

Is there any chance that your player will include the ICY header requested in response 1?

first i gat to thanks juanamm for all the edit he done
i gat mine finally working
if i could get the full script updated be better maybe of my multifixed one
since the download isn't here


Added callback for node position change.

It can be used for storing of new node position after drag & drop of node.
Signed-off-by: Jiri Prokes<EMAIL_ADDRESS>

Thanks for valuable comments.

I can't find console.log output in "live demo". So, coordinates of changed position are not visible for me.


Pass --build-id option to linker.

GCC by default passes --build-id to linker; clang does not.
Build-id is standard in Linux executables and contains
the hash of all the executable sections; thus helping to
uniquely identify the build. build-id is also used by
debug symbol servers.

bors try

bors r+


API refactor

Split the API struct into a "const" and "data" part. This is a result of me not wanting to reserve 2K of RAM on pico. After this, all the function pointers can be constants (may improve #484) and the data part only needs 64 bytes.
For compatibility, 32blit-stm32 is still using the old layout by inserting padding and overlaying the two structs on top of each other.
These are (I think) the only remaining non-pico changes on my big pico branch.

In hindsight this makes an awful lot of sense.

Fixed warnings from these patches being older than can_launch and needed to rebase for recent build fixes.
I'll have to add the STM32 nastiness to the list of things that can be cleaned up if there's an API break... (Also, I should actually write that list)


Make babel as peerDependencies

Please, can you remove babel from dependencies  ?
It cause errors when babel was at a lower version if we update istanbul-intrumenter-loader to V3.
It's not absolutly required to have babel 7 to get this work and it is not the responsibility of instanbul to provide the babel version to the projet I think.

Can you elaborate wherebabel causes issues and where it is used? Do you mean from devDependencies


peer dependencies can be changed to plain dependencies as of npm3

Because of how npm3 puts all modules at the root level unless there's a versioning conflict, peerDependencies can be moved in the dependencies section, so that they'll install if they're not already available, but skipped if already installed (matching what the original peer dependency in npm2 and below did)

Peer deps are not deprecated and libraries are encouraged to use them to give devs more freedom. So devs can potentially use incompatible versions that can still work well.
Dependencies work in a different way and do not suit for writing small libs/plugins.

Agree with @nkbt.

Wait, no they don't? As far as the docs surrounding NPM3 suggest, peer dependencies and plain dependencies now work exactly the same. Version conflicts are simply resolved by giving the module that needs a conflicting version w.r.t. the version already found at the root level its own local ./node_modules dir, which solves the conflict due to how dependency resolution still happens bottom-up (so local >> root >> system cache).

@Pomax this is not how dependencies and peerDependencies work. Peer dependencies do not resolve themselves for a library if version is incompatible with end-product. Dependencies do. Which means you end up with, for example, two React libraries in your project if you use dependencies instead of peer ones. With peer deps you as a developer will decide if you are ok with using incompatible peer dep (that is used in your product), and that might work out well.

I see, thanks.

np :ok_hand:


stalwart-mail: 0.4.0 -> 0.4.2

Description of changes
Changelog: https://github.com/stalwartlabs/mail-server/releases/tag/v0.4.2
Diff: https://github.com/stalwartlabs/mail-server/compare/v0.4.0...v0.4.2
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Thank you !


fix(chat): speed up settings modal opening (Issue #2863)

Description:
speed up settings modal opening
Issues:

Issue #2863

Checklist:

[x] the pull request name complies with Conventional Commits
[x] the pull request name starts with fix(<scope>):, feat(<scope>):, feature(<scope>):, chore(<scope>):, hotfix(<scope>): or e2e(<scope>):. If contains breaking changes then the pull request name must start with fix(<scope>)!:, feat(<scope>)!:, feature(<scope>)!:, chore(<scope>)!:, hotfix(<scope>)!: or e2e(<scope>)!: where <scope> is name of affected project: chat, chat-e2e, overlay, shared, sandbox-overlay, etc.
[x] the pull request name ends with (Issue #<TICKET_ID>) (comma-separated list of issues)
[x] I confirm that do not share any confidential information like API keys or any other secrets and private URLs

/deploy-review


Tweaks to config

changes:

auto show / hide some fields if they are not needed, E.G.: hide timer if Statuful is checked, hide log path if logs not enabled.
changed field keywords from array to string (if you accept this PR you need to fix function to split string to array of objects)
hide Platform Name because user should not change this field

what is missing for me?

option to activate / trigger switch after Homebridge start
option to select timer units (minutes, seconds, hours, days)
please merge these two logs 'Switch "Test" turned on' and /Switch "Test" will turn off after 5000 milliseconds.' into one, eg.: 'Switch "Test" turned on, it will turn off after 5000 milliseconds.'.

Thanks for this input. Very much appreciated. I am not able to work on this in the next 2 weeks but will definitely look into this and get back to you.
On Oct 3, 2024, at 4:02 AM, mkz212 @.***> wrote:

auto show / hide some fields if they are not needed, E.G.: hide timer if Statuful is checked, hide log path if logs not enabled.
changed field keywords from array to string (if you accept this PR you need to fix function to split string to array of objects)
hide Platform Name because user should not change this field
what is missing for me? field : activate after Homebridge start

Zrzut.ekranu.2024-10-3.o.11.56.23.png (view on web)https://github.com/user-attachments/assets/3f3a6502-8cc5-4069-a3e2-d327a797e995

You can view, comment on, or merge this pull request online at:
https://github.com/Plankske/hb-virtual-switch/pull/2
Commit Summary

0a8fd08https://github.com/Plankske/hb-virtual-switch/pull/2/commits/0a8fd0818ee9b142028e9df67d6c3187577d0c3d Update config.schema.json

File Changes
(1 filehttps://github.com/Plankske/hb-virtual-switch/pull/2/files)

M config.schema.jsonhttps://github.com/Plankske/hb-virtual-switch/pull/2/files#diff-be1695b1e63a508d59982601f9e1fb7f58247deecb1e427adb77bcad758ae5e5 (99)

Patch Links:

https://github.com/Plankske/hb-virtual-switch/pull/2.patch
https://github.com/Plankske/hb-virtual-switch/pull/2.diff

—
Reply to this email directly, view it on GitHubhttps://github.com/Plankske/hb-virtual-switch/pull/2, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APYHGAUZH3VYM6NG37KZ3QDZZUI45AVCNFSM6AAAAABPJOBVS6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGU3DGNRSG4YDSMI.
You are receiving this because you are subscribed to this thread.Message ID: @.***>


Recv receives CANFD and triggers panic

This is code:
use socketcan::{CanFdSocket, Socket};
use std::error::Error;

fn main() -> Result<(), Box<dyn Error>> {
    // Open the CAN device
    let socket = CanFdSocket::open("can0")?;

    // Set non-blocking mode
    socket.set_nonblocking(true).map_err(|e| {
        eprintln!("Failed to set non-blocking mode: {}", e);
        e
    })?;

    loop {
        // Read CAN frame
        match socket.read_frame() {
            Ok(frame) => {
                // Print the received CAN frame
                println!("Received frame: {:?}", frame);
            }
            Err(e) if e.kind() == std::io::ErrorKind::WouldBlock => {
                // If there are no readable frames, continue the loop
                continue;
            }
            Err(e) => {
                // Handle other errors
                dbg!("Error reading frame: {}", e);
            }
        }
    }
}

When running, the following is the situation
smirk@veh:~/project/canfuzz$ cargo run
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.10s
warning: the following packages contain code that will be rejected by a future version of Rust: bitf
warning: the following packages contain code that will be rejected by a future version of Rust: bitflags v0.4.0
note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report
note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`
     Running `target/debug/canfuzz`
Received frame: Fd(CanFdFrame { 45##5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Received frame: Fd(CanFdFrame { 45##5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
thread 'main' panicked at core/src/panicking.rs:221:5:
unsafe precondition(s) violated: ptr::copy_nonoverlapping requires that both pointer arguments are a
unsafe precondition(s) violated: ptr::copy_nonoverlapping requires that both pointer arguments are aligned and non-null and the specified memory ranges do not overlap
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
Aborted (core dumped)

The panic triggering time is not fixed.
I want to achieve the same functionality as candump, but use candump without interruption, and write my own code to trigger panic

I'm just looking at how to recreate this... Just coming in on one ID? What rate? Does that matter?

I'm just looking at how to recreate this... Just coming in on one ID? What rate? Does that matter?

The baud rate I set is as follows：sudo ip link set can0 up type can bitrate 500000 sample-point 0.75 dbitrate 2000000 dsample-point 0.8 fd on.
I wrote the following code in the virtual machine based on the hardware PEAK CAN

Obviously another usage of copy_nonoverlapping in the same file has the same problem.

 I'll have a look ASAP, and push a new release.

Sorry for the delay. The fix is released.
But the worst part is that the code for the next release (v3.4.0) sitting in master has a re-implementation and fix that's been sitting there since last March!
While my head is in this, I should probably look to get some of the unreleased code out the door...


Conda forge

Resolves #38

Let's wait to merge this until the related PR on conda-forge is approved.

I just tested the new conda-forge distribution and it worked great. I fixed very minor typos in the readme including the cap on the python version that was removed from the meta.yml of the conda-forge recipe.
I think this is ready to merge assuming it passes all the tests.


Minor issues with nil values in the source code

Hi! I am writing a static analysis tool to detect problems with nil values in Go programs. I have executed it on the source code of the Go itself and found some minor issues.

Redundant err == nil check:
https://github.com/golang/go/blob/master/src/cmd/go/internal/work/exec.go#L106
err is a local variable created with nil value and it is not updated before the check (making it redundant).

Redundant err != nil check:
https://github.com/golang/go/blob/master/src/crypto/x509/name_constraints_test.go#L2223
err is always not nil because of the continue statement a couple of lines above.

Potential 'nil pointer dereference':
https://github.com/golang/go/blob/master/src/net/textproto/reader_test.go#L335
https://github.com/golang/go/blob/master/src/html/template/escape_test.go#L1873
In both cases, err can be nil making err.Error() call dangerous. err == nil check above doesn't stop the execution of the test.

I already have a fork with these issues fixed, will be happy to submit a pull request.

Please go ahead ! Thanks.

The new data-flow based nilness check in vet finds the first two cases:
/Users/dgryski/go/src/go.googlesource.com/go/src/cmd/go/internal/work/exec.go:106:11: tautological condition: nil == nil
...
/Users/dgryski/go/src/go.googlesource.com/go/src/crypto/x509/name_constraints_test.go:2223:10: tautological condition: non-nil != nil

but I'm not aware of a tool that handles the third one.  Nifty!

@octomarat please send a single PR for all these changes. Separate commits aren't necessary and just clutter the git history, in particular since most of the changes only touch test code.

@octomarat - I think only the cmd/go/internal fix is remaining. Would you like to push ahead and finish this one out ?

Oh. I didn't noticed that some of the commits have been accepted and merged to the master already. Probably I am missing something, but what should I do to make the last one accepted and merged?


updating user info deletes email

thereby disabling the user's account. no bueno juan gon

Thank you sir for catching my mistake

 Fix update user endpoint


Latest version - launchsettings.json relative pathing to $(MSBuildProjectDirectory) one deeper only when debugging host

Something happened in the latest version, because this is now the wrong directory compared to what it would be if you debugged the service directly. It's once deeper that it should be as thus all of the launchsettings.json files for every service are wrong and you can't debug host, and debug the service by itself without having to change the profile's pathing for environment variables.

I'm not sure I fully understand your problem. Could you please provide a sample application demonstrating a potential bug?

For whatever reason if you make a path relative to that environment variable, it has a different depth with this plugin than if you use dotnet run. I.e. you can't have one configuration that is used for Aspire AND for dotnet run for things like FastEndpoints Swagger generation. They're different depending on how it's run.

Hello @JohnGalt1717. I've made some changes in the latest v0.5.0 release. Please check if it works for you.


versions: Update image to version 19350

Allows test for https://github.com/clearcontainers/runtime/pull/835
Fixes: #760
Changes:
version: 19170
Changes in package clear-containers-agent (from 243e2aefa4f9ff5a1bd32967a213e8533dab54df-15 to 04fa18641b046dbcf10d13dcd0715e288bff41ce-16):
Jose Carlos Venegas Munoz - version bump from 04fa18641b046dbcf10d13dcd0715e288bff41ce-15 to 04fa18641b046dbcf10d13dcd0715e288bff41ce-16
Jose Carlos Venegas Munoz - agent: New agent version 04fa18
https://download.clearlinux.org/releases/19170/clear/RELEASENOTES
version: 19180
Changes in package iptables (from 1.6.1-21 to 1.6.1-22):
Arjan van de Ven - version bump from 1.6.1-21 to 1.6.1-22
https://download.clearlinux.org/releases/19180/clear/RELEASENOTES
version: 19200
Changes in package systemd (from 234-157 to 234-158):
Arjan van de Ven - ship btrfs rule
https://download.clearlinux.org/releases/19200/clear/RELEASENOTES
version: 19340
Changes in package clear-containers-agent (from 04fa18641b046dbcf10d13dcd0715e288bff41ce-16 to b1d92e2aa14d915680e8fe770745a511857ac7ff-17):
Jose Carlos Venegas Munoz - version bump from b1d92e2aa14d915680e8fe770745a511857ac7ff-16 to b1d92e2aa14d915680e8fe770745a511857ac7ff-17
Jose Carlos Venegas Munoz - New agent version: b1d92e2
https://download.clearlinux.org/releases/19340/clear/RELEASENOTES
version: 19350
Changes in package clear-containers-agent (from 04fa18641b046dbcf10d13dcd0715e288bff41ce-16 to b1d92e2aa14d915680e8fe770745a511857ac7ff-17):
Jose Carlos Venegas Munoz - version bump from b1d92e2aa14d915680e8fe770745a511857ac7ff-16 to b1d92e2aa14d915680e8fe770745a511857ac7ff-17
Jose Carlos Venegas Munoz - New agent version: b1d92e2
https://download.clearlinux.org/releases/19350/clear/RELEASENOTES
Signed-off-by: Jose Carlos Venegas Munoz<EMAIL_ADDRESS>

lgtm

@chavafg  any idea why it got at kubernetes qa-failed ?

network issue running k8s testing:
Ign:4 https://packages.cloud.google.com/apt kubernetes-xenial-unstable InRelease
Err:10 https://packages.cloud.google.com/apt kubernetes-xenial-unstable Release
  502  Bad Gateway
Reading package lists...
E: The repository 'http://apt.kubernetes.io kubernetes-xenial-unstable Release' does not have a Release file.

Re-running the test... will post back when have the results

k8s tests passed successfully on my manual run. Merging...


Feature - a guide to metamask

for those who dont have knowledge about metamask we can add a guide me button which can guide the newcomers about it and steps to proceed with

@kairveeehh sir , I have developed two dapp using metamask wallet. Hence I would be contributing to this issue. Please assign it to me under gssoc24.

@kairveeehh sir , I have developed two dapp using metamask wallet. Hence I would be contributing to this issue. Please assign it to me under gssoc24.

hii , I am a contributor and have raised this issue as I am already into web3 , please find different issues and raise them instead of this

@kairveeehh
Some is working on readme
They have added about it over there
so no need I guess


Make output of render_to_string fixed

Fix #320

Codecov Report

Merging #323 (8af11f2) into master (9ccb2d2) will not change coverage.
The diff coverage is 71.42%.

@@           Coverage Diff           @@
##           master     #323   +/-   ##
=======================================
  Coverage   73.20%   73.20%
=======================================
  Files          40       40
  Lines        5431     5431
=======================================
  Hits         3976     3976
  Misses       1455     1455

Impacted Files
Coverage Δ

packages/sycamore/src/utils/hydrate/mod.rs
79.16% <ø> (ø)

packages/sycamore/src/builder/agnostic/mod.rs
65.55% <66.66%> (ø)

packages/sycamore/src/generic_node/ssr_node.rs
76.69% <100.00%> (ø)

Continue to review full report at Codecov.

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

Seems like the build website workflow is broken. I guess I'll need to fix that.


fix #480 filter.take regression

var a = Immutable.Seq([1,2,3,4]).filter(function(val) {
  return val < 3;
}).take(10).toArray();

take(10) in the preceding code will create a sliceSeq with size 10, which then causes toArray() to construct an array of 10 elements instead of the expected 2. I think that in this case the sliceFactory called by take() should not set the size for the sliceSeq, because the filterSeq it is slicing does not have a defined size.
My attempted fix is to reinstate a line of code that was changed in commit bcd51c0 which checks if the sequence to be sliced has a valid size before setting sliceSeq.size.

Ah, thank you for your investigation and straight-forward fix with comments. Excellent work!


Validation: fix missing descriptions #7

Global effort to fix validation errors
The Content & Learning team is fixing build validation errors on docs.microsoft.com. This effort will eliminate potential accessibility, security, and usability issues. This PR includes only build validation fixes and does not change other content. I’d very much appreciate your timely review and feedback on these changes I’ve suggested. Thanks!

Hi @adegeo, this PR is ready to be reviewed and merged.


bump: upgrade dependencies

This is just a quick upgrade, dumping pip freeze > requirements.txt
Should work OOTB.

Please create an issue for any new work and link the PR to the issue. Helps with documentation.


delete tmp directorys when output type is md2pdf

using md2html a tmp directory is created  in out_pathwhile the html file is being generated and once it's done that directory is deleted by weave, when using md2pdf the behavior is that these directories remain after successful creation of the pdf file. Is this the expected behavior?

That was a bug that should be fixed with the last commit. Thanks for reporting.


"flutter build apk" failed

Can't generate release apk with flutter build apk.
flutter clean and then flutter pub get isn't working for me. Everything is up-to-date too.
Building without sound null safety
For more information see https://dart.dev/null-safety/unsound-null-safety

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':app:debugRuntimeClasspath'.
   > Could not resolve io.flutter:armeabi_v7a_debug:1.0.0-5d8bf811b3072390933d69f3e289a4bb673636c4.
     Required by:
         project :app
      > Could not resolve io.flutter:armeabi_v7a_debug:1.0.0-5d8bf811b3072390933d69f3e289a4bb673636c4.
         > Could not get resource 'https://jcenter.bintray.com/io/flutter/armeabi_v7a_debug/1.0.0-5d8bf811b3072390933d69f3e289a4bb673636c4/armeabi_v7a_debug-1.0.0-5d8bf811b3072390933d69f3e289a4bb673636c4.pom'.
            > Could not HEAD 'https://jcenter.bintray.com/io/flutter/armeabi_v7a_debug/1.0.0-5d8bf811b3072390933d69f3e289a4bb673636c4/armeabi_v7a_debug-1.0.0-5d8bf811b3072390933d69f3e289a4bb673636c4.pom'. Received status code 502 from server: Bad Gateway
   > Could not resolve io.flutter:arm64_v8a_debug:1.0.0-5d8bf811b3072390933d69f3e289a4bb673636c4.
     Required by:
         project :app
      > Could not resolve io.flutter:arm64_v8a_debug:1.0.0-5d8bf811b3072390933d69f3e289a4bb673636c4.
         > Could not get resource 'https://jcenter.bintray.com/io/flutter/arm64_v8a_debug/1.0.0-5d8bf811b3072390933d69f3e289a4bb673636c4/arm64_v8a_debug-1.0.0-5d8bf811b3072390933d69f3e289a4bb673636c4.pom'.
            > Could not HEAD 'https://jcenter.bintray.com/io/flutter/arm64_v8a_debug/1.0.0-5d8bf811b3072390933d69f3e289a4bb673636c4/arm64_v8a_debug-1.0.0-5d8bf811b3072390933d69f3e289a4bb673636c4.pom'. Received status code 502 from server: Bad Gateway

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 6s
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done                       7.3s
Gradle task assembleRelease failed with exit code 1

My flutter doctor -v
Flutter (Channel stable, 2.0.2, on Microsoft Windows [Version 10.0.19041.867], locale en-IN)
    • Flutter version 2.0.2 at C:\Users\hp\flutter
    • Framework revision 8962f6dc68 (4 days ago), 2021-03-11 13:22:20 -0800
    • Engine revision 5d8bf811b3
    • Dart version 2.12.1

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at C:\Users\hp\AppData\Local\Android\Sdk
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = C:\Users\hp\AppData\Local\Android\Sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.1.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] VS Code (version 1.54.2)
    • VS Code at C:\Users\hp\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.20.0

[√] Connected device (2 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.82
    • Edge (web)   • edge   • web-javascript • Microsoft Edge 89.0.774.54

• No issues found!

UPDATE
the apk is generated now but it's only showing and stuck on white screen on the launch and doesn't showing anything.

Here's the screenshot:

Hi @thealteria
Can you please provide your flutter run --release --verbose (running on same Android device) and your pubspec.yaml.
Thank you

Yup. Here's my flutter run --release --verbose
[  +85 ms] executing: [C:\Users\hp\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +62 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +1 ms] 8962f6dc68ec8e2206ac2fa874da4a453856c7d3
[   +1 ms] executing: [C:\Users\hp\flutter/] git tag --points-at 8962f6dc68ec8e2206ac2fa874da4a453856c7d3
[  +44 ms] Exit code 0 from: git tag --points-at 8962f6dc68ec8e2206ac2fa874da4a453856c7d3
[   +1 ms] 2.0.2
[  +40 ms] executing: [C:\Users\hp\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +34 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[   +1 ms] origin/stable
[        ] executing: [C:\Users\hp\flutter/] git ls-remote --get-url origin
[  +29 ms] Exit code 0 from: git ls-remote --get-url origin
[   +1 ms] https://github.com/flutter/flutter.git
[  +64 ms] executing: [C:\Users\hp\flutter/] git rev-parse --abbrev-ref HEAD
[  +31 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +1 ms] stable
[  +88 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +58 ms] executing: C:\Users\hp\AppData\Local\Android\Sdk\platform-tools\adb.exe devices -l
[  +39 ms] List of devices attached
           emulator-5554          device product:sdk_gphone_x86_arm model:sdk_gphone_x86_arm device:generic_x86_arm
           transport_id:1
[  +10 ms] C:\Users\hp\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 shell getprop
[  +53 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +36 ms] "flutter run" took 255ms.
[  +18 ms] Error: No pubspec.yaml file found.
           This command should be run from the root of your Flutter project.
[   +3 ms]
           #0      FlutterCommand.validateCommand (package:flutter_tools/src/runner/flutter_command.dart:1274:11)
           #1      RunCommand.validateCommand (package:flutter_tools/src/commands/run.dart:437:19)
           #2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1114:11)
           <asynchronous suspension>
           #3      FlutterCommand.run.<anonymous closure>
(package:flutter_tools/src/runner/flutter_command.dart:1009:27)
           <asynchronous suspension>
           #4      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #5      AppContext.run (package:flutter_tools/src/base/context.dart:149:12)
           <asynchronous suspension>
           #6      CommandRunner.runCommand (package:args/command_runner.dart:197:13)
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand.<anonymous closure>
           (package:flutter_tools/src/runner/flutter_command_runner.dart:278:9)
           <asynchronous suspension>
           #8      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #9      AppContext.run (package:flutter_tools/src/base/context.dart:149:12)
           <asynchronous suspension>
           #10     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:234:5)
           <asynchronous suspension>
           #11     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:64:9)
           <asynchronous suspension>
           #12     run.<anonymous closure> (package:flutter_tools/runner.dart:62:12)
           <asynchronous suspension>
           #13     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #14     AppContext.run (package:flutter_tools/src/base/context.dart:149:12)
           <asynchronous suspension>
           #15     runInContext (package:flutter_tools/src/context_runner.dart:73:10)
           <asynchronous suspension>
           #16     main (package:flutter_tools/executable.dart:90:3)
           <asynchronous suspension>

[ +287 ms] ensureAnalyticsSent: 283ms
[   +3 ms] Running shutdown hooks
[   +1 ms] Shutdown hooks complete
[   +1 ms] exiting with code 1

[  +36 ms] "flutter run" took 255ms.
[  +18 ms] Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.
[   +3 ms]

Hi @thealteria please make sure you run this in the root of your Flutter project.

Yup I did and found the problem. It's occurring because one of the dependency I'm using in my project, get_storage.
The get_storage package is using path_provider dependency internally which is giving the missing plugin exception when I'm building the release apk.


Umbrella PR - federation resolvers plugin refactor

Yes we already support Federation in typescript-resolvers but it kind of broken... and we want to fix it!
Umbrella PR
Treat this PR as a base for smaller, atomic PRs. Here's a doc on Notion explaining what, how and why.
We need help!
We want to get there quickly and if there's a chance someone from the community can help us, it would be awesome! 😎
A list of tasks is available as jest tests (or todos) in packages/plugins/typescript/resolvers/tests/federation.spec.ts file but also here:

[x] should add __resolveReference to objects with @key
[x] __resolveReference should use a union of @key directives
[ ] only fields specified by @requires should be available in parent object
[x] do not create resolvers for @external fields
[ ] should accept a reference
[ ] should accept a reference based on union of @key directives
[x] should NOT accept a reference on an external type without @key
[x] should NOT accept a reference on an external type (with @extends) without @key
[x] should NOT accept a reference on a local (non-external) type
[ ] support __resolveObject
[ ] should mapper apply to __resolveReference as output?
[ ] should mapper apply to __resolveReference as input?
[ ] mappers should not collide with references - both accepted
[ ] check if Federation allows to resolve a custom object and if so then what data goes to other services - is it the custom object or an object matching GraphQL type.

How to help
You can help in two ways:

create a test to make sure we follow federation spec
implement a part of Federation into typescript-resolvers plugin
discuss with us the implementation and tests
make sure we follow Federation spec

if you eager to help, please mention @kamilkisiela (me) or @dotansimha in a comment and let's get things done!

Hi @kamilkisiela thanks for working on this! In the todo list, do not create resolvers for @external fields is not necessarily correct. The resolver for that field is called. It becomes necessary to resolver that field when I have a mapper. For instance, in the schema below, if I have a custom mapper for User, say { userId: string } and I am resolving the reviewer field, I will return { userId: "some-id"} from the resolver function for reviewer. To resolve the correct federation entity for User, I need to return the id field of User even though it is an external field. Does that sound correct?
extend type User @key(fields: "id") {
  id: ID @external
}
type Review {
  id: ID!
  reviewer: User
}
type Query {
   review(id: ID!): Review
}

Also, I've been doing some experiment with federation. I think the __resolveReference method should return the mapper for the entity. The parent object of the __resolveReference resolver should be an object with fields specified in fields of the entity's key.

Hi @kamilkisiela We are a heavy user of apollo federation and we are encountering many issues with this library for typescript. I'd love to talk about how we can help to expedite apollo federation support.

Hi @kamilkisiela We are a heavy user of apollo federation and we are encountering many issues with this library for typescript. I'd love to talk about how we can help to expedite apollo federation support.

Hi! We would love to start a discussion about that. I think this PR is the ideal place for that :)

Hi @skk2142, we would still love your help and feedback.
Would you like to start the discussion here?
If you want, we are also open to schedule a call

HI @Urigo would love to explain the issues. Call would be easier and after that may be I can add more details as needed.

Putting this PR aside and will come back later to this concern.


Move map functions to PKG

These are from knative.dev/serving/pkg/resources/meta[_test].go

/lgtm


Test and finish YOLACT++ integration

The YOLACT++ tests are waiting on https://github.com/waikato-ufdl/ufdl-backend/issues/73 to be resolved before testing can commence.

implemented first draft

Works


splatfacto: "RuntimeError: can't retain_grad on Tensor that has requires_grad=False"

Describe the bug
I randomly get this error during training with splatfacto (tested on the c491e3e1 commit in Docker):
Step (% Done)       Train Iter (time)    ETA (time)           Train Rays / Sec     Test Rays / Sec
--------------------------------------------------------------------------------------------------------
27310 (91.03%)      135.259 ms           6 m, 3 s             19.69 M                                    4.11 M
27320 (91.07%)      134.431 ms           6 m, 0 s             19.78 M
27330 (91.10%)      30.948 ms            1 m, 22 s            21.33 M
27340 (91.13%)      30.579 ms            1 m, 21 s            21.44 M
27350 (91.17%)      31.151 ms            1 m, 22 s            21.02 M
27351 (91.17%)      1.59 M               31.496 ms            1 m, 23 s            20.60 M
27360 (91.20%)      31.850 ms            1 m, 24 s            20.39 M
27370 (91.23%)      31.817 ms            1 m, 23 s            20.46 M
27380 (91.27%)      30.517 ms            1 m, 19 s            21.66 M
27390 (91.30%)      30.040 ms            1 m, 18 s            22.08 M
----------------------------------------------------------------------------------------------------
Viewer running locally at: http://localhost:7007 (listening on <IP_ADDRESS>)
[10:28:14] Culled 1085 gaussians (1085 below alpha thresh, 0 too bigs, 2170163 remaining)              splatfacto.py:528
Printing profiling stats, from longest to shortest duration in seconds
VanillaPipeline.get_average_eval_image_metrics: 0.8929
VanillaPipeline.get_eval_image_metrics_and_images: 0.1083
Trainer.train_iteration: 0.0458
VanillaPipeline.get_train_loss_dict: 0.0368
Trainer.eval_iteration: 0.0020
Traceback (most recent call last):
  File "/home/user/.local/bin/ns-train", line 8, in <module>
    sys.exit(entrypoint())
  File "/home/user/nerfstudio/nerfstudio/scripts/train.py", line 262, in entrypoint
    main(
  File "/home/user/nerfstudio/nerfstudio/scripts/train.py", line 247, in main
    launch(
  File "/home/user/nerfstudio/nerfstudio/scripts/train.py", line 189, in launch
    main_func(local_rank=0, world_size=world_size, config=config)
  File "/home/user/nerfstudio/nerfstudio/scripts/train.py", line 100, in train_loop
    trainer.train()
  File "/home/user/nerfstudio/nerfstudio/engine/trainer.py", line 287, in train
    self.eval_iteration(step)
  File "/home/user/nerfstudio/nerfstudio/utils/decorators.py", line 70, in wrapper
    ret = func(self, *args, **kwargs)
  File "/home/user/nerfstudio/nerfstudio/utils/profiler.py", line 112, in inner
    out = func(*args, **kwargs)
  File "/home/user/nerfstudio/nerfstudio/engine/trainer.py", line 520, in eval_iteration
    metrics_dict, images_dict = self.pipeline.get_eval_image_metrics_and_images(step=step)
  File "/home/user/nerfstudio/nerfstudio/utils/profiler.py", line 112, in inner
    out = func(*args, **kwargs)
  File "/home/user/nerfstudio/nerfstudio/pipelines/base_pipeline.py", line 339, in get_eval_image_metrics_and_images
    outputs = self.model.get_outputs_for_camera(camera)
  File "/home/user/.local/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/home/user/nerfstudio/nerfstudio/models/splatfacto.py", line 914, in get_outputs_for_camera
    outs = self.get_outputs(camera.to(self.device))
  File "/home/user/nerfstudio/nerfstudio/models/splatfacto.py", line 767, in get_outputs
    self.xys.retain_grad()
RuntimeError: can't retain_grad on Tensor that has requires_grad=False

A check on requires_grad might be missing.
To Reproduce
Steps to reproduce the behavior:

Run splatfacto training with for example:ns-train splatfacto --data data/nerfstudio/my_dataset --vis "viewer+tensorboard" --pipeline.model.rasterize-mode antialiased

At some point, training might fail randomly with the error from above.

Expected behavior
No random error.
Screenshots
N/A
Additional context
N/A

        # Important to allow xys grads to populate properly
        if self.training:
            try:
                self.xys.retain_grad()
            except Exception as e:
                print(e)

can't retain_grad on Tensor that has requires_grad=False
Exception in thread Thread-7:
Traceback (most recent call last):
  File<EMAIL_ADDRESS>line 1016, in _bootstrap_inner
    self.run()
  File "E:\AI\nerfstudio\nerfstudio\viewer\render_state_machine.py", line 222, in run
    outputs = self._render_img(action.camera_state)
  File "E:\AI\nerfstudio\nerfstudio\viewer\render_state_machine.py", line 177, in _render_img
    assert len(outputs["depth"].shape) == 3
AttributeError: 'NoneType' object has no attribute 'shape'

I'm facing the same issue when I run ns-train splatfacto. Is there any resolution for this?

@jyomu @bchretien Facing the same issue ... any leads on cause of this ?

Do you have sample datasets that we can reproduce the error?

I am experiencing the same issue. It appears that when the viewer renders the image, the model is not correctly set to eval mode.


Services refactoring

What is this PR trying to achieve?
Reduce code duplication in services definition
Who is this change for?
Devs
Have the following been considered/are they needed?

[ ] Run terraform apply.

Why closed?


Fix typo

Nice! Thank you! 🙌

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

v1.8.2
GitHub release

Your semantic-release bot :package::rocket:


Maximum port name length validation

Check if MAX_PORT_NAME_LEN constant can or should be longer; snd_seq_client_info_get_name and snd_seq_port_info_get_name might provide additional info.

At the time of writing this issue, I have already forgotten that strncpy cuts the string and null-terminates it, if it's longer than I want it to be. So, the previous code was ok:
strncpy(
    port->client_info_name,
    current_midi_port->client_info_name,
    MAX_PORT_NAME_LEN - 1
);
strncpy(
    port->port_info_name,
    current_midi_port->port_info_name,
    MAX_PORT_NAME_LEN - 1
);

The only disadvantage was that strncpy seems to do many zero-termination checks, so I have used strlcpy.c instead.
For now, I'll also change MAX_PORT_NAME_LEN from 64 to 128. I also can make port and client name char array pointers, but I am not sure if I want to have a destructor for  MIDI_port instances (which will have to deallocate client_info_name and port_info_name then).


UHF-4979: Make sure proxy path is configured

Codecov Report

Merging #36 (a24cea9) into main (8a19bc5) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               main      #36   +/-   ##
=========================================
  Coverage     13.07%   13.07%
  Complexity      115      115
=========================================
  Files            15       15
  Lines           283      283
=========================================
  Hits             37       37
  Misses          246      246

Continue to review full report at Codecov.

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


langchain: Add intersection support for multiquery retriever

Thank you for contributing to LangChain!

[ ] PR title: langchain: Add intersection support for multiquery retriever

Where "package" is whichever of langchain, community, core, etc. is being modified. Use "docs: ..."  for template changes, "infra: ..." for CI changes.
Example: "community: add foobar LLM"

[ ] PR message: Delete this entire checklist and replace with
This PR adds the intersection functionality to the multiquery retriever. Currently, multiquery retriever only supports unique union of retrieved documents, however, we note that in some cases, it is really useful to take the intersection of retrieved documents for the various queries. We had previously opened a discussion under ideas.
https://github.com/langchain-ai/langchain/discussions/19670

[ ] Add tests and docs: If you're adding a new integration, please include

a test for the integration, preferably unit tests that do not rely on network access,
an example notebook showing its use. It lives in docs/docs/integrations directory.

[ ] Lint and test: Run make format, make lint and make test from the root of the package(s) you've modified. See contribution guidelines for more: https://python.langchain.com/docs/contributing/

Additional guidelines:

Make sure optional dependencies are imported within a function.
Please do not add dependencies to pyproject.toml files (even optional ones) unless they are required for unit tests.
Most PRs should not touch more than one package.
Changes should be backwards compatible.
If you are adding something to community, do not re-import it in langchain.

If no one reviews your PR within a few days, please @-mention one of baskaryan, efriis, eyurtsev, ccurme, vbarda, hwchase17.

closing because this draft has been open a while! feel free to reopen as a regular PR if you want a review at any point


App  crashed with unknown reason and cannot restart EXCEPT REINSTALL THE APP

The app cannot be started after the crash caused by an unknown reason EXCEPT by uninstalling and reinstalling it.

This is the website repo, please create this issue on the repo for the app itself: https://github.com/files-community/files


doubt the effectiveness of the model

This is a Chinese high school math problem

Let me rewrite the problem as follows：
a b c = triangle a b c; a d e = triangle a d e; e = on_tline e a a b, eqdistance e a a b; b = on_tline b c a b; d = eqdistance d e a c ? perp e d a c
The model will stay stuck with no results.
Did I write something wrong, or the model can't handle this kind of math？I doubt it

I think the "p" in pline is for parallel, not perpendicular; try tline instead.
a b c = triangle a b c
doesn't make it a right triangle.  I think you're supposed to imagine constructing the diagram one point at a time, so you can't impose a condition on a point after introducing it.  But I may be wrong about that.

I agree with you that build at a time is needed and I will try it.
Can you understand the meaning of the second line of def.txt

As I said in #67, I think the colon separates outputs on the left from inputs on the right.

Another issue is that if c happens to be below b,then the proposition fails.  Maybe you should try starting with a trapezoid, so you can control the orientation of the points.

I had a similar issue when trying to solve other geometry problems aside the ones provided by the owner of the Alpha geometry. Mine was USAMO 2023 P1.  It was running fine for a while then later got stuck. I will be glad if we can collaborate in developing the right syntax or Alpha geometry programming languages ( just like Wolfram Alpha , Mat Lab and the rests)  used by Alpha geometry in converting English language geometry problems otherwise, the whole essence of the project is a waste of time and energy.
Here is the syntax I generated for USAMO 2023 p1  with the help of Chat GPT:
The original English Problem from USAMO website

The translated Alpha Geometry problem using Chat GPT
usamo_2023_p1
a b c = triangle a b c; o = midpoint o b c; p = foot p c a b; d = on_tline d a a o; e = on_circle e d b; q = on_tline q b b c; f = on_circle f d a, on_circle f e b; n = midpoint n a q ? cong o n o c
I believe if Alpha Geometry can solve IMO problems successfully, then Olympiad geometry problems of lower difficulty compared to IMO should not be a challenge at all.
You can also try running this code in your project with the necessary privileges to be sure if the problem is not from my machine.

The strategy I used in developing this translated versions was that I fed Chat GPT with a lot of training data from the translated IMO_ag_30.txt and the examples.txt until it was able to produce an output more like the ones used by Alpha Geometry that ran without any errors but as i said it was running successfully but got stucked.
It is either there are still some hidden issues with the translated problems as we do not know to what extent it agrees with the way other problems have been translated, or my machine can not handle such computation I doubt this case or we need to adjust the beam size, depth etc to match the problem specifications.
But am of the opinion that we need to pass all the Alpha Geometry tests and reproduce the results that was obtained by the owner of Alpha Geometry before we can concretely make any conclusions.

This seems to work:
usamo_2023_p1
a b c = triangle a b c; m = midpoint m b c; p = foot p c a m; d = circumcenter d a p b; q = on_circle q d b, on_line q b c; n = midpoint n a q ? cong n b n c

@songge25
Yes, I'm having trouble with that problem too.  Here's my translation:
e a b c = r_trapezoid e a b c; d = on_line d a b, eqdistance d e a c ? perp e d a c

I ran it for 4 hours with a GPU and slightly increased parameters:
BATCH_SIZE=2
BEAM_SIZE=8
DEPTH=4

It timed out without finding a solution.
It occurs to me that the problem itself is almost trivial: just apply the congruence principle SSA, which is valid when A is right or obtuse.  Maybe the problem is that AG can't deal with a rule that applies only to certain angles?

So the code is getting stuck in the while loop beginning at line 500 of graph.py.
It's trying unsuccessfully to satisfy the goal perp.
Not knowing exactly the architecture of the system, I'm guessing it can't find any possible path from the assumptions to the goal.

OMG, I forgot to constrain two sides of r_trapezoid to be congruent.
But I'm not sure how to do that  without losing the orientation...

Can you make the angle constraint with r_triangle and then the two sides constraint with eq_trapezoid?

@Geomathart But in an eq_trapezoid, the two congruent sides are opposite each other.  In the OP problem, they're adjacent.
It seems that for this problem you need to be able to constrain the points E and C to be on the same side of AB.  Not clear to me that's possible in AG.

I made it solve the problem, after i gave him the first step/altering the problem. Instead of ED=AC i gave him AD = BC
a b = segment a b; c = on_tline c b a b; d = on_line d a b, eqdistance d e a c; e = on_tline e a a b, eqdistance e a b a ? perp d e c a
on_line and eqdistance seem not to perform well together if one distance is not on the line, thats why i had to slightly change the problem to made it work

@Ehisnet The chat gpt implementation of the USAMO 2023 P1 is not correct.
a b c = triangle a b c; d = midpoint d b c; e = foot e c a d; o = circle a b e; f = on_circle f o b, on_line b c; n = midpoint n a f ? cong n b n c
this worked

@Geomathart Nice going!  Why don't you had your translation to #67 on language documentation.

I'm a little worried about this
a b = segment a b; c = on_tline c b a b; d = on_line d a b, eqdistance d a b c; e = on_tline e a a b, eqdistance e a b a ? perp d e c a
There doesn't seem to be anything to constrain d to be between a and b.
Or to constrain e to be on the same side of ab as c.

@unhandyandy yeah, i thought about that as well, but it did not find a way to contrain them to one side.
Interestingly after many tries AG always found a solution because if d is not between a and b it flips e automaticly to the other side to get the solution.

@Geomathart Do you mean many runs, or many tried on one run?

AG finds the solution instantly in one run. I made over 10 runs and it always found the solution. Randomly making D between A and B, without changing the statement.

So what did you mean by "after many tries AG always found a solution"?

I unintentionally altered the meaning of the sentence by using "after" as a filler word.
I meant i made many runs and AG came in each run to a solution.

I'm looking at your suggestion.
a b = segment; c = s_angle a b c -90; e = s_angle b a e 90, eqdistance e a b a; d = on_line d a b, eqdistance d e a c ? perp d e c a
Another ambiguity is that d does not seem constrained to lie on the same side of ae as b.

@Ehisnet This seems to work:
usamo_2023_p1
a b c = triangle a b c; m = midpoint m b c; p = foot p c a m; d = circumcenter d a p b; q = on_circle q d b, on_line q b c; n = midpoint n a q ? cong n b n c

I was worried that there doesn't seem to be a way to specify that q not= b, but maybe AG defaults to forming new points.

Thanks so much this work. So what was wrong with the translation and can we develop the alphageometry programming language so we can learn how to code the english language problems into alphageometry high level language or syntax

@Ehisnet As I think Geomathart pointed out above, the command
p = foot p c a b
should be
p = foot p c a o
I haven't checked if that's the only problem.

@Ehisnet The chat gpt implementation of the USAMO 2023 P1 is not correct. (P is not normal on AM,...)
a b c = triangle a b c; d = midpoint d b c; e = foot e c a d; o = circle a b e; f = on_circle f o b, on_line b c; n = midpoint n a f ? cong n b n c worked, but i did not yet confirm the proof.

Yes you are correct, please can you provide lists of all the syntax and rules used in this translations. thanks

@Geomathart @unhandyandy

Hello guys can we translate this problem above

@Ehisnet The chat gpt implementation of the USAMO 2023 P1 is not correct. (P is not normal on AM,...)
a b c = triangle a b c; d = midpoint d b c; e = foot e c a d; o = circle a b e; f = on_circle f o b, on_line b c; n = midpoint n a f ? cong n b n c worked, but i did not yet confirm the proof.

Yes you are correct, please can you provide lists of all the syntax and rules used in this translations. thanks

If I knew of such a list I'd be happy to share it.  I suggest we add what we figure out to #67 .

@Geomathart @unhandyandy
Hello guys can we translate this problem above

I doubt it.  :)
It's way too earlier for something like that.
Where did you find it?

@Geomathart @unhandyandy
Hello guys can we translate this problem above

I doubt it. :) It's way too earlier for something like that. Where did you find it?

I found it on a contest website, am of the opinion we compile all the rules and syntax we have found so far and add to #67 just as you have suggested.

@Geomathart @unhandyandy
Hello guys can we translate this problem above

I doubt it. :) It's way too earlier for something like that. Where did you find it?

I found it on a contest website, am of the opinion we compile all the rules and syntax we have found so far and add to #67 just as you have suggested.

I was trying to train chatgpt into producing the syntax used in the translation but we can always correct it from our experience and with that we can produce the documentations. what do you guys think?

@unhandyandy @Geomathart
Here was the translation of the problem using chatgpt can we make our inputs
ortho_triangle
a b c = triangle a b c
d e f = feet a b c
u = on_circumcircle a d ? intersection d f
o = circumcenter a b c
x = on_tline a o ? intersection e f
e' = reflection e d x
f' = on_tline f d x ? parallel d f x
p = on_tline a e' ? intersection d u x ? distance d u = distance p d + distance p x
q = on_tline a f' ? intersection d u x ? distance d u = distance q d + distance q x
result = coll e f ? coll e' q ? coll f' p

\documentclass{article}
\usepackage{geometry}
\begin{document}
\section*{Alphageometry Syntax}
\subsection*{1. Points and Segments}
Points are denoted by single lowercase letters, e.g., $a$, $b$, $c$. Segments are defined using the \texttt{segment} keyword, e.g., $a b = \text{segment } a b$.
\subsection*{2. Lines and Circles}
Lines are defined using the \texttt{on_line} keyword, e.g., $p = \text{on_line } p a b$. Circles are defined using the \texttt{on_circle} keyword, e.g., $o = \text{circle } o a b c$.
\subsection*{3. Parallel and Perpendicular Lines}
Parallel lines are represented using the \texttt{para} or \texttt{on_pline} keywords, e.g., $g = \text{on_pline } g a b c$. Perpendicular lines are represented using the \texttt{perp} keyword, e.g., $k = \text{on_line } k j a, \text{on_circle } k o s ? \text{perp } k t o1 t$.
\subsection*{4. Midpoints and Reflections}
Midpoints are defined using the \texttt{midpoint} keyword, e.g., $o = \text{midpoint } o b c$. Reflections are represented using the \texttt{reflect} keyword, e.g., $pa = \text{reflect } pa p b c$.
\subsection*{5. Angles}
Equal angles are represented using the \texttt{eqangle} keyword, e.g., $a = \text{eqangle } b t e$. Angle bisectors are represented using the \texttt{angle_bisector} keyword, e.g., $o = \text{angle_bisector } a d p$.
\subsection*{6. Equality and Congruence}
Equality between angles is represented using the \texttt{eqangle3} keyword, e.g., $p1 = \text{on_line } p b1, \text{eqangle3 } p c a b c$. Congruence between segments is represented using the \texttt{cong} keyword, e.g., $e p e q$.
\subsection*{7. Parallelism and Concurrence}
Parallelism is represented using the \texttt{para} keyword, e.g., $g = \text{on_pline } g a b c$. Concurrence is represented using the \texttt{cc_tangent} keyword, e.g., $q t p s = \text{cc_tangent } q t p s i1 f1 i2 f2$.
\subsection*{8. Geometry Elements}
Circumcenter, Orthocenter, Incenter, Excenter, etc., are denoted by single uppercase letters, e.g., $O$, $H$, $I$.
\subsection*{9. Special Points and Elements}
Special points, like feet of altitudes, midpoints, etc., are named using descriptive terms, e.g., $T_A$, $M_A$.
\subsection*{10. Constructions}
Reflections, angle bisectors, etc., are often used in constructions.
\end{document}
Here is an example of likely documentations

ALPHAGEOMETRY_IMO_30.pdf
Here is a sample of documents for the syntax

ALPHAGEOMETRY_IMO_30.pdf Here is a sample of documents for the syntax

Maybe you we could make a google sheet that's easy for everyone to contribute to.

okay i will do just that. thank you
On Sat, Feb 17, 2024, 3:56 PM unhandyandy @.***> wrote:

ALPHAGEOMETRY_IMO_30.pdf
https://github.com/google-deepmind/alphageometry/files/14319077/ALPHAGEOMETRY_IMO_30.pdf
Here is a sample of documents for the syntax
Maybe you we could make a google sheet that's easy for everyone to
contribute to.
—
Reply to this email directly, view it on GitHub
https://github.com/google-deepmind/alphageometry/issues/73#issuecomment-1950242208,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFAKDKKIHGQBIHAD752ITRLYUDHJ3AVCNFSM6AAAAABCZKKP62VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJQGI2DEMRQHA
.
You are receiving this because you were mentioned.Message ID:
@.***>

https://docs.google.com/document/d/1K4QspqnGFCJ9hpFyPUvaJXE7SAWbt3XRBBtyXzGhsOo/edit
@unhandyandy @Geomathart @songge25 @yotam  Hi guys let's make our contributions to the google docs above on Alpha Geometry Language Documentations.

The link does not work.
In the paper are most of the constructions documented, in the def.txt some more and the syntax.
But yeah, we need an accessable trained gpt model to translate text to the syntax.
@Ehisnet except for the last Points P and Q, your new problem can be made with AG. But it should be possible to train AG on this problem by adding ellpses, to the definitions and a training set with added ellipses.

a b c = triangle a b c; d = on_line d a b; e = on_line e b d, eqdistance e a d b; f = on_pline f e c b, eqdistance f e b c ? cong a c d f

From theorem premises:
A B C D E F : Points
B,D,A are collinear [00]
EA = DB [01]
B,E,D are collinear [02]
FE = CB [03]
FE ∥ CB [04]

Auxiliary Constructions:
: Points

Proof steps:

BC ∥ EF [04] ⇒  ∠BCF = ∠EFC [05]
FE = CB [03] & ∠BCF = ∠EFC [05] (SAS)⇒  FB = CE [06]
FE = CB [03] & ∠BCF = ∠EFC [05] (SAS)⇒  ∠(BC-EF) = ∠(BF-CE) [07]
B,D,A are collinear [00] & B,E,D are collinear [02] & ∠(BC-EF) = ∠(BF-CE) [07] & EF ∥ BC [04] ⇒  ∠DBF = ∠AEC [08]
EA = DB [01] & FB = CE [06] & ∠DBF = ∠AEC [08] (SAS)⇒  FD = CA
==========================

what the  ∠(BC-EF) = ∠(BF-CE)  mean？

(The link does not work.) EDIT: the Link does work, just the redirection from github does not. In the paper are most of the constructions documented, in the def.txt some more and the syntax. But yeah, we need an accessable trained gpt model to translate text to the syntax. @Ehisnet except for the last Points P and Q, your new problem can be made with AG. But it should be possible to train AG on this problem by adding ellpses, to the definitions and a training set with added ellipses.
@unhandyandy about the ambiguity of my last solution: Because there is no implemented constrain for point sequence on a line, AG looks for a solution on both sides, which satisfies the other constrains and of course only finds the solution between A and B for D, to get the desired proof. EDIT: You can constrain it with d = s_angle e a d -90, eqdistance d e a c, but then it will not find the solution, (with eqdistance d a a c you get one).

Hello @unhandyandy  I have fixed the problem, the link should work now

In the proof steps you provided, the expression ∠(BC-EF) = ∠(BF-CE)
represents an equality of angles. Let's break it down:

∠(BC-EF): This denotes the angle formed between the lines BC and EF. It
could be an angle at point B or C, depending on the context.
2.
∠(BF-CE): This denotes the angle formed between the lines BF and CE.
Similarly, it could be an angle at point B or F, depending on the context.
The statement ∠(BC-EF) = ∠(BF-CE) asserts that these two angles are equal.
In geometry, when two angles have the same measure, they are considered
equal. This equality is often used in geometric proofs to establish
relationships between different parts of a diagram.
In the specific context of your proof, this equality is one of the steps
used to show the congruence of certain triangles using the Side-Angle-Side
(SAS) criterion, leading to the conclusion FD = CA.
On Fri, Feb 23, 2024 at 3:33 AM songge25 @.***> wrote:

image.png (view on web)
https://github.com/google-deepmind/alphageometry/assets/37694761/4adb079e-cb41-46c1-83e8-f0fa7a53c8eb
a b c = triangle a b c; d = on_line d a b; e = on_line e b d, eqdistance e
a d b; f = on_pline f e c b, eqdistance f e b c ? cong a c d f

From theorem premises:
A B C D E F : Points
B,D,A are collinear [00]
EA = DB [01]
B,E,D are collinear [02]
FE = CB [03]
FE ∥ CB [04]
Auxiliary Constructions:
: Points
Proof steps:

BC ∥ EF [04] ⇒ ∠BCF = ∠EFC [05]
FE = CB [03] & ∠BCF = ∠EFC [05] (SAS)⇒ FB = CE [06]
FE = CB [03] & ∠BCF = ∠EFC [05] (SAS)⇒ ∠(BC-EF) = ∠(BF-CE) [07]
B,D,A are collinear [00] & B,E,D are collinear [02] & ∠(BC-EF) =
∠(BF-CE) [07] & EF ∥ BC [04] ⇒ ∠DBF = ∠AEC [08]
EA = DB [01] & FB = CE [06] & ∠DBF = ∠AEC [08] (SAS)⇒ FD = CA
==========================

what the ∠(BC-EF) = ∠(BF-CE) mean？
—
Reply to this email directly, view it on GitHub
https://github.com/google-deepmind/alphageometry/issues/73#issuecomment-1960687488,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFAKDKIXYMN4NSCIVJNAQVDYVAEX5AVCNFSM6AAAAABCZKKP62VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRQGY4DONBYHA
.
You are receiving this because you were mentioned.Message ID:
@.***>

but the EF and BC all parallel，there is no angle，the ∠(BC-EF) may be not the means

I see
On Fri, Feb 23, 2024, 6:27 AM songge25 @.***> wrote:

image.png (view on web)
https://github.com/google-deepmind/alphageometry/assets/37694761/a3d4ac1f-0178-4be8-afed-bb0dc302d1b5
—
Reply to this email directly, view it on GitHub
https://github.com/google-deepmind/alphageometry/issues/73#issuecomment-1960795165,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFAKDKOQPPV5R6MWJ6F6KU3YVAZDPAVCNFSM6AAAAABCZKKP62VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRQG44TKMJWGU
.
You are receiving this because you were mentioned.Message ID:
@.***>

somebody know it？

The current version of AG indeed has many limitations, it needs a tremendous amount of hardware to achieve IMO level ability. Also the code is not very robust. If your run is stuck, chances are the problem syntax is wrong.
I made some improvements in a fork repository and have some ideas to improve it, check out
AG4Masses and issue 110. I also share many of my experiences testing AG, including a detailed explanation of the problem definition language.


Handshake with data connection on FTP server is failing with recv error

Note: this is a template, please remove the parts that are not
applicable (these initial notes, and the "Bug" section for a Feature request
and vice-versa).
Note: to report a security vulnerability, see
SECURITY.md. Please do not use github issues for
vulnerabilities.
Note: to get support, see SUPPORT.md. Please do not use
github issues for questions.

Description: We support FTP server on our platform, FTP server has 2 connection, Control(Port 21) and Data (port20). we are fine with Control connection and we are able to do handshake on control connection and files are listed properly.
But there is a problem with Data connection, when we do handshake, server is expecting client key exchange and is waiting for this packet from client. Handshake is failing with recv error.

Type: Bug | Enhancement / Feature Request
Priority: Blocker | Major | Minor

Bug
OS
RTXC
mbed TLS build:
Version: 2.16
Configuration: please attach config.h file where possible
Compiler and options (if you used a pre-built binary, please indicate how you obtained it):
Additional environment information:
Peer device TLS stack and version
OpenSSL|GnuTls|Chrome|NSS(Firefox)|SecureChannel (IIS/Internet Explorer/Edge)|Other
Version:
Expected behavior   : Handshake with both Control and data connection should be fine
Actual behavior  : only Control connection is working fine.
Steps to reproduce

Enhancement / Feature Request
Suggested enhancement
Justification - why does the library need this feature?

server is expecting client key exchange and is waiting for this packet from client

That's normal for a TLS connection. What's the problem?
Note that FTP uses an inverted data connection by default: on the data connection, the FTP client calls listen and the FTP server calls connect. In other words, the FTP server is a TCP client on the data connection, and the FTP client is a TCP server on the data connection. If the data connection is protected by TLS, the FTP server is the TLS server even on the data connection, despite being the TCP client. Modern software usually uses passive mode, which makes things simpler because the server is the server for everything and the client is the server for everything. But this has to be explicitly enabled with the PASV command on the command connection. Are you using passive mode?
Since this seems to be a support request, and no potential bug in Mbed TLS is identified, I am closing this issue. We don't use GitHub for support. You can post support requests on the mailing list. Be sure to include complete code to reproduce the problem.


How to add/remove handlers dynamically with disruptor 3

I have the pattern whereby a number of events are produced by multiple threads, I then need to transform these events, and then dispatch them to a number of consumers.
The consumers need to be dynamically added and removed from the system at runtime.
I was thinking of using 2 ring buffers. We would receive the events on the first ring-buffer, and have a single consumer which transforms them, and places the transformed events on the second rind-buffer. We would then have a number of consumers on the second ring-buffer that receive events.
I can't quite figure out how to dynamically add and remove consumers at run-time. I have tried this:
    private final Disruptor<LockAction> outgoingDisruptor = new Disruptor<>(LockAction::new, RING_BUFFER_SIZE, DaemonThreadFactory.INSTANCE);
    private final RingBuffer<LockAction> outgoingRingBuffer;
    private final SequenceGroup outgoingSequenceGroup = new SequenceGroup();
    private final Map<LockEventListener, BatchEventProcessor<LockAction>> outgoingListenersWithProcessors = new NonBlockingHashMap<>();

   this.outgoingRingBuffer = outgoingDisruptor.start();

    public void registerListener(final LockEventListener lockEventListener) {
        final SequenceBarrier barrier = outgoingRingBuffer.newBarrier();
        final EventHandler<LockAction> handler = (event, sequence, endOfBatch) -> lockEventListener.accept(event);
        final BatchEventProcessor<LockAction> processor = new BatchEventProcessor<>(outgoingRingBuffer, barrier, handler);
        processor.getSequence().set(barrier.getCursor());
        outgoingSequenceGroup.add(processor.getSequence());
        processor.getSequence().set(outgoingRingBuffer.getCursor());
        outgoingListenersWithProcessors.put(lockEventListener, processor);
        processor.run();

        // notify the listener that it was registered
        lockEventListener.registered();
    }

    public void deregisterListener(final LockEventListener lockEventListener) {
        final BatchEventProcessor<LockAction> processor = outgoingListenersWithProcessors.remove(lockEventListener);
        processor.halt();
        outgoingSequenceGroup.remove(processor.getSequence());

        // notify the listener that it was deregistered
        lockEventListener.unregistered();
    }

However, when I call registerListener at runtime it always blocks on processor.run and never proceeds from there.
What am I doing wrong here?

The processor.run() method contains an infinite loop and is designed to be called from within a new thread.  You will need to create a new thread and use the processor as the Runnable for that thread.
There is probably an outstanding feature to add dynamic add/remove to the Disruptor DSL.  I'll have a bit of a dig into that next week.  The one feature with this code is that the batch event processor that you've added dynamically won't be visible to the Disruptor instance so methods like Disruptor.halt() may not do the right thing.

@mikeb01 Okay thanks for the feedback, I will give the threading thing a try...
I look forward to having this easily manageable from the DisruptorDSL :-)

Maybe you can refer to my project https://github.com/Rookiexu/disruptorDynamicConsumer

Any progress on this?

Any progress on this?

None in the Disruptor project itself.
There is @Rookiexu 's project linked above which does it, and we'd welcome a pull request too. Otherwise this feature may continue to stay on the backlog for a while yet.

As per the previous comment - we've not needed this functionality, and so it hasn't been implemented. We would consider pull requests that worked towards it, but we suspect that for this particular issue, that is not imminently happening. Thus, this issue shall be closed.


Update implementations.rst

Please see minor changes to the implementation in Allele Registry. Reece, don't ignore this.

Updated implementation document.


feat(  AM-5594): Updating kubeslice webhook to work with new nsm

Signed-off-by: Mohammed Zeeshan Ahmed<EMAIL_ADDRESS>

can you add some UT for checking the annotations, if there isn;t one already?

can you add some UT for checking the annotations, if there isn;t one already?

As the checks have gone green, i am assuming rhere arent any. So I would say we need to add one


Feature request: Selection of object properties/keys with values of the correct type.

Describe the Difficulty
When entering a key to add, the default value is maybe null, so it is rejected by validate.
I'm imitating the onUpdate validation in the demo source code. But I can't add a value because it's rejected by that validation.
Describe the Request
When entering a key to add, it would be nice if the appropriate value was already entered.
Online demo
I'm imitating the jsonSchemaValidation in the sample demo that was released to the public. Since the name doesn't exist, I'll add it, but I'll get a validation error.
https://codesandbox.io/p/sandbox/json-edit-react-demo-forked-2d6xlx?file=%2Fsrc%2FApp.js%3A9%2C13&workspaceId=ws_CTwx66TnRUb2vkBSHCXygH

This request appears to be related to this one:
https://github.com/CarlosNZ/json-edit-react/issues/95

Okay, couple of things:

The schema you used in the example is actually the schema for the Custom Nodes demo, not the "Tony Stark" one, so nothing in that example data is actually valid. The correct schema for that data is this one
You can change the default value to a string with the defaultValue prop to make sure its appropriate. I just set it to a string to get it work for this case, but you can set a more complex conditional default by passing a function to that prop.

So here is a modification with the correct schema a string default and it's working as expected when adding the name key:
https://codesandbox.io/p/sandbox/json-edit-react-demo-forked-wqsmkc?file=%2Fsrc%2FApp.js%3A47%2C26
Hope that helps :)

The schema you used in the example is actually the schema for the Custom Nodes demo, not the "Tony Stark" one, so nothing in that example data is actually valid. The correct schema for that data is this one

Thank you for your kind reply even for a silly mistake.
Since Custom Nodes is set to localhost, it would be helpful to have a public link to help me understand.

You can change the default value to a string with the defaultValue prop to make sure its appropriate. I just set it to a string to get it work for this case, but you can set a more complex conditional default by passing a function to that prop.

My intuition is that when I provide a JSON Schema, I have to provide a defaultValue (=DefaultValueFilterFunction) at the same time. It feels natural that the correct type is applied to defaultValue by jsonSchema.
It depends on the philosophy of json-edit-react, but for me, it is more convenient to receive jsonSchema.

Thank you for your kind reply even for a silly mistake. Since Custom Nodes is set to localhost, it would be helpful to have a public link to help me understand.

No problem. Sorry, I posted my local link rather than the public demo: https://carlosnz.github.io/json-edit-react/?data=customNodes

My intuition is that when I provide a JSON Schema, I have to provide a defaultValue (=DefaultValueFilterFunction) at the same time. It feels natural that the correct type is applied to defaultValue by jsonSchema. It depends on the philosophy of json-edit-react, but for me, it is more convenient to receive jsonSchema.

Yes, it would be good to have default values generated automatically, but adding this into the core package is beyond the scope of what this tool should do for now. We can do JSON schema validation, but the actual validation is done by an external tool, so I imagine something similar could be done for this. It would involve fairly complicated JSON schema parsing, so I wouldn't want to include it in the main package, but if someone wanted to create one, it could be a good supplement. You'd need to write a function to input a JSON schema and output a "DefaultValueFilterFunction" -- definitely a non-trivial task. I might have a crack at it one day, but it'd be great if someone wanted to contribute one.


Pubsub update

Refresh GAPIC layer for all APIs; update pubsub with new methods; update pubsub with renamed client classes

LGTM after tests pass

LGTM

Changes Unknown when pulling 13570f11e86fc195833983073dea273181bb17a8 on michaelbausor:pubsub-update into ** on GoogleCloudPlatform:master**.


(WIP) UI Pass

Added drag and drop to the scene selector
Simplified UI in the GDK Tools configuration
Fixed IncompatibleWindowsPlatformsErrorMessage
GetUnityBuildTargets no longer throws

Trying it on my machine, I get:
NullReferenceException: Object reference not set to an instance of an object
Improbable.Gdk.BuildSystem.Configuration.SpatialOSBuildConfigurationEditor.DrawScenesInspectorForWorker (Improbable.Gdk.BuildSystem.Configuration.WorkerBuildConfiguration configurationForWorker) (at Packages/com.improbable.gdk.buildsystem/Configuration/SpatialOSBuildConfigurationEditor.cs:455)
Improbable.Gdk.BuildSystem.Configuration.SpatialOSBuildConfigurationEditor.DrawWorkerConfiguration (Improbable.Gdk.BuildSystem.Configuration.WorkerBuildConfiguration configurationForWorker) (at Packages/com.improbable.gdk.buildsystem/Configuration/SpatialOSBuildConfigurationEditor.cs:124)
Improbable.Gdk.BuildSystem.Configuration.SpatialOSBuildConfigurationEditor.OnInspectorGUI () (at Packages/com.improbable.gdk.buildsystem/Configuration/SpatialOSBuildConfigurationEditor.cs:81)
UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor[] editors, System.Int32 editorIndex, System.Boolean rebuildOptimizedGUIBlock, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1367)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)


Bug in nltk.draw.dispersion_plot with nltk 3.8.1, matplotlib-base 3.8.0, matplotlib-inline 0.1.6 and numpy 1.26

Following along the exercise in your workbook chapter 1.
I do not get the same plot when I use:
text4.dispersion_plot(["citizens", "democracy", "freedom", "duties", "America"])

After using the words singularly with the function, I believe 'citizens' output has been swapped with 'America' and 'democracy'  output has been swapped with duties.

Can I work on this issue?

Is this already fixed by #3150?


Fix dragdrop compatibility - [merged]

In GitLab by @Asacolips on Dec 19, 2020, 17:14
Merges 31-macrobar-fix -> beta
Closes #31

In GitLab by @Asacolips on Dec 19, 2020, 17:15
mentioned in commit 383a4b1ca9ab48a417ac8fe9b64328ade17a5bf9


From which revision of Opal is this built?

Please add this information to the readme or commits (like in opal-node-runtime).

I've added this information in the release page: https://github.com/Mogztter/asciidoctor-opal-node-runtime/releases
This project is built using a fork of Opal: https://github.com/Mogztter/opal/tree/asciidoctor
In this fork, I've commented out unused modules from opal/opal.rb.

Thanks!


[v2] Enable local debugging for RabbitMQ

Added local debugging feature for the RabbitMQ.
For the test of the RabbitMQ, usually we use Rabbit MQ on k8s.
In this case, we need to modify code to test it locally.
This fix will enable us to debug locally by setting yaml as localhost.  This is the example.  You can specify the localhost, that will be the proxy address of the kubectl. The base64 decoded value is amqp://user:PASSWORD@<IP_ADDRESS>:5672 if you run kubectl port-forward service/rabbitmq 5672.
apiVersion: v1
kind: Secret
metadata:
  name: rabbitmq-consumer
data:
  RabbitMqHost: YW1xcDovL3VzZXI6UEFTU1dPUkRAcmFiYml0bXEuZGVmYXVsdC5zdmMuY2x1c3Rlci5sb2NhbDo1Njcy
  LocalHost: YW1xcDovL3VzZXI6UEFTU1dPUkRAMTI3LjAuMC4xOjU2NzI=
---
apiVersion: keda.sh/v1alpha1
kind: ScaledJob
metadata:
  name: rabbitmq-consumer
  namespace: default
spec:
  jobTargetRef:
    template:
      spec:
        containers:
        - name: rabbitmq-client
          image: tsuyoshiushio/rabbitmq-client:dev3
          imagePullPolicy: Always
          command: ["receive",  "amqp://user:PASSWORD@rabbitmq.default.svc.cluster.local:5672", "job"]
          envFrom:
            - secretRef:
                name: rabbitmq-consumer
        restartPolicy: Never
    backoffLimit: 4
  pollingInterval: 5   # Optional. Default: 30 seconds
  cooldownPeriod: 30   # Optional. Default: 300 seconds
  maxReplicaCount: 30  # Optional. Default: 100
  triggers:
  - type: rabbitmq
    metadata:
      queueName: hello
      host: RabbitMqHost
      localhost: LocalHost
      queueLength  : '5'

This PR is for V2 branch. Do we need to modify docs?
Checklist

[ ] A PR is opened to update the documentation on https://github.com/kedacore/keda-docs
[-] Commits are signed with Developer Certificate of Origin (DCO)
[-] Tests have been added

Fixes #

V2 branch had force push. I migrate this PR to https://github.com/kedacore/keda/pull/976


Add unit testing framework, pytest

I've been doing a bit of work on a project to extract a core ENSIME client for Python that could potentially be shared with ensime-sublime or others (more of a rewrite of the core than extraction, but I'll save this whole discussion until it's really ready to talk about).
I set up unit test infrastructure for that project from the start and thought about whether to add it to ensime-vim too, but wasn't sure if there was a need yet. Now that I've started some work on #321, it's finally there—we're finally getting to the point where some substantial logic will be decoupled enough from complex dependencies to feasibly be unit tested. I've mentioned before how I think Lettuce is ideal for integration/acceptance/end-to-end tests but unit tests are a better fit for other cases.
An example is the config file parsing, which we had Lettuce tests for but they feel heavy because there's no need for integration there, it's extra work to write steps in code plus a prose feature for something so low-level. So I used that as a small contained example case for the initial unit test framework setup, converting those to unit tests and taking the opportunity to abstract it in a cute little mapping class that I've used in my spinoff project.
Briefly, a rundown of popular unit testing choices in the Python ecosystem—there are three main contenders:

The standard library unittest module.

Nose and pytest by contrast share a lot in common, they both aim to be lightweight frameworks that are highly-plugin driven and let you just write simple functions, scaling up to using more complicated structures if you feel the need to. I chose Pytest for a few reasons:

Nose 1 development has basically stopped, they're working on Nose 2 which seems mostly ready but the ecosystem is still catching up.
With nose you either use a plugin to add assertion functions, use unittest for assertions with nose acting as a test runner, or use the built-in assert statement with not-very-good failure output, kind of like with Lettuce where there is more burden on you to write string explanations for assertions. pytest has badass output with simple standard assert statements.
I know there was concern about Lettuce not being actively maintained, and AFAIK not ready for Python 3. If we eventually need to leave it behind, pytest_bdd looks like a really nice Gherkin feature runner based on pytest, maybe even already more featureful and better-documented than Lettuce and working on Python 2/3.

A couple of things that might be negatives for pytest: it is somewhat "magical": its fantastic output for standard assert is achieved through bytecode manipulation. That said, it's been around for many years and is regarded as solid. Also, it has a novel approach to setup/teardown or test fixtures that is like dependency injection—it's actually quite nice and scales up and down very flexibly, but it takes a bit of getting used to since it is unusual. As the doc mentions, there is still support for classical setup/teardown functions at different scopes, though.
Let me know what you think. I'd ideally like to base my work for #321 atop this test setup as well as the logging in #323.

I think this is great, I totally agree with your Lettuce vs Unit Tests analysis about when each kind of test is better.
When I had to write the tests for the symbol_format module it felt like a lot of work, maintain two separate files and so many extra steps to transform the data from what Gherkin supports to what the logic actually needs.
I'm more used to libs like specs2 where you have BDD-like DSL to organise your cases and all the power of the PL to do your testing. I think that having the cases descriptions in a separate files is a better fit for projects where the acceptance stage is managed by a separate team, most of the time non-developers, but I think it's a big overhead for a project like this with just a group of maintainers.
Having the alternative to eventually move to Python3 is a huge win also.
If this change is accepted I'd be happy to migrate the Suggestion Format scenario to unit tests.
And let me tell you that all the work you're doing is fantastic, it's much more enjoyable to contribute to a project well structured and with the right set of tools.
It's a big LGTM

I'm more used to libs like specs2 where you have BDD-like DSL to organise your cases and all the power of the PL to do your testing.

 The language just isn't optimized to support DSLs that way.

And let me tell you that all the work you're doing is fantastic, it's much more enjoyable to contribute to a project well structured and with the right set of tools.

Recently I've had some time to devote to the project, it probably won't last forever, so for myself too I feel a rush to try to whip the foundations into shape while I can so it's more comfortable to build upon… Thanks for the kind words!

Bonus: added coverage.py, with the coverage report combining the pytest and Lettuce suites.

A little trivial update: moved the Lettuce tests into test/features, figured the consolidated layout would be easier for contributors to understand. That was basically just a git mv and change the path in the Makefile. Also fits with conventions many tools expect, e.g. no longer needed to tell coverage.py to explicitly ignore the *steps.py files as not being production code.
If we port the suggestion formatting tests to pytest also, there won't be any more Lettuce tests remaining for now, but #312 could change that…


dist.nuget.org - Downloads Link Broken - Default File Handler

As an FYI:
The application pool hosted at: https://dist.nuget.org does not seem to have a default document handler (or index.html is not registered as a default document). Attempting to browse to: https://dist.nuget.org directly results in an XML error. Also, the "Downloads" link for the header navigation is set to: "https://dist.nuget.org" instead of "https://dist.nuget.org/index.html", which will cause the same error to appear.

Link in the header has been fixed, default document is pending.

We now have www.nuget.org/downloads as the official URL


Very Slow Run time on A Pre Trained Network - Inception V1

System information

example script (Very Similar label_Image.py but simpler):
**Windows 10 X64 - TensorFlow installed from source **:
TensorFlow version (1.3):
Python version - 3.5.3:
Cmake 3.8.1:
CUDA/cuDNN version - CUDA 8.0/ cuDNN 6.1:
GPU model and memory - Nvidia GTX 1050, 4GB:
Exact command to reproduce:

Describe the problem
I encountered a disturbing issue regarding the run time for processing an arbitrary image through an inception V1/GoogleNet pre-trained model the runtime took approximately 9.2 ms
When using the same image and exactly the same model with Caffe, It was running X4 faster than Tensorflow (2.3 ms).  The models  I used (both for Caffe and Tensorflow)  :
https://github.com/beniz/deepdetect/issues/89
Labels file is attached.
How is it even possible ?!?!
Am I doing something incorrectly ?
By the way, I carefully checked (with GPU-Z) and it seems Tensorflow  properly uses the GPU resources.
Source code / logs
Attahced, along with the used label file.
In order to use the (python) script, simply put it in the same folder as the model and label file., and rename it to :  TF_Running_Inception.py
TF_Running_Inception.txt
imagenet_slim_labels.txt

This question is better asked on  StackOverflow since it is not a  bug or feature request. There is also a larger community that reads questions there. Thanks!
More specifically, you should ask on StackOverflow when debugging performance problems with your own script. If you find a performance issue with a TensorFlow op, model or any other specific part of Tensorflow, then file an issue. Try tf_cnn_benchmarks if you're benchmarking.