router fails to deploy

I0626 13:03:24.673908       1 template.go:244] Starting template router (v3.10.0-rc.0+e4d22b0-17)
I0626 13:03:24.675639       1 metrics.go:159] Router health and metrics port listening at <IP_ADDRESS>:1936
E0626 13:03:24.682866       1 haproxy.go:392] can't scrape HAProxy: dial unix /var/lib/haproxy/run/haproxy.sock: connect: no such file or directory
I0626 13:03:24.705162       1 router.go:252] Router is including routes in all namespaces
E0626 13:03:24.918625       1 haproxy.go:392] can't scrape HAProxy: dial unix /var/lib/haproxy/run/haproxy.sock: connect: connection refused
E0626 13:03:24.941509       1 limiter.go:137] error reloading router: exit status 1
[ALERT] 176/130324 (30) : Starting frontend public_ssl: cannot bind socket [<IP_ADDRESS>:443]

This fixed.


Now and Next.js don't work with spawning an executable

If you build a Next.js application, which spawns a process in a Next api page, it seems like either Next.js or Now is not correctly copying over the executable file to be spawned. Concretely, it's not keeping the executable access permission (which can be obtained with chmod +x filename.
The resulting error is
Error: spawn /var/task/node_modules/dummy-executable-package/executable EACCES
This issue blocks the usage of Photon.js together with Next.js deployed to Now.
It's tracked here: https://github.com/prisma/prisma2/issues/1170
I created a minimal reproduction without Photon.js and just a simple package spawning a Node.js shebang executable here: https://github.com/timsuchanek/p2-1170
This is the example package including the executable: https://github.com/timsuchanek/dummy-executable-package

Thanks for reporting! We'll take a look this week.


pre-commit autoupdate

Issue number of the reported bug or feature request: #

#500

Describe your changes
A clear and concise description of the changes you have made.
% pre-commit autoupdate
Testing performed
Describe the testing you have performed to ensure that the bug has been addressed, or that the new feature works as planned.
% pre-commit run --all-files
Additional context
Add any other context about your contribution here.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (c4b35f3) 92.32% compared to head (3eb1f9a) 92.25%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #501      +/-   ##
==========================================
- Coverage   92.32%   92.25%   -0.08%
==========================================
  Files          91       91
  Lines       11033    11033
  Branches     1524     1524
==========================================
- Hits        10186    10178       -8
- Misses        842      850       +8
  Partials        5        5

Flag
Coverage Δ

cpp
85.74% <ø> (-0.22%)
:arrow_down:

python_and_cython
95.48% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Whoops, both of us made a change at the same time there.
@cclauss Why the downgrade of mirrors-prettier to v2.7.1 ?

Why the downgrade of mirrors-prettier to v2.7.1 ?

https://github.com/bloomberg/memray/actions/runs/6984049688/job/19006277652
which made no sense to me because Node.js v16 was indeed installed.

Ah, "prettier requires at least version 14 of Node, please upgrade". Hm. But we're installing Node 16...
Run actions/setup-node@v4
  with:
    node-version: 16
    always-auth: false
    check-latest: false
    token: ***
Found in cache @ /opt/hostedtoolcache/node/16.[2](https://github.com/bloomberg/memray/actions/runs/6984188977/job/19006591456?pr=501#step:3:2)0.2/x6[4](https://github.com/bloomberg/memray/actions/runs/6984188977/job/19006591456?pr=501#step:3:4)
Environment details
  node: v1[6](https://github.com/bloomberg/memray/actions/runs/6984188977/job/19006591456?pr=501#step:3:6).20.2
  npm: [8](https://github.com/bloomberg/memray/actions/runs/6984188977/job/19006591456?pr=501#step:3:9).1[9](https://github.com/bloomberg/memray/actions/runs/6984188977/job/19006591456?pr=501#step:3:10).4
  yarn: 1.22.21

Hm. I guess pre-commit isn't picking up the version that we installed...

I tend to use pre-commit.ci instead of GHA to run pre-commit.

I think I've got it. nodeenv prefers a binary named nodejs over one named node:
https://github.com/ekalinin/nodeenv/blob/eaa9de97e561ab4f99458c94633e92547e72d5f1/nodeenv.py#L931-L938
And actions/setup-node isn't installing a nodejs, but there is one in /usr/bin on the runner, so that's getting chosen over the node we've just installed.
It seems we can hack around it by symlinking the node we install to nodejs, which, yuck, but oh well it seems to work...

I've entered https://github.com/actions/setup-node/issues/905 for that since that doesn't seem like expected behavior (though I'm not a JS person so it's entirely possible this is a nodeenv problem and not an actions/setup-node problem... we'll see)


NativeModules.SettingsManager.settings doesn't have AppleLocale field on iOS 13

React Native version:
0.59.9
iOS version on simulator:
13.0
Steps To Reproduce

Check the OS type.
If the OS type is not Android, try to get the locale.
Get the NativeModules.SettingsManager.settings object and take AppleLocale field from it.
Take only last two letters from the string to get the region name. E.g. for en-US will be returned US.

Describe what you expected to happen:
For iOS 12.2 and earlier the NativeModules.SettingsManager.settings object contained AppleLocale field, so everything worked correctly on the same React Native version. I expected that for iOS 13 it will work correctly too.
Code example:
  const locale = Platform.OS === 'android' ?
    NativeModules.I18nManager.localeIdentifier :
    NativeModules.SettingsManager.settings.AppleLocale;
  const localeLastChars = locale.slice(-2);

Also was mentioned in #26540

This is also happening to me on react-native version 0.61.3

It's the same for me but I'm using expo

I solved my problem with this https://docs.expo.io/versions/v34.0.0/sdk/localization/
And I used only Localization.locale

try this
const getDeviceLocale = () => {
  if (Platform.OS === 'ios') {
    let locale = NativeModules.SettingsManager.settings.AppleLocale // "fr_FR"
    if (locale === undefined) {
        // iOS 13 workaround, take first of AppleLanguages array  ["en", "en-NZ"]
        locale = NativeModules.SettingsManager.settings.AppleLanguages[0];
        if (locale) {
          return locale;
        }
    }
  }

  if (Platform.OS === 'android') {
    return NativeModules.I18nManager.localeIdentifier;
  }

  return 'pt-BR';
};

@sibelius
That code will come back with an error evaluating the t.proptypes

@secretgh @sibelius in fact, I'm using the same workaround at this moment and it works fine, but it would be great to have not a workaround solution, but make available AppleLocale at every moment. I don't think that iOS works without locale sometimes, especially if AppleLanguages is available


Setup RLS and CLS for supabase

Right now we're using a pavlovcik's supabase DB instance with disabled RLS
What should be done:

Make sure that RLS is enabled and the bot acts as expected
Enable CLS and make sure that permits.transaction field can only be updated by an authorized user who matches permits.beneficiary_id (related comment)

Can you do a time estimate on this?

/start

Important notes:
The column rights features is still in Alpha through the Supabase Dashboard, so to be manipulated with caution. Secondly:
Changes to column privileges will not be reflected in migrations when running supabase db diff.
Column privileges are not supported in the current version of the Supabase CLI.
You will need to manually apply these changes to your database.

Third, the changes also impact audit.ubq project, since it also pulls data from the db (reads only).

You will need to manually apply these changes to your database.

By "manually" it is meant to set priviliges via supabase's dashboard UI, right?

Third, the changes also impact audit.ubq project, since it also pulls data from the db (reads only).

As far as I remember https://audit.ubq.fi/ needs access only to the permits table so it seems to be ok to allow https://audit.ubq.fi/ read access to the permits table.

Yes audit is good with read only permissions on permits so that's all good, if you can think of any project that is also linked to the db that we should test please let me know.
Manually means that if we run a diff these changes won't be contained in the migration file. So any change done through the UI will be lost when it comes to CLS and migrations, which I mention to avoid mistakes later. Otherwise it works fine so far.

@pavlovcik @rndquu Is the pavlovcik's supabase DB also used for the bot in production? Or is there a different instance for this? Also asking because the migrations in this repo are not matching.

So the wfzpewmlyiozupulbuur Supabase project has been updated as such:

locations: read-only for public
permits: read-only for public
tokens: read-only for public
users: read-only for public
wallets: read-only for public

All the other tables have no rules so are accessible only by service key / admin.
The reason why all these table need the read-only is to satisfy audit that calls
    const { data: permits } = await supabase
      .from("permits")
      .select("*, locations(*), users(*, wallets(*)), tokens(*)")
      .in("locations.issue_id", issueIds)
      .not("locations", "is", null);

To retrieve permits and their associated data. If we don't allow the read, all the data returned is empty within the permit.


Resource Specific logs enabled Firewall workbook still using AzureDiagnostics table

Describe the bug
When deploying the Azure Firewall Workbook with Resource Specific logs enabled, the very first metrics in the Azure Firewall Overview tab are using the AzureDiagnostics table which is not populated when using diagnostics settings with Resource Specific tables.
Reproduce
Steps to reproduce the behavior:

Enable Diagnostic settings 'allLogs' and 'allMetrics' on the Firewall with 'Resource specific' as Destination table
Install the Azure Firewall_ResourceSpecific_ARM.json Workbook from this repo
Go to the newly created workbook and select the configured Firewall
Click on the Azure Firewall Overview tab

Expected behavior
All metrics should use Resource Specific Tables when deploying the Resource Specific Azure Firewall Workbook.
Screenshots

Environment- if applicable
used Azure Firewall_ResourceSpecific_Gallery.json
Desktop (please complete the following information if applicable):
N/A
Logs- if applicable
N/A
Additional context
If using both type of Diagnostic settings (AzureDiagnostics and Resource Specific) pointing to 2 different log analytics workspaces, I can manage to have the workbook work correctly if reading the 2 log analytics workspaces. But that means store twice the same kind of events in a different format

Thank you @EppO for the feedback. Please expect a response in the next 3 business days

Thanks for bringing this up @EppO. We will be checking the workbook and make the changes accordingly.

Hey @EppO - Could you re-test the workbooks to see if you are still facing the issues?

It works great now! Thanks for the fast fix, really appreciated.


COO-216: validate the tempo list response

This PR adds validation to the tempo stack list as it could return results in a different format, due to the proxy failing or not found resources.

/cherry-pick release-0.1


⚠ Bofrost.fr has degraded performance

In de5547c, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1143 ms

Resolved: Bofrost.fr performance has improved in 11cf084 after 6 minutes.


ModalView: code cleanup regarding detection of main-Window:

#7412 -discussion-follow-up from 14-Mar-2021 with @matham (pinging @tshirtman).

removed unneeded _search_window() method and attach_to property.
added undocumented events on_pre_open and on_pre_dismiss to module docstring.
allow stacking of multiple ModalView instances.
simplified demo code.
simplified unit test (test_uix_modal.py).

This is a WIP commit (1 of 2) - if you agree with the changes done in this first step, I'd like to go even further and replace the current _window property of ModalView with the main window kivy.core.window.Window, because _window is currently only used as a flag if the modal view is opened/visible (holding None if not opened or the main window instance if opened).
The only place where the window instance is accessed is in the declaration of ModalView (in style.kv), which could also be replaced with Window.
The opening state of the modal view could then be represented by an added is_open property (will be added in commit 2 of 2).
These changes would make the modal view faster, more readable/understandable, and easier to maintain/test.

Maintainer merge checklist

[ ] Title is descriptive/clear for inclusion in release notes.
[ ] Applied a Component: xxx label.
[ ] Applied the api-deprecation or api-break label.
[ ] Applied the release-highlight label to be highlighted in release notes.
[ ] Added to the milestone version it was merged into.
[ ] Unittests are included in PR.
[ ] Properly documented, including versionadded, versionchanged as needed.

@matham @tshirtman
could you please review this PR.
The last/3rd commit did revert the changes in style.kv.
Had to restore the _window property because neither
Window nor app can be used in style.kv.
modalview.py is now 20 lines shorter and the
unit tests got 20 lines more.

I hope you don't mind me merging the suggested changes, but I didn't want to make you wait for another review round. Thanks for your effort!


DatePicker Min/Max Date and NgModelOptions Timezone

Bug description:
If you use NgModelOptions to set a timezone, the min/max dates are still processed according to the local users timezone rather than that timezone creating improper select options.
In my example, if March 25th is select for start date, then March 25th should be the smallest date available in End Date.  If end date is then selected as March 26th, then March 26th should be the last date available in Start Date.  Depending on your timezone, your options will vary, but unless your timezone is GMT-0200, the options will show incorrectly.
Link to minimally-working plunker that reproduces the issue:
http://plnkr.co/edit/1fTFcwr68shkXHVT5GjS
Version of Angular, UIBS, and Bootstrap
Angular: 1.5.0
UIBS: 1.2.5
Bootstrap: 3.3.6

This Plunker is invalid.
There was an issue before I found with regards to timezones and min-date/max-date that should be fixed in master & will be in the 1.3.0 release though.


Bump TensorRT visible torch version

Related issue: #69
Though torch2.0 will raise UnsupportedOperatorError while exporting onnx, the nightly torch2.1 can use TensorRT normally.
It seems that torch has fixed the issue in their coming version.
TensorRT test with torch2.1 nightly:
TensorRT version: 8.6.1

...

======= Diagnostic Run torch.onnx.export version 2.1.0.dev20230511+cu118 =======
verbose: False, log level: Level.ERROR
======================= 0 NONE 0 NOTE 0 WARNING 0 ERROR ========================

[I] Folding Constants | Pass 1
[I] Inferring shapes in the model with `onnxruntime.tools.symbolic_shape_infer`.
    Note: To force Polygraphy to use `onnx.shape_inference` instead, set `allow_onnxruntime=False` or use the `--no-onnxruntime-shape-inference` command-line option.
[I]     Total Nodes | Original:  4544, After Folding:  3269 |  1275 Nodes Folded
[I] Folding Constants | Pass 2
[I]     Total Nodes | Original:  3269, After Folding:  2530 |   739 Nodes Folded
[I] Folding Constants | Pass 3
[I]     Total Nodes | Original:  2530, After Folding:  2530 |     0 Nodes Folded
Building TensorRT engine for models/accelerate/tensorrt/gsdf/Counterfeit-V2.5/onnx/unet.opt.onnx: models/accelerate/tensorrt/gsdf/Counterfeit-V2.5/engine/unet.plan
[W] onnx2trt_utils.cpp:374: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
[W] onnx2trt_utils.cpp:400: One or more weights outside the range of INT32 was clamped
[I]     Configuring with profiles: [Profile().add('sample', min=(2, 4, 32, 32), opt=(2, 4, 64, 64), max=(2, 4, 128, 128)).add('encoder_hidden_states', min=(2, 77, 768), opt=(2, 77, 768), max=(2, 77, 768)).add('timestep', min=[1], opt=[1], max=[1])]
[I] Building engine with configuration:
    Flags                  | [FP16]
    Engine Capability      | EngineCapability.DEFAULT
    Memory Pools           | [WORKSPACE: 10902.81 MiB, TACTIC_DRAM: 15101.81 MiB]
    Tactic Sources         | []
    Profiling Verbosity    | ProfilingVerbosity.DETAILED
    Preview Features       | [FASTER_DYNAMIC_SHAPES_0805, DISABLE_EXTERNAL_TACTIC_SOURCES_FOR_CORE_0805]
[W] TensorRT encountered issues when converting weights between types and that could affect accuracy.
[W] If this is not the desired behavior, please modify the weights or retrain with regularization to adjust the magnitude of the weights.
[W] Check verbose logs for the list of affected weights.
[W] - 224 weights are affected by this issue: Detected subnormal FP16 values.
[I] Finished engine building in 1063.897 seconds
[I] Saving engine to models/accelerate/tensorrt/gsdf/Counterfeit-V2.5/engine/unet.plan

Hello, could you use dynamic shape?

@l-dawei Yes, dynamic shape can work normally.


Update Tendermint definitions

I've added some comments and I think it looks ok but we'll need to see how it works out for the other places it gets built (graph_node etc).
Good job on the linting too, can we include the command used to lint in the readme? I know you mentioned you had issues building the protobuf file, did you have to use a different command?


Add files via upload

Add Faculdade Gran

@eduardoboscocs Please provide us with:

the school official website URL
the school street address, including city and country
an URL of a page on the official website where the school offers an IT-related long-term (>1 year) course
a proof, which shows that the school recognizes the domain you are submitting as an official email domain for the students.

@eduardoboscocs You might miss my previous comment. Please react.

@eduardoboscocs I am sorry, this request remains unanswered for a while. I have to close it without merging. Please reopen and comment if you have an update regarding the aforementioned issue. Thank you for your understanding!


Marshalling of types defined with type keyword.

#[ligen(C)]
pub type StringF32 = (String, f32);

#[ligen(C)]
fn f(tuple: StringF32) { ... }

It would be better to marshall StringF32 as a tuple (#8).

This must be taken into consideration for #31. Consider something like this
enum Type {
  Alias(Alias), // type foo
  Enumeration(Enumeration), // enum foo
  Structucture(Structure) // struct foo
}


[airflow][presto] Gracefully handle 503 errors and avoid eval()

TO: @mistercrunch
What? Why?
I was running an airflow job that executes a number of presto queries.  The first bunch succeeded, and then the job suddenly died with this error:
    records = presto.get_records(my_hql)
  File "/usr/local/lib/python2.7/dist-packages/airflow/hooks/presto_hook.py", line 50, in get_records
    obj = eval(str(e))
  File "<string>", line 1
    Unexpected status code 503
                    ^
SyntaxError: invalid syntax

What happened here is that presto was temporarily unavailable (a "hiccup") so it returned a 503 error.  Our error-handling code expected the response to be eval()'able, which is true in most cases but not in the 503 case.  With 503's, the message is just "Unexpected status code 503".  You can't eval() that.
We discussed this offline.  We both agree that eval() is just a bad thing to do.  You suggested using json.loads instead.  I tried that and found that str(e) is not valid json.  Instead, it's python-hash formatted.  For example, it has u prefixes for all the strings.
So I chose to take a different approach.  I simply check for the values I expect to find (a la duck-typing).  If they exist, I extract them and use them in the PrestoError.  If not, I just str() the whole error.
How was it tested?
I executed an invalid query ("blah blah select...") and verified that we handle that error.  Here's what I saw:
PrestoException: SYNTAX_ERROR: line 1:1: no viable alternative at input 'blah'

For the other case, rather than taking down presto, I simulated this by manually setting the error object to the string "Unexpected status code 503".  Here's what I saw:
PrestoException: Unexpected status code 503

I'm brand new to airflow development so let me know if there are other/better ways to verify my change.

Looks like I need to add a test to raise code coverage.  I'll investigate...

No need to raise coverage, we can't test Presto in travis (yet).
But we like lines under 80char to comply to PEP8.

My bad -- I have my editor set to 100 chars.  I'll revise...

@mistercrunch I revised the code to be under 80 chars per line.  PTAL.

LGTM


Immediate Garbage Collection

Type of question
Help with bug
Question
What did you do?
I have a cluster wide operator that only runs in the default namespace. Within the operator I have two controllers. One controller that watches for an Org resource the other controller watches for a sub resource within the namespaces created by the Org controller.
When an Org resource is created, it creates a namespace and several resources inside that namespace. Some of those resources are secrets.  Since secrets are not cluster wide, I copy some secrets into the namespace.
Here is my reconcileSecret function
func (r *ReconcileOrg) reconcileSecret(rlog *logrus.Entry, Org *mycrd.Org, secret string) (*reconcile.Result, error) {
	// Check if the target namespace contains this secret
	namespace := fmt.Sprintf("org-%d", org.Spec.Org)
	nn := types.NamespacedName{
		Namespace: namespace,
		Name:      secret,
	}
	s := &corev1.Secret{}
	err := r.client.Get(context.TODO(), nn, s)
	if err != nil {
		if !errors.IsNotFound(err) {
			return nil, err
		}

		// Get the master secret
		nn := types.NamespacedName{
			Namespace: "default",
			Name:      secret,
		}
		ms := &corev1.Secret{}
		err := r.client.Get(context.TODO(), nn, ms)
		if err != nil {
			if errors.IsNotFound(err) {
				return nil, fmt.Errorf("Could not find master secret \"%s\" in namespace default", secret)
			}
			return nil, err
		}

		rlog.WithField("secret", secret).Info("Creating Secret")
		s = &corev1.Secret{
			ObjectMeta: metav1.ObjectMeta{
				Namespace: namespace,
				Name:      secret,
			},
			Data:       ms.Data,
			StringData: ms.StringData,
			Type:       ms.Type,
		}
		err = controllerutil.SetControllerReference(org, s, r.scheme)
		if err != nil {
			return nil, err
		}
		err = r.client.Create(context.TODO(), s)
		if err != nil {
			return nil, err
		}
		org.Status.Available = false
		return &reconcile.Result{
			Requeue:      true,
			RequeueAfter: 5 * time.Second,
		}, nil
	}

	return nil, nil
}

What did you expect to see?
I expect the secrets to be created.
What did you see instead? Under which circumstances?
For a period of time, this seems to work great. However, after a certain amount of time (days or a week), things go wrong.  I'll check and all the secrets in the namespace will be gone. I'll check the logs of the operator and its in an endless loop of trying to create the secrets.
If I --watch the secrets in that namespace, I'll see that when they are created, they get deleted immediately.
 My Org resource is not deleted or being deleted (no deleted timestamp) and the UUID matches in the owner reference section of the Secret.
This doesn't seem to happen with just Secrets. I started with my CRD creating everything including the namespace. After several days, I'll check my cluster and the namespace will be in the Terminating state and all pods trying to be deleted.
To work around this issue, I started to remove the controller reference to avoid garbage collection.
Any help would be appreciated. I have contacted DO to get kubelet logs however I'm not sure if those will help.
Environment

operator-sdk version:

operator-sdk version: v0.10.0, commit: ff80b17737a6a0aade663e4827e8af3ab5a21170

Kubernetes version information:

I saw this issue when my cluster was version 1.13 and have since upgraded to 1.15 and still see this problem.
Server Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.3", GitCommit:"2d3c76f9091b6bec110a5e63777c332469e0cba2", GitTreeState:"clean", BuildDate:"2019-08-19T11:05:50Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"linux/amd64"}

Kubernetes cluster kind:
DigitalOcean

Additional context
The operator has two controllers, one for the Org and one for within the namespace to watch for sub resources.  I'm not sure if this is causing the conflict and I should split this into two operators.  This controller doesn't seem to have the same issues.

I think I found the answer here: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/types.go#L297-L299
Cluster scoped objects cannot have an owner reference in another namespace.  So when the object is created in the other namespace with an owner reference to the one in default, garbage collection can't find it and deletes it.
I'll test this theory and post an update.

@hyprnick Correct. The only supported owner to child relationships are:

Cluster-scoped owner to cluster-scoped child.
Cluster-scoped owner to namespace-scoped child.
Namespace-scoped child to namespace-scoped child, where both owner and child are in the same namespace.

If I'm understanding correctly, you would need to make your Org resource cluster-scoped.
Let us know what you find! And if you still need help designing your operator, we can re-open and help you figure it out!

@joelanford Thanks for the reply!  The Org resource should be cluster scoped.  Do you have any references for doing that? Thank you


Custom meta without value

Thanks for the great library.
It would be nice to be able to do this if it can be supported.
To support having an unknown_reader, unknown_writer and maybe others within the custom meta without having to redefine the entirety of the struct.
struct bigJson
{
   /* ... */
};

template<>
struct glz::meta<bigJson>
{
    static constexpr auto unknown_read{ /* ... */ };
    static constexpr auto unknown_write{ /* ... */ };
};

This currently produces the following error on Visual Studio 2022 due to concept detail::global_meta_t<T> evaluating to false:
glaze\json\read.hpp(116,33): static_assert failed: 'unknown_read type not handled'

Thanks for bringing this up. It would be nice to be able to specify only the unknown key map and reflect on all the other values automatically. I'll keep this issue alive, but it will probably be some time before it is addressed.


Building on windows?

Hi, I am attempting to build this code on Windows / visual studio.
I am seeing this error:
Severity	Code	Description	Project	File	Line	Suppression State
Error	C2248	'ttl::internal::raw_tensor_mixin<Encoder,ttl::internal::basic_flat_shape<uint32_t>,D,ttl::internal::owner>::Dim': cannot access private typedef declared in class 'ttl::internal::raw_tensor_mixin<Encoder,ttl::internal::basic_flat_shape<uint32_t>,D,ttl::internal::owner>' [D:\\Deep\OPP\openpose-plus-master\3rdparty\src\stdtensor-repo-build\stdtensor.vcxproj]	stdtensor-repo	d:\deep\opp\openpose-plus-master\3rdparty\src\stdtensor-repo\include\ttl\bits\raw_tensor.hpp	16

It seems to be this line:
 using S = basic_flat_shape<Dim>;
Is there anything I can do to get this building on windows?
Thanks!

This is what i have done so far:
remove these lines from the cMakeLists.
ADD_DEFINITIONS(-Wall)
ADD_DEFINITIONS(-Werror)
ADD_DEFINITIONS(-Wfatal-errors)

commented out the <unistd.h> in
openpose-plus-master\3rdparty\src\stdtracer-repo-build\stdtracer.vcxproj] stdtracer-repo d:\deep\opp\openpose-plus-master\3rdparty\src\stdtracer-repo\include\bits\stdtracer_log_ctx
Then you get an error about isatty.
change the isatty to _isatty, and add #include <io.h> to fix that one.
That leaves errors:
#include <cxxabi.h> //can't find this file
and 'illegal indirection' in std_shape.hpp
A little more googling tells me that we can just comment out //#include <cxxabi.h>
and adjust the function below to:
template <typename T>
std::string demangled_type_info_name()
{
    int status = 0;
   // return abi::__cxa_demangle(typeid(T).name(), 0, 0, &status);
    return name;
}

ref: https://en-mlog.blogspot.com/2012/01/using-cmdlineh-in-visual-c.html
Now we have the illegal indirection error, and this new one:
Severity	Code	Description	Project	File	Line	Suppression State
Error	C2248	'ttl::internal::raw_tensor_mixin<Encoder,ttl::internal::basic_flat_shape<uint32_t>,D,ttl::internal::owner>::Dim': cannot access private typedef declared in class 'ttl::internal::raw_tensor_mixin<Encoder,ttl::internal::basic_flat_shape<uint32_t>,D,ttl::internal::owner>' [D:\Deep\OPP\openpose-plus-master\3rdparty\src\stdtensor-repo-build\stdtensor.vcxproj]	stdtensor-repo	d:\deep\opp\openpose-plus-master\3rdparty\src\stdtensor-repo\include\ttl\bits\raw_tensor.hpp	16

Which has me stumped.
Thanks!

@antithing thanks for your valuable debug information. I will have a deep look into this.
But since I don't have a windows computer at the moment, it may take long.
As a quick look, the last error suggests the following is private
https://github.com/stdml/stdtensor/blob/00519f4e5b3ae9da4a80f6fadf545906a639748c/include/ttl/bits/raw_tensor_mixin.hpp#L52
so you may try moving it to public section after
https://github.com/stdml/stdtensor/blob/00519f4e5b3ae9da4a80f6fadf545906a639748c/include/ttl/bits/raw_tensor_mixin.hpp#L64
I'm also wondering how this error gets triggered, because in openpose-plus, raw_tensor is not used at all.

note: the error is triggered at
https://github.com/stdml/stdtensor/blob/00519f4e5b3ae9da4a80f6fadf545906a639748c/include/ttl/bits/raw_tensor.hpp#L16


Dynamic Linking for iOS is broken on React Native 0.71.1

Description
After running pod install with dynamic linking (NO_FLIPPER=1 RCT_NEW_ARCH_ENABLED=0 USE_FRAMEWORKS=dynamic bundle exec pod install), the app cannot be built.
Version
0.71.1
Output of npx react-native info
➜  DemoRN0711 npx react-native info
info Fetching system and libraries information...
System:
    OS: macOS 13.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 13.64 GB / 64.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.19.0 - /opt/homebrew/bin/node
    Yarn: 1.22.19 - ~/Library/pnpm/yarn
    npm: 8.19.3 - /opt/homebrew/bin/npm
    Watchman: 2<IP_ADDRESS> - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /Users/[user]/.rbenv/shims/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
    Android SDK:
      API Levels: 31, 32, 33
      Build Tools: 30.0.3, 31.0.0, 33.0.0
      System Images: android-31 | Google APIs ARM 64 v8a, android-33 | Google APIs ARM 64 v8a
      Android NDK: 25.1.8937393
  IDEs:
    Android Studio: Electric Eel 2022.1.1 Electric Eel 2022.1.1
    Xcode: 14.2/14C18 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.17 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.2.0 => 18.2.0
    react-native: 0.71.1 => 0.71.1
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps to reproduce

npx react-native init DemoRN0711 --skip-install
cd DemoRN0711 && yarn install
cd ios
NO_FLIPPER=1 RCT_NEW_ARCH_ENABLED=0 USE_FRAMEWORKS=dynamic bundle exec pod install
xcodebuild archive     -workspace DemoRN0711.xcworkspace/     -scheme DemoRN0711     -configuration Release     -archivePath ./DemoRN0711-iphoneos.xcarchive     -sdk iphoneos          ENABLE_BITCODE=NO     SKIP_INSTALL=NO     ARCHS=arm64     CODE_SIGNING_ALLOWED=NO     CODE_SIGN_IDENTITY=     CODE_SIGNING_REQUIRED=NO     SUPPORTS_MACCATALYST=NO | xcbeautify

Snack, code example, screenshot, or link to a repository
DemoRN0711.zip

Hi @imWildCat, thank you for opening the issue.
The Old Architecture is working with use_frameworks! :linkage => :static, though, and we have CircleCI jobs to keep it working.
What is the use case? Do you explicitly need dynamic_frameworks?

@cipolleschi thanks for your reply!
I was trying to build React Native binaries to save the overall project compile time.
The old architecture with Dynamic linking works before 0.71.0.

I did some tests today and the current situation is that dynamically linked frameworks stopped working in 0.70, when Hermes is enabled and stopped also for JSC from 0.71. I'm still trying to figure out what happened, but it is not trivial and the issue is highlighting other problems in the codebase.
Is in our intention to try to solve this regression, but, unfortunately, it could take some time to have them back online. I'm sorry for this disruption. :(

I am having similar issues on react-native 0.65. I have been wondering if it could be related to Xcode 14.2?

Same problem, took a while to hunt this down but the dynamic linking setting created lots of funny linker errors after upgrading the RN version.
E.g., "Undefined symbol: facebook::jsi::Value::Value(facebook::jsi::Runtime&, facebook::jsi::Value const&)".
https://gist.githubusercontent.com/extremeheat/ad48c8e69fd7319e7af0bafd65636edd/raw

Yeah, we know. I have a few changes almost ready that would fix it. They may be ready for 0.71.3 as we are about to release 0.71.2 this week.
I'm sorry for the disruption.

You can look up how it is going, following this PR: https://github.com/facebook/react-native/pull/36003 😉

Huge thanks @cipolleschi @kelset !
I queued a build at https://github.com/imWildCat/ReactNative-Binary/pull/25 with 0.71.2
Will let you know when I have the result

Sorry for the delay. I believe this issue has been addressed. My testing PR is still failing due to a different issue, IMO.

This issue has been resolved. Should be a transient issue of GitHub Actions.


Update one test for new ccs-sourcing admin view

A small tweak to the functional tests to check if ccs-sourcing-admins see what they ought to be able to see ticket

This doesn't appear to work for preview yet - does it need a @skip-preview tag or are you just going to hold off on releasing it?


connection issue while downloading data

Hi
I am running my codes on google cloud, and I am getting this error resulting in the failure of the codes when trying to download the data, could you assist me to solve this? also as a temporary solution, could you tell me how I can increase the number of retries and timeout to at least let the models run for now. thanks
Traceback (most recent call last):
  File "finetune_t5_trainer.py", line 361, in <module>
    main()
  File "finetune_t5_trainer.py", line 269, in main
    add_prefix=False if training_args.train_adapters else True)
  File "/workdir/seq2seq/data/tasks.py", line 70, in get_dataset
    dataset = self.load_dataset(split=split)
  File "/workdir/seq2seq/data/tasks.py", line 306, in load_dataset
    return datasets.load_dataset('glue', 'cola', split=split)
  File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 589, in load_dataset
    path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
  File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 263, in prepare_module
    head_hf_s3(path, filename=name, dataset=dataset)
  File "/usr/local/lib/python3.6/dist-packages/datasets/utils/file_utils.py", line 200, in head_hf_s3
    return http_head(hf_bucket_url(identifier=identifier, filename=filename, use_cdn=use_cdn, dataset=dataset))
  File "/usr/local/lib/python3.6/dist-packages/datasets/utils/file_utils.py", line 403, in http_head
    url, proxies=proxies, headers=headers, cookies=cookies, allow_redirects=allow_redirects, timeout=timeout
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 104, in head
    return request('head', url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 504, in send
    raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/datasets/datasets/glue/glue.py (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f47db511e80>, 'Connection to s3.amazonaws.com timed out. (connect timeout=10)'))

could you tell me how I can avoid download, by pre-downloading the data first, put them in a folder so the code does not try to redownload? could you tell me the path to put the downloaded data, and how to do it? thanks
@lhoestq

Does your instance have an internet connection ?
If you don't have an internet connection you'll need to have the dataset on the instance disk.
To do so first download the dataset on another machine using load_dataset and then you can save it in a folder using my_dataset.save_to_disk("path/to/folder"). Once the folder is copied on your instance you can reload the dataset with datasets.load_from_disk("path/to/folder")


Added response_type to payload for slash commands

Slack added a response_type to specify if a slash command should return to the user or to the channel. In the docs its documented as defaulting to "ephemeral" so I kept it that way in the coffeescript too...
https://api.slack.com/slash-commands

This looks good though it looks like a lot of the Javascript changed... I can merge and change around? or if you pull down latest master there's a new make install compile command you can run to generate the correct JS.

Yeah please feel free to merge and change as you like-- I won't be able to jump on this for a bit.  Let me know how it goes!

Merged https://github.com/clonn/slack-node-sdk/commit/8b0b094aed68c2abcc0e0012869fcfd0204da460, thanks!


rename all res to self.res

rename all res to self.res

Remove return self.res

fix self.res calls

remove return self.res leftover

remove return self.res leftover

Short description:
More details:
What this PR does / why we need it:
Which issue(s) this PR fixes:
Special notes for reviewer:
Bug:

!verified


Awesome work!

Awesome work here. I had previously found a Java reverse engineering of this protocol that used network sniffing to get at all the data, but I love you approach here.
I am going to integrate this into a Home Assistant plugin. I created a fork to start playing around, but in theory your code should handle almost all that is needed to get this integrated.

thanks so much!  I'm glad it was helpful to someone. :)  I'd love to see your integration, I'd never heard of Home Assistant until now, I'll check that out too!


Feature - Ability to use a different unicode symbol for a highlighted star

It would be pretty cool if we could use 2 different symbols, for example ★ for when its highlighted and ☆ when its not.

@skela @akiroom  I've added this feature in the latest commit. But be careful with the demo project since I changed the way to customized the rating view (using dict now). I will updated the demo project if I have spare time. Feel free to check my fork and give me more issue: https://github.com/AustinChou/AXRatingView

Hello,
We have an exciting opportunity for you! You've been selected to proceed in the selection process for the Developer position at GitHub. Congratulations on your achievement!
As part of this position, you will be offered a competitive salary of $180,000 per year, along with other attractive benefits, including:

Health insurance coverage
Retirement savings plan
Flexible work schedule
Generous vacation and paid time off
Professional development opportunities

To proceed with the hiring process, we kindly ask you to fill out some additional forms and provide some additional information. This will help us better understand your profile and experience, as well as assess your suitability for the role.
Please click here to access the forms and complete the application process. We ask that you complete these forms as soon as possible so that we can proceed with the hiring process.
Important: You have 24 hours to complete the application process.
If you have any questions or need further information, please don't hesitate to contact us.
Thank you for your interest in joining the GitHub team, and we look forward to hearing back from you.
Best regards,
GitHub Recruitment Team
oijm17, @Fenek97, @kerematam, @ilovedesert001, @0xhedgie, @nuffertaylor, @abbamt, @poonsak58, @Tenox91, @kojhliang, @lucilamia, @LukeCruz, @JOVANIIB, @brunoocaranza, @brskff, @naxida-eth, @juliaranney0, @sicw, @shiyuanjieyi, @ovicloud


Dio fetch can't catch error

Package
dio
Version
5.5.0+1
Operating-System
Android, iOS
Adapter
Default Dio
Output of flutter doctor -v
[✓] Flutter (Channel stable, 3.22.2, on macOS 14.5 23F79 darwin-arm64, locale ko-KR)
    • Flutter version 3.22.2 on channel stable at /Users/swom/Flutter/SDK/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 761747bfc5 (6주 전), 2024-06-05 22:15:13 +0200
    • Engine revision edd8546116
    • Dart version 3.4.3
    • DevTools version 2.34.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/swom/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/swom/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)

[✓] VS Code (version 1.91.1)
    • VS Code at /Users/swom/Flutter/tools/Visual Studio Code.app/Contents
    • Flutter extension version 3.92.0

Dart Version
3.4.3
Steps to Reproduce

Token expiration
After re-issuing the token, retry the API (dio.fetch)
The api throws an error but fails to catch it as DioException.

Expected Result
If an error occurs in the API retried through dio.fetch, it must catch it immediately.
If I set a delay, I catch the error later.
Actual Result
  @override
  void onError(DioException err, ErrorInterceptorHandler handler) async {
    int statusCode = err.response?.statusCode ?? 0;
    RequestOptions errorRequestOptions = err.requestOptions;

    debugPrint('BFDioAuthInterceptor - onError : $statusCode');

    // await Future.delayed(const Duration(milliseconds: 100), () async {
    // Set delay catch DioException later.
    if (statusCode == 401) {
      // Token Expired
      String newToken = await BFPreferences.shared.getAccessToken();

      try {
        RequestOptions errorNewOptions = errorRequestOptions;
        errorNewOptions.headers['Authorization'] = 'Bearer $newToken';

        final response = await dio.fetch(errorNewOptions);
        return handler.resolve(response);
      } on DioException catch (e) {
        return handler.reject(e);
      }
    }
// });
    return handler.reject(err);
  }

See https://github.com/cfug/dio/blob/main/example_dart/lib/queued_interceptor_crsftoken.dart.


How to import a private key?

Hi,
I noticed the importprivkey bitcoin RPC call is not supported on this implementation, is there any other way to import a private key?
Cheers,
-Freek

Currently our wallet is an HD wallet, that can't import right now a private key that isn't generated by the HD wallet seed.
The only way to move funds on our wallet from a non-hd wallet, right now, is to create an HD wallet and send your funds to one of the new generated address

Thanks for that. Do you know of any non-HD wallets for Stratis that allow you to import a private key?

The only stratis implementation that should allow you to import priv key is the StratisX node but it's the legacy implementation (C++) that will be dismissed
I'm not sure about any plan to implement support for non HD wallet addresses, we discussed about it in the past but no decision were taken.
What's the use case?

@MithrilMan not to say it would happen but in the rare case it did... say a user lost their seed ? But has a backup of their private key (if the HD wallet allowed for it). This could happen if they keep their seed and privkeys in separate locations, and say just lost only the seed.

I'm using a Ledger to hold my coins, and want to verify that I can still use my coins if I hold only the BIP39 seed phrase.
Another use case might be that I find an old Stratis wallet.dat, and want to spend those coins but Stratisx cannot create transactions anymore (because of some future hard fork).

To add to this:

Another use case might be that I find an old Stratis wallet.dat, and want to spend those coins but Stratisx cannot create transactions anymore (because of some future hard fork).

StratisX is being deprecated as I was last aware ? Which in that case, users that might not be aware of it coming in later to use their coins would need this feature to import the privkeys.

Well, i was in the same situation until i sorted professional help. These guys helped me recover my wallet private key [secrettruthhackers.imfast.io], what would i have done when my wallet had investors bitcoin in there? Thanks to the secrettruthhackers.

You should never trust a third party with your private key @soniaklick
Private key sweeping functionality has to be build into our wallet, but it's not available at the moment.


New term request: alpha-Putrescinylthymine

It would be great if α-Putrescinylthymine / 5-(4-Aminobutylaminomethyl)uracil could be added.
Its details are already available from PubChem: https://pubchem.ncbi.nlm.nih.gov/compound/188337
It would have a HAS FUNCTIONAL PARENT relationship to thymine (CHEBI:17821).
A relevant reference:

Kropinski, A. M. B., R. J. Bose, and R. A. J. Warren. "5-(4-Aminobutylaminomethyl)Uracil, An Unusual Pyrimidine From The Dioxyribonucleic Acid Of Bacteriophage .Phi.W-14". Biochemistry 12.1 (1973): 151–157.

Hi Coby,
Now added: α-putrescinylthymine (CHEBI:132931).
Kind regards,
Gareth

Thanks, Gareth! I especially appreciated the description mentioning its being a hypermodified base in φW‑14 and the detailed reference list.


About the selection of 5 Relations

Hi Yujiang,
I have a question about your prompt construction procedure.
How did you select 5 relations from the 12 most common relations ?
Did you use some specific procedure ? I did not find this instruction on code or paper.
I could notice that shanghaitech, ucfcrime and xd use the same 5 relations.
Thanks for share your source code.
Thanks in advance.

We explained the selection method in Prompt Construction subsection. The top five items with the highest occurrence frequency across all categories are chosen as the retrieval relations. Moreover, the selections in ShanghaiTech differ from other datasets. For more details, please refer to the supplementary materials.


[jvm-packages] RabitTracker socket.error: [Errno 48] Address already in use

I encounter this error when run mvn command under jvm-packages folder.
I notice that this problem is the same as #940
Then i check the file dmlc-core/tracker/dmlc_tracker/tracker.py.
But i did not know how to modify the uri and port correctly.

I change the port 9091 to 8091, then the mvn command ended success.
Is this modify right?

as it says, Address already in use, that means the desired port (9091) has been occupied by another process, in usual, 9091 is occupied by some unsuccessful running instance of rabit, you just need to kill that instance manually


Fix the build!

I broke the build, whoops!
This should sort it out but when I run the tests with bin/rake it fails. If I run the controller specs together with bin/rspec spec/controllers it passes.
I assume there's some test setup lingering.

Got it, I copy-pasted a method from another spec and it got clobbered because of the load order.

LGTM?

:tada:


Switch to pyproject.toml entirely

This PR removes setup.py and instead uses pyproject.toml for everything, as setup.py is deprecated.
I adjusted and tested the workflows, so they still work with pyproject.toml.
(macOS doesn't have GNU sed, so I decided to split this step into two OS-specific ones, as I couldn't find a way to make the command work without breaking it on one of them.)

[x] I'll mark this PR as draft until https://github.com/PyO3/setuptools-rust/pull/355 is merged, so I can remove the git URL from build-system.requires again.

Thanks!


Add remote debugging via DAP

This commit adds the minimal code needed to have VS Code attach to a running Epsilon debug adapter over TCP (available from Epsilon 2.6.0). The approach is to have the Ant tasks start the server and wait for VS Code to attach to them before starting the Epsilon script to be debugged.
This only requires using a DebugAdapterDescriptorFactory that looks at the "port" in the launch.json entry being executed, and passes that on to the standard DebugAdapterServer class. All the debugging complexity will be hidden behind the DAP server.

Just made two minor tweaks to avoid having files that do not end on a newline.

This is so exciting! Thank you!

No problem! BTW, I've documented how to use it here:
https://eclipse.dev/epsilon/doc/articles/debugger/#microsoft-visual-studio-code


Pseudo-randomness

This is non-trivial as it requires quite a few changes on the backend/proving system. This can have a pronounced effect on Noir usage but not sure we have the resources to justify pursuing it right now.
Generating secure randomness on Ethereum using SNARKs | Paradigm

Closing this as it requires quite a bit of work from the backend to enable it -- we ca re-open in the future if a backend supports it


No feedback in output when output is successfully swapped

I ran telepresence like the following, and the output was -
$ telepresence --verbose --swap-deployment qotm --expose 80:5000 --docker-run -it nginx
Volumes are rooted at $TELEPRESENCE_ROOT. See https://telepresence.io/howto/volumes.html for details.

[sudo] password for concaf:

I had no clue if the Deployment was successfully swapped, or if something is still being processed or not, unless I queried the qotm service and then I saw logs in the terminal for Nginx -
 $ telepresence --verbose --swap-deployment qotm --expose 80:5000 --docker-run -it nginx
Volumes are rooted at $TELEPRESENCE_ROOT. See https://telepresence.io/howto/volumes.html for details.

[sudo] password for concaf:
<IP_ADDRESS> - - [13/Apr/2018:09:09:42 +0000] "GET / HTTP/1.1" 200 612 "-" "curl/7.59.0" "-"
<IP_ADDRESS> - - [13/Apr/2018:09:09:43 +0000] "GET / HTTP/1.1" 200 612 "-" "curl/7.59.0" "-"
<IP_ADDRESS> - - [13/Apr/2018:09:09:44 +0000] "GET / HTTP/1.1" 200 612 "-" "curl/7.59.0" "-"

I'd expect an output like -
 $ telepresence --verbose --swap-deployment qotm --expose 80:5000 --docker-run -it nginx
Volumes are rooted at $TELEPRESENCE_ROOT. See https://telepresence.io/howto/volumes.html for details.

[sudo] password for concaf:
Deployment nginx successfully swapped, all traffic to the service nginx:5000 will now be routed to the local container nginx on port 80

Thanks for the issue and proposed output. Once #572 is addressed, we should be able to address this and a number of similar issues quickly.


How to get elevation from current latitude and longitude using leafltejs OR mapbox javascript API

I am working with leafletjs.com and added MAP. I want to get elevation from current latitude and longitude or current place only, but it will return whole path elevation.
var el = L.control.elevation();
el.addTo(map);
var gjl = L.geoJson(geojson,{
onEachFeature: el.addData.bind(el)
}).addTo(map);
map.addLayer(service).fitBounds(bounds);
How can I find the elevation with either mapbox or leafletjs.

elevation of current place only, above code return elevation of whole json data

I want like this
https://developers.google.com/maps/documentation/javascript/examples/elevation-simple

Hi, great to hear that you find Leaflet useful!
However, this issue tracker is used for reporting bugs and discussing new features. For questions on using Leaflet, please use gis.stackexchange.com or stackoverflow.
If you are really sure that this is a bug in leaflet, or a feature request, please change the wording to make it look like a bug report.


Filtering by project raising query is invalid error

I am trying to set up a Github action to generate a bi-weekly report on open and closed issues within a specific project. I have a working file for all issues inside a repository, but cannot seem to find a way to run a project query with issue-metrics. The query that I am sending to the docker container is working in a local sandbox with github3.py.
I blanked the name of the org in the following extracts.
sprint_metrics.yml workflow file:
name: Sprint issue metrics
on:
  workflow_dispatch:
env:
  PROJECT: 7
  ORG: NAME_OF_THE_ORG

permissions:
  issues: write
  pull-requests: read

jobs:
  build:
    name: issue metrics
    runs-on: ubuntu-latest
    steps:
    - name: Get dates for last week
      shell: bash
      run: |
        # Calculate the first day of the previous week - to be run on Mondays
        first_day=$(date -d "today -2 week" +%Y-%m-%d)

        # Calculate the last day of the previous week
        last_day=$(date -d "today" +%Y-%m-%d)

        #Set an environment variable with the date range
        echo "last_sprint=$first_day..$last_day" >> "$GITHUB_ENV"

        #Set an environment variable with the date range
        echo "today=$last_day" >> "$GITHUB_ENV"

    - name: Run issue-metrics tool
      uses: github/issue-metrics@v2
      env:
        GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        SEARCH_QUERY: 'org:${{ env.ORG }} project:${{ env.ORG }}/${{ env.PROJECT }} is:issue created:${{ env.last_sprint }}'

    - name: Save data to md file
      shell: bash
      run: |
        sed -i 's/# Issue Metrics/# Created Issues/g' ./issue_metrics.md
        cat ./issue_metrics.md >> ./report.md

    - name: Run issue-metrics tool
      uses: github/issue-metrics@v2
      env:
        GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        SEARCH_QUERY: 'org:${{ env.ORG }} project:${{ env.ORG }}/${{ env.PROJECT }} is:issue closed:${{ env.last_sprint }}'

    - name: Save data to md file
      shell: bash
      run: |
        sed -i 's/# Issue Metrics/# Closed Issues/g' ./issue_metrics.md
        cat ./issue_metrics.md >> ./report.md

    - name: Create issue for metrics
      uses: peter-evans/create-issue-from-file@v4
      with:
        title: Sprint ending ${{ env.today }} - Issue metrics report
        token: ${{ secrets.GITHUB_TOKEN }}
        content-filepath: ./report.md
        labels: report

Log of job failure
Run github/issue-metrics@v2
  env:
    PROJECT: 7
    ORG: NAME_OF_THE_ORG
    last_sprint: 2024-02-08..2024-02-22
    today: 2024-02-22
    GH_TOKEN: ***
    SEARCH_QUERY: org:NAME_OF_THE_ORG project:NAME_OF_THE_ORG/7 is:issue created:2024-02-08..2024-02-22
/usr/bin/docker run --name ghcriogithubissue_metricsv2_75014b --label 5ca9ce --workdir /github/workspace --rm -e "PROJECT" -e "ORG" -e "last_sprint" -e "today" -e "GH_TOKEN" -e "SEARCH_QUERY" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_ENVIRONMENT" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e "ACTIONS_RESULTS_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/test-aws-action/test-aws-action":"/github/workspace" ghcr.io/github/issue_metrics:v2
Starting issue-metrics search...
Searching for issues...
The search query is invalid; Check the search query.

And the following code is working in a python sandbox, with the search query copied and pasted directly from the job log. It returns a list of issues as per the query. I also tested that query directly at https://github.com/search, and it works there too.
import github3

github_connection = github3.login(token="REDACTED")
search_query = "org:NAME_OF_THE_ORG project:NAME_OF_THE_ORG/7 is:issue created:2024-02-08..2024-02-22"
print("Searching for issues...")
issues_iterator = github_connection.search_issues(search_query, per_page=100)

# Print the issue titles
issues = []
try:
    for issue in issues_iterator:
        print(issue.title)  # type: ignore
        issues.append(issue)
except github3.exceptions.ForbiddenError:
    print(
        "You do not have permission to view this repository; Check you API Token."
    )
    sys.exit(1)
except github3.exceptions.NotFoundError:
    print("The repository could not be found; Check the repository owner and name.")
    sys.exit(1)
except github3.exceptions.ConnectionError:
    print(
        "There was a connection error; Check your internet connection or API Token."
    )
    sys.exit(1)
except github3.exceptions.AuthenticationFailed:
    print("Authentication failed; Check your API Token.")
    sys.exit(1)
except github3.exceptions.UnprocessableEntity:
    print("The search query is invalid; Check the search query.")
    sys.exit(1)

Is there some special character escaping required to go from environment variables to python? Removing the project filtering does make the query successful again so I am wondering if the slash is transferred correctly from the environment (where the log shows the query is correct) to python.

👋 Hi there! Sorry it took me so long to respond to this. 😓
I think the crux of the issue you are experiencing here is that you are using the default token GITHUB_TOKEN in the action step where you run github/issue-metrics@v2. The error messages you are receiving are noting that your permissions with that token are not sufficient to get the search data you are requesting. You should pursue setting up an API Token, store that in your repository secrets (of the repository that you are running this action in), and then see if you get the same results. Does that help?

Thanks, that worked


[docs] Fix incorrect docker inspect example

Fixed incorrect docker inspect example in docs.
Verify by running the old and new commands.
fixes #31900
Signed-off-by: David Xia<EMAIL_ADDRESS>
- What I did
Fixed incorrect docker inspect example in docs.
- How I did it
By editing the doc
- How to verify it
Verify by running the old and new commands.
- Description for the changelog
Fixed incorrect docker inspect example in docs.
- A picture of a cute animal (not mandatory but encouraged)

cc @vdemeester @thaJeztah


not work when refresh page

When i use this component with vue router and refresh page, ckeditor dont replace textrea.

Bug fixed! just need to add ckeditor js on head !


Tensorflow fails in building GRU models in some cases.

System information

Have I written custom code (as opposed to using example directory):
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):  Windows 10
TensorFlow backend (yes / no):  yes
TensorFlow version:  1.15.0
Python version:  3.6.9
CUDA/cuDNN version:  -
GPU model and memory:  -

Describe the current behavior
When I directly build a model with layer GRUon Tensorflow, I get some variable multiplication errors, as shown below (raised in tensorflow_core\python\ops\resource_variable_ops.py line 1229).  The error reveals unsatisfactory implementation on Tensorflow in supporting variable multiplication.
<class 'RuntimeError'>, RuntimeError('Variable *= value not supported. Use var.assign(var * value) to modify the variable or var = var * value to get a new Tensor object.',), <traceback object at 0x00000240961ED908>),

Similar issues also happen in LSTM and SimpleRNN.  For detailed parameters of GRU, you can refer to the following code snippet.
Key insights
The error indicates that the variable multiplication with format Variable *= value is not well supported on TensorFlow. It should be extended to full mode to conduct multiplication.  This caused Tensorflow to be unable to build the model.
Code to reproduce the issue
import numpy as np
import keras.layers as L
from keras.engine import Model, Input

## Using Tensorflow as Keras backend.
## Input dtype default is float32

#GRU kwargs
kwargs = {
	'units': 2,
  	'dropout': 0.20430343923336958,
  	'recurrent_dropout': 0.7597739154146002,
  	'implementation': 2,
    'reset_after': True,
    'use_bias': True,
    'return_sequences': False,
    'return_state': False,
    'go_backwards': False,
    'stateful': True,
    'unroll': False
}

# SimpleRNN kwargs
# kwargs = {
#		'units': 2,
#  	'dropout': 0.9030407578803185,
#  	'use_bias': True,
#  	'recurrent_dropout': 0.8988069898639027,
#  	'return_sequences': False,
#  	'return_state': False,
#  	'go_backwards': True,
#  	'stateful': True,
#  	'unroll': True
#}

input = (10 * np.random.random((2,10,8)))
layer = L.recurrent.GRU(**kwargs)
#layer = L.recurrent.SimpleRNN(**kwargs)
x = Input(batch_shape=input.shape)
y = layer(x)
bk_model = Model(x, y)
print('finish')

@shiningrain, I tried replicating the reported issue. I didn't receive an error. Please take a look at the gist here. Thanks!

@shiningrain, I tried replicating the reported issue. I didn't receive an error. Please take a look at the gist here. Thanks!

Hi! @gadagashwini
Thank for your help!
I have read your code and it did run well in colab. But when I try to run the same code on my PC, the error I described above will still arise.(Shown in the following pictures.) This really confuses me.

The environment in the 1st picture:

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10
Tensorflow backend (yes / no): yes
Tensorflow version：1.15.0-cpu
Keras version: 2.3.1
Python version: 3.6.9

The environment in the 1st picture:

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu18.04
Tensorflow backend (yes / no): yes
Tensorflow version：1.14.0-GPU
Keras version: 2.3.1
Python version: 3.6.8
CUDA/cuDNN version: Cuda 9.0
GPU model and memory: TITAN V

Hope the above information can help with this problem.
Thanks again for your help!

@shiningrain, Can you try with changing import statement as
import numpy as np
import tensorflow.keras.layers as L
from tensorflow.keras import Model, Input

Let us know how it works. Thanks

@shiningrain, Can you try with changing import statement as
import numpy as np
import tensorflow.keras.layers as L
from tensorflow.keras import Model, Input

Let us know how it works. Thanks

Thanks for your help!
I have changed the import statement and it still raises the same error, shown as the following picture.

@shiningrain Can you try updating keras version ? The colab hosts Keras Version: 2.2.5

@shiningrain Can you try updating keras version ? The colab hosts Keras Version: 2.2.5

Hello!
Thanks for your help!.
The Keras version led to these errors is 2.3.1, which was also shown in my last comment.

I also tried Keras version 2.2.4 in the following pictures and the problem didn't seem to disappear

Thank you again for your help.

Can you please change your imports to tensorflow.keras rather than 'keras`?
import numpy as np
import tensorflow as tf
import tensorflow.keras.layers as L
from tensorflow.keras import Model, Input

Can you please change your imports to tensorflow.keras rather than keras?
import numpy as np
import tensorflow as tf
import tensorflow.keras.layers as L
from tensorflow.keras import Model, Input

Hello! Thanks for your help!
Your suggestion is the same as gadagashwini 's. I have tried this replacement and got a same error. You find it in the  previous comment in this page.

Hi @shiningrain, I wasn't able to reproduce the error as well. Even I could, we are not going to fix and create a new release for Tensorflow 1.15 since it is frozen.
I would suggest u to try the latest Tensorflow stable release or nightly and see if your code works or not. Feel free to reopen the issue if you still encounter the error with latest releases.


Dotplot labels can extend off plot

@fidelram
As noted in #1632, dotplot labels can often extend outside of the plotted area. Whether the full labels can be seen is dependent on how the plots are being output. It would be great if this always worked.

 Example from the docs:

Could possibly be solved by using matplotlib's constrained_layout or tight_layout. I think these would require modifying how the grid spec and axes are created.

Happens with seaborn too:


Add _Bool type

We have it documented to correspond to System.Bool, though. Are you sure we want to change that decision?

Tests say
Right operand of type PrimitiveType { Kind = Bool } is not numeric.

Heh. Need help with that?

Heh. Need help with that?

Compasion with my humane limitations would be enough!


Update lucene-analysis-common, ... to 9.11.0

About this PR
📦 Updates

org.apache.lucene:lucene-analysis-common
org.apache.lucene:lucene-analysis-icu
org.apache.lucene:lucene-analysis-kuromoji
org.apache.lucene:lucene-analysis-morfologik
org.apache.lucene:lucene-analysis-nori
org.apache.lucene:lucene-analysis-smartcn
org.apache.lucene:lucene-analysis-stempel
org.apache.lucene:lucene-core
org.apache.lucene:lucene-facet
org.apache.lucene:lucene-join
org.apache.lucene:lucene-queryparser
org.apache.lucene:lucene-suggest

from 9.10.0 to 9.11.0
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.apache.lucene" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.apache.lucene" }
}]

labels: library-update, early-semver-minor, semver-spec-minor, commit-count:1

superceded  by https://github.com/nixiesearch/nixiesearch/pull/219


Enhancement: The same code in Python

The following code is a re-write of your wonderful piece of code in Python. The differences are the following:

It assumes the initial data are biased by a constant.
It scales to any number of exponential functions. Change N for that.

The required Python version should start from 3.9, although I used only 3.11 to run the code.
The additional packages required to be installed are numpy and scipy. As far as I have found out, the code should work with the packages some 2 years old (i.e., numpy>=1.21.0 and scipy>=1.6.0), so basically with any version available now.
from numpy import arange, column_stack, exp, eye, ones
from numpy.linalg import eigvals, pinv
from numpy.typing import NDArray
from scipy.integrate import cumulative_trapezoid

# get data
dx: float = 0.02
x: NDArray[float] = arange(dx, 1.5 + dx, dx)
y: NDArray[float] = -1 + 5 * exp(0.5 * x) + 4 * exp(-3 * x) + 2 * exp(-2 * x) - 3 * exp(0.15 * x)

# number of exponents in question
N: int = 4

# calculate integrals
iy: list[NDArray[float]] = [cumulative_trapezoid(y, x, initial=0)]
for n in range(1, N):
    iy.append(cumulative_trapezoid(iy[-1], x, initial=0))

# get exponents' lambdas
Y: NDArray[float] = column_stack((*iy, *[x**n for n in range(N, 0, -1)], ones(x.shape)))
A: NDArray[float] = pinv(Y) @ y

lambdas: NDArray[complex] = eigvals([A[:N], *eye(N - 1, N)])

# get exponents' multipliers
X: NDArray[complex] = column_stack((ones(x.shape), *[exp(lambdas[n] * x) for n in range(N)]))
P: NDArray[complex] = pinv(X) @ y

# print out the results, sorting by the magnitude of the multiplier
order_by_multiplier: NDArray[int] = abs(P[1:]).argsort()[::-1]
print(f'y(x) =\n    {P[0]:.4f}')
for i in order_by_multiplier:
    print(f'    {P[i + 1]:+.4f} × exp({lambdas[i]:.4f} x)')

The result I get is this:
y(x) =
    -0.9900
    +5.0018 × exp(0.5000 x)
    +4.0052 × exp(-2.9991 x)
    -3.0109 × exp(0.1500 x)
    +1.9939 × exp(-1.9997 x)

Awesome, if you want to add a PR to have it alongside the matlab code, I'd be happy to merge it. I'd have the same license as the original one, though you might want to put you name in a comment at the top of the fike if you want.


Prefer RxJS deep imports to accommodate for Webpack's broken tree shaking

I'm submitting a ...  (check one with "x")
[x] bug report => check the FAQ and search github for a similar issue or PR before submitting
[ ] support request => check the FAQ and search github for a similar issue before submitting
[ ] feature request

Current behavior
With ngx-translate 9.0.0 our bundled app.js size increased by at least 50 kb. I see that due to the update the rxjs/index.js is included.
Expected/desired behavior
Only the operators needed should be imported.
See the TranslateService.
I.e., instead of import {concat, share, map, merge, switchMap, toArray, take} from "rxjs/operators"; it is better to use these import statements:
import {concat} from "rxjs/operators/concat";
import {share} from "rxjs/operators/concat";
import {map} from "rxjs/operators/concat";
import {merge} from "rxjs/operators/concat";
import {switchMap} from "rxjs/operators/concat";
import {toArray} from "rxjs/operators/concat";
import {take} from "rxjs/operators/concat";

Related issue: https://github.com/webpack/webpack/issues/2867
I doubt this is going to be fixed in Webpack anytime soon and since it would only be a relatively small change I would actually look forward to see it being implemented. I can also submit a PR myself if necessary.
Please tell us about your environment:

ngx-translate version: 9.0.0

Angular version: 5.0.3

yes please, a PR would be greatly appreciated!


Docs api_tutorial.rst add missing app instantiation

Tiny docs update to help learners not trip up reading the docs missing app = Quart(__name__)

Thanks


Fix relative path check in config for token

Signed-off-by: Aadhitya A<EMAIL_ADDRESS>Description
This PR fixes #5570
Notes for Reviewers
Signed commits

[x] Yes, I signed my commits.

Codecov Report

Merging #5910 (d5138da) into master (b0c509c) will decrease coverage by 4.34%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #5910      +/-   ##
==========================================
- Coverage   17.80%   13.45%   -4.35%
==========================================
  Files         107      107
  Lines        9994     9999       +5
==========================================
- Hits         1779     1345     -434
- Misses       7779     8363     +584
+ Partials      436      291     -145

Flag
Coverage Δ

gointegrationtests
?

unittests
13.45% <0.00%> (-0.01%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

mesheryctl/internal/cli/root/config/config.go
12.29% <0.00%> (-0.36%)
:arrow_down:

mesheryctl/internal/cli/root/system/update.go
1.05% <0.00%> (-58.95%)
:arrow_down:

mesheryctl/internal/cli/root/system/start.go
1.88% <0.00%> (-55.19%)
:arrow_down:

mesheryctl/internal/cli/root/system/status.go
1.14% <0.00%> (-55.18%)
:arrow_down:

mesheryctl/internal/cli/root/system/restart.go
1.92% <0.00%> (-48.08%)
:arrow_down:

mesheryctl/internal/cli/root/system/stop.go
2.00% <0.00%> (-46.67%)
:arrow_down:

mesheryctl/internal/cli/root/system/logs.go
3.26% <0.00%> (-36.96%)
:arrow_down:

mesheryctl/internal/cli/root/system/check.go
1.03% <0.00%> (-23.03%)
:arrow_down:

mesheryctl/internal/cli/root/system/dashboard.go
1.70% <0.00%> (-9.41%)
:arrow_down:

mesheryctl/pkg/utils/healthcheck.go
8.82% <0.00%> (-4.42%)
:arrow_down:

Continue to review full report at Codecov.

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

LGTM It would be great if we could also support the environment variable. eg: if the path is set as ${token}/mesheryctl-login.json WDYT

I feel it can be done... I'll check and introduce a change if I found a method to do

I'm thinking if we can use Viper to fetch the key from .env file but do we need such? WDYT @MUzairS15
// cc: @meshery/mesheryctl-maintainers

Hmm... IG we can discuss this separately with other folks for review


Renewing the benefit

What does renewable mean? Will I be ablke to renew it after subscription ends or is it renewing itself every year while I have subscription? Cheers

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

ID: 60b2872e-438a-b86e-9ff5-6dc0021f3fe8
Version Independent ID: 8b9e935e-07ad-4992-edb9-e8361d867617
Content: EMS Benefit
Content Source: subscriptions/vs-ems.md
Product: vs-subscription
GitHub Login: @evanwindom
Microsoft Alias: jaunger

@AlWoj Thanks for reaching out.  "Renewable" means that the benefit is renewed when you renew your subscription so that it's available as long as you have your subscription.  If you choose to let your subscription expire, you can switch EMS to a paid service if you wish to continue using it.

@evanwindom Thanks for your response; I will close the issue now as "asked and answered." (@AlWoj Even though we have closed the issue, you are more than welcome to add any follow-up comments that you might have.)

our subscription was renewed but not the EMS part. It's also not possbile to activate the service with following message.
It’s no longer offered by Microsoft.
You’ve already tried this service. You can sign up for a trial only once.
The beta or trial you’re requesting has expired.
The promotion code has already been used.

Can we get this resolved, please?  When it comes to renewing a benefit being told that it is not available is simply wrong.  While this is not really a documentation issue the doc implies that the license allocation is renewable and yet it does not work.  I don't want to have to spin up a new Azure tenancy each year just to assign the relevant license as I lose all of the previous configuration.

@davidguest44 - Thanks for reaching out.  I understand your frustration.  The behavior of EMS included in the subscription is set by the EMS offer rather than the subscription.  The EMS team is aware of the issue, and exploring solutions, but as of right now, I don't have any news to offer you.

#please-close

Only Microsoft employees can manage issues via commenting in this repo.

@evanwindom Thanks for your further response to this comment thread. (FYI: Because this issue was previously closed, it looks like the PRMerger automation returned an odd message; we'll look into this.)


add doctype html

It is good practice to have <!doctype html> starting off your document along lang=".." in your html tag. Hope this helps :smile:

You are absolutely right, I never noticed that I forgot putting it there...embarrassing ;) Thanks for adding it!

@mschwarzmueller haha no worries, your guides are great BTW!


Accounting for multiple exports

Summary
Updating terra-prop-table to leverage react-docgen's multiple component export definition.
Additional Details
If the component has multiple exports defined ( example: named and default export ) react-docgen default parse function thrown an exception. Hence uplifting the parse function to accept findAllComponentDefinitions as second argument.
Verification

Verified locally for component with one or more exports ( props table was generated fine )

Is there a linked issue for this PR?

@JakeLaCombe : We didn't open any issue for this, however we faced this problem while addressing multiple exports from the same component.

@m-samkc Please add your named to https://github.com/cerner/terra-core/blob/master/CONTRIBUTORS.md


Loading never finishes

After I fixed sourcemaps the log loading never finishes
Reproducing

Checkout https://github.com/data-client/rest-hooks
corepack enable
yarn install
yarn build
cd examples/benchmark
yarn build
yarn start:deopt

Now load v8.log
It has progress for a while but eventually just disappears. No error
https://github.com/microsoft/deoptexplorer-vscode/assets/866147/fa2d564a-44e1-4b89-b3cf-9a74c9cb5d0a
Platform info
Win11, WSL2, Ubuntu, Node 20.1
64GB memory 7950x CPU
Logfile size: 109.33MB

Reduced the logsize to 24MB by removing some stuff it does and it still doesn't load

You may be seeing some slowness related to map parsing. I have a fix for #14 that includes a fix for map details parsing that may help.

I just published v1.0.3 of Deopt Explorer. Can you try that one out and let me know if that helped?

New version finishes the bottom right loading bar much faster! However, the top loading bar (shown in video) still sits there forever. I don't think it's a performance issue. I think it errorred and doesn't have a way of showing the error.

I've been unable to repro this locally, but I've addressed some related issues that may help as well. Could you try your scenario again with v1.1.1, which published just now?

@rbuckton yup, with the new version it loads, and some of the files show up as 'the editor could not be opened because the file could not be found'. this makes me think https://github.com/microsoft/deoptexplorer-vscode/pull/24 was likely the fix. Thanks for this!
In a related note, it looks like my sourcemaps are outputting examples/src/normalize.ts rather than packages/normalizr/src/normalize.ts.... any ideas what might cause that? I don't expect any help here as this is not the concern on the library, but if you happened to have ideas around that it would be much appreciated. Thanks again for the great library and great support here!


Add support for OpenWrt

Describe your feature / Опишите ваше предложение
Adding support for Openwrt can go a long way to bypass censorship over various devices connected to a single router

RTFM README!

GoodbyeDPI is Windows-only.
OpenWRT is based on Linux, not Windows.
You can check https://github.com/ValdikSS/GoodbyeDPI#similar-projects for Linux.

You can Just run a windows vm running Goodbyedpi and install a proxy server such as Privoxy then send your clients to the proxy and all the traffic will be filtered by Goodbyedpi.

If you share with us what the program does as open source or share a documentation of what it does from the beginning to the end so that it can be done as an OpenWRT plugin, a new plugin can be written about this topic. With Zapret, you can simulate exactly what this program does and write a more automated GoodbyDPI plugin.


Add Supernatural Quotes API to Video

[x] My submission is formatted according to the guidelines in the contributing guide
[x] My addition is ordered alphabetically
[x] My submission has a useful description
[x] The description does not have more than 100 characters
[x] The description does not end with punctuation
[x] Each table column is padded with one space on either side
[x] I have searched the repository for any relevant issues or pull requests
[x] Any category I am creating has the minimum requirement of 3 items NOT APPLICABLE
[x] All changes have been squashed into a single commit

Thank you!


[WIP] tf.Variable like API for variables

Fixes #170.
Adds a tf.Variable like class, using the new resource API (see here and here).  It's compatible with Eager and Graph mode, and will work better with eager gradient tapes in the future.
A couple of points I'd like feedback on:

Immutability by default.  Most of the time variables are only updated by the optimizer, not by any code users will write, so I think this makes sense.  It's also not hard to access the mutable version (asMutableVariable()).
Auto-scoping operations to the creation scope.  This is the value(), create(), etc. methods that don't take a Scope parameter and use the scope the variable is created with.  While these are certainly much nicer to use, they do muddle the semantics a bit, and if gradient tapes are done via Scope it would probably cause issues (since the tapes need to be notified of variable usage, afaik).  I originally did it this way because shape() depends on value() which needs a scope, although it is possible to just return the variable's initial shape.

isValueInitialized(), which uses IsVariableInitialized, requires a ref tensor, is there any way to get this in the Java API yet?

The immutable (more properly read only) version is somewhat similar to Kotlin's collections.  It's always backed by a mutable version, and may be casted and mutated in most cases, but the mutation APIs are hidden.  So not it's immutable, just a read only view of the mutable variable, semantically.  I do need to update the docs a bit to reflect that.  The idea was since that generally users assigning to a variable will be an error, it should be harder to do and be made more explicit.

Optimizers definitely will need a pass, I originally didn't do it as part of this PR as I wasn't going to use the resource variables, but now that I am I probably should.  I'd like to make it a bit easier to pass in the list of variables to update on rather than using the entire graph, too, for multi-model support (i.e. GANs).
One other thing that came up: I can't use initialization as a control dependency since it would be re-ran each time.  Is there a way to require initialization to have been ran in the session?  You will get an uninitialized error if you don't run it, but I'd like a clearer way (or ideally to run it automatically, like a control dependency, just only once per session).

Currently somewhat blocked by tensorflow/tensorflow#46114, although if/when we add gradient registry ops we could work around it.

Currently somewhat blocked by tensorflow/tensorflow#46114, although if/when we add gradient registry ops we could work around it.

The immutable (more properly read only) version is somewhat similar to Kotlin's collections. It's always backed by a mutable version, and may be casted and mutated in most cases, but the mutation APIs are hidden. So not it's immutable, just a read only view of the mutable variable, semantically. I do need to update the docs a bit to reflect that. The idea was since that generally users assigning to a variable will be an error, it should be harder to do and be made more explicit.

Sure, but that's not how Java's collections work and I think it might be preferable not to leak Kotlin-isms into the Java API used by all the JVM languages. Doesn't python expose these operations to allow updates to epoch numbers, learning rates and similar? I think those would be common use cases we'd have in Java too.

Currently somewhat blocked by tensorflow/tensorflow#46114, although if/when we add gradient registry ops we could work around it.

The lack of this gradient (which presumably just passes straight through) means it's not possible to train any models which contain this variable right?

The immutable (more properly read only) version is somewhat similar to Kotlin's collections. It's always backed by a mutable version, and may be casted and mutated in most cases, but the mutation APIs are hidden. So not it's immutable, just a read only view of the mutable variable, semantically. I do need to update the docs a bit to reflect that. The idea was since that generally users assigning to a variable will be an error, it should be harder to do and be made more explicit.

Sure, but that's not how Java's collections work and I think it might be preferable not to leak Kotlin-isms into the Java API used by all the JVM languages. Doesn't python expose these operations to allow updates to epoch numbers, learning rates and similar? I think those would be common use cases we'd have in Java too.

Currently somewhat blocked by tensorflow/tensorflow#46114, although if/when we add gradient registry ops we could work around it.

The lack of this gradient (which presumably just passes straight through) means it's not possible to train any models which contain this variable right?

The lack of this gradient (which presumably just passes straight through) means it's not possible to train any models which contain this variable right?

Yeah, and it is just a passthrough.

Doesn't python expose these operations to allow updates to epoch numbers, learning rates and similar? I think those would be common use cases we'd have in Java too.

Yeah, true, I'll refactor that.  If/when proper logging is added it would be good to have a warning when variables are mutated when they aren't "supposed" to be (i.e. in the forward pass).

The lack of this gradient (which presumably just passes straight through) means it's not possible to train any models which contain this variable right?

Yeah, and it is just a passthrough.

Doesn't python expose these operations to allow updates to epoch numbers, learning rates and similar? I think those would be common use cases we'd have in Java too.

Yeah, true, I'll refactor that.  If/when proper logging is added it would be good to have a warning when variables are mutated when they aren't "supposed" to be (i.e. in the forward pass).

The lack of this gradient (which presumably just passes straight through) means it's not possible to train any models which contain this variable right?

Yeah, and it is just a passthrough.

Ok, well this needs to go on hold till they fix that upstream then.

Doesn't python expose these operations to allow updates to epoch numbers, learning rates and similar? I think those would be common use cases we'd have in Java too.

Yeah, true, I'll refactor that. If/when proper logging is added it would be good to have a warning when variables are mutated when they aren't "supposed" to be (i.e. in the forward pass).

How would we identify what's a forward pass vs a backward pass? Privileging the target names seems restrictive.

The lack of this gradient (which presumably just passes straight through) means it's not possible to train any models which contain this variable right?

Yeah, and it is just a passthrough.

Ok, well this needs to go on hold till they fix that upstream then.

Doesn't python expose these operations to allow updates to epoch numbers, learning rates and similar? I think those would be common use cases we'd have in Java too.

Yeah, true, I'll refactor that. If/when proper logging is added it would be good to have a warning when variables are mutated when they aren't "supposed" to be (i.e. in the forward pass).

How would we identify what's a forward pass vs a backward pass? Privileging the target names seems restrictive.

Ok, well this needs to go on hold till they fix that upstream then.

Yeah.  I made a PR following the C++ gradient instructions, but it doesn't work.  I'm going to follow up in the mailing list but haven't had time yet.

How would we identify what's a forward pass vs a backward pass? Privileging the target names seems restrictive.

Yeah, I don't know how feasible that is.  It would probably have to be a framework level setting which we shouldn't mix into core.

Ok, well this needs to go on hold till they fix that upstream then.

Yeah.  I made a PR following the C++ gradient instructions, but it doesn't work.  I'm going to follow up in the mailing list but haven't had time yet.

How would we identify what's a forward pass vs a backward pass? Privileging the target names seems restrictive.

Yeah, I don't know how feasible that is.  It would probably have to be a framework level setting which we shouldn't mix into core.

This will change fairly significantly due to #237 (and parts are currently broken), so don't merge it.  However, with https://github.com/tensorflow/tensorflow/pull/46115, the gradient works.

In Metrics and Model, several variables are updated outside of Optimizers.

callbacks.LearningRateScheduler requires a way to update the learningRate in an Optimizer. The original thought was to use Placeholders for this, but if we could use a Variable we wouldn't need to do funny stuff with feeds and changing Tensor values.


aws.upbound.io not found even after installling provider-family-aws provider

kind ProviderConfig of api aws.upbound.io not found even after intallling provider-family-aws provider
provider is installed with warning:
Warning  UnpackPackage  24s (x10 over 4m27s)  packages/provider.pkg.crossplane.io  cannot unpack package: failed to fetch package digest from remote: serviceaccounts "crossplane" not found
Error:
ProviderConfig/universal-crossplane/aws-provider-upbound dry-run failed: failed to get API group resources: unable to retrieve the complete list of server APIs: aws.upbound.io/v1beta1: the server could not find the requested resource
Yaml
apiVersion: pkg.crossplane.io/v1alpha1
kind: ControllerConfig
metadata:
  name: aws-config-upbound
  namespace: universal-crossplane
  annotations:
    eks.amazonaws.com/role-arn: arn:aws:iam::xxxxx:role/K8s-crossplane
spec:
  podSecurityContext:
    fsGroup: 2000
---
apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
  name: provider-family-aws
spec:
  package: xpkg.upbound.io/upbound/provider-family-aws:v0.39.0
  controllerConfigRef:
    name: aws-config-upbound
---
apiVersion: aws.upbound.io/v1beta1
kind: ProviderConfig
metadata:
  name: aws-provider-upbound
  namespace: universal-crossplane
spec:
  credentials:
    source: InjectedIdentity

Duplicate of https://github.com/upbound/universal-crossplane/issues/396, closing this too for now 👍


Update documentation copyright date through 2017.

Coverage remained the same at 90.48% when pulling a09c03f5d4af9436fd0af9fead00a433c2d68c75 on mgrdcm:copyright-2017 into 688034a3e4d4198d58975964b0f0aec2d4404ad3 on django-import-export:master.

Coverage remained the same at 90.48% when pulling a09c03f5d4af9436fd0af9fead00a433c2d68c75 on mgrdcm:copyright-2017 into 688034a3e4d4198d58975964b0f0aec2d4404ad3 on django-import-export:master.

Coverage remained the same at 90.48% when pulling a09c03f5d4af9436fd0af9fead00a433c2d68c75 on mgrdcm:copyright-2017 into 688034a3e4d4198d58975964b0f0aec2d4404ad3 on django-import-export:master.

@mgrdcm thanks


Move to proper organization?

I would be much more motivated to contribute to this project if this weren't just some guy's repo.
Given that I have written most of the code and I seem to be doing already most of the maintenance, I think it would be time to move the project out of a personal repository and into a separate (either already existing or newly created) Github organization.
This would make it clearer that this is a community project, which I think it is by now.
I don't know a suitable existing organization, any ideas?
As for a new organization, https://github.com/python-sound seems to be vacant, any other ideas?

Your tone is profoundly insulting. I am, however, not entirely sure it is meant as such.
Regardless, I am quite proud of what we have accomplished with soundfile, and do not intend to make it a community project.

Dear Bastian,  Dear Matthias,
I think Matthias wants to secure the future of python-soundfile by spreading responsibility to more people and also giving main contributors more of a say.
Much as Bastian  might be happy with others contributing to his project, others might feel that by now they are co-owners of the project.
This is a normal process if you open an activity for more people.  And it is tough on the original project initiator as it involves giving up part of the control and ownership.
I think the two of you should talk in private. If you feel a need I am willing to moderate.  I am neutral and like the software the two of you created.
Kind regards,
Ronald van Elburg

Thanks @RonaldAJ for the offer, I'm available for a private conversation any time.

I think Matthias wants to secure the future of python-soundfile by spreading responsibility to more people and also giving main contributors more of a say.

While I agree that this would be a natural thing to do, this is not at all the reason why I opened this issue. And I don't really strive for more responsibility nor more of a say.

Much as Bastian might be happy with others contributing to his project, others might feel that by now they are co-owners of the project.

I don't feel that. This issue is not about ownership.

And it is tough on the original project initiator as it involves giving up part of the control and ownership.

What I'm suggesting in this issue wouldn't have to change anything about control or ownership.
This issue, for me, is simply about the impression that casual visitors have about this project. Whether they (without looking further into it) think this is the personal project of some guy, or the collaborative effort of a group of people.
But in the end this is @bastibe's free decision, and I can live with it either way.

I think the two of you should talk in private. If you feel a need I am willing to moderate. I am neutral and like the software the two of you created.

Indeed we should probably do that. There seem to be a number of misunderstandings and hurt feelings between the two of us that should be adressed. I would prefer to discuss these in private, and in our native language as well, to avoid miscommunication.
Thank you for your offer to help as well, we might come back to that.

This issue, for me, is simply about the impression that casual visitors have about this project. Whether they (without looking further into it) think this is the personal project of some guy, or the collaborative effort of a group of people.

There might be other avenues for communicating this, however. For example, we could create a professional-looking project website, with a more prominent mention of the project's collaborative nature and its major contributors.
I fully acknowledge, and appreciate, your contributions, @mgeier. Despite any personal misgivings we might have had over the years, I am thankful for all the work you keep putting into soundfile. I hope you know that, and feel the same way.

Judging from your emails I am confident to say:
Ihr schafft das!


College files

escacilhastejo.txt

Please fork SWOT repository, copy file.zip in the root folder of your forked SWOT repository. Then unzip file.zip there with no changes to the directory structure. Then make a new pull request. If you are not able to make the pull request according the instructions, please send us an email to<EMAIL_ADDRESS>Please mention this request URL in the message. I have to close this request without merging. Thank you for your understanding.

root folder? i can't find it..


Add Identity struct/class

This would be a module that extracts Identity from the headers and creates an object that is accessible at  the Thread level - See related #12

Closed via #31


please help me

What is your question?
can you tell me how to make custom window name with lua

    setPropertyFromClass("openfl.Lib", "application.window.title", "Friday Night Funkin: Psych Engine")

plase give me the whole script
where do i put it

Put it in mod/scripts or the data folders of specific songs
Full Script:
function onCreate()
     setPropertyFromClass("openfl.Lib", "application.window.title", "Friday Night Funkin: Psych Engine") --change it to what you want it to be
end

function onDestroy()
     setPropertyFromClass("openfl.Lib", "application.window.title", "Friday Night Funkin: Psych Engine") --dont change this one
end

plase give me the whole script
where do i put it

dont ask for whole scripts, do it urself
what gostar64 said
close this


Enhancement #7208 done

#7208

Add arrow class for status filter.

Please compile the files, Please run the below command before pushing your code.
npm run prod

@amitwebkul
The icon should be slightly bold. please find the screenshot Here

@amitwebkul
This is working fine, Please find the screenshot Here

Resolve conflicts

@amit-webkul
Resolve the conflicts.

@amit-webkul
Resolve the conflicts

@amit-webkul
Getting duplicate commits. please resolved

1. Git fetch --all
2. git reset --hard 38f7cd3
3. git push -u origin filter-ui-issue -f


Add -XX:+CrashOnOutOfMemoryError flag

Sometimes there are OOM errors when memory limits are set,
so by specifying this flag we get:

a readable report of what happened
the pod is restarted instead of leaving the JVM in a broken
state

Signed-off-by: Pierangelo Di Pilato<EMAIL_ADDRESS>

/cc @aliok @matzew

/test unit-tests_eventing-kafka-broker_main

/test unit-tests_eventing-kafka-broker_main


update page-to-alto

which now includes https://github.com/kba/page-to-alto/pull/29 and https://github.com/kba/page-to-alto/pull/32

Thank you!