HLF Operator

Proposal to include HLF operator as an official Hyperledger Project.

My opinion - it would be premature to elevate any of the fabric operator labs to official Fabric subproject. The intention was to incubate the various operators in Hyperledger labs, determine if any could be combined, and gauge community interest. I think we are still early in this process.

Thanks for the suggestions and opinions @lehors  @denyeart
My opinion:
I think speed is king, and the community is starting to use the hlf-operator more often, making the discord community of hlf-operator active daily for questions and issues to resolve and improve.
Having said this, I think we have to think widely rather than narrowly; I think we can have the two operators in the future in the hyperledger official organization; when the time comes, I think it's a matter of letting users know that there are tools and projects to help them get their applications into production efficiently and fast.
Merging the two projects is not motivating either for the IBM operator or KFS one since companies are using them on both sides, so migration seems very hard and not worth it at first glance.
I think the TSC needs to have a clear vision on this, and promoting this project might be the start of a better deployment strategy for Fabric and more companies will look more at how to deploy it on Kubernetes rather than following the fabric-samples, which of course, it does work. Still, it doesn't encourage the best practices since it's built on docker and docker-compose.

One concern I have is the number of maintainers.  I think two is too low for an incubating project, I would prefer to see at least three maintainers, ideally named in the hip.  They can all be from the same company for an incubating project, but I would want at least three people who could build the project, merge PRs,  and do a release if needed.

dviejokfs To clarify: I merely meant to inform you of our process. My comment isn't an opinion on the merit of your operator. Under our current policy:

A new project proposal that is a feature unique to an existing project will be guided to that existing community to see about joining it. If discussion with the existing project community leads to not joining it then the proposal will be reviewed on its own merits as an independent project.

See: https://wiki.hyperledger.org/display/TSC/Subprojects+and+project+proposals
So, you first need to approach the Fabric maintainers.

It is important to note that Hyperledger Bevel uses Helm charts for deploying Hyperledger Fabric (and other platforms) to Kubernetes. Ideally, a conversation with all of the different projects and labs should be had to see if there is a way to combine efforts for deploying Hyperledger Fabric (and possibly other platforms) to Kubernetes. I recommend against a fractured community vs. a combined community where people are working on the same thing to make it better for all.

@tkuhrt I just contacted @sownak about plans for Bevel, and there are future plans to include operators (custom developed or third-party). The integration should be straightforward, either with the Kubernetes library for hlf-operator or using YAML files

It is important to note that Hyperledger Bevel uses Helm charts for deploying Hyperledger Fabric (and other platforms) to Kubernetes. Ideally, a conversation with all of the different projects and labs should be had to see if there is a way to combine efforts for deploying Hyperledger Fabric (and possibly other platforms) to Kubernetes. I recommend against a fractured community vs. a combined community where people are working on the same thing to make it better for all.

I second everything that @tkuhrt said above.

Bevel is rediscovering itself as Helm charts and Kubernetes operators. So, HLF Operator can be integrated into Bevel and can be maintained by the original submitter in Bevel itself

Bevel is rediscovering itself as Helm charts and Kubernetes operators. So, HLF Operator can be integrated into Bevel and can be maintained by the original submitter in Bevel itself

@sownak Support can be given to the Bevel team to accelerate the process and solve any doubts presented.

@arsulegai @weihong-ou The HLF Operator team is going to become a sub-project of Bevel and renamed as bevel-hlf-operator on github. The open development ceremonies will also be merged with but the boards will be independent. As maintainers of Bevel, please let this group know if you have any reservations.

@arsulegai @weihong-ou The HLF Operator team is going to become a sub-project of Bevel and renamed as bevel-hlf-operator on github. The open development ceremonies will also be merged with but the boards will be independent. As maintainers of Bevel, please let this group know if you have any reservations.

Thanks @sownak , I delayed my response to this proposal as I was waiting for Hyperledger Fabric team to comment on choice of deployment model. The problem statement to solve is to have at least one deployment option readily available for use. In fact, having multiple means for deployment will benefit in increased project adoption.
Whether we choose one model or the other, one project or the other, they should keep their phase with the Fabric team. The Fabric team shall keep the maintainers of this chosen project informed of any new release. These deployment projects are the ways somebody can start using and continue using Fabric. @denyeart this is an area you could help/comment. If there are multiple projects already available all doing the same task, then there's definitely a way forward to pick the best parts of all into one project that is more powerful. The wide expertise that multiple maintainers bring in makes the community much stronger.
Re: Bevel to start using the operator. I guess we had this conversation in one of the earlier Bevel roadmap calls. Introduction of the operator won't compromise cross-cloud/cross-cluster HA deployment capabilities that the project has to offer. There are a lot many contentious claims I see in this proposal, we will have to work with the team to have right wordings when it merges to Bevel.

@arsulegai @sownak @petermetz @tkuhrt
I can be a point person for general Fabric questions and release questions. For example I'd urge any deployment projects to utilize Fabric long-term support (LTS) releases. Current LTS is Fabric v2.2 and we're also working on a Fabric v2.5 release for early this year which would be the next LTS release.
I don't have as much knowledge around operators and kubernetes though. @asararatnakar is a maintainer on fabric-operator project and has offered to provide guidance to Bevel project and the community at large around operators. What forum would you suggest to have these discussions?

@dviejokfs : Given the work with Bevel, can we close this proposal?

Closing the proposal as this project will be integrated in bevel


Automatic OPTIONS request with route schema

First check
Yes to all (great list of checks btw, I might copy them to pydantic 👍 )
Thank you
@tiangolo FastAPI is great. This is the first time I've used it in production and I'm really impressed by both the range of features and particularly the documentation. I've written and deployed web apps using django, flask, aiohttp, starlette and now fastapi. FastAPI is the only python web framework I've seen to come close to django in terms of quality of documentation, it's definitely now my go-to web framework.
Thank you for the amazing project, I feel really proud to have contributed to it indirectly.
Feature Request
The only thing I've seen missing from fastpi is support for informative OPTIONS requests for all/most/some endpoints, automatically included based in the route's definition.
I effectively want the following:
class LoginForm(BaseModel):
    email: EmailStr
    password: SecretStr

@app.post('/login/')
async def login(login_form: LoginForm):
   ...

@app.options('/login/', include_in_schema=False)
async def login_options():
    return LoginForm.schema(by_alias=True)

Without having to define the second endpoint. This is so my react frontend can build forms without having to duplicate the field definitions.
I guess it might have to be slightly more complex to include parameters, query args and body model(s).
I know I can get the information I need from /openapi.json, but that involves more processing in js and more data downloaded.
In the past when I've implemented a feature like this myself, I had to deal with OPTIONS requests associated with preflight checks separately, but that's relatively easy by looking for the Access-Control-Request-Method header.
I guess if this feature was to be approved it would have to be optional, default off. I guess through a keyword arg on FastAPI, include_router and each route.

According to the specifications of OPTIONS method, i'm not sure if it is supposed to do what you want
If I understands correctly, you want to have a shortcut to the schema of some endpoints, while OPTIONS describing the whole path.
I think it'll be better to  have such a shortcut by  http:\example.net\docs<path> for the   endpoint

No, I want the scheme for that URL, which is exactly what OPTIONS requests are for.

I just ran into this unexpectedly when I saw a bunch of HTTP 405 responses using Swagger UI. It looks like Swagger UI assumes that every endpoint supports OPTIONS. It doesn't seem to impede the ability to send requests in the UI, but I assume it's used for something, otherwise it wouldn't be there. I was surprised that HTTP OPTIONS wasn't supported by default for FastAPI routes, at minimum returning an empty response with the standard ALLOW header.
I also noticed that HEAD similarly was not supported by default, which can be useful for debugging and scripting. This again was surprising to me.
So here's my +1 for enabling both OPTIONS and HEAD by default in FastAPI routes.

Hello please check draft of PR for this issue
https://github.com/tiangolo/fastapi/pull/10057

Hi, updated PR (fixed linters and tests, add default value False for add_auto_options_route)
please review general approach
https://github.com/tiangolo/fastapi/pull/10861

Tests were added.
Please review.
https://github.com/tiangolo/fastapi/pull/10861
@tiangolo @samuelcolvin

Hi, any comments on pull request?

A kind reminder about review of PR https://github.com/tiangolo/fastapi/pull/10861
@tiangolo
@samuelcolvin
@gwerbin
@Vlatterran

Any updates on review https://github.com/tiangolo/fastapi/pull/10861 ?
@tiangolo
@samuelcolvin
@gwerbin
@Vlatterran

Sorry @whysage, I haven't had much free time. I will try to block out some time for it on Sunday night. Note that I'm not a repo maintainer so you will still need approval from someone else.

Hi, please review https://github.com/tiangolo/fastapi/pull/10861
@tiangolo
@samuelcolvin
@gwerbin
@Vlatterran

@whysage thanks for the interest, I'll review it once I get there, I have many other things to review and do.
Please do not ping us as it adds additional overhead and work reviewing the pings, and that's an effort I/we could have invested in reviewing PRs, so that we could get to yours faster.
If you want to accelerate the process, you could help with everything else, answering questions, reviewing other PRs, etc: https://fastapi.tiangolo.com/help-fastapi/#help-maintain-fastapi


Roll Flutter Engine from a8872c8915a2 to f490f4f86436 (3 revisions)

https://github.com/flutter/engine/compare/a8872c8915a2...f490f4f86436
2024-05-21<EMAIL_ADDRESS>Roll Skia from 4f6568ba7051 to df78435c2f26 (4 revisions) (flutter/engine#52959)
2024-05-21<EMAIL_ADDRESS>[Impeller] Refactor impeller.gni (flutter/engine#52942)
2024-05-21<EMAIL_ADDRESS>Roll Skia from ca98796cc19e to 4f6568ba7051 (2 revisions) (flutter/engine#52956)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC jonahwilliams@google.com,rmistry<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


Dockerfile: use variables for package version

Update Dockerfile to use variables instead of hardcoded values

Hi @stevenbecht thanks for the PR. I think it could use a rebase. Also, possible to reduce it to a single GO_VERSION variable at the top? The rest should be static to avoid having too many variables.

Hi @stevenbecht thanks for the PR. I think it could use a rebase. Also, possible to reduce it to a single GO_VERSION variable at the top? The rest should be static to avoid having too many variables.

Hey @jmorganca - looks like this is now obsolete, as the latest Dockerfile is far more optimized. Appreciate the follow up!


Added Hana support to BatchDelete and BatchUpdate.

Hello Jonathan, here's the change on a proper pull request.

Hello @vitorortuondo ,
Thank a lot, we will review it this week.
Best Regards,
Jonathan

Hey Jonathan, thanks a lot for incorporating the Hana support for
BatchUpdate and BatchDelete into this latest release!
Best regards,
Victor
On Sat, Sep 15, 2018 at 8:23 PM Jonathan Magnan<EMAIL_ADDRESS>wrote:

Hello @vitorortuondo https://github.com/vitorortuondo ,
Thank for your pull, we have merged it.
A new version should be released within a few hours
We will not support Hana on our side at this moment but we will welcome
any pull from the community like yours.
Best Regards,
Jonathan
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/zzzprojects/EntityFramework-Plus/pull/408#issuecomment-421611671,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ANmbaiFljgvVrGWZhNNXGWPpPmW5axvnks5ubUW9gaJpZM4Wg2Di
.


[Proposal] Adopt the "purl" package URL spec to identify software packages

The initial README contains this section...

Resource Urls
Component resource Urls need to be unique per resource as well as immutable. This will mean that the metadata associated with a resourceUrl will always be associated with exactly one component, and what is pointed at should never change. Content addressable resource urls are preferred. In the case with resources that cannot be immutable, a timestamp should be appended.
The following table provides examples one could use as resource urls for several component types:

Component Type
Identifier
Example

Debian
deb://dist(optional):arch:name:version
deb://lucid:i386:acl:2.2.49-2

Docker
https://Namespace/name@sha256:
https://gcr.io/scanning-customer/dockerimage@sha256:244fd47e07d1004f0aed9c156aa09083c82bf8944eceb67c946ff7430510a77b

Generic file
file://sha256::name
file://sha256:244fd47e07d1004f0aed9c156aa09083c82bf8944eceb67c946ff7430510a77b:foo.jar

Maven
gav://group:artifact:version
gav://ant:ant:1.6.5

NPM
npm://package:version
npm://mocha:2.4.5

NuGet
nuget://module:version
nuget://log4net:9.0.1

Python
pip://package:version
pip://raven:5.13.0

RPM
rpm://dist(optional):arch:name:version
rpm://el6:i386:ImageMagick:<IP_ADDRESS>-4

These examples are great but lack a proper definition and are not always consistent.
Several other tools and APIs use similar but different conventions to identify and locate packages.
To better specify what these URLs are here and elsewhere (including in the https://github.com/nexB/scancode-toolkit and https://aboutcode.org projects and several other projects) I started to put down a draft spec at https://github.com/package-url/purl-spec/blob/042f1088bb17e0762e68b27daad30637ca44de4f/README.rst
It would be great for Grafeas to adopt such a spec too!
This is open for review at https://github.com/package-url/purl-spec/pull/1
PS: The original conversation was started here https://github.com/nexB/scancode-toolkit/issues/805

@R2wenD2 here we go as promised!

Thanks @pombredanne I'll review and leave comments early next week.
I don't think this changes the much for Grafeas - would just require the API implementation to handle and validate the revised formats.

Thanks!

I don't think this changes the much for Grafeas - would just require the API implementation to handle and validate the revised formats.

Indeed, and that's part of the intent.
FWIW there is a mention of a Go implementation in progress on the PR at https://github.com/package-url/purl-spec/pull/1#issuecomment-344409842

Maven has a few more coordinates that can come into play in some instances: packaging and classifier. The typical ordering looks like this:
groupId:artifactId:(optional)packaging:(optional)classifier:version
While GAV may be sufficient for many cases, there will be times where some attestation needs to apply to one classifier and not another, or one package and not another. We should expand the spec to allow the optional inclusion of these extra fields.
ref: https://maven.apache.org/pom.html#Maven_Coordinates

@brianf yes Maven has these and these are not the norm. They also in most derive from the same source, hence for these they would be treated as optional qualifiers in https://github.com/package-url/purl-spec/tree/a21a9ecbab171fe06d1ac88843bc3721a42dbed0
maven for Maven JARs and related artifacts
- The default repository is maven.org
- The group id is the namespace and the artifact id is the name
- Known qualifiers keys are: classifier and packaging as defined in the POM documentation
- Examples:
<EMAIL_ADDRESS>`maven:org.apache.xmlgraphics/batik-anim@1.9.1?packaging=sources`

@brianf It would be awesome if you want to chime in on the purl spec btw. The initial and a tad messy PR is there https://github.com/package-url/purl-spec/pull/1 and received comments from dpkg, nuget, spak, npm and several important package format maintainers and many others. Going forward a ticket is better.
Having a JVM implementation is also needed!

Is the intent of the purl spec to replace the one in the README? If not, how do they correlate?

@brianf that's the intent of this ticket to propose a replacement for the one of the README alright

The purl spec extends a bit beyond Grafeas as it also caters to other tools, DB and APIs such as libraries.io, victims, openshift analytics, aboutcode.org projects and a few more.

The container image referencing in the purl spec looks good to me

@lizrice Thank you for the valuable feedback!

I think everyone is happy with this proposal, we'll just need to add the verification to the reference implementation and documentation.

So I'm now learning the extent of the work that has gone into SWID ISO 19770-2, despite the pay-wall barrier. I'm very glad that purl-spec is more open, but we might should consider that many deployments may have requirements to use SWID over purl.
Purl-spec has a FAQ about this, https://github.com/package-url/purl-spec/wiki/FAQ#why-not-using-the-iso-19770-2-spec-for-swid-tags-instead-of-a-purl which I don't disagree with. Red Hat has participated in the SWID review, and is also a part urging/pressuring Tagvault to open the SWID spec up more.

@vbatts Just back from FOSDEM where I presented this https://fosdem.org/2018/schedule/event/purl/ (video and deck are there)
There was a clear preference from most everyone there to use a single scheme prefix eg<EMAIL_ADDRESS>such that this can be easily registered as an official RFC and many other good reasons so in this context we could have something like:
pkg:swid:<whatever is a swid> OR have a proper SWID URI or URL separately alright.
I wished SWID would not have been these walled garden centralized scheme, but that's not my battle to fight ;) Let's make a ticket on the purl side to have this included alright

@pombredanne there is further conversation going regarding SWID. I am thinking that the prefixing may help. Further this FAQ really ought to be updated from "avoid this"-like language. As one [private] conversation included:

I can understand the sentiment, but it is wrong in many respects. First, the
ISO specification is not for proprietary software. How can anyone come to
that conclusion. The C programming language is governed by ISO/IEC 9899:2011.
Does that mean that gcc is a proprietary compiler? I think not.

Having this distinguished prefixes, it'll let SWID do what it's intended for of specifying files (not just whole software packages, regardless of proprietary or FOSS), and purl can map collections/packages of software.
Make sense?


EDU-1460 Collect CDN resources from outside documents

Closes https://educandu.atlassian.net/browse/EDU-1460

Closing as we decided to also include updating the task runner for cdn-resources-consolidation with the logic in this PR.

Re-open after updating the task runner for cdn-resources-consolidation.

Wunderbar, ja! 👌

:rofl:


ddim sampling

Dear SR3 team,
Thank you for sharing this great implementation. I try the colab for 64->512 model, it works very good.
The ddpm sampling for 2k step is very slow, it takes around 7-8 mins per image. Will it be possible to use ddim sampling to increase the sampling speed?
I new to this filed, thank you for your advice.
Best Wishes，
Zongze

Have u implemented it? I tried DDIM but found it fail in SR. I wonder how could it be implemented

Sorry for late reply, I am only reproducing SR3 and have no plans to use DDIM.

Have u implemented it? I tried DDIM but found it fail in SR. I wonder how could it be implemented

@liangbingzhao I've met the same question. DDIM failed on this repo. Have you implemented it?

@ElliotQi How did you make DDIM work?

@betterze @ElliotQi @liangbingzhao Why did your experiments not work? I tried ddim two, the result are as follows:
1
ddpm:

ddim (20 sampling steps)

gt:

2
ddpm:

ddim:

gt:

I'm a newcomer, my codebase refer to ddim_sample() in denoising_diffusion_pytorch.
Are the ddim results better than ddpm ones?

I no longer focus on this problem. But ddim results usually are a little worser than ddpm ones.

I no longer focus on this problem. But ddim results usually are a little worser than ddpm ones.

okkkk
The results are indeed different. It seems that my implementation has worked.

@Janspiry Does this repo consider reviewing a PR about supporting ddim for sr3? I can create a pr, but I require some supports about knowledge, experience and code reviewing.

@betterze @ElliotQi @liangbingzhao Why did your experiments not work? I tried ddim two, the result are as follows:
diffusion method	SSIM(+)	PSNR(+)
DDPM	0.675	23.26
DDIM (20 steps)	0.583	22.99
1
ddpm:   ddim (20 sampling steps)   gt:
2
ddpm:   ddim:   gt:

您好，请问方便提供一下ddim的代码吗？我尝试了但是还有一些bug，非常感谢！

@wangzhen699 You can refer to denoising-diffusion-pytorch. The code has been used in a colleague's private project.

@betterze @ElliotQi @liangbingzhao Why did your experiments not work? I tried ddim two, the result are as follows:
diffusion method	SSIM(+)	PSNR(+)
DDPM	0.675	23.26
DDIM (20 steps)	0.583	22.99
1
ddpm:   ddim (20 sampling steps)   gt:
2
ddpm:   ddim:   gt:

您好，请问方便提供一下ddim的代码吗？我尝试了但是还有一些bug，非常感谢！

可以说一下bug在哪吗?

没碰见过bug

@wangzhen699 You can refer to denoising-diffusion-pytorch. The code has been used in a colleague's private project.

没碰见过bug

您好，非常感谢您的回复，我按照您的建议调试了代码，但是还是没有成功。

没碰见过bug

你好，我想问下，在改为ddim后，模型是不是还要重新训练，即使是只改了推断过程，好像也不能直接使用之前sr3的权重了

没碰见过bug

你好，我想问下，在改为ddim后，模型是不是还要重新训练，即使是只改了推断过程，好像也不能直接使用之前sr3的权重了

不是吧，我理解ddim是用来eval的吧

我理解的ddim是改变了DDPM中的inference，对p(x{t-1} | x{t},x{0})进行了改变，然后获取正向过程的一段子序列作为实际的采样次数来缩短inference的时间。所以我一直在对model中的diffusion文件进行改动。

我理解的ddim是改变了DDPM中的inference，对p(x{t-1} | x{t},x{0})进行了改变，然后获取正向过程的一段子序列作为实际的采样次数来缩短inference的时间。所以我一直在对model中的diffusion文件进行改动。

嗯嗯，差不多

我理解的ddim是改变了DDPM中的inference，对p(x{t-1} | x{t},x{0})进行了改变，然后获取正向过程的一段子序列作为实际的采样次数来缩短inference的时间。所以我一直在对model中的diffusion文件进行改动。

你好，请问可以分享一下diffusion文件嘛？蟹蟹

@betterze @ElliotQi @liangbingzhao Why did your experiments not work? I tried ddim two, the result are as follows:
diffusion method	SSIM(+)	PSNR(+)
DDPM	0.675	23.26
DDIM (20 steps)	0.583	22.99
1
ddpm:   ddim (20 sampling steps)   gt:
2
ddpm:   ddim:   gt: ![0_2_hr](https://user-images.githubusercontent.com/79644233/219

@betterze @ElliotQi @liangbingzhao Why did your experiments not work? I tried ddim two, the result are as follows:
diffusion method	SSIM(+)	PSNR(+)
DDPM	0.675	23.26
DDIM (20 steps)	0.583	22.99
1
ddpm:   ddim (20 sampling steps)   gt:
2
ddpm:   ddim:   gt:

请问您在加速采样的时候，有没有遇到最终采出的图片没有噪声但也没有超分效果的这种情况呢？
我的参数设置如下;
1.noise_level = torch.FloatTensor(
[self.sqrt_alphas_cumprod_prev[t+1]]).repeat(batch_size, 1).to(x.device)
2. pred_noise = self.denoise_fn(torch.cat([condition_x, x], dim=1), noise_level)
3. x_start = self.predict_start_from_noise(
x, t=t, noise=self.denoise_fn(torch.cat([condition_x, x], dim=1), noise_level))
4. alpha = self.alphas_cumprod[time]
alpha_next = self.alphas_cumprod[time_next]
 sigma = eta * ((1 - alpha / alpha_next) * (1 - alpha_next) / (1 - alpha)).sqrt()
 c = (1 - alpha_next - sigma ** 2).sqrt()
 noise = torch.randn_like(img)
 img = x_start * alpha_next.sqrt() + \
                  c * pred_noise + \
                  sigma * noise

denoising_diffusion_pytorch

Could you share the ddim implementation that you have gotten to work with this codebase?

@wangzhen699 没出现，我实现的很简单就work了，我是参考 pytorch denoising diffusion 的仓库实现的

@betterze @wangzhen699 @whiteYi
May I ask if you have resolved this issue. I also want to use ddim to accelerate the sampling speed in SR3. But due to my knowledge, I don't know how to modify the code. Thank you very much and I look forward to hearing from you.
@ElliotQi
I see that you have successfully used ddim to accelerate the sampling speed in SR3. May I ask how to modify the code? This has been bothering me for a long time. Thank you very much and I look forward to hearing from you~

@wangzhen699 @ElliotQi @Li-Qingyun
With DDIM  the sampling results are predominantly noise. Here is my code. How can I modify it to improve the results? Thank u so much.QAQ
x = x_in
shape = x.shape
b = shape[0]
img = torch.randn(shape, device=device)
ret_img = x
for i in tqdm(reversed(range(0, 1000,5)), desc='sampling loop time step', total=200):
         img = self.ddim_sample(img, torch.full( (b,), i, device=device, dtype=torch.long), condition_x=x)

DDIM_sample:
def ddim_sample(self, x, t, clip_denoised=True, repeat_noise=False, condition_x=None):
        b, *_, device = *x.shape, x.device
        model_mean, _, model_log_variance ,x_start,eps = self.p_mean_variance(
            x=x, t=t, clip_denoised=clip_denoised, condition_x=condition_x)

        eta=0.0
        alpha_bar = extract(self.alphas_cumprod, t, x.shape)
        alpha_bar_prev = extract(self.alphas_cumprod_prev, t, x.shape)
        sigma = eta * ((1 - alpha_bar / alpha_bar_prev) * (1 - alpha_bar_prev) / (1 - alpha_bar)).sqrt()
        c = (1 - alpha_bar_prev - sigma ** 2).sqrt()
        noise = torch.randn_like(x_start)

        img = x_start * alpha_bar_prev.sqrt() + \
                  c * eps + \
                  sigma * noise

        return img

@wangzhen699 @ElliotQi @Li-Qingyun With DDIM the sampling results are predominantly noise. Here is my code. How can I modify it to improve the results? Thank u so much.QAQ
x = x_in
shape = x.shape
b = shape[0]
img = torch.randn(shape, device=device)
ret_img = x
for i in tqdm(reversed(range(0, 1000,5)), desc='sampling loop time step', total=200):
         img = self.ddim_sample(img, torch.full( (b,), i, device=device, dtype=torch.long), condition_x=x)

DDIM_sample:
def ddim_sample(self, x, t, clip_denoised=True, repeat_noise=False, condition_x=None):
        b, *_, device = *x.shape, x.device
        model_mean, _, model_log_variance ,x_start,eps = self.p_mean_variance(
            x=x, t=t, clip_denoised=clip_denoised, condition_x=condition_x)

        eta=0.0
        alpha_bar = extract(self.alphas_cumprod, t, x.shape)
        alpha_bar_prev = extract(self.alphas_cumprod_prev, t, x.shape)
        sigma = eta * ((1 - alpha_bar / alpha_bar_prev) * (1 - alpha_bar_prev) / (1 - alpha_bar)).sqrt()
        c = (1 - alpha_bar_prev - sigma ** 2).sqrt()
        noise = torch.randn_like(x_start)

        img = x_start * alpha_bar_prev.sqrt() + \
                  c * eps + \
                  sigma * noise

        return img

hi I am trying displacing from ddpm to ddim，did you success？


doesn't create folder if exists file with same name

if you create file with name abc then trying to create abc folder it doesn't work
if there is no file abc it works fine

Yes, I'll fix this. Why did you close the issue though?

because linux didn't allow you to create file and folder with same name

Oh, yes, sorry, I thought I sent this message: Windows doesn't allow it either...


pool getConnection stalling

Hi,
sometimes, the getConnection method from the pool stalled, no error returned, no connection returned, the callback was not even called.
any idea why this happen ? i always release my connection after i'm done with it.
thanks!

Hi @kumangdeal, I know you said "i always release my connection after i'm done with it" but are you sure there isn't some code path that is accidentally not always doing that? The only things that I know of that fit your description are (1) you are accidentally not always releasing every connection you get or (2) there is a bug in this module.
If you are thinking (2), I would love to investigate the issue! Would you be able to provide all the following information?

The version of Node.js you are using.
The version of this module you are using.
Complete code that reproduces the issue. We should be able to copy and paste it and run the code (i.e. it needs to be complete code, not partial snippets).
Instructions for how to run the code to reproduce the issue.

Thank you!

hi @dougwilson , thanks for the response.
firstly, i'm newbie in node js (backend dev) thing, so i'm sorry if i asked any noob question :D
i'm pretty sure that i released my connections,
i tried to test it by calling the release() before running any query and it crashed, telling the connection already released.

My node js version is 5.1.0
the module version is 2.11.1
this is how i obtain my connections :

mysqlHelper.js
http://pastebin.com/6jWNiZeC
implementation in any controllers
http://pastebin.com/u1RbA01N

I don't know how to reproduce it. The app works fine first, after several time ( i think the more request is sent to server, the sooner it will stall ). But if i just restart the app, it will work fine again. (then it will stall again).

@kumangdeal can you show your model.doSomething implementation? If callback is not called for some reason ( code logic error or exception prevents from reaching ) then conn.release() is not called as well

@sidorares
here's how i use the connection in a model.
http://pastebin.com/MQRYrdKt
are you suggesting that if an error or exception happened in the model class, that could be the reason for the callback not being called ?
so far i didn't see any crash or error logged.

hi all,
so if there is a connection that is not released, can that eventually lead to this ?
turns out there's a function that use a connection but it doesn't release it after everything is done.
the function called rarely, but after some time it eventually passed the pool limit.
So if my limit is 30, and the functions is called 30 times already, there will be 30 unreleased connection. Is this situation can make the getConnection function stall ? if so, then i'll just mark this thread as solved, because that would be my mistake 🙇 .
thanks :D

so if there is a connection that is not released, can that eventually lead to this ?

yes

Is this situation can make the getConnection function stall ?

yes. if you have queueLimit set then getConnection would return error as soon as there is more then a limit waiting, but default queueLimit value is 0 ( no limit ), that is your getConnection request sits in the queue forever ( until connection is released, but when there is a code failing to do .release() this might never happen )

@sidorares thanks for the explanation.

Hi all, I have the almost the same issue with getConnetion() method. I just get the example code from documentation and filling in my credentials and nothing works. Here is my code.
`function getFreeConnection() {
pool = getConnectionsPool();
try {
pool.getConnection(function cb(err, connection) {
        if (err) {
            console.error(`error getting connection from pool; ${err}`);
            throw  err;
        }

        if (!connection) {
            console.error(`error getting connection from pool`);
            return null;
        }
    });
} catch (e) {
    console.error(e);
}

}
function getConnectionsPool() {
pool = pool ?
pool :
mysql.createPool({
host: process.env.MYSQL_HOST,
user: process.env.MYSQL_USER,
password: process.env.MYSQL_PASSWORD,
database: process.env.MYSQL_DB
});
if (!pool) {
    console.error(`error getting connections pool`);
    return null;
}
return pool;

}`
Callback is never called. Any ideas? How can I debug this issue?


Add kind to boundaries based on admin_level

Refs https://github.com/mapzen/vector-datasource/issues/210
For boundaries missing a kind, add one based on the admin_level.

:+1:


Cannot connect to the internet in Wsl 2 but can in Wsl 1.

Windows Version
Microsoft Windows [Version 10.0.22631.4169]
WSL Version
<IP_ADDRESS>
Are you using WSL 1 or WSL 2?

[X] WSL 2
[ ] WSL 1

Kernel Version
<IP_ADDRESS>-2
Distro Version
Ubuntu
Other Software
No response
Repro Steps
Download WSL 2 by following this link.
Download WSL
There were similar Issues like this but most were closed without a solution.
It only works on Wsl 1 but not on WSL 2.
Expected Behavior
Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
Hit:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Actual Behavior
anu@Abhik:/mnt/c/Users/USER-1$ sudo apt update
Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Err:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::103). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::101). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::102). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (<IP_ADDRESS>), connection timed out Could not connect to archive.ubuntu.com:80 (<IP_ADDRESS>), connection timed out Could not connect to archive.ubuntu.com:80 (<IP_ADDRESS>), connection timed out Could not connect to archive.ubuntu.com:80 (<IP_ADDRESS>), connection timed out Could not connect to archive.ubuntu.com:80 (<IP_ADDRESS>), connection timed out Could not connect to archive.ubuntu.com:80 (<IP_ADDRESS>), connection timed out
Err:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Cannot initiate the connection to security.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2620:2d:4002:1::103). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2620:2d:4002:1::101). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2620:2d:4002:1::102). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (<IP_ADDRESS>), connection timed out Could not connect to security.ubuntu.com:80 (<IP_ADDRESS>), connection timed out Could not connect to security.ubuntu.com:80 (<IP_ADDRESS>), connection timed out Could not connect to security.ubuntu.com:80 (<IP_ADDRESS>), connection timed out Could not connect to security.ubuntu.com:80 (<IP_ADDRESS>), connection timed out Could not connect to security.ubuntu.com:80 (<IP_ADDRESS>), connection timed out
Err:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::103). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::101). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::102). - connect (101: Network is unreachable)
Err:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::103). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::101). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::102). - connect (101: Network is unreachable)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease  Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::103). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::101). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::102). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (<IP_ADDRESS>), connection timed out Could not connect to archive.ubuntu.com:80 (<IP_ADDRESS>), connection timed out Could not connect to archive.ubuntu.com:80 (<IP_ADDRESS>), connection timed out Could not connect to archive.ubuntu.com:80 (<IP_ADDRESS>), connection timed out Could not connect to archive.ubuntu.com:80 (<IP_ADDRESS>), connection timed out Could not connect to archive.ubuntu.com:80 (<IP_ADDRESS>), connection timed out
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease  Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::103). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::101). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::102). - connect (101: Network is unreachable)
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease  Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::103). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::101). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::102). - connect (101: Network is unreachable)
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease  Cannot initiate the connection to security.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2620:2d:4002:1::103). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2620:2d:4002:1::101). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2620:2d:4002:1::102). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (<IP_ADDRESS>), connection timed out Could not connect to security.ubuntu.com:80 (<IP_ADDRESS>), connection timed out Could not connect to security.ubuntu.com:80 (<IP_ADDRESS>), connection timed out Could not connect to security.ubuntu.com:80 (<IP_ADDRESS>), connection timed out Could not connect to security.ubuntu.com:80 (<IP_ADDRESS>), connection timed out Could not connect to security.ubuntu.com:80 (<IP_ADDRESS>), connection timed out
W: Some index files failed to download. They have been ignored, or old ones used instead.
Diagnostic Logs
https://drive.google.com/file/d/1nNVoXagdr__K476-oIaREFb7aOLC8Tbq/view?usp=sharing
### Tasks

https://www.reddit.com/r/bashonubuntuonwindows/comments/1clu0h1/problem_when_running_apt_update_on_an_ubuntu_wsl/
In this sub reddit this comment mentioned IPV6 connection to someone and about .wslconfig
https://www.reddit.com/r/bashonubuntuonwindows/comments/1clu0h1/comment/l2wlxyw/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button
Create a .wslconfig file in %USERPROFILE% and paste this . Now you can connect to internet.
`[wsl2]
networkingMode=mirrored`
https://learn.microsoft.com/en-us/windows/wsl/wsl-config
This is what fixed it.
I want this issued to be completed but exist for hundreds others that are using Windows 11

I really want you guys to put some feature to use WSL 2 on WIN 11 without creating this weird config and things.


Subtracting one day from @db.Date type

Bug description
I have added the model below. All of the shift_date of type @db.Date are subtracting one day from what is stored in my SQLServer database. The format of the database is type Date and is in this format "YYYY-MM-DD". My database has the value 2023-03-07 and Prisma is returning Mon Mar 06 2023 19:00:00 GMT-0500
How to reproduce
Add a type date to a sql server database and retrieve it and the date received will be one less day than is stored on the database.
Expected behavior
The date retrieved should be the date stored.
Prisma information

generator client {
  provider        = "prisma-client-js"
  previewFeatures = ["views"]
}

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

model TurnReport {
  entry_id   Int      @id(map: "PK_TurnReport") @default(autoincrement())
  comment    String   @db.Text
  datetime   DateTime @db.DateTime
  author     String?  @db.VarChar(100)
  area_id    Int
  shift_date DateTime @db.Date
  shift_num  Int      @db.TinyInt
  ip         String?  @db.VarChar(32)
}

model TurnReport_Alerts {
  alert_id      Int       @id(map: "PK_TurnReport_Alerts") @default(autoincrement())
  alert_comment String    @db.VarChar(150)
  dt_created    DateTime  @db.DateTime
  dt_updated    DateTime  @db.DateTime
  dt_ended      DateTime? @db.DateTime
  is_active     Boolean
  dept_id       Int
}

model TurnReport_Areas {
  area_id          Int              @id(map: "PK_TurnReport_Areas")
  name             String           @db.VarChar(75)
  dept_id          Int
  enabled          Boolean
  sort_order       Int
  has_stars        Boolean
  TurnReport_Depts TurnReport_Depts @relation(fields: [dept_id], references: [dept_id], onDelete: Cascade, map: "FK_TurnReport_Areas_TurnReport_Depts")
  vTurnReport vTurnReport[]
}

model TurnReport_Attachments {
  attachment_id  Int      @id(map: "PK_TurnReport_Attachments") @default(autoincrement())
  entry_id       Int
  file_name      String   @db.NVarChar(255)
  datetime       DateTime @db.DateTime
  content_type   String   @db.NVarChar(255)
  content_length Int
  data_blob      Bytes
}

model TurnReport_Depts {
  dept_id           Int                @id(map: "PK_TurnReport_Depts")
  name              String             @db.VarChar(50)
  shift_start_base  DateTime           @db.DateTime
  schedule_type     Int
  safety_id         String?            @db.VarChar(50)
  skip_nights       Boolean
  skip_nights_until DateTime?          @db.DateTime
  allow_alerts      Boolean?
  enable_email_btn  Boolean
  TurnReport_Areas  TurnReport_Areas[]
}

model TurnReport_Rating {
  entry_id   Int      @id(map: "PK_TurnReport_Rating") @default(autoincrement())
  rating     Int      @db.TinyInt
  datetime   DateTime @db.DateTime
  author     String?  @db.VarChar(100)
  area_id    Int
  shift_date DateTime @db.Date
  shift_num  Int      @db.TinyInt
}

view vTurnReport {
  entry_id                Int                       @unique @default(autoincrement())
  comment                 String                    @db.Text
  datetime                DateTime                  @db.DateTime
  author                  String?                   @db.VarChar(32)
  area_id                 Int
  shift_date              DateTime                  @db.Date
  shift_num               Int                       @db.TinyInt
  ip                      String?                   @db.VarChar(32)
  attachment_count        Int?
  TurnReport_Areas TurnReport_Areas @relation(fields: [area_id], references: [area_id])
  vTurnReport_Attachments vTurnReport_Attachments[]
}

/// The underlying view does not contain a valid unique identifier and can therefore currently not be handled by the Prisma Client.
view vTurnReport_Attachments {
  attachment_id  Int         @unique @default(autoincrement())
  entry_id       Int
  file_name      String      @db.NVarChar(255)
  datetime       DateTime    @db.DateTime
  content_type   String      @db.NVarChar(255)
  content_length Int
  vTurnReport    vTurnReport @relation(fields: [entry_id], references: [entry_id])
}

const allData = await prisma.TurnReport_Depts.findUnique({
        where: {
            dept_id: parseInt(params.dept)
        },
        include: {
            TurnReport_Areas: {
                where:{
                    dept_id: parseInt(params.dept)
                },
                include: {
                    vTurnReport: {
                        where: {
                            shift_date: params.date + 'T00:00:00.000Z',
                            shift_num: parseInt(params.shift)
                        },
                        include: {
                            vTurnReport_Attachments: true
                        }
                    }
                }
            }
        }
    })

Environment & setup

OS: Windows
Database:  SQL Server
Node.js version: 9.2.0

Prisma Version
9.2.0

I have been digging in and I see that what is actually happening is the date and datetime are being retrieved in Zulu time zone whereas my database is storing them in eastern. So when my database returns 2023-03-07 it is returning that in Zulu time and then converting it to eastern when it sends it to the client. So my real issue is how do I set up prisma to know that the dates returned from my database are already in eastern timezone and not in Zulu?

Any solution to this?

I have had a few different solution, none of them perfect by any means. I made helper functions to fix the dates to prisma and dates coming from prisma. Then in the client I use the functions to display the correct time. And in the server I use the functions to format the dates.
//functions used to fix prisma datetime if database times are not being saved in UTC

import { format } from 'date-fns';

//fixed datetimes sent to database if database times are not in UTC
export function fixedDateToPrisma(date) {
    return format(date, "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
};

//fix timezone issue from prisma if database times are not in utc
export function fixedDateFromPrisma(date) {
    return new Date(date.substring(0, date.length - 1));
};

Another solution I have been able to do is set the time zone of the server(in the +server.ts file). This will fix the timezone issue if the database is in UTC. It does not fix the problem if the database is not UTC.
+server.ts
// Set the TZ environment variable to time zone of server
    process.env.TZ = "Etc/GMT+6";

With the specific example above I ended up just sending a date without a time from client to server and then on the server I just added a time as a string as shown above.
The best solution I could come up with is sending date to the server as a string instead of a date. I think this will be the easiest solution.

I can confirm the mismatch for @db.Date values (via https://github.com/prisma/prisma/issues/22717)


[Storage] QuickQuery - Make BlobQueryCsvTextConfiguration properties …

…optional

This is a follow-up PR resolving left comments in https://github.com/Azure/azure-sdk-for-js/pull/9112
@bterlson @jeremymeng @ljian3377


Removed go-pg/pg/v10 adapter and added rows query to db adapter

github.com/go-pg/pg is in the Maintenance mode so it may live in gue/v3.
Extended adapter again to use in the dependent library. Probably the next change will be extraction to the standalone library.

Codecov Report

Merging #59 (dc42f58) into master (84dbab6) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #59   +/-   ##
=======================================
  Coverage   89.41%   89.41%
=======================================
  Files           6        6
  Lines         425      425
=======================================
  Hits          380      380
  Misses         33       33
  Partials       12       12

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 84dbab6...dc42f58. Read the comment docs.


Start date setting delay

Delay during setting the start date when opening the date picker
https://user-images.githubusercontent.com/17089577/197536988-f2ad8391-e73f-4f6a-bda4-0bbe9697d5cb.mp4

Hello, thanks for your attention. I will look into the problem as soon as possible.

this pr fix this bug.


Tip: Collapsing other region types

Download source.
Find this line:

if (text.StartsWith("#region", StringComparison.CurrentCultureIgnoreCase))

Add a condition that matches your language. Here's one for C++:

if (text.StartsWith("#region"       , StringComparison.CurrentCultureIgnoreCase) ||
    text.StartsWith("#pragma region", StringComparison.CurrentCultureIgnoreCase))

Build as a Release version.
Uninstall your current version of CollapseRegionExtension.
Open CollapseRegionExtension.vsix found in bin/Release to install your custom version.

Awesome thank you,  I changed this line
if (text.StartsWith("<!--"))
to
if (text.StartsWith("<!--") || text.StartsWith(@"//"))


Update issue templates

This is a good first run.

https://github.com/ljay78878/hello-super-user

Hello


Fails to open X11 window on remote

I can run the following task and it opens a remote X11 window on the device as expected:
{
    "type": "shell",
    "label": "Run (Graphical) on target",
    "windows": {
        "command": "ssh<EMAIL_ADDRESS>'DISPLAY=:0 ./build-debug/bin/hello-triangle'"
    },
    "group": "build"
}

However, this fails when I run what I think is the equivalent gdb configuration:
{
    "type": "gdb",
    "request": "launch",
    "name": "Hello Triangle",
    "target": "./bin/hello-triangle",
    "cwd": "${workspaceFolder}/hello-triangle",
    "env": {
        "DISPLAY": "0",
    },
    "ssh": {
        "host": "pi.local",
        "cwd": "/home/pi/build-debug/",
        "keyfile": "C:\\Users\\junglie85\\.ssh\\id_ecdsa",
        "user": "pi",
        "remotex11screen": 0,
        "forwardX11": false,
        "x11host": "localhost",
        "x11port": 6000
    },
    "valuesFormatting": "parseText"
}

I basically seem unable to set the remote display to 0. Is this possible with the extension?

If I remember correctly env does a local environment setting.
Just to be sure you could create a file "disp0" in your home directory on the remote which contains DISPLAY=:0 and then use
{
    "type": "gdb",
    "request": "launch",
    "name": "Hello Triangle",
    "target": "./bin/hello-triangle",
    "cwd": "${workspaceFolder}/hello-triangle",
    "ssh": {
        "host": "pi.local",
        "cwd": "/home/pi/build-debug/",
        "keyfile": "C:\\Users\\junglie85\\.ssh\\id_ecdsa",
        "user": "pi",
        "bootstrap": "source /home/pi/disp0",
    },
    "valuesFormatting": "parseText"
}

In any case it would help to get more info: does remote debugging work for you in general?


[bug] Can't update github.com/sigstore/rekor due to in-toto fork

github.com/sigstore/rekor depends on github.com/in-toto/in-toto-golang 0.7.1 but we require a fork of -in-toto-golang based on 0.6.
We need to resolve the fork by getting the SLSA v1.0 types merged into a proper release of in-toto-golang.
Related to #1689

Related to #1909

Blocked on https://github.com/in-toto/in-toto-golang/issues/197

This was fixed.


Added instrumentation to Hive copy.

Adds timers to Hive distcp work unit generation.
Also adds a MultiTimingEvent class that emits a single event for timings of different stages in a process.

@abti can you review?

Coverage decreased (-0.2%) to 44.102% when pulling d602b60cf09a224c35e4a36801a97e1680741235 on ibuenros:distcp-instrument into 911ab2eb57a36a6cacc373f4f3f409fba5adb257 on linkedin:master.

@zliu41 can you review?

@ibuenros .. a few comments, rest looks good to me

Fixed. Merging.

Coverage decreased (-0.6%) to 43.744% when pulling 60469dfe6e48ee2bbc2ddebe328615d2c98b9629 on ibuenros:distcp-instrument into 28516d2c93247800213e0a343f67601c0f9247d1 on linkedin:master.


Consider removing user specific modules from contrib

It seems really strange to me that user specific configuration is included in xmonad-contrib. My suspicion is that very few people use these prebuilt configs, and it seems kind of ridiculous that everyone is forced to compile/download modules associated with this code.
It seems like a good solution might be to take these user specific configurations and put them in a separate repository that people could use if they want to try these configuration out.

I would imagine these are from the time when "real world" xmonad configs
were not all that available online and it was nice to have a reference.
On Sat, Aug 14 2021 23:26, Ivan Malison wrote:

It seems like a good solution might be to take these user specific
configurations and put them in a separate repository that people could
use if they want to try these configuration out.

We could do this, but I wonder if the trouble of deprecating them,
waiting 2--3 releases (however long that's going to take) and finally
moving them to a new repo is really worth it in this case.

It seems like a good solution might be to take these user specific configurations and put them in a separate repository that people could use if they want to try these configuration out.

The website seems like a good candidate for that, we could also maybe add some screenshots

I'm pretty new around here but I agree that it doesn't make much sense to have these configs in the repo. I agree with @TheMC47  that the website is a great place to put this type of content.

We could do this, but I wonder if the trouble of deprecating them, waiting 2--3 releases (however long that's going to take) and finally moving them to a new repo is really worth it in this case.

Not clear that this sort of thing ACTUALLY needs to be done.
The new release that is coming is ALL KINDS of backwards incompatible with the last one. I don't see any reason why would need to ease in the removal of these modules. I HIGHLY doubt that many people use them anyway.

The new release that is coming is ALL KINDS of backwards incompatible with the last one. I don't see any reason why would need to ease in the removal of these modules.

It is true that there are many breaking changes, but most are more of the form "X has been deprecated, use Y instead" or other small changes to the API.  I would classify removing an entire module as a bit of a different thing (though maybe I'm being too careful here).

I HIGHLY doubt that many people use them anyway.

I have actually seen the occasional user module importing one of these to use a utility function or two.  It's true that these are probably the among "safest" modules we could remove in terms of users noticing, but it is removing entire modules.
Perhaps a strategy could be to deprecate them for 0.17 and then (assuming we get another release out in half a years time or so) remove them after just one release

For what it's worth, X.L.IndependentScreens refers to X.C.Droundy. We would have to audit for other such references as well.

For what it's worth, X.L.IndependentScreens refers to X.C.Droundy. We would have to audit for other such references as well.

I mean ghc is pretty good at working stuff like that out, right?

It's in the documentation, not a code reference. I don't think haddock would give us quite as much help with dangling module references.

GHC won't be of much help, but grepping for these module names shouldn't
be very difficult.
I think the only real decision left is to find a good place for these
modules.  The website seems best since we fully control that (perhaps
under the community tab we can add some links to up-to-date configs and
also to these "legacy" ones).

It's in the documentation, not a code reference. I don't think haddock would give us quite as much help with dangling module references.

Haddock does actually generate warnings. Loads of them, in fact, so much so that we don't have any infrastructure in place to report those warnings, as we'd first have to spend hours fixing all the existing warnings. :-/


Check node or cluster health in post-start script

Hi all
While changing configuration of our rabbitmq deployment lately, we ran into the following issue:

Canary was updated. Canary came up (process was running), but Rabbitmq could not start properly or crashed. This rendered the node useless - however, since the process was running, monit reported 'running' and moved on
The second node was updated as well, also coming up unhealthy, but also with a running process.
The third node had the same issue.

Result: The whole cluster was down. The post-deploy script then failed on the nodes, so we noticed something was wrong.
If we would add a post-start script, this scenario could not happen.
Since post-start are run on each VM before BOSH marks it as healthy, individual node failures would be caught before moving on with the next instance.
UAA already does that in a similar fashion: https://github.com/cloudfoundry/uaa-release/blob/develop/jobs/uaa/templates/bin/post-start
What do you think? We're happy to provide the post-start as a PR.

Hi Matthias,
Sorry to hear you had a cluster downtime. Your idea sounds great improvement indeed. Would you mind submitting the PR? We'll review it next week.
Thank you,

@mkuratczyk thanks for getting back to me! I created the PR in #89

The RabbitMQ app might not be able to start for genuine reasons, the most common one being unavailable peers to complete Mnesia sync. In this common scenario, BOSH should continue with the next instance and not stop. A failing post-start script would prevent BOSH from continuing with the next instance in the group.
If there was a genuine issue for the RabbitMQ app crashing and not starting, then this should bring the entire Erlang VM down, meaning a changing PID that Monit and ultimately BOSH would notice and correctly mark the canary node as failing. A crashing RabbitMQ app would not bring the Erlang VM down until v3.6.13, I'm wondering if you were experiencing this known & already fixed issue: rabbitmq/rabbitmq-common#237
To guard against RabbitMQ app crashing after Mnesia sync-ing completes, it would make sense to run a node & cluster check in a post-deploy, which we already do. There's also rabbitmqctl await_cluster_formation 3 --timeout 120 available since RabbitMQ v3.7.6 which might be of interest here.
cc @nodo @albertoleal @MarcialRosales @michaelklishin

@nodo About your idea in #89 to investigate the logs:

Node 1 looks fine as far as I can tell (see log output in https://github.com/pivotal-cf/cf-rabbitmq-release/pull/89#issuecomment-398806984)
Node 3 looks fine as Node 1
Node 2 outputs the following error messages in its<EMAIL_ADDRESS>
=ERROR REPORT==== 1-Jun-2018::22:33:33 ===
** Generic server <0.6673.4975> terminating
** Last message in was {'$gen_cast',terminate}
** When Server state == {ch,running,rabbit_framing_amqp_0_9_1,1,
                         <0.16961.4977>,<0.16429.4977>,<0.16961.4977>,
                         <<"<IP_ADDRESS>:56114 -> <IP_ADDRESS>:5672">>,
                         {lstate,<0.17527.4977>,false},
                         none,2,
                         {[{1,none,{<7325.9869.1>,1548}}],[]},
                         {user,<<"ueWpLOMKblniObwR">>,
                          [management,policymaker],
                          [{rabbit_auth_backend_internal,none}]},
                         <<"96621d9c-4ec4-4540-82c2-3ca8920b6409">>,<<>>,
                         {dict,1,16,16,8,80,48,
                          {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
                          {{[],[],[],
                            [[<7325.9869.1>|
                              {resource,
                               <<"96621d9c-4ec4-4540-82c2-3ca8920b6409">>,
                               queue,<<"<REDACTED-QUEUE-NAME>">>}]],
                            [],[],[],[],[],[],[],[],[],[],[],[]}}},
                         {state,
                          {dict,1,16,16,8,80,48,
                           {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
                           {{[],[],[],
                             [[<7325.9869.1>|#Ref<0.1.3680763905.11413>]],
                             [],[],[],[],[],[],[],[],[],[],[],[]}}},
                          erlang},
                         {dict,0,16,16,8,80,48,
                          {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
                          {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}}},
                         {dict,0,16,16,8,80,48,
                          {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
                          {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}}},
                         {set,1,16,16,8,80,48,
                          {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
                          {{[],[],[],
                            [<7325.9869.1>],
                            [],[],[],[],[],[],[],[],[],[],[],[]}}},
                         <0.15941.4977>,
                         {state,fine,20000,undefined},
                         false,1,
                         {{0,nil},{0,nil}},
                         [],
                         {{0,nil},{0,nil}},
                         [{<<"consumer_cancel_notify">>,bool,true},
                          {<<"publisher_confirms">>,bool,true},
                          {<<"basic.nack">>,bool,true},
                          {<<"authentication_failure_close">>,bool,true},
                          {<<"connection.blocked">>,bool,true},
                          {<<"exchange_exchange_bindings">>,bool,true}],
                         none,0,none,flow,[]}
** Reason for termination ==
** {badarg,
       [{ets,insert,
            [channel_metrics,
             {<0.6673.4975>,
              [{pid,<0.6673.4975>},
               {transactional,false},
               {confirm,false},
               {consumer_count,0},
               {messages_unacknowledged,1},
               {messages_unconfirmed,0},
               {messages_uncommitted,0},
               {acks_uncommitted,0},
               {prefetch_count,0},
               {global_prefetch_count,0},
               {state,running},
               {garbage_collection,
                   [{max_heap_size,0},
                    {min_bin_vheap_size,46422},
                    {min_heap_size,233},
                    {fullsweep_after,65535},
                    {minor_gcs,10}]}]}],
            []},
        {rabbit_core_metrics,channel_stats,2,
            [{file,"src/rabbit_core_metrics.erl"},{line,144}]},
        {rabbit_channel,emit_stats,2,
            [{file,"src/rabbit_channel.erl"},{line,2023}]},
        {rabbit_event,if_enabled,3,[{file,"src/rabbit_event.erl"},{line,138}]},
        {rabbit_channel,terminate,2,
            [{file,"src/rabbit_channel.erl"},{line,634}]},
        {gen_server2,terminate,3,[{file,"src/gen_server2.erl"},{line,1147}]},
        {proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,257}]}]}
** In 'terminate' callback with reason ==
** normal

This occurs multiple times for different queues.
I'm afraid I'm not allowed to share the whole logs (since it might contain customer information).
Does this suffice to make a judgement, for example looks like a known bug?
Otherwise, I try to see whether we can work with Pivotal support again (where we can safely pass logs).
post deploy logs:
node1:
Running node checks at Fri Jun  1 22:39:03 UTC 2018 from post-deploy...
Node checks running from post-deploy passed
Running cluster checks at Fri Jun  1 22:39:03 UTC 2018 from post-deploy...
Timeout: 70.0 seconds
Checking health of node rabbit@05938b8fd4a523bd529c136ca66c20c2
Error: {killed,{gen_server2,call,[<10723.16611.1>,{info,[pid]},infinity]}}
RabbitMQ application is not running

node2:
Running node checks at Fri Jun  1 22:39:02 UTC 2018 from post-deploy...
Node checks running from post-deploy passed
Running cluster checks at Fri Jun  1 22:39:03 UTC 2018 from post-deploy...
Timeout: 70.0 seconds
Checking health of node rabbit@f98e1c2c6e9f9a6f7617830ceb0b7e04
Error: operation node_health_check on node rabbit@f98e1c2c6e9f9a6f7617830ceb0b7e04 timed out
RabbitMQ application is not running

node3:
Running node checks at Fri Jun  1 22:39:02 UTC 2018 from post-deploy...
Node checks running from post-deploy passed
Running cluster checks at Fri Jun  1 22:39:03 UTC 2018 from post-deploy...
Timeout: 70.0 seconds
Checking health of node rabbit@07632a494f7a8a8fb6b7f6af08f72f2c
Error: operation node_health_check on node rabbit@07632a494f7a8a8fb6b7f6af08f72f2c timed out
RabbitMQ application is not running


facebook login not working with parse-server hosted on AWS

I have the parse-server-example setup on AWS. I have been trying to add facebook login for a long time now. It doesn't seem to be working. Trying to test the Parse.FacebookUtils api. When I call the logIn function of the api, it does not return anything. Just waits for the server to return.
I have added the following property while instantiating the ParseServer,
facebookAppIds: ["<myAppId>"]
Environment Setup
Client

react-native android application
parse version: 1.8.5

Server

parse-server version: 2.2.12
remote server: AWS Elastic BeanStalk

Database

MongoDB version: 3.0.x
remote server mLab

Are you having any other issues with Elastic Beanstalk? We are noticing high latency and poor performance when doing reads/writes to classes on our mLab through the REST API.

No, I haven't seen other issues yet. I am able to create objects for other classes easily. I am not able to figure out what is wrong with the facebook authentication.

It seems to be working now. Couldn't determine exactly what was causing this though.


Add External links in Gatsby

Problem
Currently some links within the website links user to Carbon Design System website. Because Carbon's website look exactly the same as Carbon for IBM.com website, the viewer gets extremely confused because navigation and header all suddenly changes.
Proposal
We'd like an option to add links in the pages that are "external links". The link should have a launch icon appended, stay inline within a paragraph, but otherwise look the same as regular links.
Design Spec
Icon size: 20px
Icon color: $interactive-01
4px spacing from link text

Found a low cost solution! To create an external link in Gatsby, just use plain HTML markup with target="_blank" in the  tag. I suggest we also write “opens in new tab” behind these external link texts so people are given a heads up.
Example:
Here's a paragraph with an external link (opens in new tab) so watch out!

@janchild


Update aws-core, http-client-spi, ... to 2.17.179

Updates

software.amazon.awssdk:aws-core
software.amazon.awssdk:http-client-spi
software.amazon.awssdk:netty-nio-client

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

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "software.amazon.awssdk" } ]

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

Superseded by #815.


command-not-found database may provide useless suggestions

Issue description
command-not-found suggests mariadb for rcmysql, which is indeed included in mariadb, but is a broken link (to /etc/init.d/mariadb iirc) and as such unhelpful.
This is clearly a bug in the mariadb package, but should it perhaps also be considered a bug in the command-not-found database builder?
Steps to reproduce
Enable command-not-found and type rcmysql in the shell. Install mariadb as it suggests and type rcmysql again.
Technical details

System: 17.03.1313.d10fe64124 (Gorilla)
Nix version: nix-env (Nix) 1.11.10
Nixpkgs version: "17.03.1313.d10fe64124"
Sandboxing enabled:  true

There is a bug in the code, which generates the database for command-not-found: https://github.com/NixOS/nixpkgs/pull/24962#discussion_r111743170 That's why it is disabled by default now.

IMHO there's not a lot you can do when packages are providing bad links. I guess you're suggesting doing something along the lines of verifying symlinks which I suppose would be fine but it's a fairly rare case isn't it? Somebody can patch mariadb to rm /bin/rcmysql perhaps but it really is mariadb's problem.
I would really suggest people look at nix-index. It is similar to command-not-found but also allows you to lookup paths that are outside of the /bin folder.
For a while, I've though Nixpkgs should have an additional meta attribute called expectedPaths that is just a list of paths that should be installed to that package. If it's not there, the builder will fail in the test phase. It would give an assurance that that path is expected by the user and implies that consumers of that package can rely on it being there. For example in hello:
{ stdenv, fetchurl }:

stdenv.mkDerivation rec {
  name = "hello-2.10";

  src = fetchurl {
    url = "mirror://gnu/hello/${name}.tar.gz";
    sha256 = "0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i";
  };

  doCheck = true;

  meta = {
    description = "A program that produces a familiar, friendly greeting";
    longDescription = ''
      GNU Hello is a program that prints "Hello, world!" when you run it.
      It is fully customizable.
    '';
    homepage = http://www.gnu.org/software/hello/manual/;
    license = stdenv.lib.licenses.gpl3Plus;
    maintainers = [ stdenv.lib.maintainers.eelco ];
    platforms = stdenv.lib.platforms.all;
    expectedPaths = [ "bin/hello" ];
  };
}

You would be fine to leave it empty and to have files in the derivation that aren't explicitly listed but you would also not have that assurance. command-not-found could then use this to prioritize expected paths like rcmysql in mysql over unexpected paths like in mariadb.

There is no package there yet for nix-index, right?

As for rcmysql in particular, it might be better to redirect the symlink.
$ nix-build -Q -A mariadb.all
/nix/store/blx7rpirxqmdxvhm89rq5nsrcg934j5a-mariadb-10.1.21
$ ls -l ./result/bin/rcmysql
lrwxrwxrwx 1 root root 22 Jan  1  1970 ./result/bin/rcmysql -> etc/mysql/init.d/mysql
$ ls -l ./result/etc/mysql/init.d/mysql
-r-xr-xr-x 1 root root 12627 Jan  1  1970 ./result/etc/mysql/init.d/mysql

I am in favor of getting nix-index in when the author of the tool has fixed all the currently open issues in it.


Add support for filtering messages out before dumping to storage

implementing #399

implementing #399

by mistake,
returned it back where it belonged :)

Thanks for the contribution.


Add odo url command test with devfile

Signed-off-by: Joseph Kim<EMAIL_ADDRESS>What does this PR do?
Add test cases for odo URL command run with devfile
What issues does this PR fix or reference?
https://github.com/devfile/api/issues/789
Is your PR tested? Consider putting some instruction how to test your changes
Local test and Github Actions test

/retest


fix: force pull for docker-compose in functional tests

- What I did
added docker-compose pull before bringing up
Also added coverage/ directory to .gitignore
- Description for the changelog
fix: force pull for docker-compose in functional tests
fix: add coverage directory to .gitignore

Converted to Draft, as this isn't ready to be merged.
My next steps:
1, Alter workflow to echo cacerts, and verify that's carrying expected root CA
2. Alter workflow to incorporate certinfo, and use that to check certs being presented by the virtualenv

@kalluriramkumar I think this should still be merged, but the functional tests are still failing as before (#721) with cert errors. Any thoughts on why that might be happening?

@cpswan your branch is a few commits behind trunk and needs to have those commits merged in in order for the tests to pass

@gkc of course 🤦 though previously I've seen a helpful button to press to catch up :/

@gkc of course 🤦 though previously I've seen a helpful button to press to catch up :/

Yes I haven't quite figured out why sometimes that button is there and sometimes it isn't 🤔 ... it is very annoying when it isn't there, and yes I've been bitten by this in the past 😬


Enable right click deny only while space is pressed.

A drawback of enabling right click deny is that if you are a ranged hero and want to move towards a location, if there is an allied creep/hero/ward at that position, your hero will try to deny it and if it isn't deniable it will issue an attack on the closest enemy. This is a problem when you are trying to escape and suddenly you start attacking instead of running away.
With this config, right click is enabled only while space is pressed. It has been useful to me, if you guys find it useful too, you can include it in the main config.

I like this a lot
Really creative
It will take some time to inform people of this change


Fix some punctuation marks

No spaces allowed between some punctuation marks and previous word.

[X] I have read freeCodeCamp's contribution guidelines.
[X] My pull request has a descriptive title (not a vague title like Update index.md)
[X] My pull request targets the master branch of freeCodeCamp.
[X] None of my changes are plagiarized from another source without proper attribution.
[X] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

The rendered output is the same, so this change is without effect for punctuation.


Using manga_downloader on Windows downloads corrupted images

You can reproduce this with any combination of options, sites and mangas. It would appear that this issue doesn't happen in Linux.
This is most likely happening because on line 192 of base.py the temp download location is not being opened in binary mode:
f = open(temp_path, 'w')
According to the official Python2 documentation for the open function:

Append 'b' to the mode to open the file in binary mode, on systems that differentiate between binary and text files; on systems that don’t have this distinction, adding the 'b' has no effect.

Windows does make this distinction.
Below is an example of this behavior. This is page 1 of Bleach 113 downloaded from MangaPanda:

👍 Super clear bug report.  Thanks for the fix!


AttributeError: 'TrimeshSceneViewer' object has no attribute 'vertex_list_hash'

Hi!
I couldn't run the BA demo:
https://github.com/joeaortiz/gbp#citation)python ba.py --bal_file data/fr1desk_small.txt
The error is:
AttributeError: 'TrimeshSceneViewer' object has no attribute 'vertex_list_hash'
The Toy simulations are good.
How to fix it? THX!

I try to fix this with these steps:

Add the code in TrimeshSceneViewer()'s init():
https://github.com/joeaortiz/gbp/blob/5670a498950bfa948da502b2381899ab46f61021/vis/ba_vis.py#L21
super(TrimeshSceneViewer,self).__init__(scene, resolution=None)
This makes the child class re-write the method of the parent class.

Replace this line
https://github.com/joeaortiz/gbp/blob/5670a498950bfa948da502b2381899ab46f61021/vis/ba_vis.py#L74

with
with threading.Lock():
The code runs well on my computer. Hope this is helpful.


How to store "multi-value" BIM properties in custom properties?

I am currently trying to provide additional BIM information into the GLDF file using CustomProperties/Property.
The following bim attribute supports "n" values for one "property". How should this information be stored in the xml?
The attribute:

CustomProperties/Property XSD:

Is this XML snippet correct for "simpler" BIM properties? (for example 1 value of type string):
<Property id="1dPvrZN3vEIB0n0vwYvDcX"><!-- GlobalID from BIM spreadsheet? -->
    <Name>
        <Locale language="de">Breite</Locale>
        <Locale language="en">width</Locale>
     </Name>
     <PropertySource>BIM</PropertySource>
     <Value>107</Value><!-- How to provide multiple values here? -->
</Property>

Another question is how to provide translated values for "string" bim properties without values sets?

You might consider which of those might as well be Marketing - type Application - attributes, otherwise...
Property is a list item of the parent CustomProperties, id did not check, but it should work like this:
<CustomProperties>
    <Property id="1dPvrZN3vEIB0n0vwYvDcX">
        <Name>
            <Locale language="de">Breite</Locale>
            <Locale language="en">width</Locale>
         </Name>
         <PropertySource>BIM</PropertySource>
         <Value>107</Value><!-- How to provide multiple values here? -->
    </Property>
</CustomProperties>

I know that I can list many Property inside CustomProperties but I have to list multiple Values inside one Property, for example:
<CustomProperties>

    <Property id="1dPvrZN3vEIB0n0vwYvDcX">
        <Name>
            <Locale language="de">Breite</Locale>
            <Locale language="en">width</Locale>
         </Name>
         <PropertySource>BIM</PropertySource>
         <Value>107</Value><!-- Single numeric value, everything okay, works. -->
    </Property>

    <Property id="XXXXXXXXXX">
        <Name>
            <Locale language="de">Anwendung</Locale>
            <Locale language="en">application</Locale>
         </Name>
         <PropertySource>BIM</PropertySource>
         <Values><!-- currently not supported, but needed for some BIM attributes with value sets and n possible values -->
             <Value>Indoor</Value>
             <Value>Outdoor</Value>
         </Values>
    </Property>

    <Property id="XXXXXXXXXX">
        <Name>
            <Locale language="de">Beispiel</Locale>
            <Locale language="en">example</Locale>
         </Name>
         <PropertySource>BIM</PropertySource>
         <Values><!-- currently not supported, but needed for some BIM attributes with type string -->
             <Value language="de">Beispielwert Deutsch</Value>
             <Value language="en">Beispielwert Englisch</Value>
         </Values>
    </Property>

</CustomProperties>

I think the question ist how to provide multiple values for one specific property. Something like multiple colors for example. Currently there is no specification in GLDF for this, because we cannot cover all cases. And we want to keep it simple.
But there could be conventions that can be used for writing and reading such custom properties in applications. Like a separator for multiple values:
<CustomProperties>
    <Property id="1dPvrZN3vEIB0n0vwYvDcX">
        <Name>
            <Locale language="en">Colors</Locale>
         </Name>
         <PropertySource>BIM</PropertySource>
         <Value>Red;Green;White</Value> <!-- semicolon-separated values here-->
    </Property>
</CustomProperties>

Or a hyphen for value ranges:
<CustomProperties>
    <Property id="1dPvrZN3vEIB0n0vwYvDcX">
        <Name>
            <Locale language="en">Some important temperature range</Locale>
         </Name>
         <PropertySource>BIM</PropertySource>
         <Value>15-80</Value> <!-- range determined by a hyphen -->
    </Property>
</CustomProperties>

However, when the need arises for "type-safe" definitions of multiple values in one custom property in the GLDF, we could also consider an adaptation of the format like in your example above

If I remember correctly, in one of the first GLDF introduction webinars it was mentioned, that BIM properties (https://gldf.io/download#bim---building-information-modeling) should be provided via <CustomProperties>. The reason for us trying to provide BIM properties into our GLDF files is, that we thought it would be added / needed to the .ifs / .rfa files generated by RELUX / DIAL from our GLDF files. Is this even needed / planned or are only the "core" / "default" GLDF properties taken into account while converting to .ifs / .rfa? In that case we would simply not include any CustomProperties into our GLDF files.

Basically we recommend maintaining as much data as possible. GLDF is an open format with more and more use cases and stakeholders. Perhaps there is a need for the BIM properties elsewhere in the future.
But speaking at this point (and from my side for DIAL only): First of all, we will integrate the format into DIALux and not evaluate the CustomProperties - at least in the medium term. This does not mean that our IFC applications and services could not be extended in the future and handle GLDF including BIM inside CustomProperties as well. However, there are no concrete plans for this at the moment - the priority currently in to support GLDF is DIALux.


Populate live score page elements with the JSON object

Purpose

The purpose of this PR is to fix #29
Screenshots

Preview Link
Checklist

[x] This PR doesn't commit any keys, passwords, tokens, usernames, or other secrets.
[x] I have read and understood the development best practices guidelines
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented on my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation

Related PRs
Test environment
Learning

@all-contributors please add @janithRS  for code


Xbox Game Pass doesn't run

The installation goes completely fine and other launchers like Ubisoft plus work as intended as well
but for some reason Xbox game pass just doesnt open :(

@SoftieIsVibing you need Microsoft edge installed from the discover store installed. Chrome you need installed from the discover store only for Amazon luna

Oh right i see, so is the gamepass launcher cloud gaming only?

@SoftieIsVibing yeah Xbox game pass, GeForce now and Amazon Luna are all cloud based websites that support game streaming.

ah right okay, thank you so much for your help


Post release automated changes for securitydevops releases

Post release automated changes for azure-arm-securitydevops

API change check
API changes are not detected in this pull request.


Feat: Add tracing data to prelogin and login7 packets

Fixes #226 .
I'm not ready to figure out how to maintain a sequence number update across redirects; there's not a clear place to store it.
I plan to have at least one more push to implement a Log method on tdsSession that prepends the activity id and the connection id to all the session-specific driver trace messages. I want to replace code like this:
if c.sess.logFlags&logRetries != 0 {
	c.sess.logger.Log(ctx, msdsn.LogRetries, err.Error())
}

with this:
c.sess.Log(ctx, msdsn.LogRetries, err.Error())

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

Project coverage is 74.84%. Comparing base (573423d) to head (a5b1205).
Report is 1 commits behind head on main.

Files with missing lines
Patch %
Lines

tds.go
72.00%
5 Missing and 2 partials :warning:

session.go
92.72%
4 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #228      +/-   ##
==========================================
- Coverage   74.87%   74.84%   -0.04%
==========================================
  Files          32       33       +1
  Lines        6397     6433      +36
==========================================
+ Hits         4790     4815      +25
- Misses       1325     1332       +7
- Partials      282      286       +4

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


[CARBONDATA-3865] Implementation of delete/update feature in carbondata SDK.

Why is this PR needed?
Currently carbondata SDK doesn't provide delete/update feature. This PR will supports carbondata SDK to delete/update of records from carbondata files
What changes were proposed in this PR?
With the help of this PR carbondata SDK will support delete/update features. For more details please refer to https://issues.apache.org/jira/browse/CARBONDATA-3865
Does this PR introduce any user interface change?

No

Is any new testcase added?

Yes

Build Failed  with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/1599/

Build Failed  with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/3339/

Build Failed  with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/1659/

Build Failed  with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/3401/

Build Failed  with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/1711/

Build Failed  with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/3453/

Build Failed  with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/1750/

Build Failed  with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/3492/

Build Failed  with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/1751/

Build Failed  with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/3493/

Please  rebase it

Build Failed  with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/1832/

Build Failed  with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/3571/

Build Failed  with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/1833/

Build Failed  with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/3572/

Build Failed  with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/1836/

Build Failed  with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/3575/

Build Failed  with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/3576/

Build Failed  with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/1837/

Build Failed  with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/1881/

Build Failed  with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/3620/

Build Failed  with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/1882/

Build Failed  with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/3621/

Build Failed  with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/1889/

Build Failed  with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/3628/

Build Success with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/1891/

Build Success with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/3630/

Build Failed  with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/2185/

Build Failed  with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/3926/

Build Success with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/3937/

Build Success with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/2197/

retest this please

Build Success with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/3994/

Build Success with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/2254/

LGTM

Build Success with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/2257/

Build Success with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/3997/

Build Success with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/4011/

Build Success with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/2272/

LGTM

@Karan-c980 Please rebase, dont use merge to pull the new code

done

@Karan-c980 Please rebase, dont use merge to pull the new code.
Merge commit should not be there

Done

Build Success with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/2275/

Build Success with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/4014/

Build Failed  with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/2278/

Build Failed  with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/4017/

Build Success with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/4019/

Build Success with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/2281/

LGTM


Refactor folders

application init, middleware and settings folder app
backends folder for init, operate functions of postgres  and redis
helpers for errors and utils
models
routes
schemas
views
main.py main entry point for application

Codecov Report

Merging #16 (d15114d) into master (b502e58) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master       #16   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           11        15    +4
  Lines          331       341   +10
  Branches        13        13
=========================================
+ Hits           331       341   +10

Impacted Files
Coverage Δ

backends/redis.py
100.00% <ø> (ø)

helpers/errors.py
100.00% <ø> (ø)

app/__init__.py
100.00% <100.00%> (ø)

app/auth.py
100.00% <100.00%> (ø)

app/middlewares.py
100.00% <100.00%> (ø)

app/settings.py
100.00% <100.00%> (ø)

backends/db.py
100.00% <100.00%> (ø)

helpers/utils.py
100.00% <100.00%> (ø)

main.py
100.00% <100.00%> (ø)

models/users.py
100.00% <100.00%> (ø)

... and 11 more

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 b502e58...d15114d. Read the comment docs.


Extension doesn't work with projects that don't install node modules in the root folder

The extension doesn't detect Playwright and tests if dependencies aren't installed in the root folder.
For a bit of background, I'm using Elixir/Phoenix in a project and node dependencies typically go into the assets/ folder.
I didn't find an option to change the installation folder, but maybe I missed something.
Installation — Phoenix v1.5.13
  /       assets/                  node_modules/                  package.json                      other_elixir_or_phoenix_folders/

Similar issue when using Yarn 3 with PnP

any changes or solution?


Theme not working when I seperate slides.

When I have slides in 1 MDX file.
My theme works properly when I do this
export { default as theme } from '../theme.js'

But when I separate them in different files as explained here. My theme no longer works.
I'm not sure whether this is a bug. It might my premature understanding of mdx-deck because this is my second day to use it and everything has been straightforward except that.
Is there any work around this?

If you're splitting up the MDX files, you'll want to export the theme object from the file that combines them, i.e. the one you pass to the mdx-deck CLI


Added benchmark for RpmMetadata.Append

Part of #388
Added benchmark for RpmMetadata.Append

@genryxy could you please take a look?


Bug/60: Request destructuring fix for Auth controller

According to the Default Parameters documentation:
Passing undefined vs. other falsy values:
Even if the argument is set explicitly to undefined (though not null or other falsy values), the value of the argument is still the default.
Here, payload could be equal to null at the moment of function invocation, causing the following error:
TypeError: Uncaught error: Cannot match against 'undefined' or 'null'.

Fixes #60