[bp/1.26] Backport stack (/cont)

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

Looks like there is ci failure

the verify fail is known - not entirely clear cause - kinda low priority as this branch doesnt have long to go
macos fail started recently afaiaa - not sure exactly the issue but non release-critical so pushing past for now


NERDCommenter stopped loading commands

Since the commit dec06b1fb9f529a34a3076d5b221b1fa6afd5967, NERDCommenter is not loading the commands, so I had to install the plugin from the previous commit, like this:
Plug 'scrooloose/nerdcommenter', { 'commit': 'a5d1663' }

Sorry to hear you are having issues. We'd love to get whatever the trouble is resolved again for you (and potentially others). That being said I don't see what the problem is. I and several other people have confirmed that the current changes do work. In dbc631a (not dec06b1) there was a major reorganization and changes to how the plugin loads, but it should also be a drop in replacement.
First (and this is not your real problem) I'll note that the repository location has changed years ago now. Your line should be:
Plug 'preservim/nerdcommenter'

Now on to what the real problem might be... and here I'm clueless because by default it should just load when needed as usual. The bindings and commands are defined as usual in the same file, only the actual code to run some of them has been moved to an autoloader that fetches them on first use.
What exactly do you mean by "not loading the commands"? If you call them what error do you get?
@antonk52 any ideas on this one?

See also #472, which seems to be the same bug. Clearly there is some use case out there that is different than my own (which still works fine).
@Penaz91 Are you sure your ability to :call <function> is gone, or is the tab complete for currently loaded things all that is missing?

The call NERDComment('n', 'Sexy') is done via script and returns the following error:
Vim(call):E117: Unknown function: NERDComment
Also the tab completion is not working either.

I was gonna comment the same, the error returned is the following:
E117: Unknown function: NERDComment
That occurs after cleaning my setup, as well.

It seems that the NERDComment function has been replaced by nerdcommenter#Comment

I think there should probably be a shim function (optionally that throw deprecation warnings) so that the old names can be called and trigger the autoload on first run. It seems that got done for some of the more specific commands already, just missing the generic one. Still looking into this.

Thank you for the issue, this was somewhat expected to break.
A potential fix* to preserve complete backward compatibility would be to define functions with the same name in plugin/*.vim which in turn would call the autoloaded functions ie
function NERDComment()
    return nerdcommenter#Comment()
endfunction

This way the older called functions would still be accessible in globally but would only load the actual code once it is needed.
As for the IsCharCommented, it seems that it was lost in #376 since the earlier commits seem to include it. This should be an easy copy paste from one of the earlier commits.

Thank you very much for your help.
I also think that it would be a good idea to update the help file to reflect the new available interfaces.

Yes that's exactly the sort of shim function I was thinking of. Lets get that in ASAP and then think about how to also add a warning message to it so people know they need to update their own code. For now lets fix the breakage. Are you working on a PR or should I?

I won't be able to get around to create a PR until the weekend, if you have time before that feel free to create the PR

@Penaz91 or @geradbm Any chance you can check out #473 and make sure those fixed work for you? I'm pretty sure that's all the functions that needed shimming since the other ones were (and still are) created with a dynamic map system.
I'll merge soon if I don't hear anything, but I'll poke the docs a bit while I wait for confirmation.

It seems that the shim function NERDComment doesn't handle ranges correctly, while the nerdcommenter#Comment does.

@Penaz91 Interesting catch. I can't figure out how to pass range data through at all. I can do it for a command calling a function (where <f-args> takes care of it) but I can't figure it out for a function calling a function. I've added a deprecation message to the shims and added detection of the range case and upgraded it to an error so at least the failure mode is sensible and people have a clear upgrade path.
I'm tempted to merge that and work on the docs as I can because some shim is better than no shim. What do you say?

Surely a simple shim is better than none, I'm looking around to see how it would be possible to get ranges.
Maybe it's possible possible to memorize the range by using line("'<") and line("'>")?
In case it's not possible, we can still use this shim to "force" people to migrate to the new syntax.

As far as I could find couldn't pass the whole a: or any extra values without messing up the expected arguments of the function in the autoload section. Of course we could setup a parallel function with different arguments or maybe add optional extra arguments, but that seems to be starting to defeat the purpose of setting up the autoload in the first place.
I'd be happy to accept a contribution that makes a more effective shim. For now knowing it is broken for many people I'm going to get us started with this one.


feat: improve design of about page

Description
add some improvements to about page styling
screenshots

it looks so much better! :clap:  :clap:  :clap:


[Bug] On hover, long entity name should show a popover with full name.

Currently, there is no way to see the full entity name of a very long name in entity explorer. A popover that displays the full entity name on hover would be ideal.

has been fixed


Management Console SSO breaks after update

Describe the issue:

After retrieving an update via the WSO2 Updates 2.0 tool from v5.10.0 update level 221 to 229, the carbon management console SSO flow breaks and continues on a redirection loop to the /carbon/admin/login.jsp endpoint. This needs to be fixed.
How to reproduce:

Enable SSO for the management console [1]
Update to update level 229
Try accessing the carbon management console

[1] - https://is.docs.wso2.com/en/5.10.0/learn/multi-factor-authentication-for-wso2-is-management-console/

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!


Uploads are failing

Getting the below error when trying to upload. Initially I thought it's an OSM problem, but I tried another upload via GoMap app and it went through.

Time shown in screenshot is Indian standard time.

Tried again now, 10 mins later, and it went through. Not sure what the issue was.


2 deprecation warnings, 1 documentation issue and 1 semantic issue after update to Firebase 5 / Xcode 9.3.1

Pods/FirebaseUI/FirebaseAuthUI/AccountManagement/FUIAccountSettingsOperation.m:181:37: 'reauthenticateWithCredential:completion:' is deprecated: Please use reauthenticateAndRetrieveDataWithCredential:completion: for Objective-C or reauthenticateAndRetrieveData(WithCredential:completion:) for Swift instead.
Pods/FirebaseUI/FirebaseAuthUI/FUIPasswordSignUpViewController.m:183:14: 'createUserAndRetrieveDataWithEmail:password:completion:' is deprecated: Please use createUserWithEmail:password:completion: for Objective-C or createUser(withEmail:password:completion:) for Swift instead.
Pods/FirebaseUI/FirebaseAuthUI/FUIAuth.m:218:12: Parameter 'signInResult' not found in the function declaration
Pods/FirebaseUI/FirebaseAuthUI/FUIAuthBaseViewController.m:316:61: Block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior

Fixed in e32847a7e7b6a3a9a1072254b2a6268aea2242e9.
Thanks for flagging these!

I think these are actually fixed now, but we got a new one with the latest release:
Pods/FirebaseUI/FirebaseAuthUI/FUIPasswordSignUpViewController.m:179:16: 'createUserAndRetrieveDataWithEmail:password:completion:' is deprecated: Please use createUserWithEmail:password:completion: for Objective-C or createUser(withEmail:password:completion:) for Swift instead.


Croppie result image is 10 times larger than the original image

Issue when the result size is set to original
size:'original'
When getting the resulting crop of the image I did observe that the file size was increased drastically. The size of the cropped image must be obviously lesser than the original file or at least not exceed more than the original file size when no crop is done.
Here is a Jsfiddle to demonstrate the issue. https://jsfiddle.net/hbmbfhff/8/
PS: I have tested this in chrome
Otherwise the plugin is awesome and this is the only issue I found, Also this is a high priority issue for my product.
@thedustinsmith

Looks like the issue is with canvas toDataURL and not related to croppie.

The size of the image is determined mostly by the quality of the encoder built into the browser. It has very little to do with the size of the original image. Once you draw anything onto a canvas all you have are pixels, you no longer have the original image.  toDataURL does not magically reconstitute an image that was painted onto the canvas. If you want a file with the same size as the original image: use the original image

I am now working to see if there is any workaround for having a decent file size after cropping.

So this is what worked for me..
If you look into the documentation information as below

the default png format results in a huge bump in the file size, However changing it to jpeg results in much lesser size than the one produced by png, Also depending on the image quality the jpeg result size can either be less than original or more than original. You can choose the quality of the result as well from the quality property as in the document. Play with values from 0,0.1,0.2.....1 and lock the one works good for you. You can even have the user input the quality range with a slider as well.
I am using a quality of 0.99 which doesn't have any noticeable changes in the final output file but the size is reduced largely.


Gradient accumulation in Training

Hi~
I found model.step() is in the grad_accumulation_steps loop
https://github.com/dvlab-research/LISA/blob/main/train_ds.py#L472
Does this mean the gradient accumulation not work?

Hi, model.step() actually is called by functions provided by deepspeed, and it will automatically updates its parameters every grad_accumulation_steps steps.

Hi, model.step() actually is called by functions provided by deepspeed, and it will automatically updates its parameters every grad_accumulation_steps steps.

Sorry, I still do not understand. Can you explain more about this? Thanks.


The demo project still work?

I implemented the demo, clicked the login button redirects to the CAS login screen, returned to the demo project and still not displaying any information.

"ExampleWebSite" or "ProxyDemoApp"?

I am trying to set up the ExampleWebSite. I gave me this error message
&&&&&&&&&&&&&&&&&&&&&&&&&&&&
The page isn’t redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
This problem can sometimes be caused by disabling or refusing to accept cookies.
&&&&&&&&&&&&&&&&&&&&&&&&&&&&
Can you help me what is wrong on my web.config?
This is the lines I edited in the file:
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
<casClientConfig
casServerLoginUrl="https://login.vcu.edu/cas/login"
casServerUrlPrefix="https://login.vcu.edu/cas/"
serverName="donghai.vcu.edu/CAS1.1/ExampleWebSite/"
............

<forms
loginUrl="https://login.vcu.edu/cas/login"
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
Thanks.

@dhiogoacioli if you feel like updating the example application to get it working, let me know here.  PR's welcome :)


Incorrect cursor pointer displayed on non-functional areas of rejection reason cards

Expected behavior
When hovering over non-functional areas of rejection reason cards (areas without interactive elements), the cursor pointer should display as an arrow, indicating that the area is not clickable or interactive.
Steps to reproduce the issue
Log in to the application with valid credentials.
Navigate to the section containing rejection reason cards.
Hover over the non-functional areas of the rejection reason cards.
Observe that a hand cursor pointer is displayed instead of the expected arrow cursor pointer.
Environment details
App version : V2.1.0
App testing environment : UAT
Additional information
https://jam.dev/c/4fa279df-5672-4d03-a844-3912f2bd2219

Verified and working fine in release v2.7.2. Hence, closing it.


Add the ibm-cloud image to interact with the IBM cloud

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: mkumatag
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [mkumatag]

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

/assign

/cc @sudeeshjohn


buttons in forms prevents submit

Bug Report
Before Naja 3.1.0 it was possible to send form via naja (button without type="submit") and process custom submit event listeners on form.
But now naja prevents all form submissions on every button type except type="button". Is this a good solution? Wouldn't be better if the button only sent new CustomEvent('submit', { cancelable: true }) onto form and let the form submission proceed naturally?
My usecase is that I have submit event listener on form that checks errors like this and prevents submission
https://getbootstrap.com/docs/5.3/forms/validation/ or https://winduum.dev/docs/components/form.html
Or recaptcha submit event listener on form, that checks recaptcha score.
https://cloud.google.com/recaptcha-enterprise/docs/instrument-web-pages#user-action
Naja prevents the form submission on buttons, so these listeners never execute. Current workaround is to use type="button" and add execute custom submit event on form so the events bubble naturally.
Is there any particular reason why naja binds event listeners on form buttons? There is already an event listener on form that listens for submit event?
And yes you could write an extension for validation or recaptcha, but I don't like that solution. You should be able to easy enhance current form functionality with naja without such workarounds.

Is there any particular reason why naja binds event listeners on form buttons? There is already an event listener on form that listens for submit event?

Well, this was/is pretty common practice because the submitter has to somehow get into the data submitted by the (ajx) form, but you're right, Naja does it in a way that makes the standard submit event almost irrelevant.
Although it has a fairly straightforward solution (SubmitEvent.submitter and the submitter parameter of the FormData constructor), it may not be to everyone's liking. It would introduce several BC breaks in the UIHandler), besides I am not able to figure it out without using event delegation – judge for yourself, no polyfills included.
There is quite decent cross-browser support for FormData(form, submitter), and it's really "guaranteed to work in the latest versions of Chromium (Chrome and Edge), Firefox, and WebKit (Safari)" :wink:, for the rest (Chrome/Edge 112<, Safari 16.4<, Firefox 111<) there is a polyfill. If you also need to support Safari 15.4<, there's another polyfill for SubmitEvent.submitter. (Or all together.)
@jiripudil : Should I prepare a PR request or is it a bit too much? I understand that this can be quite controversial, but personally I'd rather put up with a working polyfill of an established standard temporarily than a complex workaround(s) that might have unwanted side effects.

Hi, yep, this is mainly for historical reasons. Today, with SubmitEvent.submitter and FormData(data, submitter) (and form.requestSubmit()) widely available (and polyfill-able if needed), Naja could listen solely to form.submit, and if the form or the submitter matches the configured selector, process the form submission asynchronously.
I might need to think this through more thoroughly, but I think that if UIHandler uses the submitter for the element in the interaction event, this could even come without BC breaks :thinking:

You're right, maybe we can get by with a pretty minimal edit:
UIHandler.ts#L53-L58
if (element.tagName === 'FORM') {
	bindForm(element as HTMLFormElement);
} else {
	const forms = element.querySelectorAll('form');
	forms.forEach((form) => bindForm(form as HTMLFormElement));
}

(Well, it's not exactly ideal, but I can't see a better solution.)
UIHandler.ts#L75-L77
if (event.type === 'submit') {
	const {submitter} = (event as SubmitEvent);
	if ((element as HTMLFormElement).matches(`form${this.selector}`) || submitter?.matches(`button${this.selector}, input[type="submit"]${this.selector}, input[type="image"]${this.selector}`)) {
		this.submitForm(element as HTMLFormElement, options, event).catch(ignoreErrors);
	}

(Of course: I'd avoid that string concatenation here, maybe class property / class properties?)
UIHandler.ts#L116-L121
public async submitForm(form: HTMLFormElement, options: Options = {}, event?: SubmitEvent): Promise<Payload> {
	const submitter = event?.submitter;
	const method = (submitter?.getAttribute('formmethod') || form.getAttribute('method') || 'GET').toUpperCase();
	const url = submitter?.getAttribute('formaction') ?? form.getAttribute('action') ?? window.location.pathname + window.location.search;
	const data = new FormData(form, submitter);

	return this.processInteraction(submitter || form, method, url, data, options, event);
}

I've just released these changes in 3.2.0, thanks for your thoughts and @filiphlm for the PR!


Fix CloseNotifier handling and avoid "the ResponseWriter does not implement CloseNotifier" warnings in logs

A change in #763 to address review comments caused problems. Originally,
instrumentedResponseWriter implemented the CloseNotifier interface, and
would panic if it was wrapping something that did not implement that
interface. This was split into a separate instrumentedResponseWriterCN
type that implements CloseNotifier, so there's a fallback if
instrumentedResponseWriter ever needs to wrap something that does not
implement this interface.
instrumentedResponseWriter's Value method would end up upcasting either
type back to instrumentedResponseWriter, which does not implement the
interface. In effect, instrumentedResponseWriterCN was never visible to
the handler.
This fixes the problem by implementing a wrapper Value method for
instrumentedResponseWriterCN.
cc @docker/distribution-maintainers

Instead of using reflect, you can use %T.

Good point. Fixed.

LGTM

Is it possible to test for this?
On Tue, Aug 18, 2015 at 5:45 PM, Stephen Day<EMAIL_ADDRESS>wrote:

LGTM
—
Reply to this email directly or view it on GitHub
https://github.com/docker/distribution/pull/896#issuecomment-132404483.

I've added a unit test that registers its own handler and checks that it can cast the ResponseWriter that handler gets to http.CloseNotifier.

Lovely jubbly.  LGTM

"Lovely jubbly"

Testing an LGTM alternative :)


Add roles support

Change Summary
Got working implementation of what @JrooTJunior has mentioned in https://github.com/samuelcolvin/pydantic/issues/660#issuecomment-511350570 so far
Before moving on I'd love to know what you think about questions down below and changes in general
Questions

Should roles support nested models?

If they are, what to do if role doesn't exist in sub-models config (should we check somehow that now we exporting a sub-model?)

How it should behave when params included in role also given to export method? Now params specified in role will be overwritten by method params.

Working demo from https://github.com/samuelcolvin/pydantic/issues/660#issuecomment-511350570:
import datetime
from typing import Optional, List

from pydantic import BaseModel

class Article(BaseModel):
    id: int
    label: str
    text: Optional[str]

class User(BaseModel):
    id: int
    login: str
    email: str
    password: str
    first_name: str
    last_name: Optional[str] = None
    articles: Optional[List[Article]] = None
    register_date: datetime.datetime
    last_login: Optional[datetime.datetime] = None

    class Config:
        roles = {
            "self": {"exclude": {"password", "register_date", "last_login"}},
            "admin": {"exclude": {"password"}},
            "public": {"include": {"id", "email", "first_name", "last_name"}}
        }

user = User(
    id=42,
    login="mylogin",
<EMAIL_ADDRESS>    password="hashed secret password",
    first_name="Some",
    last_name="User",
    articles=[Article(id=1, label="foo"), Article(id=2, label="bar")],
    register_date=datetime.datetime.now(),
    last_login=datetime.datetime.now()
)

for role in User.Config.roles:
    print(f'{role}: {user.json(role=role, indent=4)}\n')

Outputs:
self: {
    "id": 42,
    "login": "mylogin",
    "email"<EMAIL_ADDRESS>    "first_name": "Some",
    "last_name": "User",
    "articles": [
        {
            "id": 1,
            "label": "foo",
            "text": null
        },
        {
            "id": 2,
            "label": "bar",
            "text": null
        }
    ]
}

admin: {
    "id": 42,
    "login": "mylogin",
    "email"<EMAIL_ADDRESS>    "first_name": "Some",
    "register_date": "2019-07-25T03:49:59.573446",
    "last_name": "User",
    "articles": [
        {
            "id": 1,
            "label": "foo",
            "text": null
        },
        {
            "id": 2,
            "label": "bar",
            "text": null
        }
    ],
    "last_login": "2019-07-25T03:49:59.573452"
}

public: {
    "id": 42,
    "email"<EMAIL_ADDRESS>    "first_name": "Some",
    "last_name": "User"
}

Related issue number
#660
Checklist

[ ] Unit tests for the changes exist
[ ] Tests pass on CI and coverage remains at 100%
[ ] Documentation reflects the changes where applicable
[ ] HISTORY.rst has been updated

if this is the first change since a release, please add a new section
include the issue number or this pull request number #<number>
include your github username @<whomever>

If they are, what to do if role doesn't exist in sub-models config

I see three ways:

Raise an exception with information about "Nested model {model} doesn't have {role} role" or something like that
Export nested model with all fields
Add "default" role. if custom role is not specified in nested model should use the default. By default "default" include all fields and if "default" is overriden then use this changed default role. Or.. Maybe.. If default is not specified will raise exception but in other cases use this role

leaving this open, but not reviewing yet. I'll give my opinions/suggestions on #660.

closing as per my comments on #660.

@tiangolo , I think fast api would really benefit from this feature. Having different roles and excluding fields based on them is, to me at least, a must have ....


参考图

谢谢你们出色的工作。
后期是否有考虑可以上传参考图的功能？

You mean like ControlNet? or ?

img2img

No official checkpoint will be released in a short time. Sry for that.


🐛 BUG: wrangler pages dev cannot detect compatibility_date from wrangler.toml

Which Cloudflare product(s) does this pertain to?
Wrangler core
What version(s) of the tool(s) are you using?
3.15.0
What version of Node are you using?
18.18.0
What operating system are you using?
Linux
Describe the Bug
Upon running my dev command (wrangler pages dev src), every single time, I'm met with the same "No compatibility_date was specified", despite having it listed in my wrangler.toml as the docs link to. Setting the flag (--compatability-date=...) does silence that pesky warning but it's quite verbose and should be unnecessary.
Please provide a link to a minimal reproduction
https://github.com/rschristian/bug__wrangler-compatibility-date
Please provide any relevant error logs
$  yarn start

yarn run v1.22.19
$ wrangler pages dev src
▲ [WARNING] No compatibility_date was specified. Using today's date: 2023-11-09.

  Pass it in your terminal:
  .```
  --compatibility-date=2023-11-09
  .```
  See https://developers.cloudflare.com/workers/platform/compatibility-dates/ for more
  information.

Compiling worker to "/home/ryun/Projects/tmp/.wrangler/tmp/pages-Jxzdeo/functionsWorker-0.007770138516417946.mjs"...
✨ Compiled Worker successfully
 ⛅ wrangler 3.15.0
-------------------
▲ [WARNING] --local is no longer required and will be removed in a future version.

  `wrangler dev` now uses the local Cloudflare Workers runtime by default. 🎉

⎔ Starting local server...
[mf:inf] Ready on http://<IP_ADDRESS>:8788
[mf:inf] - http://<IP_ADDRESS>:8788
[mf:inf] - http://<IP_ADDRESS>:8788

For what it is worth, I was able to reproduce this.

I have similar issues and I think in wrangler 2 this wasn't the case, just happened when I upgraded to 3

pages dev doesn't currently fully support wrangler.toml, although we're currently working on it (see https://github.com/cloudflare/workers-sdk/pull/5284).


Implemented initBigInt for int64 and uint64

Had some issues when trying to include them in the existing method, but this seems to be working.

Looks good, thanks.


Possible Good First Issues

Hello, we are a group of researchers developing machine learning techniques to locate issues suitable for newcomers, and our model considers the following issues as likely "good first issues":
#4456 #4531 #4638 #4647 #4678 #4679 #4688 #4692 #4697 #4700 #4701
May we recommend you to label them as "good first issue" so newcomers know where to choose?
Thank you!

Thank you. I labelled these but the rest aren't easy:
https://github.com/sindresorhus/refined-github/issues/4456
https://github.com/sindresorhus/refined-github/issues/4531
https://github.com/sindresorhus/refined-github/issues/4700


modal.com

Resolves #113
Upon running python modal_completions.py users can see the actual completions of the input prompt (can be modified in file, however mixins aren't supposed to be run directly and this is an enhancement for llm_mixin.py to potentially support generation from larger LLMs by having the completions done on the cloud instead of your local machine, and modal_completions exists purely for demonstration purposes)
Prerequisites: Please follow the instructions over at modal and generate your api token, before running the aforementioned command to view the completion.
Note that the completion is done only on gpt2 for now since that's the quickest proof of concept, however larger models can be loaded by modifying the gpu type, memory and count. Also, make sure to increase the timeout since the process may take longer (initializing the image as well as the model ON the image)
Additionally, modal_plugin.py is now fairly versatile since we now have an entry point, of sorts for use of multiple generative models. Further enhancements may look something like: adding code inside the complete method for initializing and generating completions on common/famous LLMs such as T5, Bert, etc.
Note also that using GPUs costs money, however every Modal user starts off with a 30 USD balance that they can use to take these GPUs for a test drive. Also note that these GPUs are billed per hour of use.*
Do let me know if you run into any errors.

Note that if the current GPU is busy, there is a queue time (unfortunate downside) and also, loading larger models can be rather slow which is why the process timeout needs to be increased. Luckily, modal timeouts go to a max of 24 hours. Speed is a tradeoff here but at least we can run models and generate completions from the ones with high minimum memory requirements using Modal GPUs.

Excellent work @FFFiend ! What's next?

Well I wanna try to finish off Gisting but I haven't been able to tinker around too much this week.
The problem with Gisting is that the files are dense and interconnected and so whipping up a Modal instance was not so easy, but I think if I spend a while with the file system I can host the entire thing on the cloud with some smart class instances and then we can close that issue for good.


Allows ps to be shutdown and turn up in the same node

this is majorly for cases like

train two models in two jobs with different setup in the same spark application (when using local model, i.e. workers are started in the same process)

write spark unit tests

Good to me. ping @mli can you merge?

ping @mli

ping @mli


<EMAIL_ADDRESS>have Critical security vulnerability

Need to install the following packages:   github:momosecurity/mosec-node-plugin Ok to proceed? (y) y npm WARN deprecated<EMAIL_ADDRESS>Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410

Thank you for your mention


FR: Option to filter out serverless-plugin-warmup invocations

I asked this question in the community call earlier today and was advised to follow up in a more concrete capacity. If this question is better suited as a discussion elsewhere, let me know!
We use serverless-plugin-warmup for several of our functions. The warmup invocations fire every x minutes, and thus fill the invocations dashboard with noise we don't care much about.
It would be fantastic if there was an option to filter out function invocations that were triggered by the warmup event (and potentially other popular events as well).

@r-token thanks for submitting. I don't think we'll accomodate a specific plugin filter in Console, but I'd imagine you could use service or other filtering mechanisms to isolate away these requests. Its worth looking at the trace to see what specific details it has.


[UIAPPS-172] Implement Request Method to Fetch Custom Org Configs in DDClient

Motivation
This PR implements a new DDConfigClient class that adds a new method to fetch custom app org configs.
Changes
Surface DDConfigClient via DDClient.config to allow app developers to call DDConfigClient.getConfig method to fetch configuration values.
Testing
This PR has automated tests.
Releases

Choose one:

[ ] No release is necessary.
If you're only updating examples/documentation, this is likely what you want.
[ ] All packages that need a release have a changeset.

Current dependencies on/for this PR:

master

PR #133   (this PR)

This comment was auto-generated by Graphite.


⚠ Bofrost.be has degraded performance

In 46f3eac, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1751 ms

Resolved: Bofrost.be performance has improved in e8c1067 after 50 minutes.


Update consulting-services.md

Removed confusing language about the adding of geos as requested by Amy Conklin.

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

#sign-off

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


Image, video and audio tags don't have new lines if back-to-back

Newsboat version (copy the output of newsboat -v or the first line of git show): commit 4db46a08c662c291997b2c90cd5593f8b2aab457
Config file (copy from ~/.newsboat/config or ~/.config/newsboat/config): empty
Steps to reproduce the issue:

Add vc.xml.gz as a feed
Open the article

Thanks for the report (and the fix!), but why do you consider the existing behaviour wrong?

It looks a bit odd, but on second thought, perhaps I should've asked before opening.

No, no, it's fine, issues are meant to be opened :) It's just unclear what's bad about the current behaviour.
I think we could add spacing for video and audio, but images seem risky to me. Before emojis became a part of Unicode, emoticons were small images, and it's easy to imagine someone putting a few such emoticons in a row — that's one example where we should render them all in one line. So how about doing this just for video and audio?

I suppose that works

Cool! If you could amend #2104, I'd merge it first thing after the 2.28 release ^_^


Active?

Is this project still active and being maintenanced or do you recommend me something else?

I've made this question 7 days ago. Until now, no response. There are some pull requests that was never applied or rejected. I think that its not active anymore. Theres no mantainer comments on any new opened issue.

I believe that the project is active.
See recent commits: https://github.com/agstudy/rpivot/commits?author=nnajm
Regards.

There are some feature requests on the orb project that was applied on the rpivot. Without a mantainer note, we cannot figure out for sure the evolution path of Orb. RPivot is tagged as BETA. Maybe its an Lab for ORB?

But how come, @marciopaulinocampos, that they are not merged to the master since almost a year ago?

EmilMoe, this project seems to be paused. But the owner seems to be alive. At least we can see moves it elsewhere.

Mrs. in rpivot project, orb.js file has several fixes.
https://github.com/agstudy/rpivot/tree/master/inst/htmlwidgets/lib/orb-1.0.9/
The fixes are in orb.js and not the orb-1.0.9.js.
In orb.css file add the following lines:
.orb .fld-btn .caption div {padding-right:3px;float:left}
.orb .fld-btn .caption .agg-selector div {padding:0px; border:none}

This would be such a shame when this project isn't being managed anymore :(

It seems -we are on our own-.

Enviado do meu iPhone

Em 10 de jan de 2017, às 09:02, nilo de roock<EMAIL_ADDRESS>escreveu:
It seems -we are on our own-.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Well this guy did same with other projects as well..i personally mailed him if he needed any support...but no response..

:(
Let's fork it?

If someone creating fork, let me know. I can help with some new features I developed in orb.

Hi @nnajm,
Thanks for making this great library!
If you have 30 seconds sometime, it would be awesome if you could add collaborators to this repo and the NPM package in order to keep development in one place instead of being scattered all over. The user super-cache-money is currently leading active development here:
https://www.npmjs.com/package/orb-fork
https://github.com/super-cache-money/orb

This question relates to #87 and #50.


Add local address binding to Client

Allows to bind to a certain network interface for the originating client connection.
To be more precise, you bind to a specific IP and OS routing does its thing. The resolving of the actual IP from a Network Interface is on the client application.
What I'm unsure about is the Getters. If provided with null & 0, JVM will turn it into a <IP_ADDRESS> but the port will be allocated by the OS. Is there a way to get the assigned port after the connection is established to update the Client object?

Left a comment.
As for getting the OS-bound address/port when to update the getters, you should be able to call localAddress() on the Channel instance once it has been created.

Actually, the final local address is already exposed by getLocalAddress() in TcpSession, so you don't need to bother updating the Client information.

Sorry for this unintended flood :)
Thanks! I hope you're alright with the annotation dependency.


Update SC TLE Notice

In the Tutorial here, a particularly important note is provided about keeping your SC resource TLE updated. This note should also be on this page.

Note
You will want to periodically update this TLE value to ensure that it is up-to-date prior to scheduling a contact. A TLE that is more than one or two weeks old may result in an unsuccessful downlink.

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

ID: fc004989-f5e7-5360-7d93-4d1f42020fcb
Version Independent ID: 41b85718-24cc-c524-fbd9-e5510d2a642c
Content: Update the spacecraft TLE on Azure Orbital Earth Observation service
Content Source: articles/orbital/update-tle.md
Service: orbital
GitHub Login: @wamota
Microsoft Alias: wamota

@altrivis
Thanks for your feedback! We have assigned the issue to author who will provide further updates.

Issue resolved. #please-close


Hyprland is not smooth

Already reported ? *

[X] I have searched the existing open and closed issues.

Regression?
No
System Info and Version
 System/Version info
Hyprland, built from branch  at commit 0f594732b063a90d44df8c5d402d658f27471dfe  (props: bump version to 0.43.0).
Date: Sun Sep 8 16:48:21 2024
Tag: v0.43.0, commits: 5196

flags: (if any)

System Information:
System name: Linux
Node name: msi
Release: 6.10.8-arch1-1
Version: #1 SMP PREEMPT_DYNAMIC Wed, 04 Sep 2024 15:16:37 +0000

GPU information:
00:02.0 VGA compatible controller [0300]: Intel Corporation TigerLake-H GT1 [UHD Graphics] [8086:9a68] (rev 01) (prog-if 00 [VGA controller])

os-release: NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo

plugins:

======Config-Start======

Config File: /home/mika/.config/hypr/hyprland.conf: Read Succeeded
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=,highres,auto,1

# Exec favorite apps
exec-once = crabbar & hyprpaper
exec-once = sleep 1 && systemctl --user import-environment PATH && systemctl --user restart xdg-desktop-portal.service

# Wayland env vars
env = MOZ_ENABLE_WAYLAND,1
env = QT_QPA_PLATFORM,wayland;xcb

env = XCURSOR_SIZE,32
env = HYPRCURSOR_SIZE,32

# https://wiki.hyprland.org/Configuring/Variables/#general
general {
    gaps_in = 5
    gaps_out = 5
    border_size = 1

    col.active_border = rgb(b8bb26)
    col.inactive_border = rgb(3c3836)

    layout = dwindle
}

opengl {
    nvidia_anti_flicker = false
}

debug {
    overlay = no
}

gestures {
    workspace_swipe = true
}

# https://wiki.hyprland.org/Configuring/Variables/#decoration
decoration {
    rounding = 0

    blur {
        enabled = no
        new_optimizations = yes
        size = 5
        passes = 2
    }

    drop_shadow = true
    shadow_range = 10
    shadow_render_power = 3
    col.shadow = rgba(1d202175)

}

# https://wiki.hyprland.org/Configuring/Variables/#animations
animations {
    enabled = true

    bezier = overshot, 0.05, 0.9, 0.1, 1.05

    animation = windows, 1, 5, overshot
    animation = windowsOut, 1, 7, default, popin 80%
    animation = border, 1, 10, default
    animation = fade, 1, 7, default
    animation = workspaces, 1, 3, default
}

# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
dwindle {
    pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
    preserve_split = true # You probably want this
}

# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
master {
    new_status = master
}

# https://wiki.hyprland.org/Configuring/Variables/#misc
misc {
    force_default_wallpaper = -1
    disable_hyprland_logo = yes
}

cursor {
    no_break_fs_vrr = yes
}

# https://wiki.hyprland.org/Configuring/Variables/#input
input {
    kb_layout = us,ru
    kb_variant =
    kb_model =
    kb_options = grp:alt_shift_toggle
    kb_rules =
    repeat_rate = 50
    repeat_delay = 200

    follow_mouse = 1

    sensitivity = 0 # -1.0 - 1.0, 0 means no modification.

    touchpad {
        natural_scroll = false
    }
}

# https://wiki.hyprland.org/Configuring/Variables/#gestures
gestures {
    workspace_swipe = false
}

# Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
device {
    name = epic-mouse-v1
    sensitivity = -0.5
}

windowrulev2 = float,initialClass:(fzf-runner)
windowrulev2 = center,initialClass:(fzf-runner)
windowrulev2 = size 600 380,initialClass:(fzf-runner)
windowrulev2 = pin,initialClass:(fzf-runner)

# See https://wiki.hyprland.org/Configuring/Keywords/
$mainMod = SUPER # Sets "Windows" key as main modifier

# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, return, exec, kitty -1
bind = $mainMod, i, exec, firefox
bind = $mainMod, q, killactive,
bind = $mainMod, r, exec, kitty -1 --app-id fzf-runner fzf-runner
bind = $mainMod, m, exit,
bind = $mainMod, v, togglefloating,
bind = $mainMod, p, pseudo,
bind = $mainMod, j, togglesplit,
bind = $mainMod, k, fullscreen,
bind = $mainMod, l, exec, bash ~/.config/scripts/bin/lock

# Screenshot binds
bind = $mainMod,     Print,  exec, grim - | wl-copy -n -t image/png; notify-send 'Screensvolumectl hot copied to the clipboard.'
bind = $mainModCtrl, Print,  exec, grim -g "$(slurp)" - | swappy -f -

# Volume binds
bind = ,             xf86audiolowervolume, exec, bash ~/.config/scripts/bin/volumectl -5
bind = ,             xf86audioraisevolume, exec, bash ~/.config/scripts/bin/volumectl +5
bind = ,             xf86audiomute,        exec, bash ~/.config/scripts/bin/volumectl mute

# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d

# Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
bind = $mainMod, 0, workspace, 10

# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4
bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6
bind = $mainMod SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
bind = $mainMod SHIFT, 0, movetoworkspace, 10

# Example special workspace (scratchpad)
bind = $mainMod, S, togglespecialworkspace, magic
bind = $mainMod SHIFT, S, movetoworkspace, special:magic

# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1

# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow

# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules

# Example windowrule v1
# windowrule = float, ^(kitty)$

# Example windowrule v2
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$

windowrulev2 = suppressevent maximize, class:.* # You'll probably like this.

Description
Hyprland is not smooth. Nvidia + intel graphics.
My laptop characteristics.
OS: Arch Linux
CPU: 11th Gen Intel i5-11260H (12) @ 4.400GHz
GPU: Intel TigerLake-H GT1 [UHD Graphics]
GPU: NVIDIA GeForce RTX 3050 Mobile
Memory: 16gb
I have 144hz monitor, but glxgears doesn't show 144fps, but show 40-70fps.
Working only with DRI_PRIME=1 glxgears.
I was running KDE and it was smooth and glxgears was producing 144fps
How to reproduce
I tried fixing this and tried inserting env vars, but nothing worked.
I looked for the same thing, but I couldn't find it.
Crash reports, logs, images, videos
No response

maybe KDE was automatically launching glxgears with your dgpu?

I don't experience this issue, but I just want to point out that even software render gets me
❯ __GLX_VENDOR_LIBRARY_NAME=mesa LIBGL_ALWAYS_SOFTWARE=1 glxgears
8474 frames in 5.0 seconds = 1694.730 FPS
8600 frames in 5.0 seconds = 1719.986 FPS
8679 frames in 5.0 seconds = 1735.652 FPS
8612 frames in 5.0 seconds = 1722.387 FPS
# * doesn't vsync in software

There is no way a reasonably modern intel graphics is so slow it can't get above hundred.

maybe KDE was automatically launching glxgears with your dgpu?

no, it was running on igpu

@vaxerski what u think about this?

I don't. No clue.

I don't. No clue.
Could be power profiles. Can you bump igpu to max clocks?

igpu uses 350mhz, is that not enough?

sounds quite low.

sounds quite low.

Unfortunately I don't know and can't find how to fix it

use tlp or whatever else to force the gpu to run on a "high" or "performace" mode or whatever your igpu calls it

use tlp or whatever else to force the gpu to run on a "high" or "performace" mode or whatever your igpu calls it

I'll give it a try, thanks.

use tlp or whatever else to force the gpu to run on a "high" or "performace" mode or whatever your igpu calls it
I put tlp and everything started working fine, igpu started using 1500mhz

problem solved then? or is there anything else

problem solved then? or is there anything else

Problem solved, thank you ;3


Write a Python program to convert string to dotcase

Description
Write a Python program to convert string to dotcase
Dotcase is a style of writing in which all letters are lowercase and spaces are replaced with periods.
Input  : "hello world"
Output : "hello.world"

How to contribute

Save the solution in program/convert-string-to-dotcase.py file
Add convert-string-to-dotcase.py file in convert-string-to-dotcase folder

!assign


IceDrive integration

What's the Problem?
No response
Solution/Idea
Intergate the Cloud of IceDrive into Files
Alternatives
X
Priorities

Capability
Priority

Integration for IceDrive Cloud
Must

Files Version
<IP_ADDRESS>
Windows Version
Windows 10 21H1
Comments
No response

Icedrive is available via WebDAV


My name

Related issue

What changes does this PR do?
Screenshots (If any)
Questions

Hello, please add your name in alphabetical order.


rustAnalyzer/cargoWatcher token missing window/workDoneProgress/create

The $/progress notifications with token rustAnalyzer/cargoWatcher are not preceded by a window/workDoneProgress/create request. As a consequence, those progress notifications don't appear in the status bar.
On the other hand, $/progress notifications with token rustAnalyzer/startup are preceded by a window/workDoneProgress/create request, so I'm guessing rustAnalyzer/cargoWatcher just needs to be updated to use the same code as from rustAnalyzer/startup.
Editor: Sublime Text
Rust Analyzer version: 7ae247f
Platform: Ubuntu 20.04

@rwols the request was renamed from the proposed window/workDoneProgress/create to window/workDoneProgressBegin when officially released in 3.15. I suspect that that the sublime LSP client needs to be updated.

@Veetaha Does #4407 fix this?

Nope, it partially fixes this problem with rustAnalyzer/startup (which I suspect happens only in our integration tests and not in real-life scenarios). I have some thoughts on how to fix it, but I just need to find time for playing with this.


Godot multiple clients throws error

This happens when two clients locally try connecting to the same remote server. Running a local server is fine.

I encountered this issue occasionally after calling Rivet.matchmaker.lobbies.find. Has it been resolved yet?


Video 89: code broke with flake8 version 5.0.0

The example of video 89 doesn't work anymore with flake8 versions 5.0.0-5.0.2. I confirmed I can get desired behavior with version 4.0.1. The requirements.txt in video 89 lists flake8>=4.0, but to be correct that should be changed to flake8>=4.0<5
To reproduce the breaking change just install flake8 (which will install version 5+):
$ cd videos/089_custom_linting_with_ast
$ flake8 .
There was a critical error during execution of Flake8:
plugin code for `local[MCOD1]` does not match ^[A-Z]{1,3}[0-9]{0,3}$

Expected was no critical error.

Nowhere does local[MCOD1] occur, so my bet's on a bug in flake8.
Some extra information on my actual setup on which I encountered the bug:
$ flake8 --version
5.0.0 (mccabe: 0.7.0, pycodestyle: 2.9.0, pyflakes: 2.5.0) CPython 3.10.4 on Windows

I just realized this may have been a bit too preliminary to report to you. I only now realize that 5.0.0 is only 2 days old, and in fact the authors seem to be in a bit of a desperate patching frenzy as there's been 2 more updates since, the last one one hour ago. Maybe they'll fix it in 5.0.3.

Thanks for bringing this up. The error is because they appear to be enforcing the regex ^[A-Z]{1,3}[0-9]{0,3}$ on the error code. In particular the error code must start with 1-3 letters, but MCOD1 starts with 4 letters. I will raise this issue on flake8's issues page before trying to correct it here as perhaps they may allow 4 letter codes if I ask nicely.

See: https://github.com/PyCQA/flake8/issues/1643

@mCodingLLC Thank you.
I'm sorry to read that you were received so harshly.


Overlapping time values while creating a FieldSet

I'm having an issue while creating a fieldset from my own netCDF files, some time values might be overlapping.
fieldset = FieldSet.from_netcdf(nc_files_list, variables, dimensions)
And I'm given the following error:
Traceback (most recent call last):

  File ~\anaconda3\Lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec
    exec(code, globals, locals)

  File c:\users\marto\documents\universidade\tfg\proba parcels\parcels_arousa1.py:32
    fieldset = FieldSet.from_netcdf(archivos_nc4, variables, dimensions)

  File ~\anaconda3\Lib\site-packages\parcels\fieldset.py:470 in from_netcdf
    fields[var] = Field.from_netcdf(paths, (var, name), dims, inds, grid=grid, mesh=mesh, timestamps=timestamps,

  File ~\anaconda3\Lib\site-packages\parcels\field.py:443 in from_netcdf
    time, time_origin, timeslices, dataFiles = cls.collect_timeslices(timestamps, data_filenames,

  File ~\anaconda3\Lib\site-packages\parcels\field.py:288 in collect_timeslices
    raise AssertionError(f'Please make sure your netCDF files are ordered in time. First pair of non-ordered files: {dataFiles[id_not_ordered]}, {dataFiles[id_not_ordered + 1]}')

AssertionError: Please make sure your netCDF files are ordered in time. First pair of non-ordered files: C:\Users\Marto\Documents\UNIVERSIDADE\TFG\FICHEIROS_AROUSA\hidrodinamicos\MOHID_Hydrodynamic_Arousa_20170901_0000.nc4, C:\Users\Marto\Documents\UNIVERSIDADE\TFG\FICHEIROS_AROUSA\hidrodinamicos\MOHID_Hydrodynamic_Arousa_20170902_0000.nc4

Is there any way I can run my fieldset over overlapping time values? Or shall I modify my netCDF files in order to erase the overlapped values?

Hi @martoconnh, I'm not sure what you mean by overlapping time values. Is your data simply unordered? Or, somehow, your data specifies a range of time values for your velocities? If the former, you could simply load your netcdf files with xarray, perform a sort by time, and then construct the fieldset using the from_xarray_dataset function. If the latter, I've no idea (never seen that before!) but maybe discretise your data? Let me know how you go!

Hi! I will definetely try that, thank you!
Anyway, I'll try to explain better what I was trying to say earlier. I am using a list of netcdf files, each one has dimensions (lat,lon,time) and variables u,v (zonal and meridional velocities). In each file, both latitude and longitude dimensions are the same, but time is variable.
Every day, some real data are collected in order to generate some simulated data for the following 49 hours. In consequence, each file has 49 time values. For instance, file1 has 24h from day 1, 24h from day 2 and 1h from day 3. Then file2 starts with some new data for day 2, so it counts 49 hours since day 2 starts (same with file3 and so on).
Data from day 2 is more precise in file2 than the simulated data from file1 (as the simulation in file2 is based on more recent real data), so I was wondering if there's any way that I can just read data for the first 24 time values (24 hours) in each file.
If not, the only way I can think of to solve this, is to erase the data from the last 25 time values in each file. I'm sorry, it was way more complex than I actually thought in the first place, I should have explained it better earlier.


add support for idn domain .中国

thanks for PR. I'd prefer to use ascii characters for function names - how about WhoisZhongGuo?

Agree. PR has been force updated, thanks.


Add handling for invalid page config

Shows a warning explaining why the export const config is invalid and which page it's from. Might want to also add checking for individual values to make sure they are static but can be done in a follow up PR.
Fixes: #7838

Looks alright! Might want to add in a screenshot to this PR


PR 1.2.2

Now it's ready 4 latest :-)
Thx

ok, still working through my emails after vacation ... will come to that soon
latest please edit in the created branch/PR once done the first change. link to the branch is on topof the PR: "
LausiD wants to merge 2 commits into master from LausiD-patch-4"


[5.5] Skip running benchmarks in nightly toolchain

(cherry picked from commit 19fe81b6272521e96ae872dd834158dfce93f482)

@swift-ci build toolchain macOS


pino-http not working correctly with GraphQL requests

What is the current behavior?
I am able to append a custom header: x-request-id to each log message for REST requests but not for GraphQL requests.
What is the expected behavior?
I should be able to append a custom header x-request-id to each log message for BOTH REST and GraphQL requests.
Sample Code Repo
Instructions are in the README.md of the following repo:
https://github.com/mh377/nestjs-graphql-sample
Additional Information
Logger Configuration:
@Module({
  imports: [
    PinoLoggerModule.forRootAsync({
      imports: [ConfigModule.forRoot({ isGlobal: true })],
      useFactory: async (configService: ConfigService) => ({
        isGlobal: true,
        pinoHttp: {
          level: 'trace',
          redact: configService.get<string[]>('logger.redact.fields'),
          transport: {
            target: 'pino-pretty',
            options: {
              colorize: false,
              singleLine: true,
              levelFirst: false,
              translateTime: "yyyy-mm-dd'T'HH:MM:ss.l'Z'",
              messageFormat: '{req.headers.x-request-id} [{context}] {msg}',
              ignore: 'pid,hostname,context,req,res.headers',
              errorLikeObjectKeys: ['err', 'error'],
            },
          },
        },
      }),
      inject: [ConfigService],
    }),
  ],
  controllers: [],
  providers: [],
})
export class LoggerModule {}

Thanks for reporting. We do not have the resources to support Nest.js users. Please refer to the Nest Discord channel (support) for such questions.


Extract Video Frames

I performed the following tutorial (https://docs.microsoft.com/en-us/azure/azure-video-analyzer/video-analyzer-docs/develop-deploy-grpc-inference-srv), but I would like to have access to some frames of the video that I am dealing with in my algorithm.
Is it possible? I saw that there is the variable Debug but it is not used in the code that you provide. I would love to access to save some local files.

@Ilheu  - can this issue be closed now?

@anilmur Yes it can, thank you for the support!


Release/1.5.0  #763

Status
DEVELOPMENT
Description
Release v.1.5.0 #763
Related PRs
List related PRs against other branches:

[x] #727
[x] #739
[x] #767  autoware_msgs does not depend on jsk_rviz_plugin, cmake and package.x… @dejanpan
[x] #768 Fix/zero division @yukkysaito
[x] #775 support Garmin GPS 18x LVC @kitsukawa
[x] #778 Minor fixes for velocity_set @TomohitoAndo
[x] #780 Feature/multiple crosswalk  @yk-fujii
[x] #784 Feature/enet image segmenter @amc-nu
[x] #787 [hotfix] lidar_tracker package  @amc-nu
[x] #788 Runtime Manager Sensing tab, remove calibrationfile check of GH3 camera @kitsukawa
[x] #790 Fix build error:#789 @andoh104
[x] #791 Feature/release debians 766 @dejanpan
[x] #793 add support for aarch64 #792  @yk-fujii
[x] #797 Fix build error - pointgrey package @aohsato
[x] #799 Feature/put obstacle @TomohitoAndo
[x] #800 update nvidia-docker version @colinsung
[x] #804 Feature/web ui @hiro-ya-iv
[x] #805 add map_extender @kitsukawa
[x] #808  Feature/Decision maker @yk-fujii
[x] #806 Runtime Manager, modify update_func() @kondoh2

Todos

[x] Tests

this is one heck of a new release, great job everyone!

I suggest to also annouce it on slack and autoware google group.

sorry............
I will release it as 1.5.1 including some bugfixes.

@kitsukawa @amc-nu
I have created PR(#816) for version 1.5.1.
Please check it.


Vitess Support

Currently trying to use skeema with a planetscale database running 8.0.34-Vitess and getting the following error.
2024-08-19 23:13:38 [ERROR] Skipping xxxx: Unable to fetch schema steamsets from aws.connect.psdb.cloud:3306: Error querying information_schema.routines for schema xxx: Error 1105 (HY000): syntax error at
                            position 37

I assume this is because vitess is not supported thus I was wondering if support for this is planned.

Not supported as per documentation on proxies/middleware that manipulate result sets, and won't ever be implemented under any circumstances.


Raw SELECT queries return BigInt IDs instead of Int starting at 4.4.0

Bug description
Raw SELECT query returns BigInt IDs instead of Int which (again) crashes my app unexpectedly and unpredictably.

How to reproduce
See schema and code samples below.
Expected behavior
Since I declared ID as unsigned integer I'd like to see integer in the result set (and not BigInt).
Prisma information

generator client {
  provider = "prisma-client-js"
}

datasource db {
  provider = "mysql"
  url      = env("DATABASE_URL")
}

model Tag {
  id                      Int             @id @default(autoincrement()) @db.UnsignedInt
  name                    String          @unique
  @@map("tags")
}

1) Correct case
const = await prisma.tag.findMany();

Returns IDs as Int (as declared in the schema):
[
 {
      id: 1,
      name: 'united states of america',
 }
]

2) Erroneous case
const tags = await prisma.$queryRawUnsafe(`select id, name from tags`)

Returns IDs as BigInt:
[
 {
      id: 1n,
      name: 'united states of america',
 }
]

Environment & setup

OS: Ubunu 22.04
Database: mariadb:10.7.5 (Docker)
Node.js version: node:16-alpine (Docker)

Prisma Version
The latest working version is 4.3.1.
It breaks starting from 4.4.0 and above including the latest one.

Can confirm using provided schema and code snippet.

Same on my side, casting for now with Number(row.id)

Any news on fixing this issue ? We are still stuck in versions < 4.4.0 due to this and even though there's a workaround it would take significant time to make sure everything is properly manually casted on our side without breaking anything.

This only applies to @db.UnsignedInt, correct?

@janpio

This only applies to Int @db.UnsignedInt, correct?

I don't think so. I think it applies to all Ints but I didn't check.

(Internal note: Re-confirm which column types this affects.)

Confirmed this happens for UnsignedMediumInt and UnsignedInt.


Add ability to control console output logging

It introduces a switch that allows to force enable or force disable logging output to console, regardless whether it's a debug build.
On osu! side it will introduce a control in debug settings section.

While this PR on its own doesn't look harmful, I'm curious to hear what you require this for? reading logs from the logs folder of the game is always better than console output anyways. Console output is usually for quick log checking during debug builds, and may eventually be limited when too much is outputted to console.

For example, when an error occurs, it's easier to just look at console output instead of opening the logs every time

It this something you plan to use in one of your own projects?

In nothing specific, except for adding a corresponding control in osu settings. It's generally to aid help in debugging whenever something happens in Release versions.

I'm not sure about adding this in osu!, which is why I am asking. Console output can add performance concerns (most consoles use GPU rendering, so if output is high it may lead to user issues which they then pin on us).
Will wait for more opinions if that is the goal.

Console output can add performance concerns (most consoles use GPU rendering, so if output is high it may lead to user issues which they then pin on us)

That's the reason it can be toggled, with Default value being the default, which acts like the original implementation does.
If you don't want to add this to osu!, I'm fine with that, just asking for opinion.

If anything, I'd probably see this as command line setting. No need for it to be in the config. Even if it was in the config, a UI option like this would strictly not be added because it is confusing to a user and not applicable to the 99.9999999%.


Ensure if we were not handed a testedApk that we will use the testPackage

This change ensures we're using the testPackage if testedApk as passed in does not exist.
We can have this situation, when we are trying to run Android Library Tests which do not produce a main APK.
Without this fix a NullPointerException occurs as described in #14
Please review @appwiz @ahawker or whoever is in charge of this repository now.

Merged - thanks!

@appwiz Thanks! Any chance you can push out a new release for this then? I'll need this in a project.

@appwiz Would you be able to push out a new release for this soon?  Thank you!


Migrating to Go modules

Are there any plans to migrating this project to using go modules?
The reason I am requesting it is that it would make it easier to manage dependence when contributing.  Additionally since this package doesn't appear to be utilizing any other dependence manager migrating it to a single go module should be a simple change.

Yes, this is something that I'd like to do.
In the process of doing so, I'd like to also drop gopkg.in—which means we'd need to support multiple major versions. My understanding is that we'd follow the basis process outlined in Releasing Modules (v2 or Higher).

Would you mind if I grab this issue? :)


outputFolders -> outputHashGlob

There may be cases where there are overlaps between the folder from hashGlob and outputFolder - for example, we generate these .scss.ts files.

I'm not sure I understand. Do you want to use a glob to express outputFolders?

So, we have this scenario in our world... I know it's not ideal, but we are not that unique :)
We transpile from .scss files to .scss.ts files via a build step so that we wouldn't need people to have a sass-loader to consume our library while letting our own devs work as if we had that capability. So, we generate /src/**/*.scss to /src/**/*.scss.ts files then we transpile. I am not sure if this belong in the outputFolder - things that are "intermediate"... but to be more correct, backfill should account for those as well I think. And so, I wouldn't want the entire /src folder to be inside the output, but the /src/**/*.scss.ts should be

Could you check in these intermediate files? We've done that for some generated code that needs to live in the /src folder.


Added Storybook for test component

##Related Issue
This PR fixes https://github.com/leopardslab/react-email/issues/4

Checklist:
My code follows the code style of this project.

@charithccmc can you please review this?


Try Maven 4.0.0-alpha-4

https://maven.apache.org/docs/4.0.0-alpha-2/release-notes.html
https://maven.apache.org/docs/4.0.0-alpha-3/release-notes.html
https://maven.apache.org/docs/4.0.0-alpha-4/release-notes.html

No big issues with 4.0.0-alpha-4.
Still need to fully scan all changes, but -pl being recursive by default will probably require some adjustments:

https://issues.apache.org/jira/browse/MNG-6981
https://issues.apache.org/jira/browse/MNG-7102
https://issues.apache.org/jira/browse/MNG-7112

alpha-5 is out: https://maven.apache.org/docs/4.0.0-alpha-5/release-notes.html

Note: If Maven 3.x backward compatibility cannot be provided, which probably means maintaining two active GIB branches/release lines, then dropping support for Java < 17 might make sense in the Maven 4 branch: https://issues.apache.org/jira/browse/MNG-8061

More things to check (Maven 4.0.0-alpha-9..13):

https://issues.apache.org/jira/browse/MNG-7983 "Update to Slf4j 2.x"
https://issues.apache.org/jira/browse/MNG-7954 "Provide a cleaner DI api"
https://issues.apache.org/jira/browse/MNG-7977 "Do not resolve projects outside the reactor (revert MNG-1088)"
https://issues.apache.org/jira/browse/MNG-8021 "The user properties and system properties on session should be immutable"
https://issues.apache.org/jira/browse/MNG-8037 "Restrict project to the entity being built and make it immutable"


(654) Use GitHub environment rather than repository secrets

Changes in this PR
This avoids the limit of 100 repository secrets that we just ran into.
By specifying the environment within the Github Action job, only the variables within that Github environment will be made available.
Given that the environment can only be declared at the top of a job, we move  our 4 deployment proceses from job steps into individual jobs.
I've tested this on the reserch environment. I've removed all RESEARCH keys from the repository secret list and added them all into the environment called research. You can take a peek inside this deployment that the deploy job still gets all the environment variables as previously configured.
The same APP_ENV_RESEARCH_ prefix is still used even though this change introduces isolation of secrets so that each job should only get ENV for that environment. It is possible that these prefixes could be removed in future but we would need to do more investigation into the Terraform deployment process that does complex key parsing in order to pass the variables to the newly deployed containers.
I'll leave the rest of the environment variables on staging, production and preview unchanged until this proposal is reviewed. Once we're happy I'll change the rest of the variables from repoistory variables before we merge.
Screenshots of UI changes
Before

After

Next steps

Preview, staging and prod have had their secrets moved into environment secrets. Testing staging deploys OK still and then the next step will be to deploy to main before we're done 🎉


Fabric operator console cannot start

What happened?

Seems console read wrong config
Here DB_CONNECTION_STRING
http://couchdb:Ahrl?+6HY,n{fT/8&mzVGOjpQsC9K5PWiX*DL71aB#bR0FxEc^3NMqk4Uduw@2SJ@console-fabric-operations-console--couchdb:5984

What did you expect to happen?
Run successfully
How can we reproduce it (as minimally and precisely as possible)?
openssl genrsa -out ca.key 2048
openssl req -x509 -new -nodes -days 365 -key ca.key -out ca.crt -subj "/CN=console"
kubectl create secret tls console-tls-secret --cert=ca.crt --key=ca.key
kubectl get secrets
export CONSOLE_PASSWORD="admin"
export TLS_SECRET_NAME="console-operator-tls"
kubectl hlf console create --name=console --namespace=default --version="v1.0.5-30" --image="ghcr.io/hyperledger-labs/fabric-console"
--admin-user="admin" --admin-pwd="$CONSOLE_PASSWORD" --tls-secret-name="$TLS_SECRET_NAME"
Anything else we need to know?
No response
Kubernetes version

# kubectl get nodes -o wide

The log from couchdb pod is very clear that it says it has no _userdb then we need to create one in order to start console. But I found a litle bit weird that the couchdb had no admin account so that we cannot access to couchdb api to create new db. I have looked at the source code and find the account of couchdb image is couchdb/couchdb but this account has not work at all. Have no idea what is going on. The file log.ini inside couchdb pod has a line ;admin=mysecretpassword, this exactly the admin account but it is commented and cannot be use.


[Feature] Add command for loading/running commands from file

This is a stepping stone to being able to load and save search state.
This should operate similarly to .septum/.config files where commands are run, line-by-line as if they were typed:
For example, source my_commands_to_run might result in:
> clear-dirs
> clear-filters
> add-dirs C:/dev/my_project/
> add-dirs C:/dev/other_library/
> only-exts c h

Appropriate error messaging should be provided for when a command file cannot be run.
Unable to run commands from my_commands_to_run - file does not exist.

[ ] Files being sourced should not be able to create a cycle, resulting in infinitely sourcing.

Added in 3e49afd23025b720c39980bfa3da27be1516d2c2.
Tracking infinite cycles issue in #32


convert Vec<[u8]> to JsValue

I am using fetch in combination with bincode. As bincode::deserialize expects a byte array and bincode::serialize creates a byte array. To do this I currently use the following code:
let data = bincode::serialize(content).unwrap()
opts.body(Some(&JsValue::from_str(unsafe { std::str::from_utf8_unchecked(data) })));

Is there a better way to do this?

Currently there's not a great way to do this inline in Rust, but it's covered by https://github.com/rustwasm/wasm-bindgen/issues/811 so I'm going to close this in favor of that. Thanks for the report though!


merge package from arlac77/npm-package-template

package.json

chore(package<EMAIL_ADDRESS>chore(package<EMAIL_ADDRESS>

Codecov Report

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

@@            Coverage Diff             @@
##           master     #512      +/-   ##
==========================================
+ Coverage   71.11%   71.85%   +0.74%
==========================================
  Files           1        1
  Lines         135      135
==========================================
+ Hits           96       97       +1
+ Misses         39       38       -1

Impacted Files
Coverage Δ

src/service-consul.js
71.85% <0%> (+0.74%)
:arrow_up:

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 f9098ba...a6b44f6. Read the comment docs.

Coverage increased (+0.5%) to 65.775% when pulling a6b44f64016d9cc3bc1190f2adc50fe2c1dd9e5c on template-sync-1 into f9098ba286411e1c8584423029892f14d3162e47 on master.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Implement uncertainties in the brightness profile function(s)

Finally getting around to this.
Should be as simple as finding average counts, square rooting, then dividing by exposure time and area. It will mean a slight rejig of how the function works, because I'll have to sqrt the actual counts, not count rate map, but I can't imagine it'll be too bad.
Consider raising an issue on the pyproffit github about their error calculation - the squaring of time is strange to me.

Right so the first pass - I've made an "uncertainty map", and I don't quite know if its valid.
Basically I take the combined image, square root all of the pixels (this gives the poisson error on the number of counts because I'm treating each pixel separately), then I divide by the combined exposure map giving the uncertainty on count rate for each pixel. Lo, we have a count rate uncertainty map.
Then, I treat it exactly the same as the ratemap in terms of applying masks - then to find the uncertainty I add the pixels of the error map (for a given annulus) in quadrature, then divide by the area just as I do for the actual ratemap.
As I said, I don't know how valid this is - the other approach would be to find the average number of counts in a given annulus, square root that to get the count uncertainty, average the exposure in the annulus and divide by that, then divide by the area.

Also the uncertainty map is generated before any background subtraction, so there's that to consider as well.

There is also rebinning to consider, for now I'll just add the errors in quadrature when bins are combined?


add pptx to supported file format and add backlink to smartfile

README.rst maybe fixed on PyPI.

Thanks Hans!


ExecuteSet: lastId equals -1 when changes is 0

Describe the bug
When I try to run executeSet on Android when there are no changes I get an error. If there are changes when inserting  the method runs successfully. If I try to run the same code on iOS I do not get an error.
Error:
Error: ExecuteSet: lastId equals -1
Result on android:
{"changes":{"lastId":0,"changes":-1}}
Result on iOS:
{"changes":{"lastId":0,"changes":0}}
To Reproduce
Steps to reproduce the behavior:

Insert items with executeSet
Insert the same items with executeSet

Expected behavior
When running executeSet with the same items I do not expect to get an error.
Desktop (please complete the following information):

OS: macOS
Browser [e.g. chrome, safari]
Version: 11.6.3

Smartphone (please complete the following information):

Device: Oneplus 6
OS: Android 11 (Custom rom, Lineage OS)
Browser: Chrome

@koen20 Can you share your executeSet statements ?

@jepiqueau I used the same query as #220 . I also used a where clause so there are no changes when inserting.

@koen20  it could not be the same as @bkostjens mention that it was working on android and not on iOS which i can confirm. If i look at the code when lastId = -1 an Error message lastId equals -1 is returned.
So can you show me your code as i do not know how you get {"changes":{"lastId":0,"changes":-1}}

When you comment outline 381 in  Database.java:
throw new Exception("lastId equals -1");
the problem is solved. Basically similar problem as on iOS. In Android the lastID is set to -1 as default value in executeSet and it looks like it is not set to 0 when there are no changes, but will still have the value -1 which causes it to throw.

@bkostjens
line 381 of Database. java
throw new Exception("lastId equals -1");

which is catch by lines 533-535 of CapacitorSQLite.java
                } catch (Exception e) {
                    throw new Exception(e.getMessage());
                }

which is catch by lines 653-657 in CapacitorSQLitePlugin.java
        } catch (Exception e) {
            String msg = "ExecuteSet: " + e.getMessage();
            rHandler.retChanges(call, retRes, msg);
            return;
        }

with the retRes object initialize line 618 in CapacitorSQLitePlugin.java
retRes.put("changes", Integer.valueOf(-1));

so in javascript it is returned
res = {changes: {changes:-1}, message:"Error: ExecuteSet: lastId equals -1"}
so i do not see how you can get
{"changes":{"lastId":0,"changes":-1}}

I'll double check to see what the exact debug output is, however: basically android has the same issue as iOS: when not updating or inserting any records while calling executeSet you'll get an error (error differs per platform).

@bkostjens I am waiting your feedback before releasing the new version fixing the issue#220 that i can reproduced and fixed but i could not reproduce yours

#220 was created by me, #221 by a collegae of mine (@koen20). I'll provide more feedback in here about the Android problem asap. Thanks so far for your quick responses!

Ok, I logged the exact messages:
2022-02-08 11:43:04.682 6589-6660/xxx V/com.getcapacitor.community.database.sqlite.RetHandler: *** ERROR ExecuteSet: lastId equals -1
2022-02-08 11:43:04.682 6589-6660/xxx D/Capacitor: Sending plugin error: {"save":false,"callbackId":"47769535","pluginId":"CapacitorSQLite","methodName":"executeSet","success":false,"error":{"message":"ExecuteSet: lastId equals -1"}}
2022-02-08 11:43:04.717 6589-6589/xxx E/Capacitor/Console: File: webpack-internal:///./src/services/SyncService.ts - Line 153 - Msg: Error: ExecuteSet: lastId equals -1```

When looking trough the source code it seems caused by the lastId being set to -1 initially, and it will never get updated as there are no changes. Maybe set it to 0 initially will fix this?

I just noticed that I included the wrong result for Android. It should have been
{"changes":{"lastId":-1,"changes":0}}
Sorry about that.

@koen20 This should have been fixed in 3.4.0-1 Can you test and revert to me

Seems to work fine now, but I'm not able to test on a real device at this moment. Maybe wait for @koen20 to verify this as well.

I tested it on a real device and it works. Thanks


Object.setPrototypeOf() is a performance killer

https://github.com/nx-js/core/blob/12250efa3d03fd41e8c294f76792ceb10c563146/src/registerRoot.js#L28-L29
Hi, I read the article Writing a JavaScript Framework - The Benefits of Custom Elements. And I have been thinking about the use of Object.setPrototypeOf() which is a performance killer.
Why could you not use Object.create() ? What would be missing if you used Object.create()?

Maybe with something like this you could get rid of the Object.setPrototypeOf() and still have the right constructor be executed on instanciations:
var parent = HTMLElement;
var RootElement = function() {
    console.log("Executing RootElement ctor.");
    return Reflect.construct(HTMLElement.constructor, [], RootElement);
};

// Used to make the new class extends its parent:
var protoChainingProxy = function() { }; // This function can actually be reused or cached, it doesn't have to be re-created each time.
// Prepare prototype chaining to the parent:
protoChainingProxy.prototype = parent.prototype;
// Make the prototype's chain from RootElement to it's parent:
var proto = RootElement.prototype = new protoChainingProxy;
proto.constructor = RootElement;	// This is not required, but is good conduct and might be expected from other libs

console.log(RootElement);
console.log(new RootElement());
console.log(new RootElement() instanceof HTMLElement); // true

Copy-paste in your js console to test it.


SQL database: included_columns option

Tell us what you do here

improving, documenting, or customizing an existing source (please link an issue or describe below)

Short description
This adds included_columns option for sql database ( I would have named it columns but that was conflicting with the $COLUMNS shell variable in config resolution)
Can be set with argument or config in in the standalone resource, and with config in the database source, e.g.:
[sources.sql_database.campaign]
included_columns = ["id", "name", "created_at", "updated_at"]

Related Issues
One part of https://github.com/dlt-hub/verified-sources/issues/531#issuecomment-2267646842
The query editing callback I would do in another PR

@rudolfix please check the updated version and let me know if any other changes needed


Doesn't build with Babel 6

Any plans on supporting it?

What's the error?
npm package ships with built code which doesn't require Babel 5 or 6.

Sorry, it looks like it's my bad — I've just reinstalled back Babel 6, and everything works like a charm, even with rm -rf node_modules. Before there was an error about not finding some helper modules in babel-core (haven't copied it then).
Sorry for bothering.


Updates to direct simulation

This PR involves several small updates and corrections to the DirectSimulation object.

[x] Rates and fluxes now use engine.snapshot_timestep (if available) to get correct time/units, instead of returning numbers based on number of snapshots. Number of snapshots is a fallback when snapshot_timestep isn't available.
[x] Correction to multiple state rate calculation. Previous calculation was only correct for 2-state systems.
[x] Update to use .name of volumes for labels in pandas objects (this is the problem with using callables as column/index labels in recent versions of pandas)

Passes tests; ready for review!

Looks good. Merging...


Idea for train jams...

Would it be possible to remove trains 'from the grid' when they exit the map borders, allowing multiple trains to occupy the same space?
The problem with train jams at edges of map seems to be something to do with them waiting to get to an invisible station off the edge of the map... In theory removing them from grid, like you do with hearses while making a collection, would work around the problem of trains not despawning properly when leaving map...?

I can just despawn them completely. How do I detect when a train is on the
edge of the map?
On Sun, Jun 7, 2015 at 11:22 PM aubergine10<EMAIL_ADDRESS>wrote:

Would it be possible to remove trains 'from the grid' when they exit the
map borders, allowing multiple trains to occupy the same space?
The problem with train jams at edges of map seems to be something to do
with them waiting to get to an invisible station off the edge of the map...
In theory removing them from grid, like you do with hearses while making a
collection, would work around the problem of trains not despawning properly
when leaving map...?
—
Reply to this email directly or view it on GitHub
https://github.com/arislancrescent/CS-SkylinesOverwatch/issues/4.

I have no idea how to detect when they are outside or on edge of map, or how to determine if they are currently moving towards or away from the user owned area of the map when they are at or off the edge of the map :/ Also I have a hunch that they'll need to arrive at the 'invisible station' off-map to deliver their cargo.

Ok. Then I'll have to do some research and see how to approximate this. On
the other hand, I am looking to shorten the wait period before despawning.
The setting right now is too long. That could very well solve the problem
you are talking about.
On Mon, Jun 8, 2015 at 3:52 PM aubergine10<EMAIL_ADDRESS>wrote:

I have no idea how to detect when they are outside or on edge of map, or
how to determine if they are currently moving towards or away from the user
owned area of the map when they are at or off the edge of the map :/ Also I
have a hunch that they'll need to arrive at the 'invisible station' off-map
to deliver their cargo.
—
Reply to this email directly or view it on GitHub
https://github.com/arislancrescent/CS-SkylinesOverwatch/issues/4#issuecomment-110003023
.


can't open ZotLit in obsidian

when I try to load the ZotLit plugin in obsidian, then obsidian is crushed. How should I solve this problem, thanks

update obsidian install version to latest, or download latest obsidian installer

obsidian version 1.7.7
The electron (electron: 28.2.3, module version: 119) in current version of obsidian is not supported by zotlit, please reinstall using latest obsidian installer (.exe/.dmg/...) from obsidian.md

obsidian version 1.7.7
The electron (electron: 28.2.3, module version: 119) in current version of obsidian is not supported by zotlit, please reinstall using latest obsidian installer (.exe/.dmg/...) from obsidian.md

your install version is 1.5.11! , you can uninstall completely, then reinstall lateast obsidian. Make sure that the install version >= 1.6.7.


bug: "Too many open files" reported by all fluentbit pod

Describe the issue
Hi FluentBit developers, thanks for building this awesome operator!
I was following the guide to set up fluentbit and stream logs to kafka. The operator bring up the fluentbit daemon set but I find that each fluentbit process keeps restarting and reporting
...
level=info msg="backoff timer done" actual=1m4.0014963s expected=1m4s
level=info msg="Fluent bit started"
Fluent Bit v1.8.11
* Copyright (C) 2019-2021 The Fluent Bit Authors
* Copyright (C) 2015-2018 Treasure Data
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
* https://fluentbit.io

[2023/07/28 16:19:05] [ info] [engine] started (pid=64)
[2023/07/28 16:19:05] [ info] [storage] version=1.1.5, initializing...
[2023/07/28 16:19:05] [ info] [storage] in-memory
[2023/07/28 16:19:05] [ info] [storage] normal synchronization mode, checksum disabled, max_chunks_up=128
[2023/07/28 16:19:05] [ info] [cmetrics] version=0.2.2
[2023/07/28 16:19:05] [error] [lib] backend failed
[2023/07/28 16:19:05] [error] [plugins/in_tail/tail_fs_inotify.c:305 errno=24] Too many open files
[2023/07/28 16:19:05] [error] Failed initialize input tail.0
level=error msg="Fluent bit exited" error="exit status 255"
level=info msg=backoff delay=2m8s

and when I check kafka I find no logs streamed to it.
To Reproduce
Follow the guide.
Expected behavior
All fluentbit processes should successfully stream the log to kafka.
Your Environment
- Fluent Operator version: `kubesphere/fluent-operator:v1.0.2`
- Container Runtime: `containerd://1.6.19-46-g941215f49`
- Operating system: `Ubuntu 22.04.2 LTS`
- Kernel version: `5.10.76-linuxkit`

My env is a kind cluster with 1 control-plane node and 3 worker nodes running on a Macbook

NAME                 STATUS   ROLES           AGE   VERSION
kind-control-plane   Ready    control-plane   17m   v1.26.3
kind-worker          Ready    <none>          16m   v1.26.3
kind-worker2         Ready    <none>          16m   v1.26.3
kind-worker3         Ready    <none>          16m   v1.26.3

### How did you install fluent operator?

By running https://github.com/kubesphere-sigs/fluent-operator-walkthrough/blob/master/deploy-fluent-operator.sh

### Additional context

_No response_

@marshtompsxd The version in the walkthrough is old, I suggest to install the latest fluent operator and the latest fluentbit https://github.com/fluent/fluent-operator#deploy-fluent-operator-with-helm

Hi @benjaminhuo Thanks for your reply.
I tried to install v2.4.0 operator and use v2.1.7 fluentbit but the same error happens
level=info time=2023-07-28T17:47:18Z msg="backoff timer done" actual=2m8.0001472s expected=2m8s
level=info time=2023-07-28T17:47:18Z msg="Fluent bit started"
Fluent Bit v2.1.7
* Copyright (C) 2015-2022 The Fluent Bit Authors
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
* https://fluentbit.io

[2023/07/28 17:47:18] [ info] [fluent bit] version=2.1.7, commit=e70a93cfdb, pid=45
[2023/07/28 17:47:18] [ info] [storage] ver=1.4.0, type=memory, sync=normal, checksum=off, max_chunks_up=128
[2023/07/28 17:47:18] [ info] [cmetrics] version=0.6.3
[2023/07/28 17:47:18] [ info] [ctraces ] version=0.3.1
[2023/07/28 17:47:18] [ info] [input:tail:tail.0] initializing
[2023/07/28 17:47:18] [ info] [input:tail:tail.0] storage_strategy='memory' (memory only)
[2023/07/28 17:47:18] [error] [/src/fluent-bit/plugins/in_tail/tail_fs_inotify.c:347 errno=24] Too many open files
[2023/07/28 17:47:18] [error] [lib] backend failed
[2023/07/28 17:47:18] [error] failed initialize input tail.0
[2023/07/28 17:47:18] [error] [engine] input initialization failed
level=error time=2023-07-28T17:47:18Z msg="Fluent bit exited" error="exit status 255"
level=info time=2023-07-28T17:47:18Z msg=backoff delay=4m16s

And interestingly, when I run in a kind cluster with a single node
kind-control-plane   Ready    control-plane   6m13s   v1.26.3

then the error disappears
[2023/07/28 18:01:27] [ info] [fluent bit] version=2.1.7, commit=e70a93cfdb, pid=17
[2023/07/28 18:01:27] [ info] [storage] ver=1.4.0, type=memory, sync=normal, checksum=off, max_chunks_up=128
[2023/07/28 18:01:27] [ info] [cmetrics] version=0.6.3
[2023/07/28 18:01:27] [ info] [ctraces ] version=0.3.1
[2023/07/28 18:01:27] [ info] [input:tail:tail.0] initializing
[2023/07/28 18:01:27] [ info] [input:tail:tail.0] storage_strategy='memory' (memory only)
[2023/07/28 18:01:27] [ info] [filter:kubernetes:kubernetes.0] https=1 host=kubernetes.default.svc port=443
[2023/07/28 18:01:27] [ info] [filter:kubernetes:kubernetes.0]  token updated
[2023/07/28 18:01:27] [ info] [filter:kubernetes:kubernetes.0] local POD info OK
[2023/07/28 18:01:27] [ info] [filter:kubernetes:kubernetes.0] testing connectivity with API server...
[2023/07/28 18:01:27] [ info] [filter:kubernetes:kubernetes.0] connectivity OK
[2023/07/28 18:01:27] [ info] [output:kafka:kafka.0] brokers='my-cluster-kafka-brokers.kafka.svc:9092' topics='fluent-log'
[2023/07/28 18:01:27] [ info] [sp] stream processor started
[2023/07/28 18:01:27] [ info] [input:tail:tail.0] inotify_fs_add(): inode=920028 watch_fd=1 name=/var/log/containers/coredns-787d4945fb-8hl87_kube-system_coredns-2f5c52d0e736ad1f9da7d5b42c006fdf42ad43ff23d6c54dac26d94d35fe8e84.log
[2023/07/28 18:01:27] [ info] [input:tail:tail.0] inotify_fs_add(): inode=920033 watch_fd=2 name=/var/log/containers/coredns-787d4945fb-wvmfs_kube-system_coredns-327111b674292a519c3a18dc1defc7a8a74a228155d23db24e378f4ca79aaed7.log
[2023/07/28 18:01:27] [ info] [input:tail:tail.0] inotify_fs_add(): inode=919770 watch_fd=3 name=/var/log/containers/etcd-kind-control-plane_kube-system_etcd-c8bd0c4ddc5b8a372502eae3c28a7d8dc94a8c3524323e3d323957f9fb56a9d0.log
[2023/07/28 18:01:27] [ info] [input:tail:tail.0] inotify_fs_add(): inode=921126 watch_fd=4 name=/var/log/containers/fluent-operator-8596459ddc-jpm8s_fluent_fluent-operator-d1ec1e6e86b828ce7c7f87c433c4ee51ec4a41d779c6841cc38892d8feb4f4be.log
[2023/07/28 18:01:27] [ info] [input:tail:tail.0] inotify_fs_add(): inode=921107 watch_fd=5 name=/var/log/containers/fluent-operator-8596459ddc-jpm8s_fluent_setenv-6bd602680aec42f6cc7efab9b66702f0e4323f935d1a80dcf10a23e21fb51f49.log
[2023/07/28 18:01:27] [ info] [input:tail:tail.0] inotify_fs_add(): inode=919870 watch_fd=6 name=/var/log/containers/kindnet-wmlcz_kube-system_kindnet-cni-e96962875f9d2655c6698da8e7012dc167a4ccdd307bf3699474fef9326155f9.log
[2023/07/28 18:01:27] [ info] [input:tail:tail.0] inotify_fs_add(): inode=919764 watch_fd=7 name=/var/log/containers/kube-apiserver-kind-control-plane_kube-system_kube-apiserver-d955f1e1c81f368f9f759dd2c87169f25b34e89f731e10246662f50aad9dcb7e.log
[2023/07/28 18:01:27] [ info] [input:tail:tail.0] inotify_fs_add(): inode=919757 watch_fd=8 name=/var/log/containers/kube-controller-manager-kind-control-plane_kube-system_kube-controller-manager-84c85d37e1a90518865a22fc71645d60a1be6b6b1de41f8b160e58e60a018c41.log
[2023/07/28 18:01:27] [ info] [input:tail:tail.0] inotify_fs_add(): inode=919855 watch_fd=9 name=/var/log/containers/kube-proxy-ktms7_kube-system_kube-proxy-c8822e0450c61420cad5288f0ca24ba763f42605a4a425481a3a2a9c1016f3ae.log
[2023/07/28 18:01:27] [ info] [input:tail:tail.0] inotify_fs_add(): inode=919753 watch_fd=10 name=/var/log/containers/kube-scheduler-kind-control-plane_kube-system_kube-scheduler-ade9bed26b4457f935bb65b54239a76383083c0a2d14a1c3dccba6c21f266287.log
[2023/07/28 18:01:27] [ info] [input:tail:tail.0] inotify_fs_add(): inode=920051 watch_fd=11 name=/var/log/containers/local-path-provisioner-75f5b54ffd-q4ddg_local-path-storage_local-path-provisioner-1d95f9639add8e5cdc23c920e3aae7f7752f5a810edc99be7fff77b7a820986c.log
[2023/07/28 18:01:27] [ info] [input:tail:tail.0] inotify_fs_add(): inode=920528 watch_fd=12 name=/var/log/containers/my-cluster-entity-operator-544bdfcc95-9w9bx_kafka_tls-sidecar-405cef2fbd7b29fed36b036381276536a056df9e22b2db92c282a7dc3dc4a33e.log
[2023/07/28 18:01:27] [ info] [input:tail:tail.0] inotify_fs_add(): inode=920486 watch_fd=13 name=/var/log/containers/my-cluster-entity-operator-544bdfcc95-9w9bx_kafka_topic-operator-f956926cfc40401b40c5b3382674a39cfac32a449f33047ee293a1cac39e102a.log
[2023/07/28 18:01:27] [ info] [input:tail:tail.0] inotify_fs_add(): inode=920503 watch_fd=14 name=/var/log/containers/my-cluster-entity-operator-544bdfcc95-9w9bx_kafka_user-operator-b5980641ac0788282b12bdfbc33d2172d812434365786da409ff092a8828182a.log
[2023/07/28 18:01:27] [ info] [input:tail:tail.0] inotify_fs_add(): inode=920351 watch_fd=15 name=/var/log/containers/my-cluster-kafka-0_kafka_kafka-4ffdf9e7ec2f6813abd37ffa330b4f7318808d88def3f28b1844ab9aafdaef2d.log
[2023/07/28 18:01:27] [ info] [input:tail:tail.0] inotify_fs_add(): inode=920230 watch_fd=16 name=/var/log/containers/my-cluster-zookeeper-0_kafka_zookeeper-77b44fe475300c16485accf07735c2c8084f580110dbdc4b69868f7943cd439b.log
[2023/07/28 18:01:27] [ info] [input:tail:tail.0] inotify_fs_add(): inode=920128 watch_fd=17 name=/var/log/containers/strimzi-cluster-operator-588fc86bcc-w7zdq_kafka_strimzi-cluster-operator-e8bd5d11b2267fd3ad0c255fa57d2ba08a72791be277c4d26a9a2caad522f96a.log
[2023/07/28 18:01:27] [ info] [input:tail:tail.0] inotify_fs_add(): inode=921193 watch_fd=18 name=/var/log/containers/fluent-bit-wn5zj_fluent_fluent-bit-29207ef999768ef58f7166393a9ecfbc0095b21276ae750c8101d64ea47d6870.log

I tried to install v2.4.0 operator and use v2.1.7 fluentbit but the same error happens

@marshtompsxd Would you give more info about the cluster in which you have this error? such as the node os version, k8s version, node type etc
We'll take a look @wenchajun @wanjunlei

Thanks!
The node OS version is Ubuntu 22.04.2 LTS (kernel is 5.10.76-linuxkit).
The k8s version is 1.26.3.
The cluster is a kind cluster running on my local macbook.

@marshtompsxd You can try to modify the nofile parameter. I haven’t thought of a quick way to modify it. It can only be achieved by rebuilding the image.
Add RUN ulimit -n 65535 to Dockerfile, then build the image use make build-fb.


Option to not collect personal information (IP addresses, user agent, etc)

Currently, Shynet will record the IP address and user agent of all tracked requests (provided the request doesn't specify DNT). There needs to be an option to not collect this data, as it's incompatible with some organizations' privacy policies.
Currently, cross-hit session linking is done by correlating IP addresses and user agents, so using hashed data for session linking (potentially stored in the cache, not the DB) will need to come first.

I'm not convinced that the user agent should be considered personal information. For now, I've implemented this using a collect_ips setting that's set at the service level. IP metadata (country, host, etc) will still be collected.


Cannot reconnect quickly when client close

Describe the bug
OS: Windows X86_64
When client close and quick reconnect(about Second * 1) to gnet server, gnet will not call OnOpened(c Conn). And net.Listener.Accept() return err "use of closed network connection"
To Reproduce
Steps to reproduce the behavior:

serve local tcp
use net.Dial to connect gnet server
close this connection when connected
wait 1 second
use net.Dial to connect gnet server
cannot connect to gnet server

Expected behavior
Expect to reconnect to server quickly
Screenshots
/
System Info (please complete the following information):

OS (e.g. Ubuntu 18.04): Windows 10
Go version (e.g. Go 1.13): 1.15
gnet version (e.g. v1.0.0): 1.3.0

Additional context
This issue is related to both udp server. When udp client try to reconnect quickly, it will not call React() method.

https://github.com/panjf2000/gnet/blob/83d304c26f33b0695bb77c18d0d13b91102176f6/connection_windows.go#L224
I change this code to
c.loop.loopCloseConn(c) // Will return err because conn is closed by client
return nil
And this issue will not happen.

Let's make it clear, you closed the connection on the client first and then closed it on the server by calling c.Close(), right?

Let's make it clear, you closed the connection on the client first and then closed it on the server by calling c.Close(), right?

I close the connection on the client. Then server OnClose oncall. I tried both use c.Close() and not use. But when the client try to reconnect. Server OnOpened is not been called.
I also tried to use another thread client to connect. That can be connect successfully. But only the first client which just close the connection cannot connect again.

I know that vc++can use WSAECONNREST to get this situation, and WSAIoctl() to fix it. It caused by reuse the same bind port by  client. UDP is OK. Forgot the issue description about UDP.


Fix folder icon being cutoff

before - right edge of folder icon was a little cut off:

fixed:

Pull Request Test Coverage Report for Build 342874339

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 39.67%

Totals

Change from base Build 342853301:
0.0%

Covered Lines:
20771

Relevant Lines:
48109

💛  - Coveralls


Lint conda recipe

This PR adds a new conda recipe linting check (the same one that's run over in conda-forge)

Getting
recipe has some lint:
  ``requirements: run: numba==0.55.1`` must contain a space between the name and the pin, i.e. ``numba ==0.55.1``

in the recipe linting job, so things are working as expected

This looks great, going in!


Add print functionality to Soroban contracts

This PR adds static string print functionality to Soroban contracts. This serves the following:

print() statements
Logging runtime errors.

However, the following findings might be interesting:
In both Solana and Polkadot, the VM execution capacity can grasp a call to vector_new in the stdlib: https://github.com/hyperledger/solang/blob/06798cdeac6fd62ee98f5ae7da38f3af4933dc0f/stdlib/stdlib.c#L167
However, Soroban doesn't. That's why Soroban would need Solang to implement a more efficient way of printing dynamic strings.
@leighmcculloch

@seanyoung Can I get a second look on this one?

LGTM, thank you!


Add Fenwick Tree with range updates and range queries.

Add Fenwick Tree with range updates and range queries Implementation along with tests to verify functionality.

Moved here: https://github.com/williamfiset/Algorithms/issues/84