text:
描述个timeout现象。不确定原因

场景，在即使聊天的产品里面使用，新发的语音，接收方会下载超时，显示timeout。如果debug或者故意晚一秒去下载，没有这个问题。
使用okhttp3写的下载代码没这个问题。
从现象分析：上传下载的时间间隔太短，会导致下载失败，很头痛。

你用的okhttp3 版本是多少？我这边低于OkHttp 4.9 下载 断开 重连 几次，就会报timetout, 把OkHttp 升级到4.9 可以解决这个问题。

THX，升级OKhttp版本确实非常有效果

4.9里有啥不一样的改造吗，还有这个问题

对，我这边4.9.1也有这种问题

source: gharchive/issue

authors: AreYReady Bert-King Kingcool759 ZackLee tianshaokai

repo: lingochamp/okdownload

license_type: permissive

license_source: github-api


text:
Extract translation still requires @babel/preset-react

Great plugin, one thing which doesn't work for me is
NODE_ENV=development lingui extract --clean
This is the error
Add @babel/preset-react (https://github.com/babel/babel/tree/main/packages/babel-preset-react) to the 'presets' section of your Babel config to enable transformation.
If you want to leave it as-is, add @babel/plugin-syntax-jsx (https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-jsx) to the 'plugins' section to enable parsing.
Do you know any workarounds for this one?

https://github.com/lingui/swc-plugin/blob/main/examples/nextjs-13/lingui.config.js
Look at the example, and read a Readme there is paragraph about that

https://github.com/lingui/swc-plugin/tree/main/examples/nextjs-13#important-notes

You should not have a babel config in the project, otherwise Next will turn off SWC compiler in favor of babel.
All babel dependencies used only for lingui extractor. The actual code is compiled with SWC + Lingui SWC plugin.

Please can this be reopened as this somewhat defeats the purpose of using swc if babel still gets used for the extract pass?

SWC plugin used for transpiling your code while building/bundling. It unblocks using latest nextjs with it's default compiler with all benefits, or speeding your build by replacing babel to swc.
Regarding extracting. Extractor is still written in Js and there no plans to write in Rust. The extraction itself is fast enough even whith babel, so there no just no sense in doing that.
PS in version 4, which you can try right now you don't need to install babel dependencies to make extractor work.

authors: bafxyz thekip

repo: lingui/swc-plugin

license: MIT


text:
Use QuickGrid for VisitCounter Table

See more details here: https://aspnet.github.io/quickgridsamples/

This things dead as there are no active commits since over 3 month

repo: linkdotnet/Blog


text:
Add Cocoapods static_framework support

I see Cocoapods RC (1.4.0.rc.1) supports swift static frameworks. Added that to avoid creating a dynamic library.
The latest Cocoapods RC can be installed using this command sudo gem install cocoapods --pre

Enabling this will cause the binary to be linked statically.
If the pod consumer has multiple targets using LayoutKit, LayoutKit will be liked multiple times.
Agree with  @staguer it might be more appropriate for the consumers to decide how it will be linked.
Cocoapods 1.5.0 is adding support for this use case, FYI.

source: gharchive/pull-request

repo: linkedin/LayoutKit

license_source: bigquery


text:
Upload bluepill binary to brew

Upload a recipe fo bluepill to brew so that people don't have to build bluepill through source code.

it is already in homebrew thanks to the community..

repo: linkedin/bluepill


text:
Multidex abstract test class issue

Hi,
We use this library for extracting tests to run from apks and we have recently noticed that parsed test count is not stable. We run it on CI and sometimes a few test methods are not parsed. After some investigation, it runs out that these methods are defined in base test classes.
I checked two apks: the first one where we don't have tests from a base class and the second one where these tests were parsed successfully. Hashes of the apks are different but if you unpack them and compare the hashes of the contents they are absolutely identical. Hashes of all the dex files are the same. The only difference that I found is the order of dex files how they appear in zip archive :)
So the problem is that base class was defined in classes4.dex and the concrete implementation is in classes2.dex. The order of the dex files in the archive is completely random each time when you package the apk. Not sure is this a violation of dex specification or not because in the specs there is no info about multidex and I can't find any specs for multidex.
We use AGP 3.5.1. Has anyone encountered this problem?
Looks like we can't rely on the order of classes/superclasses when we have multiple dex files, so we need to have multiple passes. What do you think about it? I will create a PR soon with the fixes

Thanks for raising this! I could have sworn multidex made some guarantees on the ordering of dex files, but looking back at thee docs looks like its only for the main dex file :( Appreciate you raising the PR! I'm going to try and take a look this weekend

authors: kkoser lukaville

repo: linkedin/dex-test-parser


text:
refactor Spark fetcher

While preparing to try improving how Dr. E collects Spark data, I went through some of the existing Spark-related code and tried to clean it up:

adding unit tests
re-organizing code
pruning code
closing open connections

Let me know if you have any questions...

@rayortigas, could you take care of the Travis build checks? We want Dr. Elephant to work with java 6 also.

Thanks for the note @akshayrai. I didn't get any messages about the CI failures; can you enable notifications if they aren't already enabled?
Just curious, why do we want to preserve compatibility with Java 6?

OK, it looks like CI passed this time. Please let me know if you have any other questions.

@rayortigas, thanks for fixing it. We have been preserving java 6 just to ensure that people who are still running java 6 on their clusters can use Dr. Elephant.

+1, LGTM.
@rayortigas, before we merge, can you fix the small conflict.

+1

Closing, now that #162 replaces the old Spark fetcher entirely.

authors: akshayrai rayortigas shankar37

repo: linkedin/dr-elephant


text:
Implementation of Exception Fingerpriting for TonY

DESCRIPTION
This PR contains changes to implement the feature of Exception Fingerprinting for TonY. For this feature, we extract container logs for TonY application,
parse them and then filter out relevant exception snippets. These filtered out exceptions are stored in Dr.Elephant's DB itself. There are various exception pattern regexes formed to filter the relevant exceptions and these pattern regexes are configurable.
Screenshot:

How These Changes are Tested
These changes are tested on test environment and respective unit tests are also added with mocked REST requests.

LGTM


text:
Avro2orc Source/Converter/Extractor/Publisher

Changes
Detailed design for this change can be found at https://docs.google.com/document/d/1PjvhDzvPxIjsb-gaRk1iiM7R8LyJHU3620DXmfoOeBs/edit?ts=57283d21#heading=h.z2tj4tr1he0q
This change implements everything discussed in the above design.
@abti  and @zliu41 can you review?

Coverage increased (+0.2%) to 45.398% when pulling e878078bbc301135a7a61e12bf8ca38a29599aec on pcadabam:avro2orc into 9971e736a6eb3328e2375875ad362c87ff574678 on linkedin:master.

@zliu41 I have addressed all pr comments. Can you take another look?

Coverage increased (+0.6%) to 45.81% when pulling bbe1626a02ab169bca3737a67d2a641a4c1d59eb on pcadabam:avro2orc into 9971e736a6eb3328e2375875ad362c87ff574678 on linkedin:master.

LGTM

Coverage increased (+0.8%) to 45.515% when pulling 203c512a1dbac9e61008e6fc1df9d69f21a4abf8 on pcadabam:avro2orc into 11ef2516b69d8603f020619d84acd476bf562781 on linkedin:master.

authors: coveralls pcadabam zliu41

repo: linkedin/gobblin


text:
[Server][FC] throws exception during store migration to enforce d2 refresh

Summary

As titled, we need to throw exceptions explicitly so FC can detect the store migration and refresh d2 service as needed. How it works is basically we compare the server cluster with the store cluster set on ZK. If they are different, it means the store migration has completed in the given region, so we can throw exception to refresh the service discovery.
How was this PR tested?

new unit tests and the integ test.
Does this PR introduce any user-facing changes?

[ ] No. You can skip the rest of this section.
[ ] Yes. Make sure to explain your proposed changes and call out the behavior change.

For a commit which changes the server, please include [server] in the commit message prefix.

Enabled the automerge but forgot to squash my commit msgs 😢

authors: FelixGV adamxchen

repo: linkedin/venice


text:
[WIP][router] Use netty pooled buffer in router

[router] Use netty pooled buffer in router

Router today uses Unpooled allocator for handing response from server. Try to use pooled allocator to improve GC.
How was this PR tested?

Does this PR introduce any user-facing changes?

[x] No. You can skip the rest of this section.
[ ] Yes. Make sure to explain your proposed changes and call out the behavior change.

Are we still interested in this initiative?

Hey @majisourav99 , do you have any bandwidth to iterate the PR and resolve the conflicts? We'd like to keep the open PR list short so folks can focus on high-priority ones and get changes into production ASAP. If there's no traction or interest to get this PR merged, we will close this PR later.

authors: FelixGV adamxchen majisourav99


text:
[WIP][compat][server][common] Leader hybrid offset lag fix

[WIP][compat][server][common] Leader hybrid offset lag fix
Introduced new control message SyncOffset. The purpose of the new CM is to allow leader replica update its latest processed upstream RT offset and calculate lag correctly when the tail of the RT is filled with SOS and EOS CMs.
In addition, this will unblock the rollout of A/A lag calculation since it will address the edge case where all the ending
messages of a remote RT topic are ignored due to DCR. Currently this will produce a positive lag when the consumption
of that remote fabric is actually up-to-date.
Here is the new flow, upon consuming SOS, EOS CMs or skipped records from upstream RT as leader the following will
happen:

Leader will update the in-memory latest consumed upstream RT offset.
The leader will periodically produce the SyncOffset CM containing a map of KafkaURLs and its corresponding latest consumed upstream RT offset (works for both L/F and A/A).
Upon processing the CM in the drainer the consumer will only update its latest processed leader upstream RT offset
if the offset in the CM is greater.

How was this PR tested?
TODO
Does this PR introduce any user-facing changes?

[ ] No. You can skip the rest of this section.
[ ] Yes. Make sure to explain your proposed changes and call out the behavior change.

For protocol upgrade like this that introduces new CM. I think we need to have a config to control when to start producing the new CM since once the new CM is in the VT. Components with older code cannot process it since our default behavior right now for UNKNOWN CM type is to throw exception.

Thanks for getting started on this Xun! Cool stuff...
A few comments:

This is similar to another idea we had earlier, which is to have a CM carry the leader's RT DIV state to the follower. Essentially, serialize the PartitionState (or some parts of it, at least...) and pack that into the CM. This would allow the follower to keep track of where the leader is at in the RT consumption, and if the follower becomes leader, it could restore that PartitionState it got from the last such CM, subscribe to the RT at that offset, and begin consuming from there. This would mean the follower to leader transition has no DIV gap at all. The PartitionState contains the upstreamOffsetMap, which I think is the same content that you intend to pass into the new CM.
Because the VT is consumed by DVC, adding a new CM type could be a bit risky (it'll throw a UnsupportedMessageTypeException...). So I think it would be ideal to NOT introduce a new CM here, actually, but to add a new field to the EOS CM containing the above info. Then the leader server could periodically do a EOS/SOS, and the DVC instances and non-upgraded followers that don't care about the new EOS field could safely ignore it, simply leveraging the already-existing KME forward compat.
If the EOS start packing a lot more content, and we periodically do a EOS/SOS, then they could add up to a non-trivial amount amount of Kafka space. I think that's not ideal... and we should consider changing the key generation logic for these CMs, so that they are always the same (e.g. containing just the CM type and producer GUID, perhaps). This way, they could be log-compacted... That may have some side-effects so it's potentially a bit finicky, but anyway...

If we were to do this we’d hide the feature behind the config and deprecate older DVC version and wait for everyone to be on the new version before enabling it. In addition I think we should change the code to ignore unknown CMs instead of throwing exceptions.
Using SOS and EOS to carry the information we needed here is an option however it’s not going to be reliable to be used as a heartbeat in the future for time based lag. Since upstream writer could go idle or have issue writing while the Venice pipeline could be doing fine.

If we were to do this we’d hide the feature behind the config and deprecate older DVC version and wait for everyone to be on the new version before enabling it.

Adding a field to EOS is an alternative that doesn't require upgrading DVC. This makes it easier to roll out, IMHO.

Using SOS and EOS to carry the information we needed here is an option however it’s not going to be reliable to be used as a heartbeat in the future for time based lag. Since upstream writer could go idle or have issue writing while the Venice pipeline could be doing fine.

I don't understand... why would it be less reliable? We could still periodically send EOS+SOS even while the upstream writers are idle.

If we were to do this we’d hide the feature behind the config and deprecate older DVC version and wait for everyone to be on the new version before enabling it.

Adding a field to EOS is an alternative that doesn't require upgrading DVC. This makes it easier to roll out, IMHO.

Using SOS and EOS to carry the information we needed here is an option however it’s not going to be reliable to be used as a heartbeat in the future for time based lag. Since upstream writer could go idle or have issue writing while the Venice pipeline could be doing fine.

I don't understand... why would it be less reliable? We could still periodically send EOS+SOS even while the upstream writers are idle.

Oh, I think I misunderstood your suggestion then. Are you recommending the following:
Leader will periodically emit a separate SOS and EOS containing additional information to either RT or VT. We will persist it to VT upon processing if we are writing it to RT. This way the rollout is much easier.

Oh, I think I misunderstood your suggestion then. Are you recommending the following:
Leader will periodically emit a separate SOS and EOS containing additional information to either RT or VT. We will persist it to VT upon processing if we are writing it to RT. This way the rollout is much easier.

The point of extending the EOS with an extra field is indeed to make the rollout easier, though I was thinking to use the existing SOS/EOS that wrap the data, not use separate ones. Using separate ones is viable too, and might provide interesting tradeoffs (not sure, need to think it through a bit more).

Could you please also mention in the PR description that this change can fix an edge case in AA that when all the ending messages of RT from a colo are ignored, lag would stay high for that colo; and this edge case is the blocker for us to roll out the ACTIVE_ACTIVE ready-to-serve algorithm which checks all RT lags.
So, we still have customers, which are running this mode in prod? I thought agg mode is gone.

Will create a new PR after revising the design. Decided to go with the reusing SOS CM to generate heartbeat and write through RT.

authors: FelixGV gaojieliu xunyin8


text:
Add: Markdown in Support Ticket Replies

Description
Renders support ticket replies as markdown and sanitizes input when submitting a new reply.
Type of Change

Non breaking change ('update', 'change')

Applicable E2E Tests
N/A
To test
Create support ticket replies with all kinds of tags, including script tags

@Jskobos addressed. And yeah - just doing the markup in the actual descriptions is the scope of this PR

repo: linode/manager


text:
Change: Use Region Selection for US and Canada Only

Description
Closing https://github.com/linode/manager/pull/5420 in favor of this solution
So the issue here is that some of the country short hand codes are the numeric ISO 3166 format, which is a problem and instead we should just send the full country name.
BUT
as @Jskobos correctly pointed out here, the DB and API has a 24 character limit, so sending the full region name just won't work. This is the interim solution until we can up the character limit - just let the user type whatever they want.
Type of Change

Non breaking change ('update', 'change')

Okay. Just removed the select in favor of the TextField for now. Follow DBA-1066 for updates.
Sorry to undo your hard work @WilkinsKa1. Hopefully this won't linger for too long.


text:
fix disabled button hover state

Closes #852
Disabled all mouse events to disabled elements.

Coverage remained the same at 87.054% when pulling 5894fadf54db7148a6ae363ba14ff50f767ac516 on na3d:disabled-inputs-eventless into eef8143e94a072edf9c818d13dc225450e761f6a on linode:master.

Does this hide the cursor too? We might not want that if we want click on the disabled button to show unfilled required fields.

It makes it so the mouse cursor isn't affected by this button at all.  It shouldn't affect javascript functionality at all.

That's not what I mean, does it visually hide the cursor that you normally get when you hover over a button?

It works the same way disabled buttons normally behave.

No it does not. Just tried it and it hides the cursor and you cannot fix it with cursor:pointer. This method is unfortunately not going to work.

A normal disabled button does the same thing, it doesn't turn into a pointer finger.

I think this is not the behavior we want in light of something like #727. I think we might want to put off making a decision one way or the other here until we iterate on #727 a bit.

I would argue that we should have a different class for that situation, instead of disabling the button.

Yeah that might be a good point.

Coverage increased (+0.2%) to 87.262% when pulling e8d33f2e68813fc9050f24beefe6dcc1602bc246 on na3d:disabled-inputs-eventless into eef8143e94a072edf9c818d13dc225450e761f6a on linode:master.

@mparke anything to add?

yes, so I think the issue to be fixed is just the color changes on hover state, so I'd prefer not to use pointer events: none.
There's a .btn-primary:hover:disabled style somewhere that's incorrect

.btn-primary:hover:disabled or button:hover:disabled?

If we are okay with !important being used for now on this, I have a solution.

Coverage increased (+0.2%) to 87.239% when pulling ca61a95272c50e2c686ba9401de9891c3b137357 on na3d:disabled-inputs-eventless into eef8143e94a072edf9c818d13dc225450e761f6a on linode:master.

authors: coveralls eatonphil mparke na3d


text:
How to get tweets with the twitter screen names?

Sorry am a newbie I know I am not doing something right here, need help
I have a textbox for searches txtHash it gets the tweets in the lstTweets but I also want the users to be returned for each tweet in a different list box lstUsers
At the moment it is returning the same name of users searched, I want the users of the tweets searched instead
This is my code
private void btnGetTwtsUsers_Click(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(txtHash.Text.Trim()))
            {
                //List for Tweets using the txtHash Search box
                lstTweets.DataSource = Search.SearchTweets(txtHash.Text).ToList();
                //List for user screen names of each tweet in the lstTweets List box
                lstUsers.DataSource = Search.SearchUsers (txtHash.Text).ToList ();
            }
        }

Hi sorry for not replying earlier.
Please reopen if you still need help.
Linvi

repo: linvi/tweetinvi

license: mit


text:
[Documentation] misleading example

https://github.com/linvi/tweetinvi/wiki/Messages#get-messages
var message = Message.GetExistingMessage(<user_identifier>);

you required the message ID however user_identifier is shown in the example, which is misleading.

This has been changed.
Thanks for the feedback.

authors: KakCAT linvi


text:
请问大神，什么时候需要更新docker

刚才看日志，你又更新了，update health check，
我们docker需要同步更新docker么？

不用也可以，不影响功能，如果想不管它自动更新，可以配合 watchtower 使用

不用也可以，不影响功能，如果想不管它自动更新，可以配合 watchtower 使用

刚开始学docker，上次用了watchtower发现所有docker都自动更新了，有几个想保留原版本，不做更新。

https://github.com/linweiyuan/go-chatgpt-api/issues/99
有参数可以设置哪些容器保留

authors: justincnn linweiyuan

repo: linweiyuan/go-chatgpt-api


text:
Will the noramalize_yaw be helpful?

Will the hyperparameter noramalize_yaw in the refine module be helpful to pred sin & cos?

This doesn't bring metrics boost, so I didn't turn it on.

Thanks a lot for your instant reply. By the way, I saw you substitute the traditional positional embedding with the anchor embedding, did this help a lot?

Positional embeddings from the box3d encoder will give a 2% NDS boost over stochastically learnable positional embeddings(like detr3d).  We think this approach is more helpful for decoupling image features and anchor structured feature(position embeding).

Oh, such a high increase the approach brought, and I also truly agree with the revision. Thanks for your patient reply.

authors: WeijieMax linxuewu


text:
About CLIP RN-50

Thank you very much for your exciting work!
Would like to ask if you can provide the code for CLIP RN50 to generate CAMs?
I wish you good luck with your research and a happy life.

Thanks for your interest in our work.
This repo is mainly designed for CLIP-ViT. If you want to use RN50, you need to modify some lines as follows (take voc as example):
generate_cams_voc12.py
1. Comment out or remove line 134 https://github.com/linyq2117/CLIP-ES/blob/f0cecc74eb653f5f11abf4989f2463301009f155/generate_cams_voc12.py#L134
2. Replace image_features with image in line 144: input_tensor = [image, text_features_temp.to(device_id), h, w] https://github.com/linyq2117/CLIP-ES/blob/f0cecc74eb653f5f11abf4989f2463301009f155/generate_cams_voc12.py#L144
3. Comment out or remove line 160 - line 197, line 202, line 207, line 213, uncomment line 212,
4. Change target_layers in line 239: target_layers = [model.visual.layer4[-1]] https://github.com/linyq2117/CLIP-ES/blob/f0cecc74eb653f5f11abf4989f2463301009f155/generate_cams_voc12.py#L239
5. Set reshape_transform to None in line 240: cam = GradCAM(model=model, target_layers=target_layers, reshape_transform=None) https://github.com/linyq2117/CLIP-ES/blob/f0cecc74eb653f5f11abf4989f2463301009f155/generate_cams_voc12.py#L240
clip/model.py
1. Add a forward function for resnet50 in CLIP object, such as:
def forward_features_resnet50(self, image, text_features, h, w):
        image_features = self.encode_image(image, h, w)
        # normalized features
        image_features = image_features / image_features.norm(dim=1, keepdim=True)
        text_features = text_features / text_features.norm(dim=1, keepdim=True)
        # cosine similarity as logits
        logit_scale = self.logit_scale.exp()
        logits_per_image = logit_scale * image_features @ text_features.t()

        # shape = [global_batch_size, global_batch_size]
        logits_per_image = logits_per_image.softmax(dim=-1)
        attn_weight = None

        return logits_per_image, attn_weight

pytorch_grad_cam/activations_and_gradients.py
1. Set self.height=H // 32, self.width=W // 32 in line 40-41. https://github.com/linyq2117/CLIP-ES/blob/f0cecc74eb653f5f11abf4989f2463301009f155/pytorch_grad_cam/activations_and_gradients.py#L40-L41
2. Change forward function to self.model.forward_features_resnet50(x[0], x[1], H, W) in https://github.com/linyq2117/CLIP-ES/blob/f0cecc74eb653f5f11abf4989f2463301009f155/pytorch_grad_cam/activations_and_gradients.py#L45

感谢您耐心的回复！
我按照上述步骤改了代码，可以正常运行。但是我在 CLIP-RN50 产生的 CAM 的基础上加上了 CRF ，结果比较低。
python eval_cam_with_crf.py --eval_only
得到的结果
'Pixel Accuracy': 0.7503926354038674, 'Mean Accuracy': 0.14167843883095207, 'Frequency Weighted IoU': 0.5694430970966254, 'Mean IoU': 0.127361159247873一下
请问这是什么原因造成的？（用ViT-B/16产生的伪标签精度和论文一致）


text:
Marker anchor

Can u please add option to set anchor of marker?  (center,bottom, bottom_center, top, top_center, etc...)

Or setting a anchor position, e.g. iconAnchor: [20, 40]

the issue that i can provide this feature only in android/web
because sdk for ios we don't anchor for marker

i will add anchor to marker as Optional in feature version

authors: liodali majo482 smiesnyrobert


text:
Fix --offer-disable-auto-accept for controller manager

Description
Fix --offer-disable-auto-accept for controller manager (it is currently ignored due to a bug).
How Has This Been Tested?
Tested by hand.

Would suggest to add a unit test to ensure the function correctness.

/test

/rebase test=true

/rebase test=true

/rebase

/test

I'm not sure how to fix this either. When debugging the tests I can see resourceOffer.Status.Phase reverting to "ManualActionRequired" immediately after the update which should set it to "Accepted".
I suppose it's something in the Kubernetes API that I'm missing?

/rebase

/rebase test=true

/merge

authors: CapacitorSet giorio94 palexster

repo: liqotech/liqo


text:
ConcurrentModificationException in ExecutorService.getExecutor

Environment
Liquibase Version: 3.10.3
Liquibase Integration & Version: Spring Boot 2.4.3
Liquibase Extension(s) & Version:
Database Vendor & Version: Postgres 12.4
Operating System Type & Version: Windows 10
Description
I have a Spring boot application which starts multiple application contexts in parallel. Each application context has it's own Liquibase environment.
We had no issues while using Spring Boot 2.3.3 (Liquibase 3.8.9), but after upgrading to Spring Boot 2.4.3 and Liquibase 3.10.3 I cannot start the application anymore because of a ConcurrentModificationException.
Steps To Reproduce
Run multiple Liquibase migrations in parallel.
Actual Behavior
The following exception is thrown:
2021-03-05 07:23:42 ERROR [vertragsannahme] o.s.b.SpringApplication - Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration$LiquibaseConfiguration: Invocation of init method failed; nested exception is liquibase.exception.MigrationFailedException: Migration failed for change set changelog-1.1.0.xml::abc
     Reason: java.util.ConcurrentModificationException
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1786) ~[spring-beans-5.3.4.jar:5.3.4]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:602) ~[spring-beans-5.3.4.jar:5.3.4]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:524) ~[spring-beans-5.3.4.jar:5.3.4]
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.4.jar:5.3.4]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.4.jar:5.3.4]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.4.jar:5.3.4]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.4.jar:5.3.4]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.3.4.jar:5.3.4]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.4.jar:5.3.4]
	at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1153) ~[spring-context-5.3.4.jar:5.3.4]
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:907) ~[spring-context-5.3.4.jar:5.3.4]
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:582) ~[spring-context-5.3.4.jar:5.3.4]
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:144) ~[spring-boot-2.4.3.jar:2.4.3]
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:767) ~[spring-boot-2.4.3.jar:2.4.3]
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759) ~[spring-boot-2.4.3.jar:2.4.3]
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:426) ~[spring-boot-2.4.3.jar:2.4.3]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:326) ~[spring-boot-2.4.3.jar:2.4.3]
	at de.bmiag.mars.bootstrap.WebSubApplication.run(WebSubApplication.java:51) ~[classes/:?]
	at de.bmiag.mars.bootstrap.RootApplication.lambda$4(RootApplication.java:139) ~[classes/:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
	at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: liquibase.exception.MigrationFailedException: Migration failed for change set changelog-1.1.0.xml::abc:
     Reason: java.util.ConcurrentModificationException
	at liquibase.changelog.ChangeSet.execute(ChangeSet.java:659) ~[liquibase-core-3.10.3.jar:?]
	at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:53) ~[liquibase-core-3.10.3.jar:?]
	at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:97) ~[liquibase-core-3.10.3.jar:?]
	at liquibase.Liquibase.update(Liquibase.java:201) ~[liquibase-core-3.10.3.jar:?]
	at liquibase.Liquibase.update(Liquibase.java:178) ~[liquibase-core-3.10.3.jar:?]
	at liquibase.integration.spring.SpringLiquibase.performUpdate(SpringLiquibase.java:368) ~[liquibase-core-3.10.3.jar:?]
	at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:316) ~[liquibase-core-3.10.3.jar:?]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1845) ~[spring-beans-5.3.4.jar:5.3.4]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1782) ~[spring-beans-5.3.4.jar:5.3.4]
	... 24 more
Caused by: java.util.ConcurrentModificationException
	at java.util.HashMap.computeIfAbsent(HashMap.java:1134) ~[?:?]
	at liquibase.executor.ExecutorService.getExecutor(ExecutorService.java:93) ~[liquibase-core-3.10.3.jar:?]
	at liquibase.database.AbstractJdbcDatabase.execute(AbstractJdbcDatabase.java:1276) ~[liquibase-core-3.10.3.jar:?]
	at liquibase.database.AbstractJdbcDatabase.executeStatements(AbstractJdbcDatabase.java:1258) ~[liquibase-core-3.10.3.jar:?]
	at liquibase.changelog.ChangeSet.execute(ChangeSet.java:622) ~[liquibase-core-3.10.3.jar:?]
	at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:53) ~[liquibase-core-3.10.3.jar:?]
	at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:97) ~[liquibase-core-3.10.3.jar:?]
	at liquibase.Liquibase.update(Liquibase.java:201) ~[liquibase-core-3.10.3.jar:?]
	at liquibase.Liquibase.update(Liquibase.java:178) ~[liquibase-core-3.10.3.jar:?]
	at liquibase.integration.spring.SpringLiquibase.performUpdate(SpringLiquibase.java:368) ~[liquibase-core-3.10.3.jar:?]
	at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:316) ~[liquibase-core-3.10.3.jar:?]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1845) ~[spring-beans-5.3.4.jar:5.3.4]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1782) ~[spring-beans-5.3.4.jar:5.3.4]
	... 24 more

Expected/Desired Behavior
No exception is thrown
┆Issue is synchronized with this Jira Bug by Unito

Ah, seems to be a duplicate of #1402 and is addressed by #1456.

Hi @OLibutzki Thanks for writing this up.  I am closing this as a duplicate of 1402 and 1456 as you have found.

authors: OLibutzki molivasdat

repo: liquibase/liquibase


text:
Wrapped Oracle packages leave endDelimiter in compiled code with createProcedure change type

Environment
Liquibase Version: 4.17.2
Liquibase Integration & Version: CLI
Database Vendor & Version: Oracle Database 19c EE High Perf Release 19.0.0.0.0 - Production
Description
When installing a wrapped package using the change set type of createProcedure, end delimiter is not removed from the compiled code.
Steps To Reproduce
Package spec:
create or replace package lb_demo
as
    function get_name(n in varchar2) return varchar2;
end lb_demo;
/

Liquibased components for this test case:
source/plsql/lb_demo_wrapped.sql:
create or replace package body hr.lb_demo wrapped
a000000
369
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
b
f3 e7
C7uNqX4GMBimM/tcik3DZlp+HHIwg3lK7csVfHRGWE6OHAUN9hQa5FOhovwOITXgGEZwHQj5
/aHV8ltILXM69TOTTbd852V91XogQ/kw7Vh1iNblf7fy0S8EWQLbRqQ371PjTdjjhJ11Zuh2
qrg4Kg6U9NSzqz1dYKVaGzFKI1cVpvpmeQVMbwjwUU8IZGwSncf34ik0DR6+Obyux9SDfQGz
V0Q/zqbhcIIz

;

db/liquibase/lb_demo_wrapped.sql.yml
databaseChangeLog:
- changeSet:
    author: trent
    id: 55
    runOnChange: true
    changes:
    - createProcedure:
        dbms: oracle
        encoding: utf8
        endDelimiter: ;
        path: source/plsql/lb_demo_wrapped.sql
    rollback:
    - empty: null

liquibase.properties:
liquibase.hub.mode=off
changeLogFile=db/liquibase/lb_demo_wrapped.sql.yml
url=jdbc:oracle:thin:@connect_string
username=user
password=password
classpath=/home/trent/Oracle/ojdbc11.jar
logLevel=info

Actual Behavior
Liquibase CLI output
$ liquibase update
Starting Liquibase at 14:26:58 (version 4.17.2 #5255 built at 2022-11-01 18:07+0000)
Liquibase Version: 4.17.2
Liquibase Community 4.17.2 by Liquibase
[2022-12-06 14:27:09] INFO [liquibase.lockservice] Successfully acquired change log lock
[2022-12-06 14:27:37] INFO [liquibase.changelog] Reading from ACDC.DATABASECHANGELOG
Running Changeset: db/liquibase/lb_demo_wrapped.sql.yml::55::trent
[2022-12-06 14:27:45] INFO [liquibase.changelog] Stored procedure created
[2022-12-06 14:27:45] INFO [liquibase.changelog] ChangeSet db/liquibase/lb_demo_wrapped.sql.yml::55::trent ran successfully in 766ms
[2022-12-06 14:27:47] INFO [liquibase.lockservice] Successfully released change log lock
Liquibase command 'update' was executed successfully.

Package after this operation

And cannot use my functional package until I recompile having removed the semicolon at the end

Work Arounds

In the source file, ommit the end delimiter character (;)
In the yml config, specifal the changelog type as sqlFile instead of createProcedure

Reproduced on liquibase 4.17.2. Adding it to the list of issues to fix. Thanks!

Hi @MalloD12
In the snippet above for the body - if you take out the semi-colon does it work? On reflection, I think that a mistake in my bug report including the semi-colon at the end of the reference source file.
Ive tested with end delimiter as / i.e.
create or replace package body hr.lb_demo wrapped
a000000
369
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
b
f3 e7
C7uNqX4GMBimM/tcik3DZlp+HHIwg3lK7csVfHRGWE6OHAUN9hQa5FOhovwOITXgGEZwHQj5
/aHV8ltILXM69TOTTbd852V91XogQ/kw7Vh1iNblf7fy0S8EWQLbRqQ371PjTdjjhJ11Zuh2
qrg4Kg6U9NSzqz1dYKVaGzFKI1cVpvpmeQVMbwjwUU8IZGwSncf34ik0DR6+Obyux9SDfQGz
V0Q/zqbhcIIz
/

And that works fine using SQLcl or SQL*Plus (command line interface).
󱐌 localhost:1521/freepdb1: HR> @src/spec.sql

Package LB_DEMO compiled

󱐌 localhost:1521/freepdb1: HR> @src/body.sql

Package Body HR.LB_DEMO compiled

󱐌 localhost:1521/freepdb1: HR> select lb_demo.get_name('Trent') from dual;

LB_DEMO.GET_NAME('TRENT')
____________________________
Trent

Just getting up to speed on the latest version, I'm unsure if this is still an issue. Testing with XML
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
        xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:ora="http://www.oracle.com/xml/ns/dbchangelog-ext"
        xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.17.xsd"
>
  <changeSet id="spec" author="tschf" runOnChange="true">
    <createProcedure
      dbms="oracle"
      encoding="utf8"
      path="src/spec.sql"
    >
    </createProcedure>

  </changeSet>

  <changeSet id="body" author="tschf" runOnChange="true">
    <createProcedure
      dbms="oracle"
      encoding="utf8"
      path="src/body.sql"
    >
    </createProcedure>

  </changeSet>
</databaseChangeLog>

Seems working okay:
Liquibase Version: 4.27.0
Liquibase Open Source 4.27.0 by Liquibase
Running Changeset: lb_demo.xml::spec::tschf
Running Changeset: lb_demo.xml::body::tschf

UPDATE SUMMARY
Run:                          2
Previously run:               0
Filtered out:                 0
-------------------------------
Total change sets:            2

Liquibase: Update has been successful. Rows affected: 2
Liquibase command 'update' was executed successfully.

󱐌 localhost:1521/freepdb1: HR> @status

OBJECT_NAME                 OBJECT_TYPE     STATUS
___________________________ _______________ _________
DATABASECHANGELOG           TABLE           VALID
DATABASECHANGELOGLOCK       TABLE           VALID
PK_DATABASECHANGELOGLOCK    INDEX           VALID
LB_DEMO                     PACKAGE         VALID
LB_DEMO                     PACKAGE BODY    VALID

󱐌 localhost:1521/freepdb1: HR> select lb_demo.get_name('Trent') from dual;

LB_DEMO.GET_NAME('TRENT')
____________________________
Trent

(this is with a final forward slash in the source files).
For good measure, also testing with yml as per OP, and that too seems working okay
databaseChangeLog:
- changeSet:
    author: tschf
    id: spec
    runOnChange: true
    changes:
    - createProcedure:
        dbms: oracle
        encoding: utf8
        endDelimiter: ;
        path: src/spec.sql
    rollback:
    - empty: null
- changeSet:
    author: tschf
    id: body
    runOnChange: true
    changes:
    - createProcedure:
        dbms: oracle
        encoding: utf8
        endDelimiter: ;
        path: src/body.sql
    rollback:
    - empty: null

Also thought I'll test sqlFile changeset type while I'm here - this throws an error
  <changeSet id="body" author="tschf" runOnChange="true">
    <sqlFile
      path="src/body.sql"
      dbms="oracle"
    />
  </changeSet>

     Reason: liquibase.exception.DatabaseException: ORA-00900: invalid SQL statement
 [Failed SQL: (900) aHV8ltILXM69TOTTbd852V91XogQ/kw7Vh1iNblf7fy0S8EWQLbRqQ371PjTdjjhJ11Zuh2
qrg4Kg6U9NSzqz1dYKVaGzFKI1cVpvpmeQVMbwjwUU8IZGwSncf34ik0DR6+Obyux9SDfQGz
V0Q/zqbhcIIz]

Hi @tschf, I'm closing this issue for now. If you are still experiencing any issue, please reopen this issue or open a new one with any additional detail you can provide to the team.
Thanks,
Daniel.

authors: FBurguer MalloD12 tschf


text:
Remove check for MySQL constraints bug LB-868

name: Pull Request
about: Create a report to help us improve
title: ''
labels: Status:Discovery
assignees: ''

Environment
Liquibase Version:
Liquibase Integration & Version: <Pick one: CLI, maven, gradle, spring boot, servlet, etc.>
Liquibase Extension(s) & Version:
Database Vendor & Version:
Operating System Type & Version:
Pull Request Type

[ ] Bug fix (non-breaking change which fixes an issue.)
[ ] Enhancement/New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Description
A clear and concise description of the issue being addressed.  Additional guidance here.

Describe the actual problematic behavior.
Ensure private information is redacted.

Steps To Reproduce
List the steps to reproduce the behavior.

Please be precise and ensure private information is redacted
Include things like

Files used - sql scripts, changelog file(s), property file(s), config files, POM Files
Exact commands used - CLI, maven, gradle, spring boot, servlet, etc.

Actual Behavior
A clear and concise description of what happens in the software before this pull request.

Include console output if relevant
Include log files if available.

Expected/Desired Behavior
A clear and concise description of what happens in the software after this pull request.
Screenshots (if appropriate)
If applicable, add screenshots to help explain your problem.
Additional Context
Add any other context about the problem here.
Fast Track PR Acceptance Checklist:

[ ] Build is successful and all new and existing tests pass
[ ] Added Unit Test(s)
[ ] Added Integration Test(s)
[ ] Documentation Updated

Need Help?
Come chat with us on our discord channel
┆Issue is synchronized with this Jira Story by Unito

I wasn't sure.  I'll get rid of it.
On Thu, Oct 29, 2020 at 1:12 PM Nathan Voxland notifications@github.com
wrote:

@nvoxland requested changes on this pull request.
In
liquibase-core/src/main/java/liquibase/snapshot/jvm/ForeignKeySnapshotGenerator.java
https://github.com/liquibase/liquibase/pull/1512#discussion_r514467489:

@@ -184,14 +184,7 @@ protected DatabaseObject snapshotObject(DatabaseObject example, DatabaseSnapshot
row.getInt(METADATA_DELETE_RULE), database);
foreignKey.setDeleteRule(deleteRule);

           short deferrability;

           if (((database instanceof MySQLDatabase) && ((MySQLDatabase) database)

               .hasBugJdbcConstraintsDeferrable()) || ((database instanceof MariaDBDatabase) && (

                   (MariaDBDatabase) database).hasBugJdbcConstraintsDeferrable())

              )

               deferrability = DatabaseMetaData.importedKeyNotDeferrable;

           else

               deferrability = row.getShort(METADATA_DEFERRABILITY);

           short deferrability = row.getShort(METADATA_DEFERRABILITY);

We should also pull out the now-unused hasBugJdbcConstraintsDeferrable()
function too
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/liquibase/liquibase/pull/1512#pullrequestreview-519946092,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAHAEDHGFTAXATZ5LQQH5ETSNGWABANCNFSM4TBJE3JQ
.


text:
Update scalafmt-core to 3.5.0

Updates org.scalameta:scalafmt-core from 2.7.5 to 3.5.0.
GitHub Release Notes - Version Diff
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 = "org.scalameta", artifactId = "scalafmt-core" } ]

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

Superseded by #134.


text:
Feature request: Load default dataset's parameters from HDF5 file

The default parameters of the dataset (e.g., sources, spaces, ..) could be directly stored in and loaded from the hdf5 file. The expected behavior would be to load them from the hdf5 file if they are not provided by the user as parameter of the constructor (either directly or through the YAML file).
The most portable (i.e. compatible with both h5py and pytables) solution would be to create a dataset  (or Array, if you are more familiar with pytables) for each parameter. To keep things clean I suggest to name the dataset with the name of the parameter prefixed by "_" (e.g. to store the sources parameter, create a dataset _sources). I am not sure this solution would work when the parameters are structured objects (e.g. spaces).
To avoid cluttering the hdf5 file with a dataset for each parameter, a parameters table could contain all the required parameters. This would work with pytables only, but should solve the problem of the clutter and that of the structured parameters.

For storing spaces, could we use strings and store a YAML representation of the object?

YAML is supposed to be an optional front-end, and we don't have an easy way
to construct it from an object that was not instantiated from YAML.
On Tue, Feb 10, 2015 at 5:00 PM, Pascal Lamblin notifications@github.com
wrote:

For storing spaces, could we use strings and store a YAML representation
of the object?
—
Reply to this email directly or view it on GitHub
https://github.com/lisa-lab/pylearn2/issues/1394#issuecomment-73793352.

@dwf Yes, that's right.
I guess we could either decide on a mapping between Space and string that would enable to build the Space object from the corresponding string, or simply use a pickled representation in a string, then.

authors: dwf fvisin lamblin


text:
Leesbare tekst

Zorg dat alle tekst goed leesbaar is, ook de knoppen

done

repo: lisagjh/all-human-accessible-website


text:
centrifuge build version

Hi, Julian and I spent the better part of today trying to figure out why his plascope did something different compared to mine. The outcome: I had an older build version of centrifuge.
Proposed solution: hardcode the build version of centrifuge in the command installing plascope/centrifuge in the plasmidEC_plascope environment, or (in the case this is handled by plascope) update it after installing plascope.
Code that solved my issue:
conda install centrifuge=1.0.3=py36pl5.22.0_3 -c bioconda

Hi Jesse,
I thought that the plascope conda environment would include a specific version of centrifuge, but this is apparently not the case.
I will implement your solution.

Closed by 8913a0d9c8cd9b013d42452ca141e9cc3067d350

authors: JesseKerkvliet lisavader

repo: lisavader/plasmidEC


text:
歌单导出到github gist出错

导出到本地也报错，本质上同一个问题

临时解决办法：
lowebutil.js 文件 getObject方法，把返回语句"return value && JSON.parse(value);"用try catch 语句包一下


text:
fix(analyzer): heritage

DO NOT MERGE until #4167 lands and this is rebased
What I did

update goldens for gen-manifest to include inherited members, attrs, and events
added a subclass of element-a in test projects

I'm taking a look at #4167 again. Can you say what's fixed here? I assume there isn't an issue for it?

This is about subclasses listing inherited properties

authors: bennypowers justinfagnani

repo: lit/lit


text:
How do I get a list with the ticker, company name, price and earnings date without making 2 requests?

I understand that when using the overview module, does not return the earnings date parameter.
and when using the financial module returns the parameter earnings date, but the company name parameter does not return.  How can I get the 3 parameters without making 2 requests.

I will say it will be in the next version. It will depend on my availability.

The version is updated. Please use the custom screener in the new version.

good. I run to prove it. ✌👍

has this problem. cloning the repository gets the file, but updating it from the terminal does not download it.
FileNotFoundError: [Errno 2] No such file or directory: 'finvizfinance/util.json'

Are you using git clone or from pypi?

So the git clone has no problem. But pypi will have the issue above?

exactly the git clone. it worked without problems. but when I went to implement it in my project and update the repository by pip, I did not download the file.

I get it. When I set up the package, it only includes the .py file. I will find a way to fix it ASAP.

Should be fixed.

working without errors  :)

Thanks a lot.
Tianning Li


text:
Bug: Fix Railway Deploy

Description
Get the Railway deploy up and working
URL to code causing the issue
https://railway.app/project/6f1f252f-a6f4-42ab-a5c7-6ba05c3f74de/service/944db6ab-1591-48f8-84f3-203c66e234e1?id=492a5cfa-7abf-415b-870d-d17a82989a45
MCVE
No response
Steps to reproduce
No response
Screenshots
No response
Logs
engine = create_async_engine(
^^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.11/site-packages/sqlalchemy/ext/asyncio/engine.py", line 117, in create_async_engine
sync_engine = _create_engine(url, **kw)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 2, in create_engine
File "/opt/venv/lib/python3.11/site-packages/sqlalchemy/util/deprecations.py", line 281, in warned
return fn(*args, **kwargs)  # type: ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.11/site-packages/sqlalchemy/engine/create.py", line 601, in create_engine
dbapi = dbapi_meth(**dbapi_args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.11/site-packages/sqlalchemy/dialects/postgresql/psycopg2.py", line 690, in import_dbapi
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'

### Package Version

Current

### Platform

- [X] Linux
- [ ] Mac
- [ ] Windows
- [ ] Other (Please specify in the description above)

Closed by latest PR

authors: JacobCoffee cofin

repo: litestar-org/litestar-fullstack


text:
Add people to slack chat

Since we mention the slack chat on the site, we should also enable users to join it. I don't know of any way to create an "open group", but we could have a form or something similiar to enable users to send a request.

Essentially there is two choices: either we implement a form and some member need to check and invite them manually, or we open up the slack group so that anyone with an student mail can join. The later option means that we simply provide a link to the sign up page. Which should we implement?

Even though providing a link to the sign up page would the neater alternative, I would prefer to have a form on the site. Limiting members by using the LiU mail is unnecessary.
On 08/27, Viktor Holmgren wrote:

Essentially there is two choices: either we implement a form and some member need to check and invite them manually, or we open up the slack group so that anyone with an student mail can join. The later option means that we simply provide a link to the sign up page. Which should we implement?

Reply to this email directly or view it on GitHub:
https://github.com/lithekod/LitheKod/issues/5#issuecomment-135366764

Then we would have to manually add them to the slack group, what type of request would we want to implement? Maybe we could integrate with the Slack APIs directly and let a bot inform us when someone wants to signup, or should we just sent an email?

It would be nice to have the bot post in some channel (LiTHe-web for example).
On 08/27, Viktor Holmgren wrote:

Then we would have to manually add them to the slack group, what type of request would we want to implement? Maybe we could integrate with the Slack APIs directly and let a bot inform us when someone wants to signup, or should we just sent an email?

Reply to this email directly or view it on GitHub:
https://github.com/lithekod/LitheKod/issues/5#issuecomment-135527319

This is what you need: https://github.com/rauchg/slackin

Thank you @dentarg , will take a look and test it out.

This feature will be implemented during the next redesign, probably during this summer.

Awesome @holmgr

authors: dentarg holmgr simonlindblad

repo: lithekod/LitheKod


text:
(feat): Performance Scale/Benchmark litmus experiment

Performance Scale/Benchmark litmus experiment

Scaling FIOs

Initial approach: Usage of ansible-based operator (operator-sdk) with an fio role to trigger fio jobs

This is available in an initial here: https://github.com/litmuschaos/litmus-go/tree/master/experiments/generic/pod-fio-stress

authors: ksatchit uditgaurav

repo: litmuschaos/litmus


text:
Positioning issue in 0.4.18 (reproduced from 0.4.5 version)

Hello, currently from 0.4.5 version of your library there is a wrong positioning. You can see it right on your storybook: https://littlebits.github.io/react-popover if you disable an animation. On click arrow first arrives at wrong place and then after a little moves to right place.
Please fix it.

I'm having the same problem

authors: guyyt iJoyCode

repo: littlebits/react-popover


text:
Linux 环境下hotReload login的时候报错

itchat 1.3.7
环境Ubuntu 14.04，python 2.7.6
使用hotReload=True时候，报错，信息如下
Traceback (most recent call last):
File "main.py", line 36, in
itchat.auto_login(enableCmdQR=2, hotReload=True)
File "/home/hevlfreis/projects/iBot/venv/local/lib/python2.7/site-packages/itchat/components/register.py", line 32, in auto_login
loginCallback=loginCallback, exitCallback=exitCallback)
File "/home/hevlfreis/projects/iBot/venv/local/lib/python2.7/site-packages/itchat/components/login.py", line 49, in login
status = self.check_login()
File "/home/hevlfreis/projects/iBot/venv/local/lib/python2.7/site-packages/itchat/components/login.py", line 132, in check_login
process_login_info(self, r.text)
File "/home/hevlfreis/projects/iBot/venv/local/lib/python2.7/site-packages/itchat/components/login.py", line 166, in process_login_info
for node in xml.dom.minidom.parseString(r.text).documentElement.childNodes:
File "/usr/lib/python2.7/xml/dom/minidom.py", line 1928, in parseString
return expatbuilder.parseString(string)
File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 940, in parseString
return builder.parseString(string)
File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 223, in parseString
parser.Parse(string, True)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 31-102: ordinal not in range(128)
r.text的信息打印如下
»å½ç¯å¢å¼å¸¸ãä¸ºäºä½ ç
1203å½å                       å¸å·å®å¨ï¼ææ¶ä¸è½ç»å½webå¾®ä¿¡ãä½ å¯ä»¥éè¿ææºå®¢æ·ç«¯æè
windowså¾®ä¿¡ç»å½ã
代码没有用run的模式，就是简单的login之后send信息
在win环境测试的时候没有异常Anaconda 2.7.11

尝试升级python到2.7 的最新版本

我也遇到同样的问题，在mac os 挂载几天后，自动掉了，然后重新登录就一直报错
Getting uuid of QR code.
Downloading QR code.
Please scan the QR code to log in.
Please press confirm on your phone.
Traceback (most recent call last):
File "login.py", line 182, in
main()
File "login.py", line 175, in main
itchat.auto_login(hotReload=True)
File "/Users/evan/Desktop/ItChat/itchat/components/register.py", line 32, in auto_login
loginCallback=loginCallback, exitCallback=exitCallback)
File "/Users/evan/Desktop/ItChat/itchat/components/login.py", line 49, in login
status = self.check_login()
File "/Users/evan/Desktop/ItChat/itchat/components/login.py", line 132, in check_login
process_login_info(self, r.text)
File "/Users/evan/Desktop/ItChat/itchat/components/login.py", line 165, in process_login_info
for node in xml.dom.minidom.parseString(r.text).documentElement.childNodes:
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/dom/minidom.py", line 1928, in parseString
return expatbuilder.parseString(string)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/dom/expatbuilder.py", line 940, in parseString
return builder.parseString(string)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/dom/expatbuilder.py", line 223, in parseString
parser.Parse(string, True)
xml.parsers.expat.ExpatError: no element found: line 1, column 0
我的Python 版本是 Python 2.7.10

确实是python的问题，升级到11,13都正确了

authors: HevLfreis keminggu tempdban

repo: littlecodersh/ItChat


text:
求个java版本~~

如题~

@Wizzercn 兄弟这里是github，这还能求的...

authors: Wizzercn tempdban


text:
Consider the confusion around == vs ===

Many JS users have been taught to avoid == due to type coercion and instead favor ===.
Sometimes even strict lint rules could prevent usage of ==.
Examples
// Source code
console.log(a == b)

// Possible Bugs
console.log(1 == '1')          // true
console.log(1n == '1')         // true
console.log(BigInt(1) == '1')  // true
console.log(null == undefined) // true

// Fixed with triple equals
console.log(1 === '1')          // false
console.log(1n === '1')         // false
console.log(BigInt(1) === '1')  // false
console.log(null === undefined) // false

This proposal mentions that the opposite is true for the Decimal type because === is no overridable. So it sounds like Decimal(x) === Decimal(y) will never be true 🤔
The part I want to point out that is deceiving is this:
console.log(BigInt(1) === BigInt(1))     // true
console.log(Decimal(1) === Decimal(1))   // false

Possible solutions:

Allow overriding ===
Disallow overriding ==
???

Note that === invariance is pretty important for {Weak?}{Map,Set} keys.
I'd personally be a fan of restricting operator overloading to value types and make == non-overloadable (hence making ===/== the same for value types).
e.g. Maybe something like?:

const Complex = ValueType('Complex', {
  // If the returned value from create is the same then the same
  // value returned when constructing one
  create: (re, im) => #{ re, im },
  operators: {
    '+'(a, b) { return Complex(a.re + b.re, a.re + b.im) },
  },
});

Complex(3, 4) === Complex(3, 4); // true

Without this though there will also be Weak References which allows constructing a WeakValueMap. With a WeakValueMap one can cache objects such that Complex(3, 4) === Complex(3, 4) works.

=== gets at a strict version of equality, so I'd like to stick to strong invariants there by not making it programmatically overridable. Instead, "value types", which would generalize the records and tuples proposal, would support deep structural equality, so if a type wants to make two things ===, it can just make them actually the same value (without having to hold onto one of them for identity).
Does this mean we shouldn't support overloading ==? This seems debatable to me. If we think that we really really shouldn't give == any useful semantics, that makes me regret the BigInt semantic decision where it allows comparison across numeric types for mathematical equality (whereas === will return false across types).

BigInt is a primitive, so it having useful semantics for == makes sense to me. When comparing two objects, however, I'd expect == and === to always be the same (as I think they currently are?)

I wonder if we could get a bit deeper into how overloading == relates to other operators in terms of expectations. Right now, you can rely on the invariant that +always returns a primitive, just as strongly as you can count on == comparing Objects by their identities.
How do these invariants compare in terms of what programmers depend on and we need to preserve?
Does the with operators from declaration mitigate any surprising effects, given that behavior remains the same without the declaration (except that usage of operators will cause exceptions to be thrown)?

authors: Jamesernator littledan ljharb styfle

repo: littledan/proposal-operator-overloading


text:
🛑 LUG FTP is down

In 325e6ab, LUG FTP (http://ftp.lug.ustc.edu.cn) was down:

HTTP code: 0
Response time: 0 ms

Resolved: LUG FTP is back up in dadddc7.

repo: littlekud/sites-status


text:
On the weights of network

Hi. Thanks for your great work.
It seems that the weights of network deposited on Google Drive is not accessible right now. When would the weights be available?

Hi. Thanks for your great work.
It seems that the weights of network deposited on Google Drive is not accessible right now. When would the weights be available?

You should be able to access our model weights now.

@liuh127 hello, Thanks for your great work.
But this download link still doesn't seem to work, can you provide another way to download?

But this download link still doesn't seem to work, can you provide another way to download?

authors: chengricky leslieburke liuh127 xuxingxing-d


text:
Go

编译：
https://stackoverflow.com/questions/25161774/what-are-conventions-for-filenames-in-go

go多平台编译：https://www.digitalocean.com/community/tutorials/how-to-build-go-executables-for-multiple-platforms-on-ubuntu-16-04
https://stackoverflow.com/questions/19847594/how-to-reliably-detect-os-platform-in-go

Go语言实践技巧（16）——打印结构体使用“%+v” https://nanxiao.me/go-tip-16-print-struct/

Go 101:https://gfw.go101.org/article/channel-closing.html
Go By Example https://gobyexample.com/

GO GET https://shockerli.net/post/go-get-golang-org-x-solution/

go mod
官方文档：https://github.com/golang/go/wiki/Modules
https://segmentfault.com/a/1190000016703769

gocode
gopkgs
go-outline
go-symbols
guru
gorename
dlv
gocode-gomod
godef
goreturns
golint

性能调优：
Go 性能调优之 —— 编译优化：https://segmentfault.com/a/1190000016354799#articleHeader9
https://javasgl.github.io/go-build-args/

Go性能调优：https://github.com/sxs2473/go-performane-tuning


text:
Camera frame cropping / scaling

Initially I thought adaptOutputFormat would work better but it's not working as expected so I'm processing each frame.

what was the issue with adaptOutputFormat? Would've figured that would do exactly as needed.

@davidliu Most of the time it doesn't respect the dimensions passed in the parameters (sometimes smaller, sometimes larger). Does it adapt exactly to what dimensions you provide in Android ?

authors: davidliu hiroshihorie

repo: livekit/client-sdk-swift


text:
Stateful BarVisualizer and VoiceAssistantControlBar

go to localhost:3000/voice-assistant for the demo
<BarVisualizer /> can also be used without passing voice assistant state and will then just behave like a regular bar visualizer without any state transitions (this is e.g. used for the bars in the control bar)

That's a very good point. It might make sense to set an voice-assistant-protocol version. That way we're not tied to specific agent version numbers and only have to remember to bump it once something that actually impacts the agent to client behaviour wrt to voice agents?

maybe the assistant could set some sort of capabilities? i.e. assistant.capability.state = true ?

setting a boolean would make it harder to track changes within the state protocol. In case we add/remove states in the future a version number would allow us to keep backwards compatibility

authors: davidzhao lukasIO

repo: livekit/components-js


text:
add sku

[x] add sku

status error

repo: lixiaofa/fast-plus


text:
Type Check Error

I am looking at unpack from P5pack to replace substr. In the following test script, the first output statement produces the expected results from substr; but, the second output statement produces an error message:
#!/usr/bin/env perl6
------------------------------------------------------------------
Test P5pack with a line beginning with digits
------------------------------------------------------------------
use P5pack;
sub MAIN () {
my $line = "4101588        Kansas";
my $id = substr($line, 0, 15);
my $name = substr($line, 15, 6);
say "ID: [$id]";
say "Name: [$name]";
my $template = "A15A6";
my @fields = unpack($template, $line);
for @fields {say "[$_]";}
}
Output:
ID: [4101588        ]
Name: [Kansas]
Type check failed in binding to parameter 'b'; expected Blob but got Str ("4101588        Kansas")
in sub unpack at /home/jpolanik/rakudo/install/share/perl6/site/sources/D326BD5B05A67DBE51C279B9B9D9B448C6CDC401 (P5pack) line 240
Note: $ perl6 -v
This is Rakudo Star version 2018.06 built on MoarVM version 2018.06
implementing Perl 6.c.
Regards,
tsalada

This goes to the fundamental difference in Perl 6 between Blobs (and their mutable version Bufs), which are lists of integers, and strings which are composed of graphemes. The two are not interchangeable.
You can get from strings to Blobs by using the encode method on the string and vice versa by using the decode method on a Blob, but then you'll need to specify how the string is encoded as integers.
pack and unpack in Perl 6 operate only on Blobs and Bufs. substr works only on strings (and the corresponding subbuf works only on Blobs and Bufs).
If you're working with only ASCII text then Blobs and Strings look similar, but they're not really and you can't confuse them in Perl 6.

authors: kjpye tsalada


text:
上海综合闪退

App闪退

頻道的完整名稱 最好提供下鏈接

頻道的完整名稱 最好提供下鏈接

上海新闻综合

頻道的完整名稱 最好提供下鏈接

小米2s48   系统5.1.1

authors: akinaedison lizongying


text:
updated Brain_Data slicing

Fixes issue with slicing with Brain_Data noted in issue #165

Coverage increased (+0.08%) to 52.744% when pulling e005be9158f67f00e5f02f7f6342f3cc794f3766 on slicing into 43757c6409e6c619d49d27e02073ae5b374dfb1f on master.

authors: coveralls ljchang

repo: ljchang/nltools


text:
Error in new March beta

Version of the custom_component
1.3.11
Configuration
ourgroceries:
  username: !secret our_groceries_username
  password: !secret our_groceries_password
Add your logs here.

Describe the bug
A clear and concise description of what the bug is.
After installing the beta .3 our groceries stops running.
Debug log

Add your logs here.
Logger: homeassistant.util.package
Source: util/package.py:99
First occurred: 7:17:29 PM (9 occurrences)
Last logged: 7:22:49 PM

Unable to install package ourgroceries==1.3.9: ERROR: Cannot install ourgroceries==1.3.9 because these package versions have conflicting dependencies. ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

More log info
Logger: homeassistant.config
Source: config.py:633
First occurred: 7:45:11 PM (23 occurrences)
Last logged: 7:49:07 PM
Package ourgrocery setup failed. Integration ourgroceries Requirements for ourgroceries not found: ['ourgroceries==1.3.9']. (See /config/integrations/ourgrocery.yaml:7).
Package ourgrocery setup failed. Integration ourgroceries Integration 'ourgroceries' not found. (See /config/integrations/ourgrocery.yaml:7).

same problem with March official.
Unable to install package ourgroceries==1.3.9: ERROR: Cannot install ourgroceries==1.3.9 because these package versions have conflicting dependencies. ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

I uninstalled and tried to install 1.3.11 with the same results.

same here:
Setup failed for ourgroceries: Requirements for ourgroceries not found: ['ourgroceries==1.3.9'].

According to HA developers the code used for our groceries no longer comply with the HA (new) requirements.

2022-03-03 06:48:30 ERROR (SyncWorker_3) [homeassistant.util.package] Unable to install package requests==2.22.0: ERROR: Cannot install requests==2.22.0 because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
2022-03-03 06:48:30 ERROR (MainThread) [homeassistant.setup] Setup failed for eforsyning: Requirements for eforsyning not found: ['requests==2.22.0'].

I'm also getting this issue since the March update.

Same here:
Setup failed for ourgroceries: Requirements for ourgroceries not found: ['ourgroceries==1.3.9'].

Get this when checking the configuration:
Integration error: ourgroceries - Requirements for ourgroceries not found: ['ourgroceries==1.3.9'].
So me too.  HA 2022.03.1

Same here

Could it have anything to do with this breaking change listed in the release blog?

Integration dependencies and Python pip
In November 2020, with the release of Python pip 20.3, a new dependency resolver was introduced in pip, which is more strict.
Home Assistant held back supporting the new pip version because of the large number of dependencies we have, it took time for us to adjust to this change. Meanwhile, Python pip would only warn for conflicts.
As we have resolved almost all dependency conflicts, we have now lifted the pip version pinning, and thus now use the newer and stricter pip version.
If you use external dependencies in your custom integration, you might be impacted by the new pip resolver. Your dependencies (and their version ranges) must be compatible with the dependencies Home Assistant has; otherwise, the installation of your custom integration will not succeed.
You can find more information on the new dependency resolver in Python pip here:
https://pip.pypa.io/en/latest/user_guide/#changes-to-the-pip-dependency-resolver-in-20-3-2020

I'm also seeing the error. Rolled back to 2022.02.6, hopefully the issue can be fixed soon.

Adding a mee too - almost positive it's the update to the new resolver - but I can't rollback for other reasons - Had to uninstall/disable the Ourgroceries integration to be able to restart.

@ljmerza  - Any chance you can have a look at this?

im not sure what im supposed to do here to fix this.  ourgroceries v1.3.9 exists?

im not sure what im supposed to do here to fix this. ourgroceries v1.3.9 exists?

You need to make sure dependencies of the ourgrocieres pip package matches strictly with requirements of HA.
HA requires beautifulsoup 4.10.0:
https://github.com/home-assistant/core/blob/9d42a425fc6d88482161d93f78c5125a3f6059eb/requirements_all.txt#L374
ourgroceries requires beautifulsoup 4.7.1:
https://github.com/ljmerza/py-our-groceries/blob/1ed3fa5cd5fd999a5473af6f3e295f753aa6b38b/setup.py#L7
You would need to loosen your requirements as ourgroceries is pinned to version 4.7.1 of beautifulsoup. Here's what pipy says:
https://pip.pypa.io/en/latest/topics/dependency-resolution/#possible-solutions
From the blog post of the latest HA release:
https://www.home-assistant.io/blog/2022/03/02/release-20223/#updates-for-custom-integration-developers

That's what I was thinking; in fact I posted the same reference a couple of days ago.  4.7.1 was released back in 2019, so we're probably overdue.  Looking through the changelog, it looked like mostly bug fixes and the only major breaking change was the dropping of Python2 support.

Created a pull request to update the dependencies.
In the meantime, replace the requirements in /custom_components/ourgroceries/manfest.json  with the following:
"requirements": [         "git+https://github.com/DHandspikerWade/py-our-groceries.git@1.3.9.1#ourgroceries==1.3.9.1"     ],

should be good to go on v1.3.12

Thank you!

Confirmed it works for me. No option for me to close this issue.

After reinstalling it I can’t seem to get it to create the sensor.
I rebooted yes.
I don’t see any errors and log shows it sets up the integration.
Probably some dumb thing I am forgetting

After reinstalling it I can’t seem to get it to create the sensor. I rebooted yes. I don’t see any errors and log shows it sets up the integration. Probably some dumb thing I am forgetting
Did you add the configuration in your yaml file?

authors: DHandspikerWade Jazz-ha Symbiot78 andreasbrett bschatzow espeir jampez77 ljmerza lxqikrana nathan-curtis rpitera

repo: ljmerza/ha-our-groceries


text:
add en-gb support

A little confused at the colours in text.json but I copied the 'en' locale for it

Current coverage is 98.43% (diff: 100%)

Merging #78 into master will not change coverage

@@             master        #78   diff @@
==========================================
  Files            36         36
  Lines          1531       1531
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits           1507       1507
  Misses           24         24
  Partials          0          0

Powered by Codecov. Last update 142e178...72148d5

@Uncleleech Excellent job! Thank you!

@Uncleleech Can i merge it?

For now, unless people want anything changed?
I mean the street name probably could be changed at some point but that's not that important, they're all fairly similar

@Uncleleech Okay.

authors: Uncleleech codecov-io lk-geimfari

repo: lk-geimfari/elizabeth


text:
Meaning of variable

    mask = predictions['instances'].raw_masks.squeeze(1).data.cpu().numpy() if predictions['instances'].has("raw_masks") else None
    mask_bo = predictions['instances'].pred_masks_bo.squeeze(1).data.cpu().numpy() if predictions['instances'].has("pred_masks_bo") else None
    bound_bo = predictions['instances'].pred_bounds_bo.squeeze(1).data.cpu().numpy() if predictions['instances'].has("pred_bounds_bo") else None
    bound = predictions['instances'].pred_bounds.squeeze(1).data.cpu().numpy() if predictions['instances'].has("pred_bounds") else None

想请问一下您，raw_masks，pred_masks_bo，pred_bounds_bo，pred_bounds这四个变量的含义吗？
还想问一下的是，您好像在知乎专栏的评论里有回复说BCNet和mask-rcnn在训练时间上的差距不大，但我实测了一下相同数据，batch size ，iter，时间上比mask-rcnn慢了一倍有可能是哪些原因导致的呢？我已经将检测器换成了faster-rcnn而不是fcos。谢谢您的工作

还有一个问题是，请问训练集annotation的mask需要是完整的吗？例如物体A是被物体B遮挡的，此时A的mask只有可见部分，会对结果造成影响吗？

*_bo are boundary and masks for the occluder, the others are for the occludee
The differences between faster rcnn & fcos: With the same hardwares and backbone ResNet-50-FPN, FCOS requires less training hours (6.5h vs. 8.8h) than Faster R-CNN. FCOS also takes 12ms less inference time per image than Faster R-CNN (44ms vs. 56ms).
no, object A does not to be complete as long as you only need to predict the visible object masks.

非常感谢您的回答，对于1.2我已经完全理解了。
但是3.如果只预测可见部分的masks，就是最终的预测结果masks只有可见部分吗？那样是如何得到下图这样完整的masks呢？

其次因为我使用的是custom datasets，大致是将一些objects渲染到随机背景上。通过您的process.sh处理后得到ann.json，但是我可视化“bg_object_segmentation”到原图，发现得到的bg_object_segmentation并不能准确的描述遮挡关系，这会对结果预测遮挡部分的mask造成不好的影响吗？

if 'bg_object_segmentation' are also the visible masks of the other foreground objects in the bounding box, then it will not influence too much.

repo: lkeab/BCNet


text:
edge can not load this

manifest.json  line 8 rename "default_icon" to "128"

I'm still unable to load the extension even after that @lkmvip , when I do what you suggested I get this error instead:

Could you please help me?

try this
https://microsoftedge.microsoft.com/addons/detail/oikpkeeoofpiapmjioabikmgjeaoggcn

authors: blankhang lkmvip lucassilvas1


text:
🛑 까사미아 www.guud.com is down

In 9bc98c5, 까사미아 www.guud.com (http://www.guud.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: 까사미아 www.guud.com is back up in 766ea4d after 9 minutes.

repo: lksjames/monitoring


text:
Translation to portuguese Brazil

Hi @llaske here is the pull request with the translation to portuguese Brazil. Thanks!

Great. Thanks.

There is few more strings to translate started here: https://github.com/llaske/sugarizer/blob/master/locale.ini#L1196
Could you have a look on this ?
Could you tell me who I have to credit for the translation ?

authors: afmachado llaske

repo: llaske/sugarizer


text:
如何对接移动端UI组件库？比如vant

vue2和ui框架对接问题
移动端H5页面如何使用vjsf, 是否需要更换移动端UI框架比如vant,   vant里没有formItem怎么搞?

不支持。
有兴趣可以尝试修改源码

作者能提供个对接移动端UI比如vant的思路？

vant 这个我没实际使用过，只是简单看了下。
目前表单组件结构是 form -> field -> formItem -> widget组件 ，但vant中，formItem 就是实际的输入组件也就是 widget ，所以需要 调整Widget.js，去掉 formItem这一层，可能还会有其它细节的调整，所以就不能复用现有的 core ，需要重新fork一份。
可以自己看看
https://github.com/lljj-x/vue-json-schema-form/blob/master/packages/lib/vue2/vue2-core/src/components/Widget.js#L228

感谢

import createVue2Core from '@lljj/vue2-form-core';
const VueForm = createVue2Core(globalOptions);

在 globalOptions 中修改对应的 移动控件名称
为每个控件创建一个 field

authors: liuliang1356 lizy-CZ lljj-x

repo: lljj-x/vue-json-schema-form


text:
WHERE IS THE "TILE" MODEL?

Hello,
The old link (https://huggingface.co/lllyasviel/control_v11u_sd15_tile) says there was a problem, and a new link was proposed:
https://huggingface.co/lllyasviel/control_v11f1e_sd15_tile
And this link contains, just one significant file containing:
diffusion_pytorch_model.bin
I can't use this file as a model?
So where is the tile model? Wasn't it updated like the others?

please note that using uppercase-only on the internet is considered shouting and rude.
besides, you are in controlnet 1.0, while tile is 1.1, see here https://github.com/lllyasviel/ControlNet-v1-1-nightly#controlnet-11-tile
the removal was explained there. controlnet uses the old tensor format. you can either convert it yourself or search for pre-converted models.

Hello, @geroldmeisinger
Where do I find pre converted models? Also I lack the knowledge concerning "converting it myself", not sure whats all that. I expected a link that lead to a safe file I can trust and download.

https://letmegooglethat.com/?q=controlnet+tile+safetensor

https://huggingface.co/ckpt/ControlNet-v1-1
https://civitai.com/models/38784/controlnet-11-models
https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/tree/main

Thanks, just could not undertand why its not available on the official repo: https://huggingface.co/lllyasviel/control_v11f1e_sd15_tile/tree/main

I see, you are right. I opened a corresponding issue in 1.1.

Thanks!

authors: StableInfo geroldmeisinger

repo: lllyasviel/ControlNet


text:
Add faststart examples 7 and 8 notebooks

Created notebooks for faststart examples 7 and 8

@juliazhou26 - nice job!   👍

repo: llmware-ai/llmware


text:
Choosing weight and num_round setting for evaluation

Hello! Thank you for releasing this high-quality benchmark for assessing language models' general capabilities.
I am currently doing a project on comparing the confidence interval of each models' scores. Unfortunately, I've found that the confidence interval is quite sensitive to the weight and num_round values passed to the show_result.py process.
May I ask how the default value of weight=3 and num_round=100 was chosen?
I am unsure whether upsampling the significantly winning rounds by 3 times is a reasonable choice. This upsampling procedure is going to also affect the way the style control coefficients are chosen, and thus I think it seems to be reasonable to conservatively set the upsampling weight to 1 (i.e., treat the significantly winning rounds [[A>>B]] equally as moderately winning rounds [[A>B]]).
In addition, I find that, comparing the bootstrapping rounds of values [10, 100, 1000, 3000], increasing the bootstrapping rounds increases the range of the confidence interval. I am not familiar with estimating the confidence interval using bootstrapping, so may I ask if you think that it is a statistically more approximate choice to increase the num_rounds value to 3000?
Thank you so much!

Hey there,
Upsampling the significantly winning rounds by 3 times instead of 1 is one of the principle design choice behind Arena-Hard-Auto. The reason is that not all preferences should be weighted equality. For example, preferring a response because it has no bugs in the code while the other response does should be weighted more than preferring a response because it has a better explanation than the other response, since we believe making a code error is a far worse mistake than having a slightly poorer explanation. As for why 3, we empirically found it is a good weight when developing the benchmark. Feel free to hyperparameter search for a weight that will produce the most correlated ranking to Chatbot Arena.
Bootstrapping usually stabilizes at past 100 rounds and has diminishing returns. It is not always true that increasing the bootstrapping rounds increases the range of the confidence intervals. Could you share the details on what were the size of the confidence interval when you tested bootstrapping from 10 to 3000. Also bootstrapping 3000 rounds is not very feasible since it could be slow.

repo: lmarena/arena-hard-auto


text:
Provide a demo merchant for testing

I'm playing around with writing a lib for building a marketplace web client. So far I'm focusing on the ability to restore a merchant from a list of relays and a public key.
Do you have an existing demo merchant's pubkey I could use for testing? I could obviously create one myself, but it would defeat the purpose of validating that I'm following the correct event structure, etc.
I pushed a very basic draft at https://github.com/nsarno/nostr-market-js, any feedback welcome! I have basically no idea what I'm doing... :)

You can use this: e90995db35870a26b9ca0a891844bd0a8e8c7f785d53b8f8e16fb7e215e2c966

Awesome, thank you. Which relays is this broadcasting to?

authors: nsarno talvasconcelos

repo: lnbits/nostrmarket


text:
remove allocator requirement from rdata.prettyRData

we already just allocate 256 u8's and hope for the best, better keep something on the stack then. function return type doesn't change which is good

welp, changing it to not require an allocator causes issues, didn't notice that the memory would be fucked up by the time we leave the prettyRData function.
another idea though would be having the caller give the Stream itself.

Issue with doing it as Stream is that the IPv6 printer needs its own memory to work on. until the socket module in zig gets merged (with a better algorithm) this issue will stay closed.

repo: lnyaa/zigdig


text:
[Snyk] Upgrade html-snapshots from 3.10.0 to 3.10.1

This PR was automatically created by Snyk using the credentials of a real user.![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)
Snyk has created this PR to upgrade html-snapshots from 3.10.0 to 3.10.1.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 1 version ahead of your current version.

The recommended version was released on 6 days ago.

Release notes

Package name: html-snapshots

3.10.1 - 2024-06-05update examples, devdeps

3.10.0 - 2024-05-25puppeteer@22.10.0

    from html-snapshots GitHub release notes

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:

🧐 View latest project report
📜 Customise PR templates
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

coverage: 99.245%. remained the same
when pulling 17611688e1b9ff88bdb3e3823c02b88955963a6e on snyk-upgrade-328d4ef3992075ea228b051088cd29e7
into 227d9b7a13d6666ea9521ec88c767b6e4b308b1a on master.

authors: coveralls localnerve

repo: localnerve/html-snapshots


text:
Add security headers based on OWASP Secure Headers Project

Feature Request
Is your feature request related to a problem? Please describe.
I encounter an issue when adding multiple security headers to a loco project. I think that the only current way is through a middleware and it needs to be added to each new route on the src/app.rs file.
Incorporating security headers as recommended by the OWASP Security Headers Project on the configuration file can mitigate many risks and enhance the overall security posture of the framework.
Describe the solution you'd like
I would like the framework to implement a way of configuring the following security headers on the configuration file:

Content-Security-Policy (CSP): To mitigate XSS and data injection attacks.
X-Content-Type-Options: To prevent MIME type sniffing.
X-Frame-Options: To protect against clickjacking attacks.
X-XSS-Protection: To enable cross-site scripting filters.
Strict-Transport-Security (HSTS): To enforce secure (HTTP over SSL/TLS) connections to the server.
Referrer-Policy: To control the amount of referrer information sent with requests.
Permissions-Policy: To control which features and APIs can be used in the browser.

Based on OWASP Secure Headers Project: headers_add.json

These headers should be configurable, allowing users to modify or disable them as necessary for their specific use cases.
Describe alternatives you've considered
I have considered manually adding these headers through middlewares in the application code. However, this approach requires repetitive work for each route and does not provide a unified solution. Additionally, relying on developers to manually implement these headers increases the risk of inconsistencies and omissions. Implementing these headers at the framework level ensures a standardized and robust approach to enhancing security across all deployments.

looks like a good idea.
I think a 'secure_headers' concept is great, now all is left is to design the best developer experience for it:

secure defaults AKA secure-by-design
no limitation for development mode, strict for production mode
don't let development mode propagate into production mode
production defaults should require intentional effort to disable or modify
PS: we already have the CORS middleware. so we can separate CORS from secure headers (since CORS can be more complex to configure)

OWASP aside, Rails gives you a set of defaults and a nice what to modify:
https://guides.rubyonrails.org/v4.1/security.html
config.action_dispatch.default_headers = {
  'X-Frame-Options' => 'SAMEORIGIN',
  'X-XSS-Protection' => '1; mode=block',
  'X-Content-Type-Options' => 'nosniff'
}

I'm leaning towards what Rails has done, and perhaps offer it as a "default headers middleware", or "secure headers middleware" (although there is no real technical difference) with a block of defaults.
middleware:
  default_headers:
     defaults: false    # if true, the configuration-provided headers will be merged into our best-practice defaults
     headers:
        # custom configuration-provided headers
        "X-Content-Type-Option": "..."

Any thoughts?

Another iteration which I believe to contain best of both worlds:
...
secure_headers:
   preset: github # uses the secure_headers github library, can also use 'empty'
   override:
        'header-name': 'value'
...

This introduces a concept of "presets", where we can use the github defaults, or the OWASP defaults, by specifying github, owasp.
Design notes:

the reference secure_headers library includes some programmability with configuration code blocks, but I believe this can be resolved by using YAML blocks, variables, or replicating things like server names.
the reference secure_headers library mixes into controllers some utility functions to use, inline with controller response flow. I believe this may be "too much" for the Rust developer, and better for them to use set headers in response instead of the magic.

For a development environment configuration I would recommend not setting it. I assume most develop on localhost and with http. Enabling secure_headers will disable POST because, "Refused to execute inline script because it violates the following Content Security Policy directive: "script-src https:"."

authors: jondot martinjanda not4rt

repo: loco-rs/loco


text:
[php/array/array_intersect.js] Simpler option

[x] Have you checked the guidelines in our Contributing document?

Description
Wouldn't this be simpler?
export const intersection = (arr1, arr2) => {
  return arr1.filter(x => arr2.includes(x));
};

The problem with this is that this only compares array two with array one. If you look at the implementation, array_intersect() can take can take multiple arrays, and even objects, then compare all of them.
//   example 1: var $array1 = {'a' : 'green', 0:'red', 1: 'blue'}
//   example 1: var $array2 = {'b' : 'green', 0:'yellow', 1:'red'}
//   example 1: var $array3 = ['green', 'red']
//   example 1: var $result = array_intersect($array1, $array2, $array3)
//   returns 1: {0: 'red', a: 'green'}

Correct, this boils down to locutus.objectsAsArrays. When enabled we need to treat javascript objects as php arrays, enabling a larger compatibility surface.

authors: KnightYoshi geoidesic kvz

repo: locutusjs/locutus


text:
uint overflow

In /Server/StateMachine.cc, function StateMachine::shouldTakeSnapshot, line 599 (version: 1.1.0)
uint64_t curr = 0;
if (lastIncludedIndex > stats.last_snapshot_index())
curr = lastIncludedIndex - stats.last_snapshot_index();
uint64_t prev = curr - 1;
Subtract operation overflows on operands "curr" and "1UL", whose values are unsigned constants, 0 and 1, respectively.

That logic around that log message is a bit odd and probably doesn't do the right thing in all cases. @jujing, do you want to contribute a small patch or pull request for this? I think anything that avoids the underflow would be an improvement.

I wish to do that. But in my working environment, there are some limitations to prohibit me to commit code to github. And I only have a pad at home. I should solve the problem first.
For this issue, I think a simple way to avoid the underflow is that change the type of variables curr, prev, logEntries from uint64_t to int64_t.

Ah. And I'm waiting permission from legal to write code...

authors: jujing ongardie

repo: logcabin/logcabin

license: isc


text:
janus.PrologError: '$c_call_prolog'/0: Arguments are not sufficiently instantiated

When adding a rule like the following to my bk.pl file (in my case, to the files as in #81):
arg(X, [X]).

I get following error:
Traceback (most recent call last):
  File "/bin/popper-ilp", line 8, in <module>
    prog, score, stats = learn_solution(settings)
                         ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lib/python3.12/site-packages/popper/loop.py", line 1711, in learn_solution
    timeout(settings, popper, (settings, tester, bkcons), timeout_duration=int(settings.timeout-time_so_far),)
  File "/lib/python3.12/site-packages/popper/util.py", line 81, in timeout
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
  File "/lib/python3.12/site-packages/popper/loop.py", line 1640, in popper
    Popper(settings, tester, bkcons).run()
  File "/lib/python3.12/site-packages/popper/loop.py", line 314, in run
    cons_ = tuple(self.explain_incomplete(prog))
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lib/python3.12/site-packages/popper/loop.py", line 858, in explain_incomplete
    unsat_cores = self.explain_totally_incomplete(prog)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lib/python3.12/site-packages/popper/loop.py", line 1298, in explain_totally_incomplete
    return list(self.explain_totally_incomplete_aux2(prog, set(), set()))
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lib/python3.12/site-packages/popper/loop.py", line 1451, in explain_totally_incomplete_aux2
    xs = self.explain_totally_incomplete_aux2(subprog, sat, unsat)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lib/python3.12/site-packages/popper/loop.py", line 1477, in explain_totally_incomplete_aux2
    if self.tester.is_body_sat(body):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lib/python3.12/site-packages/popper/tester.py", line 222, in is_body_sat
    return bool_query(query)
           ^^^^^^^^^^^^^^^^^
  File "/lib/python3.12/site-packages/popper/tester.py", line 22, in bool_query
    return query_once(query)['truth']
           ^^^^^^^^^^^^^^^^^
  File "/lib/python3.12/site-packages/janus_swi/janus.py", line 243, in query_once
    return _swipl.call(query, inputs, keep)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
janus.PrologError: '$c_call_prolog'/0: Arguments are not sufficiently instantiated

For some Prolog bk, you need to provide directions:
https://github.com/logic-and-learning-lab/Popper?tab=readme-ov-file#directions
Otherwise, Popper could generate a rule that calls arg/2 without either argument being ground.
Alternatively, you could add a check to your arg/2 relation to ensure at least one argument is ground.

On 8 Mar 2024, at 16:16, Samuel Stante @.***> wrote:
When adding a rule like the following to my bk.pl file (in my case, to the files as in #81):
arg(X, [X]).
I get following error:
Traceback (most recent call last):
File "/bin/popper-ilp", line 8, in
prog, score, stats = learn_solution(settings)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/lib/python3.12/site-packages/popper/loop.py", line 1711, in learn_solution
timeout(settings, popper, (settings, tester, bkcons), timeout_duration=int(settings.timeout-time_so_far),)
File "/lib/python3.12/site-packages/popper/util.py", line 81, in timeout
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/lib/python3.12/site-packages/popper/loop.py", line 1640, in popper
Popper(settings, tester, bkcons).run()
File "/lib/python3.12/site-packages/popper/loop.py", line 314, in run
cons_ = tuple(self.explain_incomplete(prog))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lib/python3.12/site-packages/popper/loop.py", line 858, in explain_incomplete
unsat_cores = self.explain_totally_incomplete(prog)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lib/python3.12/site-packages/popper/loop.py", line 1298, in explain_totally_incomplete
return list(self.explain_totally_incomplete_aux2(prog, set(), set()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lib/python3.12/site-packages/popper/loop.py", line 1451, in explain_totally_incomplete_aux2
xs = self.explain_totally_incomplete_aux2(subprog, sat, unsat)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lib/python3.12/site-packages/popper/loop.py", line 1477, in explain_totally_incomplete_aux2
if self.tester.is_body_sat(body):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lib/python3.12/site-packages/popper/tester.py", line 222, in is_body_sat
return bool_query(query)
^^^^^^^^^^^^^^^^^
File "/lib/python3.12/site-packages/popper/tester.py", line 22, in bool_query
return query_once(query)['truth']
^^^^^^^^^^^^^^^^^
File "/lib/python3.12/site-packages/janus_swi/janus.py", line 243, in query_once
return _swipl.call(query, inputs, keep)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
janus.PrologError: '$c_call_prolog'/0: Arguments are not sufficiently instantiated
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

Thanks again for the fast response! Works perfectly now with directions.

authors: Timisorean andrewcropper

repo: logic-and-learning-lab/Popper


text:
🛑 PotusTV is down

In 4d43957, PotusTV (https://tv.potus.ar) was down:

HTTP code: 0
Response time: 0 ms

Resolved: PotusTV is back up in edd2f15.


text:
Review CHANGELOG format

As discussed in elastic/logstash#5081

INcluded in #8


text:
Add statement about elasticsearch_java not being supported

Fixes issue #43

@dedemorton I had actually intended that message to go in the note itself. The current note saying its "easy to install" is misleading since the install is broken.

@acchen97 That note is boiler plate text that gets added as part of the docgen process. I don't think we can alter it without altering the note in all the other plugins. @suyograo would know for sure if it's possible to remove the note: "This is a community-maintained plugin! It does not ship with Logstash by default, but it is easy to install by running bin/logstash-plugin install logstash-filter-translate."

My best guess would be its alterable, as the note in elasticsearch_java is already different from the others.

Ohhhh...good point. I'll dig into more and change it.

@suyograo So it looks like we tweaked the asciidoc to change this statement. Not sure that is a good practice because these changes will be lost when we generate the asciidoc again. Or is this doc static now? Let me know. I def have reservations about tweaking the asciidoc with changes that aren't also made in the source files.

We should remove the documentation for this plugin altogether. there is no need to add a banner to this.

Closing this PR in favor of removing the docs entirely in https://github.com/elastic/logstash-docs/pull/339

authors: acchen97 dedemorton suyograo


text:
Allow PackageDeletionBehavior through environment variables

I'm running buget in a container platform (OpenShift), and I'd like to configure the deletion behavior through an environment variable.
Thanks

This should work, did you try setting creating an environment variable with the name PackageDeletionBehavior and value HardDelete? BaGet's uses ASP.NET Core's configuration libraries, which supports environment variables. For more information, please refer to the ASP.NET Core documentation:  https://docs.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-2.2

Feel free to open a new issue if you have additional questions!

authors: fglaeser loic-sharma

repo: loic-sharma/BaGet


text:
Several changes

Updates
- Added: makefile

Replacing with #23

repo: loinc/comp-loinc


text:
サービス詳細画面で、ニュース詳細のように前へ次への移動をサポートする

サービス詳細画面で、ニュース詳細のように前へ次への移動をサポートする

PR https://github.com/long-live-net/iine-frontend/pull/165 にて対応を完了

Release v1.1.6 でリリース完了

repo: long-live-net/iine-frontend


text:
key_builder type; args and kwargs are always given

These arguments are never set to None so don't need to be optional. They
are always a tuple and a dict but can be empty.

The CI failure here should be resolved by #125. I can rebase this PR if and when that PR has been accepted and merged.


text:
🛑 Download - Longbridge App (Legacy) is down

In 50ccfe8, Download - Longbridge App (Legacy) (https://longbridgeapp.com/download) was down:

HTTP code: 200
Response time: 2063 ms

Resolved: Download - Longbridge App (Legacy) is back up in c8f0ffa.

repo: longbridgeapp/uptime


text:
🛑 Northern Light is down

In ec9b806, Northern Light (https://northernlight.jau.co.jp) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Northern Light is back up in 4e4d392.

repo: longforme/longforme-uptime-monitor


text:
Feat(v2): DR volume

Which issue(s) this PR fixes:

Issue longhorn/longhorn#6613
What this PR does / why we need it:
Support v2 volume for incremental restore.
Special notes for your reviewer:
None
Additional documentation or context
None

I forgot if I've implemented the details that are required for v2 DR volume in the go-spdk-helper side. Don't we need to update go-spdk-helper?

It seems good to me but i don't have so much experience on Longhorn backup and restore to understand all the things involved, better to wait for Shuo and Derek to approve.

authors: DamiaSan c3y1huang derekbit

repo: longhorn/backupstore


text:
fix(upgrade): block live upgrade of strict-local

Which issue(s) this PR fixes:

https://github.com/longhorn/longhorn/issues/9389
What this PR does / why we need it:
Stopgap to prevent live engine upgrade on attached strict-local volumes.
Special notes for your reviewer:
Additional documentation or context

@mergify backport v1.6.x v1.7.x

repo: longhorn/longhorn-manager


text:
Implement test cases for snapshot checksum and check features

Longhorn/longhorn#4210
Longhorn/longhorn#3198
Signed-off-by: Derek Su derek.su@suse.com

e2e
https://ci.longhorn.io/job/private/job/longhorn-tests-regression/2793/

@Mergifyio backport v1.4.x

authors: derekbit roger-ryao

repo: longhorn/longhorn-tests