Get current bounding box (north-east/south-west coordinates)

I can keep track of the maps position with onRegionChange but that only gives me the coordinates and delta. Is there anyway to retrieve (or calculate?) the north-east/south-west position displayed within the map?

I found a solution. For anyone coming across this later...
<MapView onRegionChangeComplete={(center) => {
  let northeast = {
      latitude: center.latitude + center.latitudeDelta / 2,
      longitude: center.longitude + center.longitudeDelta / 2,
    }
    , southwest = {
        lat: center.latitude - center.latitudeDelta / 2,
        lng: center.longitude - center.longitudeDelta / 2,
    };

    console.log(center, northeast, southwest);
}} />

This doesn't work, first it doesn't comply to the outline of the map coords system. More importantly , however, latitudeDelta does not represent the current view span.

This only works if user isn't rotating map.

Agh. Well it has been good enough for me, however I would love some sort of official, documented, supported way of getting these values. Seems fairly important to a lot of different use cases.
I'm going to reopen this. Would love one of the developers to comment on this.

+1, need this as well.
The code sample above will be a decent approximation near the equator, but it will fail at the southern parts of the southern hemisphere and the northern parts of the northern hemisphere, because the (default) Mercator projection stretches out certain parts of the globe.
For example, you could have Antarctica in the south of your viewport (latitude = -80) and Japan in the north of your viewport (latitude = 36). The center of the screen (i.e. the projection of Earth we're looking at) would be somewhere south of Australia at latitude = -49.
The current maps API only gives us the values region.latitude = -49 and region.latitudeDelta = 116, where 116 is calculated as the difference in latitude between Antarctica and Japan.
However, from these two numbers (-49 and 116), it's not possible to get the absolute latitudes of Antarctica and Japan without some clever mathematics by inverting the map projection. Also note that the code sample above fails for these numbers: -49 - (116 / 2) = -107 (should be -80; a number lower than -90 is not even allowed in fact) and -49 + (116 / 2) = 9 (should be 36).

👍 - I would also like to know how to do this

would exporting these do it?
GMSVisibleRegion visibleRegion = map.projection.visibleRegion;
GMSCoordinateBounds *bounds = [[GMSCoordinateBounds alloc] initWithRegion: visibleRegion];

need this too !

@martinezguillaume  @definitelycarter  @jessym Has anyone reliably tackled this yet?
I see react-google-maps on the web has a getBounds() function:
https://tomchentw.github.io/react-google-maps/
https://github.com/tomchentw/react-google-maps/search?p=2&q=getBounds&type=&utf8=✓

I managed to get working solution by using known region to determine zoom level, and using reverse Mercator projection to get corner coordinates.
https://gist.github.com/mpontus/a6a3c69154715f2932349f0746ff81f2
It's not the most efficient solution, but its accurate.

Thanks @mpontus, by known region you mean the current lat/lng+deltas?

Do you think implementing this answer as a method of MapView will solve the problem https://stackoverflow.com/questions/2081753/getting-the-bounds-of-an-mkmapview?

Actually in my case
const getBoundingBox = (region) => ([
  region.longitude - region.longitudeDelta/2, // westLng - min lng
  region.latitude - region.latitudeDelta/2, // southLat - min lat
  region.longitude + region.longitudeDelta/2, // eastLng - max lng
  region.latitude + region.latitudeDelta/2 // northLat - max lat
])

was accurate enough.

Can you please explain the algorithm why divide by two ? i don't understand it.

latitudeDelta and longitudeDelta are the distances of edges. So, to have center coordinate you have to divide it by 2.

I have a map on web which created using googlemap v3 javascript and one on mobile created using react-native-maps. On server i have a bunch of marker (lat/lng) and i want to filter marker which contained by viewport of devices that can be either a web or mobile. Any tips ?
on web, i can use getbounds and get northeast and southweb (lat/lng) while on mobile i can use algorithm provided by alvelig  to get the bounding box which is array of four number.

A PR #2440 has been submitted to add this feature for the google maps. You can use this branch until the PR is closed.

I think there is a way how to get bounding box for both platforms. Working with mapRef when onRegionChangeComplete is called. And map method something like getVisibleBoundaries() could return:
type Boundaries {
  northEast: {
    latitude: Number,
    longitude: Number
  }
  southWest: {
    latitude: Number,
    longitude: Number
  }
}

Google Maps:
https://stackoverflow.com/a/24210375/802949
Apple Maps:
http://www.softwarepassion.com/how-to-get-geographic-coordinates-of-the-visible-mkmapview-area-in-ios/

PR in progress: https://github.com/react-community/react-native-maps/pull/2571

@radeno I have tried the example given here https://github.com/react-community/react-native-maps/pull/2571/commits/c3545b29c0efb0c40e4daa253f06092333f53075#diff-42e926053813235167fcbea608214fdd
but it gives error 'Possible unhandled promise rejection'.

@shrikantkunte you are using one just commit from whole PR. Use full PR as I linked before.

`export const getBoundByRegion = (region, scale = 1) => {
/*

Latitude : max/min +90 to -90
Longitude : max/min +180 to -180
*/
// Of course we can do it mo compact but it wait is more obvious
const calcMinLatByOffset = (lng, offset) => {
const factValue = lng - offset;
if (factValue < -90) {
return (90 + offset) * -1;
}
return factValue;
};

const calcMaxLatByOffset = (lng, offset) => {
const factValue = lng + offset;
if (90 < factValue) {
return (90 - offset) * -1;
}
return factValue;
};
const calcMinLngByOffset = (lng, offset) => {
const factValue = lng - offset;
if (factValue < -180) {
return (180 + offset) * -1;
}
return factValue;
};
const calcMaxLngByOffset = (lng, offset) => {
const factValue = lng + offset;
if (180 < factValue) {
return (180 - offset) * -1;
}
return factValue;
};
const latOffset = region.latitudeDelta / 2 * scale;
const lngD = (region.longitudeDelta < -180) ? 360 + region.longitudeDelta : region.longitudeDelta;
const lngOffset = lngD / 2 * scale;
return {
minLng: calcMinLngByOffset(region.longitude, lngOffset), // westLng - min lng
minLat: calcMinLatByOffset(region.latitude, latOffset), // southLat - min lat
maxLng: calcMaxLngByOffset(region.longitude, lngOffset), // eastLng - max lng
maxLat: calcMaxLatByOffset(region.latitude, latOffset),// northLat - max lat
}
}`

@MatsMaker Your solution works like a charm. I owe you probably more than one beer bro. THANKS!

I found very little online for this so I thought I would post my solution:
import React, { useCallback, useRef } from "react";
import MapView, { PROVIDER_GOOGLE, type Region } from "react-native-maps";

const Map = () => {
  const mvRef = useRef<MapView>(null);

  const onMapRegionChange = useCallback(
    (region: Region) =>
      console.log(mvRef.current?.boundingBoxForRegion(region)),
    [],
  );

  return (
    <MapView
      className="h-full w-full"
      provider={PROVIDER_GOOGLE}
      showsUserLocation={true}
      onRegionChangeComplete={onMapRegionChange}
      ref={mvRef}
    />
  );
};
export default Map;

Which prints
{"northEast": {"latitude": 70.80113503086783, "longitude": 17.070082426071167}, "southWest": {"latitude": 22.30878469808772, "longitude": -20.722878947854042}}

I'm using Tailwind with RN so that's why there's className.
Works on both iOS and And, I haven't tested the accuracy but anecdotally it looks like it works well.

Hi, i was playing with this

const getBoundingBox = (region) => ([
    region.longitude - region.longitudeDelta/2, // westLng - min lng
    region.latitude - region.latitudeDelta/2, // southLat - min lat
    region.longitude + region.longitudeDelta/2, // eastLng - max lng
    region.latitude + region.latitudeDelta/2 // northLat - max lat
])

Everything was working fine (i put some markers to test both coordinates, northEast & southWest), but when i rotated the map, the markers are showed in another position...How can this be fixed?

Hi @sebackend, it is a really oooooold answer, but did you find any solution for it?


PlugInstall interrupted via command line

uname: Linux <IP_ADDRESS>-1-MANJARO x86_64 GNU/Linux
vim:
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr 23 2015 11:27:15)
Included patches: 1-712
Compiled by Arch Linux
Huge version with GTK2 GUI.

I am trying to install plugins (among other things) using a bash script.
I have the following in my install script:
vim +PlugInstall tmpbuf

I get the following output when PlugInstall is executed:
Updated. Elapsed time: 0.596644 sec.
[xxxxxxxxxxxxxxx      ]

- Finishing ... Done!
x vim-repeat: Interrupted!
x vim-commentary: Interrupted!
x rust.vim: Interrupted!
x ultisnips: Interrupted!
x vim-fugitive: Interrupted!
x vim-surround: Interrupted!
x syntastic: Interrupted!
x vim-multiple-cursors: Interrupted!
x vim-exchange: Interrupted!
x vim-atom-dark: Interrupted!
x unite.vim: Interrupted!
x incsearch.vim: Interrupted!
x vim-airline: Interrupted!
x vim-easy-align: Interrupted!
x lexima.vim: Interrupted!

I am using the latest vim-plug. Downloaded today.
I have tried using both vim and gvim.
If I specify +qall then the window closes before I can get the output.
Plugins are not installed.
I can always start vim and manually issue :PlugInstall and that works fine.
I was just hoping to do this via a script.
Note that the following works fine via the same script:
vim +GoInstallBinaries +qall tmpbuf

Please let me know if more information is required.

I also like to make sure that it's not caused by some plugin or your Vim configuration. Please try again with a minimal vimrc such as follows:
" mini-vimrc
call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-repeat'
Plug 'tpope/vim-surround'
call plug#end()

Then, vim -Nu mini-vimrc +PlugInstall

Output of :version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr 23 2015 11:27:15)
Included patches: 1-712
Compiled by Arch Linux
Huge version with GTK2 GUI.
So it is perhaps a misbehaving plugin.
However installation works fine with almost all the plugins on windows.
I just have a manually managed plugin racer in linux that I don't use on windows.

I tried adding all the plugins to the mini-vimrc one by one and doing the install via command line and that worked fine.
So it is perhaps not the plugins themselves but the number of plugins?
Also if I don't issue the +qall at the command line, thus keeping the vim window open, I can press R to retry and then the installation goes through fine.

So it is perhaps not the plugins themselves but the number of plugins?

No, number shouldn't matter. Then it's probably something in your .vimrc. Any idea? Could you post your .vimrc?

Linux : vimrc
Windows: vimrc
Thanks for looking into this.

@abhigupta912 On Linux I was able to reproduce, I tried the different installers and it seems to be isolated to the ruby installer. VimL & Python continued working apparently. Can you delete lines 86-97 inclusive & try to reproduce. Once I delete those, it doesn't seem to reproduce. For some reason, your status line seems to be causing issues.
Additional notes:

Lines 35,36 are unnecessary, vim-plug manages that for you. 1 isn't either, implied just by loading a vimrc, see :h nocp.
You may want to pick another scheme or change settings, highlighting looks extremely weird in the plug buffer.

@starcraftman Thanks for the investigation!
I could reproduce on OS X as well. It turned out that the error from &statusline affected the interrupt handler of Ruby installer. Once evaluation of &statusline is failed, it is reverted to prevent more errors. So a workaround was to force evaluation of &statusline before running the installer.

@junegunn No problem.

@starcraftman Thanks for the investigation and suggestions.
@junegunn Thanks for the investigation and fix. vim +PlugInstall works as expected now.

I'll throw another solution ("works for me") in here in case someone else hits this: remove everything in .vim/bundle (i.e. remnants of a previous plugin manager) first.


Logo in social cards appears pixelated

Maybe we should increase the quality of the logo in the social card?

Relevant source code:

Could you debug this issue, @ercohen14?

Another instance of this problem (on Linkedin)

Looks much better now!


perplexity results

Anton,
I am running the toolkit on the text from the Cantab-Tedlium recipe in Kaldi.
it a text file of about 900 MB, vocab size 150K
Anyway my question is:
do you think it's normal to get a 114 perplexity in HS and 124 in NCE mode ?
I would have expected the NCE results better than the HS ones according to your home page.
(parameters are the one from the WSJ recipe for rnnlm)
thanks
Vincent

to illustrate my point:
Read the vocabulary: 149999 words
Restoring existing nnet
Constructing RNN: layer_size=400, layer_type=sigmoid, layer_count=1, maxent_hash_size=1999936667, maxent_order=4, vocab_size=149999, use_nce=0
Contructed HS: arity=2, height=28
Test entropy 6.834538
Perplexity is 114.13
Read the vocabulary: 149999 words
Restoring existing nnet
Constructing RNN: layer_size=400, layer_type=sigmoid, layer_count=1, maxent_hash_size=1999936667, maxent_order=4, vocab_size=149999, use_nce=1
Constructing NCE: layer_size=400, maxent_hash_size=1999936667, cuda=0, ln(Z)=9.000000
Use -nce-accurate-test to calculate entropy
Perplexity is 123.375


[cli] updated the metro.config of the firebase package to take expo-router into account

based on #127 (different account, same person 👋 )
tested with the following commands:
create-expo-stack test-repo-fire --stylesheet --importAlias --firebase --yarn
create-expo-stack test-repo-expo-router --expo-router --stylesheet --importAlias --yarn
create-expo-stack test-repo-both --expo-router --stylesheet --importAlias --firebase --yarn

@finnbayer can you run bunx changeset? You can indicate a patch change and just use your commit message as the summary.

@danstepanov done. haven't worked with changeset yet so I did not thought about it before submitting the pr


Unrecognized function or variable MapGenerate

Hi,
Thank you for your code.
I try to run the file runLeaderFollower.m on Windows 11, Matlab R2023b and Mobile Robotics Simulation Toolbox v2.2.
However, the following error occurred:
Unrecognized function or variable 'MapGenerate'
Error in runLeaderFollower (line 10)
map_gen = MapGenerate(size,size,space,resolution);

I am new to matlab, where can I find details of MapGenerate?
Thanks

Sorry, I missed this step!

To run these scripts, open and run with MATLAB. Don't forget to include the repository in MATLAB search path


xcode build failed (iOS)

On my test, iOS build failed!
Undefined symbols for architecture x86_64:
"node::DefineJavaScriptHash(node::Environment*, v8::Localv8::Object)", referenced from:
node::GetInternalBinding(v8::FunctionCallbackInfov8::Value const&) in node_instance.o
"node::NodePerContextSource(v8::Isolate*)", referenced from:
node::NewContext(v8::Isolate*, v8::Localv8::ObjectTemplate, OpaqueJSContextGroup const*, OpaqueJSContext**) in node_instance.o
"node::DefineJavaScript(node::Environment*, v8::Localv8::Object)", referenced from:
node::GetBinding(v8::FunctionCallbackInfov8::Value const&) in node_instance.o
"node::LoadersBootstrapperSource(node::Environment*)", referenced from:
node::LoadEnvironment(node::Environment*) in node_instance.o
"node::NodeBootstrapperSource(node::Environment*)", referenced from:
node::LoadEnvironment(node::Environment*) in node_instance.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation).
xcode version: 13.2.0
LiquidCore version: 0.7.10
I tryied to change node version : 10.15.3 and 13.9.0, but the error still exist, what can I do?

I also have this issue upon compilation:
Undefined symbols for architecture arm64:
"node::DefineJavaScriptHash(node::Environment*, v8::Localv8::Object)", referenced from:
node::GetInternalBinding(v8::FunctionCallbackInfov8::Value const&) in node_instance.o
"node::NodePerContextSource(v8::Isolate*)", referenced from:
node::NewContext(v8::Isolate*, v8::Localv8::ObjectTemplate, OpaqueJSContextGroup const*, OpaqueJSContext**) in node_instance.o
"node::DefineJavaScript(node::Environment*, v8::Localv8::Object)", referenced from:
node::GetBinding(v8::FunctionCallbackInfov8::Value const&) in node_instance.o
"node::LoadersBootstrapperSource(node::Environment*)", referenced from:
node::LoadEnvironment(node::Environment*) in node_instance.o
"node::NodeBootstrapperSource(node::Environment*)", referenced from:
node::LoadEnvironment(node::Environment*) in node_instance.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
xcode: 13.4.1
liquidcore version: 0.7.10
This could be an issue on macs running on M1 processors as I've been able to build LiquidCore on my intel mac.

Update:
@davidgdoyle  solution worked for me. see: https://github.com/LiquidPlayer/LiquidCore/issues/160

@carlosjrtee
That's right！
Thank you, brother


Document that using vecty.Style is preferable over vecty.Property("style", ...).

I've asked what's the difference between the two in https://gophers.slack.com/archives/vecty/p1488148154608710, and @slimsag gave a great answer/explanation.
It should be a part of vecty documentation, whether the godoc, or somewhere else that goes over these things.
https://godoc.org/github.com/gopherjs/vecty#Property does not say anything about "style" being a special case right now.
It does say:

Generally, this function is not used directly but rather the style subpackage (which is type safe) is used instead.

But that seems a little unclear and not completely relevant.

Generally, this function is not used directly but rather the style subpackage (which is type safe) is used instead.

This should actually read but rather the style and prop subpackages (which are typesafe) should be used instead.
It might make sense to actually disallow / strictly enforce use of vecty.Style by panicking in vecty.Property("style", ...) -- but I'll have to think about that some more.

It might make sense to actually disallow / strictly enforce use of vecty.Style by panicking in vecty.Property("style", ...) -- but I'll have to think about that some more.

@slimsag, I have found a very convincing reason to do that.
Consider the following program:
package main

import (
	"github.com/gopherjs/vecty"
	"github.com/gopherjs/vecty/elem"
	"golang.org/x/net/html/atom"
)

func main() {
	vecty.RenderBody(&Body{})
}

type Body struct {
	vecty.Core
}

func (*Body) Render() *vecty.HTML {
	return elem.Body(
		vecty.Property(atom.Style.String(), "background-color: hsl(209, 51%, 92%);"),
		elem.Span(
			vecty.Text("Body"),
		),
	)
}

It works fine in Chrome, Firefox. It does not work in latest Safari (10.1).
In addition to not working, the error message is extremely confusing and misleading, due to https://github.com/gopherjs/gopherjs/issues/616. This is what you see in Safari console:

The stack trace and "TypeError: Attempted to assign to readonly property." text lead me to believe it was a problem with GopherJS, something about goroutines and scheduling. In reality, it seems Safari is the only browser that enforces not being able to assign to the readonly property called "style". (/cc @neelance, FYI.)
When I debugged GopherJS compiler by adding a console.error(err);, I saw where the error was actually coming from:

And I was able to figure out that it was setting style property that was causing it. But I certainly don't wish for other vecty users to fall in this same trap.
In practice, doing vecty.Property("style", ...) doesn't seem to work in Safari, so it can't be reliably used, so it's in vecty's best interest to both document it and make help users catch their mistake.

For reference, rewriting the Render method to this fixes the rendering issue in Safari:
func (*Body) Render() *vecty.HTML {
	return elem.Body(
		//vecty.Property(atom.Style.String(), "background-color: hsl(209, 51%, 92%);"),
		vecty.Style("background-color", "hsl(209, 51%, 92%)"),
		elem.Span(
			vecty.Text("Body"),
		),
	)
}

According to https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style:

Setting style
Styles can be set by assigning a string directly to the style property (as in elt.style = "color: blue;"), which forwards it as elt.style.cssText = "color:blue;", though it returns a CSSStyleDeclaration object which is read-only.

So it is possible to set style property, but it should be done by setting style.cssText instead.
I can confirm the following patch to HTML.Restore makes vecty.Property("style", ...) work in Safari:
diff --git a/dom.go b/dom.go
index 7ee1c9c..e8bb454 100644
--- a/dom.go
+++ b/dom.go
@@ -233,6 +233,10 @@ func (h *HTML) Restore(old ComponentOrHTML) {
 		h.Node.Set("innerHTML", h.innerHTML)
 	}
 	for name, value := range h.properties {
+		if name == "style" {
+			h.Node.Get("style").Set("cssText", value)
+			continue
+		}
 		h.Node.Set(name, value)
 	}
 	for name, value := range h.attributes {

But, not sure if you want to do that, since you said using style package or vecty.Style is meant to be the preferred way of setting styles.

Thanks for the info @shurcooL ! That is super useful.
I don't think that we should do the cssText modification you spoke of in your second post, and the reason being is actually something I mentioned earlier in that Slack conversation in the description:

Consider if you e.g. change a property like text-align to left, in the first one Vecty only has to update a single property (node.style["text-align"] = "left") whereas in the second one the browser has to update all of those properties (hopefully it is smart enough not to, but I'm not sure)

The right solution here, I think, is documenting+implementing the vecty.Property function as panicking if style is the property name passed in, and pointing users towards vecty.Style instead. If anyone wants, please feel free to send a PR for that (or else I will probably over the weekend)

the reason being is actually something I mentioned earlier in that Slack conversation in the description ...  pointing users towards vecty.Style instead

Just want to confirm, do you mean that should apply even for components that have lengthy fixed styles (meaning they never change dynamically in the component's Render method)?
For example, should one always prefer to write:
style.Width("100%"),
vecty.Style("text-align", "center"),
vecty.Style("background-color", "hsl(209, 51%, 92%)"),
vecty.Style("padding", string(vecty.Px(15))),
vecty.Style("display", "inline-block"),

Instead of a single compact line:
vecty.Property("style", "width: 100%; text-align: center; background-color: hsl(209, 51%, 92%); padding: 15px; display: inline-block;"),

Is that so?
I'm okay with that, I just wanted to confirm (before I start rewriting a lot of my code, hehe).

That is correct.
In theory, a static string like width: 100%; text-align: center; ... is not strictly worse than individually defined properties except that:

It provides more than one way to acomplish the same thing.
Strings are very much not type safe, and vecty.Style(...) calls could be easily translated into style.Foobar(...) calls (probably even automatically with a tool.)
Depending on how we decide to handle vendor prefixes long-term (https://github.com/gopherjs/vecty/issues/86) vecty.Style or style.Foobar may automatically give you vendor prefixes, which would be nicer.
It needs special casing to style.cssText (as shown here).

If anyone wants, please feel free to send a PR for that (or else I will probably over the weekend)

@slimsag, I've made PR #96 that should fix this.


Fix typo

Description
Fix typo in the sample
Type of change
Removed ">

[x]  Patch: Bug (non-breaking change which fixes an issue)

Checklist

[x] This is something we need to do.

@samuelOsborne hello?

Hi @1998code, will add this on the next update.

added here: https://github.com/LottieFiles/lottie-interactivity/commit/673f3c548d4a8aae98f56187ed7f2a0d67d1427b


Security findings - transitive dependency inflight is deprecated

We may need to upgrade glob from ^7.0.0 to latest ^11.0.0 to avoid security violations as<EMAIL_ADDRESS>used the inflight which is deprecated - https://www.npmjs.com/package/inflig

Duplicate of #1149


WFLY-18727 ATTRIBUTE granularity distributed sessions should always replicate on setAttribute(...)

https://issues.redhat.com/browse/WFLY-18727

@rhusar please approve


[local_auth] Fix callback thread handling

Ensure that all auth replies, which are sent on an internal framework queue per documentation, are dispatched back to the main thread for handling, as all resulting operations (method channel callbacks, display of UI) are things that must be done on the main thread
In order to test this, sets up local_auth with XCTest-based tests, and adds the ability to inject a mock LAContext. (This does not do full unit test backfill, to limit the scope of the PR.)
Fixes https://github.com/flutter/flutter/issues/47465
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
[x] I signed the CLA.
[x] The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy.
[x] I updated CHANGELOG.md to add a description of the change.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test exempt.
[x] All existing and new tests are passing.

Before landing this I need to make sure CI is actually running the new unit tests, since I'm not sure if there were extra steps to wire that up that I missed, or if it's automatic.


Wired mp3d images full of fragments receive from gym

I sample an episode from scene  with gym/gym_minos/envs/indoor_env.py, which video is shown here.
However when using vglrun python3 -m minos.tools.pygame_client --env_config roomgoal_mp3d_s --scene_ids sT4fr6TAbpF to show the scene, the images are clear without any fragment.

@ZhuFengdaaa thanks for reporting this.  Can you also provide a link to the simulator.log and simserver.log files that are created when you record a video with these artifacts?

simserver.log and simulator.log.

@msavva @ZhuFengdaaa I confirm this, get the same issue and actually never seen "clean" version, so thought that it is texture problem of the specific map.

Still waiting for solution. If this issue is not fixed, all experiments on MINOS mp3d would be unconvincing.

So far, we have not been able to reproduce this issue.  Can you provide more information about when you see this?  Is this only after running the agent for a long time?  Does it happen at specific viewpoints?

Still waiting for solution..Same experience when I use  headless-gl-nvidia. @ducha-aiki Have you solved this problem ?

@ZhuFengdaaa no


Don’t fatalError when expressing syntax nodes by string literals

We should not crash the process if the source code that you use to create a syntax node using string interpolation is invalid. Instead we should:

Not check for errors in the normal string interpolation case and just return a syntax tree that has the hasError flag set when there are syntax errors
In either SwiftSyntaxBuilder offer init(validating node: Self) throws that check that node has no sytnax errors and throws otherwise. This allows us write e.g. try wDeclSyntax(validating: "struct Foo {}") to create a DeclSyntax that’s guaranteed to not have any syntax errors.

I’m not sure yet whether CodeGeneration should use init(validating:) with try! sprayed all over the place or have something like init(checking:) that fatalErrors if the syntax is not valid.
rdar://104423126

@swift-ci Please test

@swift-ci Please test

Whoops, pretend my https://github.com/apple/swift-syntax/pull/1291 comments were here 😅

@swift-ci Please test


Change dependency name separator to a slash

This is a legacy problem with Puppet, and should be fixed in 4.0. For compatibility with 3.x, use slashes instead.
More info: https://docs.puppetlabs.com/puppet/latest/reference/modules_publishing.html#dependencies-in-metadatajson

tested and doesnt cause any issues with 4, so all good for me


SVG version of the logo

After the last changes in the wallet design, the NAV logo used in the top left corner does not completely match the new aesthetic.
A new SVG version should be created with the new vibe. Removing the background shadow and/or retouching the color gradients can be possible ideas in that direction.

Is this something you could have a look at @onlyoneAdam ?

Also if possible, maybe a new vector version of this icon as well:

Hey!
Sure, I can do that @aguycalled. Do you need any specific size?
@mxaddict do you mean a new design or just having it as a vector file?

If you have an idea for a better logo, why not! ❤

I think for size it's your call since these are unique files and don't need to fit the the sizes of icons.
I guess the launcher icon just needs to be a square.
:+1:

all right! Ill do my best :)

Paid 51edeca2285bb747a5245018aef9ebf330469644f8bfbac1d961d870a96f3ab9


NUI-484 Open Source custom worker examples

NUI-484 Open Source custom worker examples

Reorganization where examples are in individual directories within projects
eslint updated along with fixing complaints
Added Travis support for sub directories
Added open source requirements

@alexkli - No Windows support for this correct?

Do we need code coverage here? I'm thinking no

@alexkli yes we should move it. We have a mix across libraries between src and lib. We should probably decide on one moving forward. I have no preference

@jdelbick @alexkli I guess we should use lib/ https://gist.github.com/tracker1/59f2c13044315f88bee9

@DrGirlfriend @jdelbick Good find with that "convention" article. Ack on lib/.

already approving but please change the test description in the readme^

@tmathern Not sure if you got stale cache but this is the checkin https://github.com/adobe/asset-compute-example-workers/pull/1/commits/810f174dd4477308e1b56ed5ec6ebfe3a0c589cd


Use k&r brace placement style

K&R style has the following properties:

Provides symmetric size (in terms of screen space consumed) between the opening and closing syntax of a clode block.
Forces no empty or meaningless lines, thereby avoiding artificial distance between related things that should be together.
Consumes the minimum vertical space while keeping the opening and closing syntax of a block on separate lines from the content.

Sorry no unit tests this time. But I hope there will be no bugs.


tests: remove old tests

#58  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @malezjaa and the rest of your teammates on  Graphite


fix: Fix click interactions of dropdown components inside portals

Description
Dropdown and Autosuggest had a bug were they only looked at element.contains() on the containers to identify clicks and focus/blur events outside of the dropdown. This broke when the some of the contents of a dropdown were rendered through a portal themselves, which specifically happened for the PropertyFilter with custom forms when the custom form contained an informational popover or a Select.
Nested dropdowns are clearly not recommended by Cloudscape, but this seems like a general enough issue to want to address as it seems to be recurring (recently in Charts).
In order to fix this, I simply leveraged the existing nodeBelongs() utility which was used to fix the mentioned charts issue, using it as a 1:1 replacement for element.contains() in Dropdown and Autosuggest.
Related links, issue #, if available: None
How has this been tested?

Tested locally by adding a custom form with Select to the local dev PropertyFilter page. Tested with screenreader, keyboard-only and mouse interactions.
Added 5 unit tests and confirmed the entire unit suite passed.
Confirmed the entire integ suite passed with no modifications to tests.

I updated one of the PropertyFilter dev pages to include one custom form with a Select. You can try it yourself to ensure click and focus behaviors are correct.

Once again, I know this pattern isn't recommended, but it's the most straightforward way to test portals in Dropdown.

Review checklist
The following items are to be evaluated by the author(s) and the reviewer(s).
Correctness

Changes include appropriate documentation updates. N/A
Changes are backward-compatible if not indicated, see CONTRIBUTING.md. ✅
Changes do not include unsupported browser features, see CONTRIBUTING.md. ✅
Changes were manually tested for accessibility, see accessibility guidelines. ✅

Security

If the code handles URLs: all URLs are validated through the checkSafeUrl function. N/A

Testing

Changes are covered with new/existing unit tests? ✅
Changes are covered with new/existing integration tests? N/A

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Further internal testing showed no regression. Merging this now.


T1w brain mask too liberal

ds000051/reportlets/fmriprep/sub-02/anat/sub-02_T1w_seg_brainmask.svg
Seems that in this case the refinement heuristic makes the mask worse. Below is the surface reconstruction plot

ds000051/reportlets/fmriprep/sub-02/anat/sub-02_T1w_reconall.svg

We still see some errors (e.g., ds000114/sub-02) but this seems to have improved a lot. ds000114/sub-{03,04} and ds000051/sub-02 look much better (actually, pretty good).

I have started a wiki for very hard cases for brain extraction (https://github.com/poldracklab/smriprep/wiki/Brain-Extraction-from-T1w---very-hard-cases) and opened the list with ds000114/sub-02.
Since the underlying issue seems resolved, I'll leave the improvement of brain extraction to that list when we decide to change the procedure or find a better tool.


Update Cocoapods

Hello @Thomvis
Just wanted to let you know that the Cocoapods main repo still has 1.0 beta 2 as the latest version.  In case if other users of the pod don't know there's a new updated version.
http://www.cocoapods.org/?q=brightfutures

Hi @zenkimoto. Thanks for reminding me! I pushed beta 3 to CocoaPods (see https://github.com/CocoaPods/Specs/commit/5cea1e8d163b25303d6512cd4816f4e77d92e687) and it should become available any minute now.


Create Mockup for Create-Testimony Page

Please do work for this task in a branch called issue-28


Added loop sequence & sample classes

It took longer than I expected to figure out how the dev containers work.
Also, I had to manually generate .pdf file since diagram command didn't work.
Even worse, I accidentally merged my files directly into develop.
No worries, I successfully reverted that merge.
And this is my actual pull request. Sorry for my mistake.

Refactored your branch in a different branch for extra readability. Better to do it earlier than later. Check it out, merge into your current branch, and go from there 👍🏽 .
Things to keep in mind:

Python doesn't have explicitly private variables, but there is standard for naming them. All variables that aren't directly access should be considered "private."
Class names should be in CamelCase (ex. "class MyClass:")
Methods should have fairly descriptive in-file documentation. Classes too.

I saw your revision for my pull request. I agree with your idea to have the classes as a library. Maybe I would create some variant layouts under src/test in a future pull request. It would contain:

QWERTY (the ordinary one for us),
AZERTY (common in France),
and QWERTZ (common in Germany)


[Bug]: Unable to run AutoGen Qdrant notebook

Describe the bug
I'm running in an issue when attempting to run the notebook/agentchat_qdrant_RetrieveChat.ipynb  notebook from the AutoGen GitHub page. I created a new virtual environment and followed the instructions. However, I get an error: No module names 'fastembed'. I followed the instructions for notebook which is to run pip install "pyautogen[retrievechat]>=0.2.3" "flaml[automl]" "qdrant_client[fastembed]". When I install fastembed by itself, things look like they're about to work with the following message:
Trying to create collection.
INFO:autogen.agentchat.contrib.qdrant_retrieve_user_proxy_agent:Found 1 chunks.

And then it fails.
Steps to reproduce
Download the notebook/agentchat_qdrant_RetrieveChat.ipynb  notebook from with AutoGen repo. Follow the instructions in the notebook.
Model Used
gpt-3.5-turbo
Expected Behavior
I was expecting to see the same results that were displayed in the notebook.
Screenshots and logs
No response
Additional Information
No response

Hi @dsalas-crogl, could you please provide the traceback or the error message you run into?

I just tried running the notebook and it worked fine. A traceback would be helpful.

Hi @dsalas-crogl , could you provide more details of the error message? Thanks.

Hi @Anush008 and @thinkall . Sorry for the delayed response. I just spun up a new venv and reran the latest code from the notebook.
First error
Traceback (most recent call last):
.
.
.
    ragproxyagent.initiate_chat(assistant, message=ragproxyagent.message_generator, problem=qa_problem)
                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'QdrantRetrieveUserProxyAgent' object has no attribute 'message_generator'

This looks slightly different from when I last ran the code. I changed initiate_chat to what I think was the old code:
ragproxyagent.initiate_chat(assistant, problem=qa_problem)

That returned this error:
Trying to create collection.
Traceback (most recent call last):
.
.
.
locate_model_file
    raise ValueError(f"Could not find either of {', '.join(file_names)} in {model_dir}")
ValueError: Could not find either of model.onnx, model_optimized.onnx in /var/folders/zn/0_np64n96r50prt1m5mlm7fr0000gn/T/fastembed_cache/fast-bge-small-en

These are different from when I ran the code before. When I ran the code before I was getting errors related to fastembed.
I am using python 3.12.2. Also, I am not using a docker container to execute code.

Could you share the notebook?

@qingyun-wu fyi. I think we need to make a new release to make this notebook work.

Also @dsalas-crogl, you can resolve
locate_model_file
    raise ValueError(f"Could not find either of {', '.join(file_names)} in {model_dir}")
ValueError: Could not find either of model.onnx, model_optimized.onnx in /var/folders/zn/0_np64n96r50prt1m5mlm7fr0000gn/T/fastembed_cache/fast-bge-small-en

by updating FastEmbed to latest. i.e. pip install fastembed==0.2.2
It is caused when the download is interrupted. The latest version handles this.

@Anush008 , I tried running the command above but it said Requirement already satisfied. Have you tried creating a new virtual environment? I can also try from another system to see if I get the same error. I'll try that today and let you know if I'm getting the same error.

Have you tried creating a new virtual environment?

I tried it on a new Google Colab instance. It was before https://github.com/microsoft/autogen/pull/1852 got in though.

Alright, I spun up an EC2 instance, and I'm still getting the message_generator error. However, I was able to run the notebook successfully using ragproxyagent.initiate_chat(assistant, problem=qa_problem).
The original testing was done on Mac.

We haven't released the new version. I'll make a release soon after #1946 is merged.

Hi @dsalas-crogl, it should work with the latest pyautogen version v0.2.19, please try it out once you get a chance. Thank you.

I guess this issue is closed. @sonichi


ParseException: 4:1 Expecting a top level declaration

I'm using spotless:
spotless {   kotlin { ktlint("0.43.2") }

1:1 Expecting a top level declaration
com.pinterest.ktlint.core.ParseException: 1:1 Expecting a top level declaration
at com.pinterest.ktlint.core.KtLint.prepareCodeForLinting(KtLint.kt:200)
at com.pinterest.ktlint.core.KtLint.format(KtLint.kt:377)
at com.pinterest.ktlint.core.KtLint.format(KtLint.kt:359)

the file that is failing: project-level test.gradle.kts:
plugins {     id("com.github.ben-manes.versions") version "0.41.0" }

please provide the contents of test.gradle.kts if possible

I did:
plugins { id("com.github.ben-manes.versions") version "0.41.0" }

this is the only line you have in that gradle file?

thanks, no this looks like a ktlint issue.

@romtsn Do you need a sample code?

@WebTiger89 A sample project would be welcomed.

@paul-dingemans Sorry for the late reply. Just open project and run spotlessCheck task.
configuration-plugin.zip

I have looked into this for a few hours. But to be honest, I really don't understand what it happening. I am not very familiar with Gradle nor spotless. But I have a few observations that might help you in finding the problem:
com.pinterest.ktlint.core.ParseException: 1:1 Expecting a top level declaration

This usually means that the file that is being processed by KtLint is not recognized as valid Kotlin (Script). The code that parse the file is coming from an external library: org.jetbrains.kotlin.com.intellij.psi.PsiFileFactory.
You indicated that the problem is related to the plugin com.github.ben-manes.versions. When searching in you example project, I only did found a reference in file gradle/kotlin/dsl/plugins/_231ddaf56e79ad886893b7bd0c32f89b/PluginSpecBuilders.kt. But why would you want to scan kotlin code that is included via dependencies?
If I just copy the four kts files from your example project to another folder and run ktlint on them, no error is produced.

Closed due to lack of response in last 28 days.

I have this problem after updating to kotlin 1.6.21 and adding compile flags to use context receiver (link)
this is the method triggering the error
context(TestScope)
@ExperimentalCoroutinesApi
inline fun <T> Flow<T>.emissionsOn(crossinline triggerEmissions: () -> Unit): List<T> {
    val emissions = mutableListOf<T>()
    val job = launch(UnconfinedTestDispatcher(testScheduler)) {
        toList(emissions)
    }
    triggerEmissions()
    runCurrent()
    job.cancel()
    return emissions
}

the compiler indicates the error on context(TestScope) line
my gradle file is configured like that
kotlinOptions {
    jvmTarget = '1.8'
    freeCompilerArgs = freeCompilerArgs + "-Xcontext-receivers"
}


Inbalanced brackets in math is seen as error and lets gutter icon disappear.

For example
\documentclass{article}

\begin{document}
    $[0,1)$
\end{document}

shows as error in IntelliJ:
<content> or LatexTokenType.CLOSE_BRACKET expected, got '$'
which also makes the gutter icon disappear, which is not convenient since the error is not a real error and will compile. I first thought it was an IntelliJ inspection but it doesn't seem to be.

It will bracket match inside the math environment.

Because the IJ API PairedBraceMatcher does not allow contextual conditions when to match, this has to be implemented in the grammar. The grammar needs to be rewritten for math environments such that brackets will match to another element type than when outside math environments.


Support Livy connections

What needs to happen for this to work?
cc @javierluraschi

@kevinykuo What are you asking for here? I thought this was supported in sparklyr? Or are you asking if it can be supported through rsparkling,i.e., sparkling water?

@navdeep-G Indeed I'm asking about rsparkling. When Azure rolled out H2O on HDInsight (with Python support) last month I wondered how we could get it to work with R. One use case would be to access sparkling water on a remote cluster from RStudio Desktop.

@kevinykuo How does this currently work in sparklyr?

I believe there is a little bit of extra work to do in sparklyr for this to work, don't think this is specific to rsparkling, some more info:
sparklyr provides the interface to connect and execute remote scala code in Livy.
To explain the details, when a Livy connection is opened with sparklyr, sparklyr pushes it's backend code (serialization, execution, etc) to the remote Livy session; then when something executes an sparklyr::invoke it simply pushes the request to the backend.
So in theory, if Sparkling Water is available in Azure, this should just work. However, if Sparkling Water is not loaded by default (my guess is that it is not), we would have to figure out if there is a way to delay load Sparkling Water, say with spark.jars.packages.
I took a look at this post which hints that Livy supports a %%configure magic where they pass in their example com.databricks:spark-csv_2.10:1.4.0, in our case, we would have to pass each .globals$extension_packages registered in sparklyr (rsparkling in this case).


fix: don't allow empty quote

Fixes [BUG] don't allow empty quote
**My PR closes #356 **
👨💻 Changes proposed(What did you do ?)

Added a Hook to Store the message in which we want to reply.
Fixed some indentation.

✔ Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[x] This PR does not contain plagiarized content.
[x] The title and description of the PR is clear and explains the approach.

@Dun-sin please review

@Dun-sin done


minor inputs ux fixes

Codecov Report

Merging #174 (fff49cb) into master (3a0457d) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #174   +/-   ##
=======================================
  Coverage   79.81%   79.81%
=======================================
  Files         124      124
  Lines       11511    11511
  Branches     1201     1201
=======================================
  Hits         9188     9188
  Misses       2323     2323

Flag
Coverage Δ

unittests
79.81% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Ladybird/Qt: Resize the viewport when resize is requested

Previously, when a window resize was programmatically requested through WebDriver, we would update the size of the entire window. We now ensure that the portion of the window containing the WebView is set to the size requested.
I haven't updated the AppKit chrome to replicate this behavior in this PR.
Fixes: http://wpt.live/infrastructure/reftest/size.html

@tcl3 seems we pass that test currently, without this PR. so what's the shtatus of this PR? https://wpt.fyi/results/infrastructure/reftest/size.html?product=ladybird

I think it's probably best to close this. The issue I was trying to solve with this PR ended up being solved by forcing each test to run in a new process.

The WebDriver spec also explicitly states to resize the chrome window itself:
16. Let window be the operating system window containing session's current top-level browsing context

17. If the implementation is able to set the dimensions of window:
    1. If width is not null, set the width, in CSS pixels, of window, including any browser chrome and externally drawn
       window decorations, to a value that is as close as possible to width.
    2. If height is not null, set the height, in CSS pixels, of window, including any browser chrome and externally drawn
       window decorations, to a value that is as close as possible to height.


pick-colour-picker: init at unstable-2019-10-11

Motivation for this change
Need this for myself. Other might need it, too
Things done
Added python package "pick-colour-picker"

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[x] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

 Merging


Lint only staged changes in git commit check

Use automatic git stash to ignore any unstaged changes.

Codecov Report

Merging #522 (ce1c420) into master (959e1a3) will decrease coverage by 0.29%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #522      +/-   ##
==========================================
- Coverage   72.96%   72.67%   -0.30%
==========================================
  Files          83       83
  Lines       10933    10974      +41
==========================================
- Hits         7977     7975       -2
- Misses       2956     2999      +43

Impacted Files
Coverage Δ

client/clientd/src/bin/clientd-cli.rs
2.32% <0.00%> (-0.31%)
:arrow_down:

client/clientd/src/lib.rs
1.38% <0.00%> (-0.09%)
:arrow_down:

client/clientd/src/main.rs
0.84% <0.00%> (-0.31%)
:arrow_down:

fedimint/src/net/peers.rs
92.42% <0.00%> (-0.53%)
:arrow_down:

fedimint/src/net/connect.rs
94.94% <0.00%> (-0.26%)
:arrow_down:

fedimint/src/lib.rs
82.03% <0.00%> (+0.33%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

So this just does a git stash and then git pop so there aren't any permanent changes to git stashes after the commit finishes?

So this just does a git stash and then git pop so there aren't any permanent changes to git stashes after the commit finishes?

Yeap. It's just getting out of the way anything that is not getting into the commit, and restores normal state afterwards.


Fix the service type

The resource type for step 4 says Microsoft.Synapse/StorageAccount; the screenshot is correct, it should be Microsoft.Storage/StorageAccount

@ArmandoLacerda : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#label:"aq-pr-triaged"

@ArmandoLacerda Thank you for the fix. We will merge your PR soon.
#sign-off

@SnehaGunda: I'm sorry - only the author of this article, @xujxu, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.


Typo in ESLint message

Testing https://github.com/microsoft/vscode/issues/107584

"behave" -> "behalf"

THANKS !

Done in ESLint repository.


feat: support ach + payment verification

fixes FTD-2200

📝 Changed routes:

…board/settings/billing

(view full size)

Commit 363cd9514dc92753143e9245de2a83497fb90a5c (https://thirdweb-rbqb5v6so.thirdweb-preview.com).


fixed unit tests with wiremock

Hi @egimaben There are merge conflicts on this pull request. Can you fix them are do another pull request. Cheers.

closing this pull request


Portal vs "Azure services"

" If the destination address is for one of Azure's services, Azure routes the traffic directly to the service over Azure's backbone network, rather than routing the traffic to the Internet. Traffic between Azure services does not traverse the Internet, regardless of which Azure region the virtual network exists in, or which Azure region an instance of the Azure service is deployed in."
Can you say if the Azure portal is specifically included in the "Azure services" mentioned above or not? i.e. will using the Azure portal from an Azure VM ever result in traffic over the Internet?
I know Portal use may involve a number of different endpoints so I'm less sure if they are all counted as Azure services.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 38bd69ac-a1b5-a401-184d-37b55188a7c4
Version Independent ID: ef976d45-36eb-8a32-4b29-ae03412165d2
Content: Azure virtual network traffic routing
Content Source: articles/virtual-network/virtual-networks-udr-overview.md
Service: virtual-network
GitHub Login: @jimdial
Microsoft Alias: jdial

@dcbrown16 Thanks for your feedback. We are currently looking in to it and will update you soon.

@dcbrown16 Appreciate your patience. When ever your try to reach Azure portal from Azure VM's, routing happens through Azure backbone. We will now close this issue and if you have any further questions please feel free to reopen the issue. Thanks in advance.


Windows is painfully too slow to debug nodejs app

VSCode take too much time to start debugging, some times didn't start the debug.

VSCode Version:

OS Version:
Microsoft Windows [Version 10.0.14390]

Steps to Reproduce:

Open some nodejs project
Hit F5 to start debugging

Thankss!

I'm using node:

I got a new behavior,
When i restart my computer i'm able to debug once,  after stop it i can't start debug again.

@mauricionr I cannot decypher the screenshot. Could you share the code so that I can try to reproduce the problem?

@weinand i could reproduce the same issue with this project csnodeapi

I guess could be my windows 10 version, i switch to my vm and it works normaly

@weinand i have an update available, i will update and check if this issue is fixed!
Thanks!!

@weinand i've updated my windows 10 insider preview to

Debugging normally now!
Thanks!

@mauricionr great to hear, thanks!


"Copyright 2020-2021 sprout2000, contributors" should be replaced with "Copyright 2020-2021 sprout2000 et al."

What?
I noticed how Copyright 2020-2021 sprout2000, contributors is in the source code, and I am proposing the better Copyright string Copyright 2020-2021 sprout2000 et al..
Why?

, contributors isn't proper English.
et al. is used a lot more when describing additional contributors.

How?
I noticed the string Copyright 2020-2021 sprout2000, contributors in src/main.ts, so that might be where to put the new Copyright string.
If there are more places where the Copyright string is, I'll mention it.

@thatretrodev
Thank you for pointing this out.
But I have founded them:

webpack: "Copyright JS Foundation and other contributors"
npm-cli: "Copyright (c) npm, Inc. and Contributors"
eslint: "Copyright JS Foundation and other contributors"

In view of the fact that even major projects are doing this, is it not better to leave things as they are?

Good point, but I already pointed that out as I did say ", contributors" isn't proper English.
If anything, why not simply change , contributors to and other contributors?

I understand.
I fixed LICENSE.md, README.md and src/main.ts.
Thank you so so much.


remove missed reference to workspace inheritance in unstable.md

Currently on the nightly docs, workspace inheritance is under the  stable table  and the unstable table. It looks like I forgot to remove it from the unstable table when working on stabilization.
I am not sure if it is worth a beta backport but I will happily open a PR for it if needed.

r? @weihanglo
(rust-highfive has picked a reviewer for you, use r? to override)

@bors r+

:pushpin: Commit a5a98f6c7cec091cbe615459b44a52777492f818 has been approved by weihanglo
It is now in the queue for this repository.

:hourglass: Testing commit a5a98f6c7cec091cbe615459b44a52777492f818 with merge 3b4df5a54a4987e65422e879554d150a264ae945...

:sunny: Test successful - checks-actions
Approved by: weihanglo
Pushing 3b4df5a54a4987e65422e879554d150a264ae945 to master...


objc[31704]: +[__NSCFConstantString initialize]

Describe the bug
When i use the command langflow run, I get the error below.
Apple Macbook Pro m3.
VSCode
Python 3.11.9
To Reproduce
Steps to reproduce the behavior:

Go to command prompt.
langflow run
See error bellow.

$ langflow run

Error:
objc[31704]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
Answer:
ChatGPT
This error message you're encountering is related to issues with the Objective-C runtime on macOS, particularly when using forked processes. It is common in applications that use Python's multiprocessing or other similar functionality in a macOS environment.
To address this issue, you can try the following steps:

Update Python and Packages
Ensure you are using the latest version of Python and that all your packages are up to date. Some issues might be resolved with the latest updates.

$ brew update
$ pip install --upgrade pip setuptools

Set Environment Variable
Setting the OBJC_DISABLE_INITIALIZE_FORK_SAFETY environment variable to YES can sometimes help to bypass this issue. You can set this variable in your .zshrc file or directly in your terminal session.

In your .zshrc file: add export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
Or in your current terminal session: export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES (Then Click enter)
After adding it to your .zshrc, don't forget to reload the file: source ~/.zshrc
Here’s an example of your .zshrc file with the environment variable set:
Environment variable to fix the Objective-C fork issue
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES

Restart Your Terminal
After making these changes, restart your terminal or source your .zshrc file: source ~/.zshrc

Test the Application
Try running your application again to see if the issue is resolved:

$ langflow run
These steps should help mitigate the Objective-C runtime issues on macOS when forking processes. If the problem persists, consider looking into specific issues related to the libraries or frameworks you are using.
This worked for me by adding the export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES into my .zshrc file and running the $ langflow run command.

This is solved on my machine.

Thank you for your contribution! This issue will be closed. If you have any questions or encounter another problem, please open a new issue and we will be ready to assist you.


Heap corruption in WiFi driver (IDFGH-11138)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.
v5.2-dev-1709-g4fc2e5cb95
Operating System used.
Windows
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
CMD
Development Kit.
ESP32-WROVER-IE | Custom board
Power Supply used.
External 3.3V
What is the expected behavior?
We have a webinterface running on a custom board with a ESP32-WROVER-IE using the HTTP-Server component from ESP-IDF with websockets. When we access our device via LAN / ethernet there are no crashes. When WiFi-AP is enabled on the ESP and a device accesses the webinterface via WiFi there are random crashes.
Expected behaviour: No crash / heap corruption when data is transferred via WiFi from and to the webserver.
What is the actual behavior?
As you can see in the logs I assume that somewhere in the wifi driver there is some heap corruption. The crashes happen most frequently when there is heavy traffic over WiFi, especially when reloading the browser page which causes a larger transfer over HTTP and several smaller transfers over a websocket connection.
(As mentioned earlier the code works fine over ethernet and the logs point towards WiFi functions)
Steps to reproduce.

Start the ESP, wait until HTTP server is ready
Connect a device via WiFi and open the webpage on the ESP
Produce traffic until ESP crashes (usually < 30 seconds)

Debug Logs.
The stack trace for the crash varies heavily. Here are 3 different stack traces for crashes provoked by the steps described above:

Crash 1:
CORRUPT HEAP: Bad tail at 0x3fff1b49. Expected 0xbaad5678 got 0x6f630373

assert failed: multi_heap_free multi_heap_poisoning.c:276 (head != NULL)

Backtrace: 0x40081f2a:0x3ffe5e20 0x4008b405:0x3ffe5e40 0x400959b9:0x3ffe5e60 0x40090e55:0x3ffe5f90 0x4008276e:0x3ffe5fb0 0x400959f9:0x3ffe5fd0 0x40097dc5:0x3ffe5ff0 0x401ac410:0x3ffe6010 0x400972b5:0x3ffe6030
0x40081f2a: panic_abort at C:/Users/user296/Documents/projects/PoE-Switch-outdoor-mini/esp-idf/components/esp_system/panic.c:452

0x4008b405: esp_system_abort at C:/Users/user296/Documents/projects/PoE-Switch-outdoor-mini/esp-idf/components/esp_system/port/esp_system_chip.c:93

0x400959b9: __assert_func at C:/Users/user296/Documents/projects/PoE-Switch-outdoor-mini/esp-idf/components/newlib/assert.c:81

0x40090e55: multi_heap_free at C:/Users/user296/Documents/projects/PoE-Switch-outdoor-mini/esp-idf/components/heap/multi_heap_poisoning.c:276 (discriminator 1)

0x4008276e: heap_caps_free at C:/Users/user296/Documents/projects/PoE-Switch-outdoor-mini/esp-idf/components/heap/heap_caps.c:388

0x400959f9: free at C:/Users/user296/Documents/projects/PoE-Switch-outdoor-mini/esp-idf/components/newlib/heap.c:39

0x40097dc5: esf_buf_recycle at ??:?

0x401ac410: ppProcTxDone at ??:?

0x400972b5: ppTask at ??:?

Crash 2:
Guru Meditation Error: Core  0 panic'ed (StoreProhibited). Exception was unhandled.

Core  0 register dump:
PC      : 0x40090e54  PS      : 0x00060c33  A0      : 0x80090698  A1      : 0x3ffe2fa0
0x40090e54: remove_free_block at C:/Users/user296/Documents/projects/PoE-Switch-outdoor-mini/esp-idf/components/heap/tlsf/tlsf.c:332
 (inlined by) block_locate_free at C:/Users/user296/Documents/projects/PoE-Switch-outdoor-mini/esp-idf/components/heap/tlsf/tlsf.c:567
 (inlined by) tlsf_malloc at C:/Users/user296/Documents/projects/PoE-Switch-outdoor-mini/esp-idf/components/heap/tlsf/tlsf.c:1004

A2      : 0x3ffe4364  A3      : 0x3fff2db0  A4      : 0xce58beef  A5      : 0xc8bdfb2a
A6      : 0xb33fffff  A7      : 0xb33fffff  A8      : 0x00000001  A9      : 0x00000005
A10     : 0x00020000  A11     : 0x0000002c  A12     : 0x3ffe440c  A13     : 0x3ffe4388
A14     : 0x3ffe43b8  A15     : 0x3ffda318  SAR     : 0x0000001f  EXCCAUSE: 0x0000001d
EXCVADDR: 0xce58befb  LBEG    : 0x4000c349  LEND    : 0x4000c36b  LCOUNT  : 0x00000000
0x4000c349: memcpy in ROM

0x4000c36b: memcpy in ROM

Backtrace: 0x40090e51:0x3ffe2fa0 0x40090695:0x3ffe2fc0 0x400907f5:0x3ffe2fe0 0x40082676:0x3ffe3000 0x40082689:0x3ffe3030 0x400826b5:0x3ffe3050 0x400953f1:0x3ffe3070 0x401245bd:0x3ffe3090 0x40089f00:0x3ffe30b0 0x4008a094:0x3ffe30d0 0x40089edd:0x3ffe30f0 0x400844b1:0x3ffe3110 0x401549d5:0x3ffe3150 0x40156a32:0x3ffe3170 0x40154b63:0x3ffe31d0 0x40098f61:0x3ffe31f0 0x40096cdc:0x3ffe3210
0x40090e51: remove_free_block at C:/Users/user296/Documents/projects/PoE-Switch-outdoor-mini/esp-idf/components/heap/tlsf/tlsf.c:331
 (inlined by) block_locate_free at C:/Users/user296/Documents/projects/PoE-Switch-outdoor-mini/esp-idf/components/heap/tlsf/tlsf.c:567
 (inlined by) tlsf_malloc at C:/Users/user296/Documents/projects/PoE-Switch-outdoor-mini/esp-idf/components/heap/tlsf/tlsf.c:1004

0x40090695: multi_heap_malloc_impl at C:/Users/user296/Documents/projects/PoE-Switch-outdoor-mini/esp-idf/components/heap/multi_heap.c:207

0x400907f5: multi_heap_malloc at C:/Users/user296/Documents/projects/PoE-Switch-outdoor-mini/esp-idf/components/heap/multi_heap_poisoning.c:251
 (inlined by) multi_heap_malloc at C:/Users/user296/Documents/projects/PoE-Switch-outdoor-mini/esp-idf/components/heap/multi_heap_poisoning.c:240

0x40082676: heap_caps_malloc_base at C:/Users/user296/Documents/projects/PoE-Switch-outdoor-mini/esp-idf/components/heap/heap_caps.c:176

0x40082689: heap_caps_malloc at C:/Users/user296/Documents/projects/PoE-Switch-outdoor-mini/esp-idf/components/heap/heap_caps.c:197

0x400826b5: heap_caps_malloc_default at C:/Users/user296/Documents/projects/PoE-Switch-outdoor-mini/esp-idf/components/heap/heap_caps.c:223

0x400953f1: malloc at C:/Users/user296/Documents/projects/PoE-Switch-outdoor-mini/esp-idf/components/newlib/heap.c:24

0x401245bd: mem_malloc at C:/Users/user296/Documents/projects/PoE-Switch-outdoor-mini/esp-idf/components/lwip/lwip/src/core/mem.c:209

0x40089f00: esp_pbuf_allocate at C:/Users/user296/Documents/projects/PoE-Switch-outdoor-mini/esp-idf/components/esp_netif/lwip/netif/esp_pbuf_ref.c:52

0x4008a094: wlanif_input at C:/Users/user296/Documents/projects/PoE-Switch-outdoor-mini/esp-idf/components/esp_netif/lwip/netif/wlanif.c:151

0x40089edd: esp_netif_receive at C:/Users/user296/Documents/projects/PoE-Switch-outdoor-mini/esp-idf/components/esp_netif/lwip/esp_netif_lwip.c:1224

0x400844b1: interceptor_ap_input at C:/Users/user296/Documents/projects/PoE-Switch-outdoor-mini/webinterface/main/network/interceptor.c:514

0x401549d5: hostap_deliver_data at ??:?

0x40156a32: hostap_input at ??:?

0x40154b63: ap_rx_cb at ??:?

0x40098f61: ppRxPkt at ??:?

0x40096cdc: ppTask at ??:?

Crash 3:
Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.

Core  0 register dump:
PC      : 0x4009695d  PS      : 0x00060a30  A0      : 0x800959c5  A1      : 0x3ffdcc90
0x4009695d: ppResortTxAMPDU at ??:?

A2      : 0x0000000a  A3      : 0x00000000  A4      : 0x00000000  A5      : 0x00000000
A6      : 0x3ffef67c  A7      : 0x3fff3c90  A8      : 0x3fff3c90  A9      : 0x000000c7
A10     : 0x00000000  A11     : 0x0000003f  A12     : 0x00000020  A13     : 0x3ffb1038
A14     : 0x046c3570  A15     : 0x3ffb1624  SAR     : 0x00000020  EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000003  LBEG    : 0x4000c2e0  LEND    : 0x4000c2f6  LCOUNT  : 0x00000000
0x4000c2e0: memcpy in ROM

0x4000c2f6: memcpy in ROM

Backtrace: 0x4009695a:0x3ffdcc90 0x400959c2:0x3ffdcd50 0x4016e649:0x3ffdcd90 0x4016ee7e:0x3ffdcdc0 0x40096d16:0x3ffdce00
0x4009695a: ppResortTxAMPDU at ??:?

0x400959c2: lmacEndFrameExchangeSequence at ??:?

0x4016e649: lmacProcessTxSuccess at ??:?

0x4016ee7e: lmacProcessTxComplete at ??:?

0x40096d16: ppTask at ??:?

More Information.
The crash also occurs with ESP-IDF release 5.1.1. I am not sure when the bug came in, but I think that it worked well with releases <= 4.

hi @KStopp ,  I would like to confirm that the same code can work on release/4.X , right? and if you can provide the sdkconfig of your poject

Please find the sdkconfig attached.
We will try to get the same code running on release/4.X . As soon as I have the result I will provide it here.
sdkconfig.zip

thank you for your feedback!

I'm a team mate of @KStopp, we work on the same project and I want to provide some additional insights on this problem. The culprit seems to be CONFIG_ESP_WIFI_AMSDU_TX_ENABLED .
Our project grew over a couple of years, and we have used different versions of ESP-IDF. For a long time we had the AMSDU feature enabled for performance reasons and rarely touched the sdkconfig when updating ESP-IDF. Now I'm on ESP-IDF release 5.1.1 and I can reproduce the bug if AMSDU is enabled. The bug disappears if I change only this one config option from enabled to disabled.
Here is another sdkconfig example file. Just enable CONFIG_ESP_WIFI_AMSDU_TX_ENABLED to make it crash very soon when there is traffic on the WiFi AP.

hi  @KStopp  @zinke-ct-video   could you please provide a small reproduce codes for us, if we can reproduce it on our side I think it is better for debug

@KStopp @zinke-ct-video
Any update regarding the issue, and any feedback for comment https://github.com/espressif/esp-idf/issues/12307#issuecomment-1756633951 ?

I just tried the WiFi AP example, added a simple webserver sending a few MB of random data to the browser. Unfortunately I am not able to reproduce the error with a small example project. The AMSDU TX feature seems not to cause any problems in this example. I don't know how to figure out what exactly the reason for the crashes is in our case because it's really complicated to strip our project code down into smaller pieces until we find the exact cause.
At the moment we are fine with the solution to disable the AMSDU TX feature in our project. From our side it would be okay, if you close the issue because I don't see any possibility to provide a small error reproducing code.

Hi @KStopp
Issue may solved with https://github.com/espressif/esp-idf/commit/ec16fa7dd55cd71e8736d5097ddd13a611b06115.
Please confirm if the isue still exists.

Thanks for reporting, we will close this issue. Feel free to reopen if have more updates.
Thanks for using our Espressif product!


Try to archive an org item, but got failure "org-archive-subtree: Symbol’s function definition is void: org-get-outline-path"

What did you expect to happen?
I tried key C-c C-x C-s to archive a subtree, but got failure:
org-archive-subtree: Symbol’s function definition is void: org-get-outline-path

What actually happened?
...
Additional details:

Include a link to your private config
Include screenshots/casts of your issue
If you mention key sequences, include what commands they're bound to (use SPC h k KEY or C-h h k KEY to inspect keys).
Include any warnings or errors logged to *Messages* (use M-x view-echo-area-messages to see it).

If an error message is involved include a backtrace of it.
How to acquire a backtrace:
https://github.com/hlissner/doom-emacs/blob/develop/docs/getting_started.org#how-to-extract-a-backtrace-from-an-error

Steps to reproduce:

Select these example steps,
Delete them,
And replace them with precise steps to reproduce your issue.
Fill in "system information" below.

System information:

Place the output of `M-x doom/info` or `~/.emacs.d/bin/doom info` here.

I cannot reproduce this. Please provide your M-x doom/info and more precise steps to reproduce the issue. I cannot investigate this further otherwise.

I'm seeing something similar although in my case it is caused by eldoc trying to show the path.
If I do (require 'org-refile) which is where org-get-outline-path is defined (without an autoload) the error disappears and eldoc starts showing the path correctly.

So on 5th Feb, this function moved from org.el to org-refile.el:
commit f636cf91b6cbe322eca56e23283f4614548c9d65
Author: Bastien<EMAIL_ADDRESS>Date:   Wed Feb 5 15:34:06 2020 +0100

So it looks like it just isn't being required correctly.


[Feature request]: block "command + Q" Shortcut during break.

Version

[X] I'm using version 1.7.0

Existing requests

[X] I've checked Existing requests

What operating system are you using?
macOS
Operating System Version
11.4 (20F71)
Problem description
When Break started, I can quite the break by "Command + Q" Shortcut, if we can block the "Command + Q" shortcut in Strict Mode, we can forced to have a rest.
Possible solution
When break start, register a global shortcut: "Command + Q" with empty callback, and unregister it when break complete.
Alternative solutions
Block keyboard event?
Additional information
No response
Code of Conduct

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

I've tried to register the shortcut and it worked, but I am not sure about this, as it breaks the current behavior (of app other than Stretchly):
Let's say you run Signal and you do whatever in it. When break starts and you hit Cmd+Q, Stretchly is not closed but Signal (as Stretchly is not taking focus). One has to first click on break window to Quit Stretchly with Cmd+Q.
Other option would be to set Stretchly's app menu in a way that Cmd+Q is not doing anything across the app. But then, in let's say Preferences, one could not quit app via it.

How to block command+Tab shortcut? it make stretchly looks like a lock screen application.

I am not sure whether that's possible as it is OS-level shortcut.

I've tried to register the shortcut and it worked, but I am not sure about this, as it breaks the current behavior (of app other than Stretchly):
Let's say you run Signal and you do whatever in it. When break starts and you hit Cmd+Q, Stretchly is not closed but Signal (as Stretchly is not taking focus). One has to first click on break window to Quit Stretchly with Cmd+Q.
Other option would be to set Stretchly's app menu in a way that Cmd+Q is not doing anything across the app. But then, in let's say Preferences, one could not quit app via it.

According to my test, on my Mac, when the break starts, Stretchly preempts the Cmd+Q shortcut key, which is invalid in other applications.

According to my test, on my Mac, when the break starts, Stretchly preempts the Cmd+Q shortcut key, which is invalid in other applications.

@iwillhappy1314 can you explain? not sure what you mean.

        breakWinLocal.on('close', (e) => {
            if (settings.get('showBreaksAsRegularWindows')) {
                if (!appIsQuitting && !breakWinLocal.fullScreen) {
                    e.preventDefault()
                }
            }
        })


For join codes add clipboard icon for copy functionality, currently when copying it gives e.g. `undefined/join-course?code=74ee7a95-d479-4d8f-86a5-73a5f1bb0304``

What should be there instead of underfined? the backend or the frontend?

@warreprovoost it should be
/course/join?code=x
in the frontend


Implement new Frontend Library

:rocket: deployment of connecting-to-services succeeded (http://connecting-to-services-pr-309.dev.beta.nhschoices.net)

:rocket: deployment of connecting-to-services succeeded (http://connecting-to-services-pr-309.dev.beta.nhschoices.net)


Usage of Underscores

Identifiers beginning with underscores are reserved by the compiler implementation. I would suggest removing them from the structure declarations.

I would have to agree with this one. While I understand the reasoning, I think it would be pretty okay to typedef the non-underscore structs.


Fix swapfile

Snapshots won't work on swapfile-containing subvolumes (such as root). Best to move it to it's own subvolume

Adding feature for ext4 can't use


Add a new api module to serve bulk place page data

This makes fundamental changes to the place page rendering:

Server side prepares all the data that are ready to use for client side.
No need to async fetch data on client side any more.
The menu and chart rendering are based on availability of the data not on stat var in a places. This effectively makes more charts available on each page. For example, state data can now be rendered on USA page.

PR is ready for review. Hoping to get this in first and inspect bugs on staging.

Thanks for the review! Resolved and added TODO for most of them.


How do I batch create all links for a MySQL project？

I want to maintain over 200 database servers through DBeaver, which are grouped into different projects. What I've learned so far is that I can only do this by creating new projects one by one and adding links, which is inefficient. I look forward to being able to import this link creation into EXCEL and be able to export all the links to EXCEL for sharing with other maintenance staff.

Hello @liucheng0325,
Can you please explain what you mean by the term "link"?

Hi @ShadelessFox
'link' is the database configuration, more appropriately expressed as 'connect'.

Thanks for the explanation.
Unfortunately, I'm unaware of any DBMS application that can import connections from an Excel file. Therefore, there's no standardized format we can stick to.


Pipfile does not store "--no-binary"

Hi guys,
I found myself in the need of installing some modules with the argument --no-binary, when I realized about a potential issue / bug of pipenv
Issue description
When installing a Python module with argument --no-binary, pipenv does not retain this information in the Pipfile. Therefore, when running a pipenv install from this Pipfile, the module is not installed as desired.
Expected result
Pip requirements.txt file does take into account the --no-binary argument.
e.g.
jupyterlab ==3.0.18
cartopy == 0.21.0 --no-binary :all:

Actual result
But in pipenv it does not. There is no traceability (nor for pipenv nor for the user) to know that module cartopy was installed with no binary
jupyterlab = "==3.0.18"
cartopy = "*"

Steps to replicate
The command used to install cartopy with --no-binary is:
PIP_NO_BINARY=cartopy pipenv install cartopy
Pipenv version is: 2022.9.8
Thanks a lot for your time

@matteius has there been update on this topic? Thanks a lot!

Sorry @jsaladich -- I've been stretched for time so I haven't personally looked into it yet.  I tagged it as an issue that anyone can take on knowing I won't be able to dig into it for a bit.

Thanks a lot for your prompt answer @matteius, let's hope somebody can find a fix on that issue. Best!

@matteius  I would like to take a stub on this. Could you please assign this to me.

Hi! Is there any update on that topic??
Thanks a lot and have a nice week!

@achilleasNP Just wondering if you ever got a chance to take a shot at this?   I haven't really thought about it since you volunteered ...


Implemented search for all packages available on a source

This commit enhances the Search-ChocoPackage function so the name parameter is no longer required thereby permitting a search that can return all available packages on a source. The documentation for the Search-ChocoPackage function was updated accordingly, making it clearer and more informative for users.

Update Search-ChocoPackage.ps1 function Name parameter so it is not required
Improve Search-ChocoPackage.md documentation by clarifying that it returns all packages if no name is specified.
Update Search-ChocoPackage.ps1 function description to mention that it returns all available packages if no name is specified.
Update Search-ChocoPackage.ps1 function parameter Name description to mention that omitting the parameter will return all available packages.
Update Search-ChocoPackage.ps1 function example in the documentation to demonstrate returning all available packages when no name is specified.
Update ChocoMan.psd1 ModuleVersion from 0.9.0 to 0.10.0.

Note: Commit Message generated in part by AI

Thanks for the contribution @DailenG. It's really appreciated.

Great work you're doing! Made me stop working on my own project to rebuild with integration for your project. Great, clean code and overall project 😊


Support primary KB display and setting in all appropriate contexts

See https://grips.semantic-web.at/x/cYVlB for details.

The change prepared in https://github.com/odalic/sti/pull/96 requires the client to add a primary KB specification used during a task processing. The changed task object sent to the server should look like this from now (the addition is bold):
`(TS1)
{ "id": "simple_task", created: "yyyy-MM-dd HH:mm", "configuration": { ... } }
For configuration object description, see below.
(TS2)
{ "input": "file description ID", feedback: { ... }, "primary_base": { "name": "DBpedia" } }`

This does not work correctly, see: https://github.com/odalic/odalic-ui/issues/36

Blocked by #36

This does not work correctly, see: #36

It workis. Will be resolved by merge of the working branch.


implement slab allocation write-after-free check

This is now implemented by https://github.com/AndroidHardening/hardened_malloc/commit/99d68238d2f0375162a96deda8a16848fdb0e158.


Update editing-escrow-contract.md

Mostly trivial updates. Added comments that should be removed after being addressed. It might be good to move the reducing build size into an advanced section?

Something strange here: I made some changes to the contract that aren't in the original (they're in an open PR atm). However when I run the cosmwasm-opt command and run the checksum on the resulting file, it still matches the one in the tutorial. Mayyybe I only altered from the suggestions on the tests though, are those not included in the compile?

Tests are indeed not included in the compile.
It never compiles test code in production releases, and actually very aggressively trims out dead code, so even non-test functions that can be proven never to be called by the extern "C" entrypoints will be removed. Even if used in helpers and called from other functions... unless they are actually called in some production code path, they will be removed by cosmwasm-opt. (and not effect hash).
Adding the steal code should change it. Then updating the theif address should also modify it


Fix: Remove deprecated curly braces

See https://wiki.php.net/rfc/deprecate_curly_braces_array_access

Related to https://github.com/fzaninotto/Faker/pull/1843.

Thank you, @divine!


Refactor Distributions to Use Descriptor Pattern for Setters/Getters

Currently, our distribution classes (e.g. Normal, Beta) have a common pattern of implementing their own setter/getter methods for each of their parameters. This leads to a considerable amount of code duplication across these classes.
Here's a brief example of our current pattern for Normal and Beta:
class Normal(Distribution):
    def __init__(self, mean, variance):
        self.mean = mean
        self.variance = variance

    @property
    def mean(self):
        return self._mean

    @mean.setter
    def mean(self, value):
        self._mean = self.convert(value)

    @property
    def variance(self):
        return self._variance

    @variance.setter
    def variance(self, value):
        self._variance = self.convert(value)

    @staticmethod
    def convert(value):
        # Conversion logic here
        return value

class Beta(Distribution):
    def __init__(self, alpha, beta):
        self.alpha = alpha
        self.beta = beta

    @property
    def alpha(self):
        return self._alpha

    @alpha.setter
    def alpha(self, value):
        self._alpha = self.convert(value)

    @property
    def beta(self):
        return self._beta

    @beta.setter
    def beta(self, value):
        self._beta = self.convert(value)

    @staticmethod
    def convert(value):
        # Conversion logic here
        return value

A more efficient and cleaner solution would be to utilize Python's descriptor pattern. By introducing a ConvertDescriptor class that implements the descriptor protocol (__get__ and __set__ methods), we can handle all the setter/getter logic in one place.
Here's an example of how this could look for Normal and Beta:
class ConvertDescriptor: #Perhaps better name
    def __init__(self, attribute_name):
        self.attribute_name = "_" + attribute_name

    def __get__(self, instance, owner):
        if instance is None:
            return self
        return getattr(instance, self.attribute_name, None)

    def __set__(self, instance, value):
        value = self.convert(value)
        setattr(instance, self.attribute_name, value)

    @staticmethod
    def convert(value):
        # Conversion logic here
        return value

class Normal(Distribution):
    mean = ConvertDescriptor("mean")
    variance = ConvertDescriptor("variance")

    def __init__(self, mean, variance):
        self.mean = mean
        self.variance = variance

class Beta(Distribution):
    alpha = ConvertDescriptor("alpha")
    beta = ConvertDescriptor("beta")

    def __init__(self, alpha, beta):
        self.alpha = alpha
        self.beta = beta

This change will:

Reduce code duplication: The descriptor class will handle all the common setter/getter logic, so it doesn't need to be implemented for each attribute in each class.
Improve maintainability: Changes to the setter/getter logic only need to be made in one place.
Increase flexibility: It will be easier to add new distribution classes or parameters in the future, as they can simply use the existing descriptor.

Please note that this is a significant design change, so we will need to update our tests to ensure that the refactored classes are functioning correctly.
I believe that implementing this change will greatly improve the quality and maintainability of our code.

Upon further thought perhaps we can just add
class Distribution:
def setattr(self, name, value):
if not name.startswith('_'):  # Ignore private attributes
value = self.convert(value)
self.dict[name] = value


PostGIS Docker image: switch to using use official postgis images

The one we're using at present has lots of known vulnerabilities in the OS packages; compare
sudo trivy image --severity HIGH,CRITICAL --ignore-unfixed mdillon/postgis:11-alpine

with
sudo trivy image --severity HIGH,CRITICAL --ignore-unfixed docker pull postgis/postgis:11-2.5-alpine
sudo trivy image --severity HIGH,CRITICAL --ignore-unfixed docker pull postgis/postgis:11-3.0-alpine

See https://registry.hub.docker.com/r/postgis/postgis for more info on the official postgis images.
Could also use the opportunity to switch to PostgreSQL 12 or 13.

Hey I've got a potential fix: https://github.com/griff-rees/reprohack_site/commit/72cd3dc34bb815486ecae8f69ef5f200115c6f8b can set up a pull request if you like. I'm pretty sure this comes out of this issue: https://github.com/postgis/docker-postgis/issues/143

Just got it working on PostgreSQL 13. Might require an initial purge of previous volumes though: https://cookiecutter-django.readthedocs.io/en/latest/troubleshooting.html#docker-postgres-authentication-failed


CAD is not properly installing

After following the installation steps, when I reach the **npm run create**, at the very end, it appears to have failed to build node_modules\bcrypt
><EMAIL_ADDRESS>install C:\Users\Caleb\Documents\snaily-cadv2\server\node_modules\bcrypt
> node-pre-gyp install --fallback-to-build

'node-pre-gyp' is not recognized as an internal or external command,
operable program or batch file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!      C:\Users\Caleb\AppData\Roaming\npm-cache\_logs\2020-07-05T00_28_30_364Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>create: `npm install --prefix client && npm install --prefix server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>create script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!      C:\Users\Caleb\AppData\Roaming\npm-cache\_logs\2020-07-05T00_28_30_517Z-debug.log

I do have the required yarn and npm properly installed, I also reinstalled node.js/npm to verify this isn't a corrupted cache.

Hey!
Try to install bcrypt (package that is not installing correctly) individually, to do that run:
cd server
npm install bcrypt

That appears to fix the first build, but then when I proceed to the next steps, I get this
Error [BrowserslistError]: C:\Users\Caleb\Documents\snaily-cadv2\client contains both browserslist and package.json with browsers
    at C:\Users\Caleb\Documents\snaily-cadv2\client\node_modules\react-dev-utils\node_modules\browserslist\node.js:303:15
    at eachParent (C:\Users\Caleb\Documents\snaily-cadv2\client\node_modules\react-dev-utils\node_modules\browserslist\node.js:48:18)
    at Object.findConfig (C:\Users\Caleb\Documents\snaily-cadv2\client\node_modules\react-dev-utils\node_modules\browserslist\node.js:279:20)
    at Function.loadConfig (C:\Users\Caleb\Documents\snaily-cadv2\client\node_modules\react-dev-utils\node_modules\browserslist\node.js:212:37)
    at checkBrowsers (C:\Users\Caleb\Documents\snaily-cadv2\client\node_modules\react-dev-utils\browsersHelper.js:45:32)
    at Object.<anonymous> (C:\Users\Caleb\Documents\snaily-cadv2\client\node_modules\react-scripts\scripts\build.js:68:1)
    at Module._compile (internal/modules/cjs/loader.js:1138:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
    at Module.load (internal/modules/cjs/loader.js:986:32)
    at Function.Module._load (internal/modules/cjs/loader.js:879:14) {
  browserslist: true
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>build: `react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!      C:\Users\Caleb\AppData\Roaming\npm-cache\_logs\2020-07-05T13_04_13_528Z-debug.log

This occurs when running the ```
Run cd client
Run npm run build To create a build folder
portion of the installation steps.

remove the node_modules folder via File Explorer, then try installing the client packages using yarn, yarn install and  yarn build

Still getting the rather same error, involving the react scripts build. Including the same error with the browserslist.
I ran yarn install after removing the node modules, which it installed and worked fine. Then I go to run yarn build and it fails with with the react scripts build.

I have no clue why this would be happening, try to run yarn add browserslist to install the latest version of browserlist and then try to build it again using yarn. I'll look for some help on why this is happening.

I have no clue why this would be happening, try to run yarn add browserslist to install the latest version of browserlist and then try to build it again using yarn. I'll look for some help on why this is happening.

I found the issue, I pushed an update with new installation steps. Make sure to delete all node_module folders:
/node_modules
/client/node_modules
/server/node_modules
and then follow the new steps: https://github.com/Dev-CasperTheGhost/snaily-cadv2#readme
Let me know if that works!

That seems to have worked until we get to the part of npm start heh.
Then serve apparently gives trouble.
[1] > serve -s build -l 80 [1] [1] 'serve' is not recognized as an internal or external command, [1] operable program or batch file. [1] npm ERR! code ELIFECYCLE [1] npm ERR! errno 1 [1] npm ERR<EMAIL_ADDRESS>serve: serve -s build -l 80`
[1] npm ERR! Exit status 1
[1] npm ERR!
[1] npm ERR! Failed at the<EMAIL_ADDRESS>serve script.
[1] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Which then I believe causes the webpage to not load at all.
``Cannot GET /`

I fixed the issue with yarn by doing yarn add serve to the client folder manually.
However the page is still not loading (picture above), no errors in console now.

can you see if there's an error in the browsers console?

One moment, let me check.

These are the only two errors in the console

Alright I think why this is happening sorry, I'll push a fix in one sec.

Just pushed the fix, make sure to run yarn build in the client folder after running git pull..

Okay, let me do that and I'll get back to with the result

Looks like that worked and got it displaying everything, I'm running through the cad to make sure all the pages and things are loading in properly.

Alright sounds good, let me know if you find anything else.

Everything works perfectly, thank you so much for helping me out, have a great week

Thankyou, you too!


random propagation

do forward -> measure error,
random increment weights -> do forward -> measure error
move towards the less error.


Embedded MCU interface

Hi All. Hope all well.
Im calling the "login.php" from an MCU (esp32) which validates correctly registered users. I presume that in its answer, there is a header (unknown name) that must be preserved during the whole "session". When sent a Logout the answer is "User not logged in" which could be that there is no "session" header. I have to create everything from scratch so i need to know all reureid headers.
Please some help.
RSN

Thanks for your question!
So you want to make this library work in a non-browser context, e.g. on embedded devices (or via a CLI), right?
The main task would be to make the library work without cookies.
The HTTP headers you’re looking for are mainly Set-Cookie, sent by the server, and Cookie, sent by the client.
If you don’t want cookies, you need something else to enable sessions, i.e. usually to transfer and manage your session identifier. Or you need to authenticate on every single request. Which do you want?
Does that help?

Yeah @ocram is spot on. You'll have to invent a way to store cookie data as authenicaion on every request is not ideal. Which ever way you look at this its not going to be simple.

Again, most features should work fine, but logging in and keeping a session is something that isn’t possible without cookies or an alternative means of keeping track of the session identifier.
What we could do, however, is adding a method named Auth#once (or similar) which verifies your credentials (i.e. authenticates the user, as with a login) but without establishing a persistent authenticated state that is kept in a session. So you would have to call Auth#once (or similar) on every request.


Waiting for maintenance mode flag

@mateusjunges  This PR helps to wait for maintenance mode. I guess this is very helpful. what do you think?

I wanted to apply your suggestion,
I findout a better, more generic idea.
instead of ONLY maintenance mode, we can have  a series of callbacks that can happen before consuming any message. something like middlewares but not related to messages.
then we can have lifecyle for consumer, before, and after. for now we can ignore after, but we can have before callbacks. what's your idea?

Thanks! I have just merged #192 so I'll close this


Fix client examples link in README

Link to client examples in the client README was pointing to the root repo directory instead of the client directory, resulting in a 404 when navigated to.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

client/README.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


TiGL does not compile with OCC 7.2.0

When compiling TiGL with the 7.2.0 release of OpenCascade a few compile errors occur:

GEOMAlgo_Splitter::ErrorStatus() is no longer available, i guess we should use HasErrors()
GEOMAlgo_Splitter::myErrorStatus is no longer available, i guess we should GEOMAlgo_Splitter::myReport (myErrorStatus = 0 becomes myReport.clear())
BRepAlgoAPI_Cut::ErrorStatus() is no longer available, i guess we should use HasErrors()

Furthermore, a few further errors occur now in TiGLViewer. Some typedefs (V3d_Coordinate, Quantity_Factor) have been replaced by Standard_Real and many methods on AIS_InteractiveContext no longer default the last boolean so it has to be specified manually.

OCCT 7.2.0 has currently no priority for us. We still have to make the transition to 6.9.0 (the code compiles fine, but there are some minor issues with meshes and Boolean ops ).
But feel free to make a  PR, as long as it still compiles with 6.8.0.

Thank you for your answer. We usually have troubles as well when upgrading OCC, but things tend to get better with each version. OCC 7.00 e.g. had a strong performance boost. Unfortunately, backward compatibility is only of little interest to us, so i might send a PR if it is part of a larger portion we contribute back, but do not count on it :/

btw: it seems OCC 7.2.0 now defines UNICODE and _UNICODE when configured with cmake. This causes IsPathRelative() in tiglcommonfunctions.cpp to fail to compile on windows. The Win32 API PathIsRelative() now expects a wide character string, which std::string::c_str() is not.


RME Result Interface

Results from ReefModEngine.jl can be loaded with the load_results function. There are two options depending on the location of the results and accompanying data files. The datafiles in the RME directory can be used as the data directory.
rs = ADRIA.load_results(RMEResultSet, "<path to data dir>", "<path to results dir>")

Expected data directory structure.
data_dir
│
├───con_bin
│       CONNECT_ACRO_2010_11.bin
│       CONNECT_ACRO_2011_12.bin
│       CONNECT_ACRO_2012_13.bin
│       CONNECT_ACRO_2014_15.bin
│       CONNECT_ACRO_2015_16.bin
│       CONNECT_ACRO_2016_17.bin
│
├───id
│       id_list_2023_03_30.csv
│
└───region
       reefmod_gbr.gpkg

The results data directory should contain a results.nc NetCDF file and scenarios.csv. If
the path to the results directory is not supplied, the results are expected to be
contained in a results subdirectory.
rs = ADRIA.load_domain(RMEResultSet, "<path to data dir>")

Expected data directory structure for defaulted result directory.
data_dir
├───con_bin
├───id
├───region
└───results

Allows access to sensitivity analysis, some of ADRIA metrics and map visualization.

Hey @DanTanAtAims is this replacing #721 ?

Hey @DanTanAtAims is this replacing #721 ?

Yes, however the C-Scape-Result-Interface will be submitted separately. I'll delete the other pull request.

@ConnectedSystems The results interface should now allow for nearly all analysis tools with toy data below. I should update ReefModEngine to export a more complete scenario specification beyond purely intervention factors.
Time series clustering

SIRUS

Temporal Sensitivity Analysis

Thanks Dan.
I suspect there's a simpler approach we could take compared to reimplementing methods for an RMEResultSet. I'll have to think about it.

Rebased branch on to main before merge


Another example, using with function

We can use a function that can be called at any time, and ease.

Hopefully these issues should be resolved for you in the new v1.1. There's also a new contribution process and I'm watching the PRs, so if you would like to contribute then please feel free to submit again!


Microphone just dies after reboot

i rebooted my laptop only to find my mic is just. not there at all, its dead, Windows wont detect it

Does it show in device manager ?

no, not at all, doesnt show in device manager, it is hidden and it shows this in the properties

translation:
currently, this hardware device isnt connected to the device (code 45)
its my internal mic, there is no connection to it

Does this problem persist when disabling or uninstalling the driver ?

i uninstalled the virtual display driver, still persists

and no installing it doesnt help

found the mic driver
no, its gone

update: it works again
thanks for the help tho :D

yes, I found the solution myself

What was the solution in case it happens with anyone else ?


Merge Bitcoin-ABC v0.24.5 into Lotusd

That one was easy.

Need to investigate failing ZMQ tests.

The hardcoded amount of 200 XPI to spend in  create_conflicting_tx was too large in some situations (when the UTXO to spend was not a full block reward, but rather the change of a previous transaction), so the calculation  utxo["amount"] - Decimal("200.1") could in some situations be a negative amount.
Fixed by changing the amount to a lower value of 5 XPI. This should not break unless create_conflicting_tx is called more than 40 times in between two blocks in the future.

Master updated to branch. Thanks much!