text:
Seata 1.5.2总是经常报Could not found global transaction xid

使用Dubbo3.0.9。Provider端的代码没有问题，就是不定时报这错误，奇怪的是只有部署在线上环境的时候遇到，求解。
### Cause: java.sql.SQLException: io.seata.core.exception.RmTransactionException: Response[ TransactionException[Could not found global transaction xid = 192.168.0.6:8091:1846762744353553901, may be has finished.] ]
; uncategorized SQLException; SQL state [null]; error code [0]; io.seata.core.exception.RmTransactionException: Response[ TransactionException[Could not found global transaction xid = 192.168.0.6:8091:1846762744353553901, may be has finished.] ]; nested exception is java.sql.SQLException: io.seata.core.exception.RmTransactionException: Response[ TransactionException[Could not found global transaction xid = 192.168.0.6:8091:1846762744353553901, may be has finished.] ]

官网faq

你好  请问一下 你应用服务接入seata后可以正常启动么，我本地应用服务启动报错（服务yaml文件没有添加seata.transport.rpcRmRequestTimeout配置）
应用服务依赖信息如下：
seata服务端版本是1.5.2，client端引用seata版本1.5.2,spring版本5.3.7.RELEASE
seata依赖如下：

io.seata
seata-spring-boot-starter
1.5.2

com.alibaba.cloud
spring-cloud-starter-alibaba-seata
2021.1

io.seata
seata-spring-boot-starter

应用服务接入seata启动报错，错误信息如下：
APPLICATION FAILED TO START

Description:
Configuration property name 'seata.transport.rpcRmRequestTimeout' is not valid:
Invalid characters: 'R', 'R', 'T'
Reason: Canonical names should be kebab-case ('-' separated), lowercase alpha-numeric characters and must start with a letter

Action:
Modify 'seata.transport.rpcRmRequestTimeout' so that it conforms to the canonical names requirements.
2022-07-26 11:08:11.362 ERROR 15504 --- [           main] c.t.c.a.Slf4jFailureAnalysisReporter     :

APPLICATION FAILED TO START

Description:
Configuration property name 'seata.transport.rpcRmRequestTimeout' is not valid:
Invalid characters: 'R', 'R', 'T'
Reason: Canonical names should be kebab-case ('-' separated), lowercase alpha-numeric characters and must start with a letter

Action:
Modify 'seata.transport.rpcRmRequestTimeout' so that it conforms to the canonical names requirements.

https://seata.io/zh-cn/docs/overview/faq.html

使用Dubbo3.0.9。Provider端的代码没有问题，就是不定时报这错误，奇怪的是只有部署在线上环境的时候遇到，求解。
### Cause: java.sql.SQLException: io.seata.core.exception.RmTransactionException: Response[ TransactionException[Could not found global transaction xid = 192.168.0.6:8091:1846762744353553901, may be has finished.] ]
; uncategorized SQLException; SQL state [null]; error code [0]; io.seata.core.exception.RmTransactionException: Response[ TransactionException[Could not found global transaction xid = 192.168.0.6:8091:1846762744353553901, may be has finished.] ]; nested exception is java.sql.SQLException: io.seata.core.exception.RmTransactionException: Response[ TransactionException[Could not found global transaction xid = 192.168.0.6:8091:1846762744353553901, may be has finished.] ]

https://seata.io/zh-cn/docs/overview/faq.html


text:
bugfix: fix get table meta failed in postgresql.

Ⅰ. Describe what this PR did
fix could not get table meta in pg when table name like schema.table
Ⅱ. Does this pull request fix one issue?
#2892
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

Codecov Report

Merging #2893 into develop will decrease coverage by 0.13%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             develop    #2893      +/-   ##
=============================================
- Coverage      50.09%   49.96%   -0.14%
+ Complexity      3018     3013       -5
=============================================
  Files            597      597
  Lines          19292    19267      -25
  Branches        2347     2304      -43
=============================================
- Hits            9665     9627      -38
+ Misses          8660     8656       -4
- Partials         967      984      +17

Impacted Files
Coverage Δ
Complexity Δ

...rce/sql/struct/cache/PostgresqlTableMetaCache.java
75.58% <ø> (-0.29%)
10.00 <0.00> (ø)

...obuf/convertor/BranchRegisterRequestConvertor.java
90.47% <0.00%> (-9.53%)
3.00% <0.00%> (ø%)

...otobuf/convertor/BranchReportRequestConvertor.java
90.90% <0.00%> (-9.10%)
3.00% <0.00%> (ø%)

...obuf/convertor/BranchRollbackRequestConvertor.java
92.00% <0.00%> (-8.00%)
3.00% <0.00%> (ø%)

...otobuf/convertor/GlobalBeginResponseConvertor.java
92.59% <0.00%> (-7.41%)
3.00% <0.00%> (ø%)

...o/postgresql/keyword/PostgresqlKeywordChecker.java
84.00% <0.00%> (-7.00%)
1.00% <0.00%> (-5.00%)

...otobuf/convertor/GlobalCommitRequestConvertor.java
93.75% <0.00%> (-6.25%)
3.00% <0.00%> (ø%)

...otobuf/convertor/GlobalStatusRequestConvertor.java
93.75% <0.00%> (-6.25%)
3.00% <0.00%> (ø%)

...obuf/convertor/GlobalRollbackRequestConvertor.java
93.75% <0.00%> (-6.25%)
3.00% <0.00%> (ø%)

...protobuf/convertor/RegisterTMRequestConvertor.java
94.73% <0.00%> (-5.27%)
3.00% <0.00%> (ø%)

... and 26 more

source: gharchive/pull-request

repo: seata/seata

license_type: permissive

license_source: github-api


text:
Program application review page changes

There are two "Continue" buttons on the program application review page in the applicant experience. Both buttons are problematic: https://docs.google.com/presentation/d/1goxiepPXPrW3wK8wUSNoCpcf7iXIohXfj96iTYiQxo0/edit#slide=id.gfa7bf315fa_0_1862
There is a smaller "Continue" button that takes the applicant to that particular question (it's the last question). This should be replaced by "Edit" to match the other questions.
Then there is the larger blue "Continue" button at the bottom of the page that currently takes the applicant to the start of the application, which is unexpected. This button should take the applicant to where they were previously -- the last page of the application where they can submit it.

Rochester UXR confirms the need for this. Research participants were thrown off by the highlighted rows and unclear CTAs ("Continue" vs "Edit")

Another suggestion from UXR is to add edit icons (i.e. a pencil)

To be clear the changes are:

Remove highlighting of the skipped questions and replace it with an alert icon to indicate it needs extra attention.
Larger Continue button at the bottom should take applicant to where they were previously
Replace smaller continue to edit to match other questions (so it always says edit regardless of whether question was skipped or not)
Add edit icons (pencils) next to the edit button.

@kristinyim @rahaghas can you link me to the icons that we should use?

I suggest changing "Continue" to "Submit application" and throw an error if that button is pressed before all required items are completed (as opposed to disabling it, which can often cause user confusion). I also suggest changing the "Continue" used currently for individual unanswered questions with "Answer" and add a trailing "arrow forward" icon.
Here's a mock:

Here are the necessary icons:
Edit: https://fonts.google.com/icons?selected=Material Symbols Outlined%3Aedit%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048
Arrow forward: https://fonts.google.com/icons?icon.query=arrow

I have to pause my work on this issue for the time being to focus on higher priority items.
I've made some progress in https://github.com/seattle-uat/civiform/tree/azizoval/1920/reviewpage, but more work is needed. That branch introduces table-like formatting, but doesn't yet properly handle all cases on mobile.

any status updates on this?

source: gharchive/issue

authors: azizova-leyla glorialiou goldblatt kristinyim rahaghas

repo: seattle-uat/civiform


text:
UserInfo not found

Following #263, the next issue I now see in the Forgejo log is:
2024/02/09 15:50:33 ...rs/web/auth/oauth.go:937:SignInOAuthCallback() [E] UserSignIn: Non-200 response from UserInfo: 404, WWW-Authenticate=

The configuration looks like this:

I checked the content of https://id.example.com/auth/v1/.well-known/openid-configuration: The field userinfo_endpoint points to https://id.example.com/auth/v1/oidc/userinfo. Manually curl-ing this endpoint gives:
{"timestamp":1707494056,"error":"BadRequest","message":"Authorization header missing"}

This is expected, as I'm not authenticated with curl.
Any idea what's wrong?

This is expected, as I'm not authenticated with curl.

Correct, the userinfo endpoint expacts a valid access token as Bearer in the Authorization header.
You could add this header with the -H option with curl for testing.
Regarding the 404, this is probably coming from the newly added additional user values with this beta version. If there is not a single custom value added for the user, the table in the DB actually has no entry yet. If this is the reasons, then this is a bug in the beta version, which would make sense to me now without having too much time to dig depper into this.
You could actually help me out here. If I am correct, this error should be gone as soon as you add any custom value to your user in your account page apart from the mandatory first name, last name and email. For instance, if you would add lets say a ZIP or something like that and try again, will this solve the 404 error? If so, I can provide a fix tomorrow, as this would be pretty easy.

Sorry, my bad, I found the issue.
This is actually a bug. The custom user values is not the issue, these will just be empty if no entries do exist.
The issue actually came up from the sub claim fix. The endpoint expects the email to be the sub instead of the user id. If just needs to fetch the user by ID, not by email.
I will provide a fix for this latest until tomorrow.

Thanks for your investigation. For me, there is no hurry for a fix, I'm happy to help to make rauthy work for "standard" apps.

Thanks for your investigation. For me, there is no hurry for a fix, I'm happy to help to make rauthy work for "standard" apps.

Thanks a lot. That's always really helpful, when others test with real world apps as well.
For instance, #263 was the first app, that (correctly) complained about the difference in the sub claim.

I deployed v0.21.0-beta2 and this error is gone. But, the one from #263 is back:
2024/02/10 10:08:13 ...rs/web/auth/oauth.go:937:SignInOAuthCallback() [E] UserSignIn: userinfo 'sub' claim (my@example.com) did not match id_token 'sub' claim (MyUiDFromRauThy)

I deployed v0.21.0-beta2 and this error is gone. But, the one from https://github.com/sebadob/rauthy/issues/263 is back:

Yes I know, because I forgot to include the fix for the response mapping, even though I adopted the code. Sorry.

The beta3 should be good now, can you test again?

Good news! beta3  works! I could successfully log in to Forgejo using rauthy. This will end up in a blog post :+1:

Thanks a lot for testing!

authors: sebadob tobru

repo: sebadob/rauthy


text:
Add missing quotas for ELB

Feature request
Support fort the missing quotas for ELB
Feature description
I would like to add support for the following quotas
For ALB:

[ ] Certificates per Application Load Balancer
[ ] Listeners per Application Load Balancer
[ ] Rules per Application Load Balancer
[ ] Targets per Application Load Balancer

For NLB:

[ ] Certificates per Network Load Balancer
[ ] Network Load Balancer ENIs per VPC
[ ] Network Load Balancers per Region
[ ] Targets per Availability Zone per Network Load Balancer
[ ] Targets per Network Load Balancer

For target groups:

[ ] Target Groups per Region
[ ] Targets per Target Group per Region

For Classic Load Balancers:

[ ] Classic Load Balancers per Region
[ ] Listeners per Classic Load Balancer
[ ] Registered Instances per Classic Load Balancer

Classic Load Balancers per region added in https://github.com/sebasrp/awslimitchecker/commit/2ed6f8a1d954ecb3b6cefc12e2050fdddff595fb
Network Load Balancers per Region support added in https://github.com/sebasrp/awslimitchecker/commit/a8ef9b3e18f3c1e17798a2739032932e6dbaa9f3

repo: sebasrp/awslimitchecker

license: MIT


text:
feat(charts): add percentage formatting to tooltip

Align the tooltipNumberFormat function with the format function in billboard.js.
Also allow it to override the formatting for charts with ratio.
The current percentage is not always correct (adds a lot of decimals even for numbers that javascript can divide correctly. Seems like the ratio value is calculated by the angle of the barchart pies rather than the actual values in the underlaying implementation - superwierd). Therefor also limiting the default to 2 decimals
#687

Hi @Maximilian-R
Great job...Was working on a PR for this...Now when about to push i see your PR...Looks great
I was also adding a property to allow specifying the number of decimals for the percentage instead of toFixed(2)
Great job

authors: Maximilian-R comeab

repo: sebgroup/green


text:
执行相关系数矩阵问题

通过secretPad平台执行相关系数矩阵的时候,会报以下错误

不通过secretPadweb平台,单独进行docker部署中心化集群环境中运行相关系数矩阵组件,则能够正常运行

你好，可以把完整的报错信息贴出来，这两次执行的数据是一样的吗？

authors: BrainWH gaodongdong-software

repo: secretflow/secretflow


text:
密文上比较大小

请问secretflow有提供在密文上比较大小的接口吗

hi, @huyz1117
SPU 支持密文比较的，用的是 boolean secret sharing 协议，用法参考这个文档，里面提到了用 spu 来解 Yao’s Millionaires’ problem


text:
How to create a Virtual Assistant using Alexa with Python

NOTE: We tend to stray away  or tend not to publish reviews/comparisons of commercial product offerings.
Brief Summary:
A virtual assistant, also called an AI assistant or digital assistant, is an application program that understands natural language voice commands and completes tasks for the user. This article will be using a python library that will integrate Alexa and will help you build your own Voice Assistant.
Key Takeaways:
You will learn what an AI assistant is
You will create your own working voice assistant using Python
References:
N/A

Thank you for your topic suggestion. Per the recent message posted in our EngEd Slack channel, we are pausing acceptance of new articles until further notice while we work through the backlog of submitted drafts. We will notify you when we are ready to accept new topic suggestions. Thank you for your patience.

authors: CodeLeom hectorkambow


text:
[Android] Authentication with Auth0 SDK in Android

Authentication with Auth0 SDK in Android
Proposed article introduction
Auth0 is a flexible, drop-in solution to add authentication and authorization services to your applications. Your team and organization can avoid the cost, time, and risk that come with building your own solution to authenticate and authorize users. Auth0 is an easy to implement, adaptable authentication and authorization platform.
The Authentication API enables you to manage all aspects of your user identity when you use Auth0. It offers endpoints so your users can log in, sign up, log out, access APIs, and more. The API supports various identity protocols like OpenID Connect , OAuth 2.0, and SAML.
In this tutorial, we are going to create an Android app that uses Auth0 authentication feature.
Key takeaways

What is Auth0 SDK?
An understanding of authentication and authorization.
Features offered by Auth0.
Pricing.
Integrating the SDK into an Android app.

Article quality
I performed some searches on the web and there are not many articles/ tutorials talking about setting up authentication in an Android app. Most results come from the doc, but with my article I will use the SDK to come up with an architectured Android app with authentication feature.
References

Auth0 Docs

@feswalsalim I was just going through the documentation https://auth0.com/docs/libraries/auth0-android I feel they already covered most of your key takeaways adequately. Feel free to suggest another topic. Thanks

authors: WanjaMIKE feswalsalim


text:
Speech Command Recognition With Tensorflow.js and React.js

Article checklist
NOTE: (Please ensure that you have only one open issue + linked pull request at a time. This will ensure that we complete the article in a timely manner from inception to publishing.)
Preliminary Checks - Formatting and Structure

[x] Does your article follow any of the suggested structure formats? - see example formats
[x] Is your article properly formatted in Markdown? - see Github Markdown guide
[x] Have you used the correct folder and file structure? - see Contribution Guidelines
[x] Is your article over 750 words? - Tool: Wordcounter.net
[x] Have you used our preferred heading structure? - H3 (###) and up
[x] Does your article provide enough value and detail about your topic? - Articles should be clear, accurate, and fully explained.
[x] Can your article be understood by beginners? - Assume the audience is smart but has no prior exposure to the common terminology in your article.
[x] Have you included a hero image that is 600x400 pixels and have the copyright to use it? - Tools: Pixlr Image Editor for resizing and Unsplash for Creative Commons images
[x] In your PR - add a comment that states "This fixes #(enter your Idea Content Form #)" to link and close your Idea Content (issue) when the PR is merged.

This fixes #1693
Grammar & plagiarism checks

[x] Have you spellchecked and grammar checked your article? - Tools: Write&Improve - ProWritingAid -  Grammarly
[x] Have you placed your article through a 3rd party plagiarism checker? We suggest using Quetext, this tool is free and has a daily limit. We typically accept articles with 10% or less.
[x] Have you checked your article for readability? - Tool: Hemmingway
[x] Have you added sources for quotes and images that aren't yours?

Technical checks

[x] Are your code snippets properly formatted for syntax highlighting - see Syntax guide

Contribution guidelines
For first-time contributors and for more details, see Contributing Guidelines

@cyberShaw I already fixed all your comment

@cyberShaw I already fixed all your comment

Great work, I'll do a review.

@cyberShaw hi I wundering if your help me win this week with complete this task

Thank you for making the changes, @Worawat101!
This article is ready for final review.

plagiarism check done

authors: Worawat101 cyberShaw hectorkambow


text:
Using Formidable for parsing form data in Node.js application.

Article checklist
Preliminary Checks - Formatting and Structure

[x] Does your article follow any of the suggested structure formats? - see example formats
[x] Is your article properly formatted in Markdown? - see Github Markdown guide
[x] Have you used the correct folder and file structure? - see Contribution Guidelines
[x] Is your article over 750 words? - Tool: Wordcounter.net
[x] Have you used our preferred heading structure? - H3 (###) and up
[x] Does your article provide enough value and detail about your topic? - Articles should be clear, accurate, and fully explained.
[x] Can your article be understood by beginners? - Assume the audience is smart but has no prior exposure to the common terminology in your article.
[x] Have you included a hero image that is 600x400 pixels and have the copyright to use it? - Tools: Pixlr Image Editor for resizing and Unsplash for Creative Commons images
[x] In your PR - add a comment that states "This fixes #(enter your Idea Content Form #)" to link and close your Idea Content (issue) when the PR is merged.

Grammar & plagiarism checks

[x] Have you spellchecked and grammar checked your article? - Tools: Write&Improve - ProWritingAid -  Grammarly
[x] Please place your article through a 3rd party plagiarism checker? We suggest using Quetext, this tool is free and has a daily limit. We typically accept articles with 10% or less.
[x] Have you checked your article for readability? - Tool: Hemmingway
[x] Have you added sources for quotes and images that aren't yours?

Technical checks

[x] Are your code snippets properly formatted for syntax highlighting - see Syntax guide

This fixes #2248
Just a heads up, seeing that this article and my preceding article on this platform both, have an identical purpose, and simply the technology is different. I have used sentences from my preceding article around 10%-20% in this article. So, will it create a problem for plagiarism?

plagiarism check done

Using Formidable for parsing form data in Node.js application. #2445.pdf
@sardug10
Please review - as the 1st few sentences raised some red flags - 🤔
If the sentences need some references - please add those as to not be flagged for plagiarism

Using Formidable for parsing form data in Node.js application. #2445.pdf
@sardug10
Please review - as the 1st few sentences raised some red flags - 🤔
If the sentences need some references - please add those as to not be flagged for plagiarism

Hello, @hectorkambow. I mentioned that the first few paragraphs are from my previous article on this same platform. So, should I refer to them in this article?

Using Formidable for parsing form data in Node.js application. #2445.pdf
@sardug10
Please review - as the 1st few sentences raised some red flags - 🤔
If the sentences need some references - please add those as to not be flagged for plagiarism

Hello, @hectorkambow. I mentioned that the first few paragraphs are from my previous article on this same platform. So, should I refer to them in this article? I even mentioned that in the pull-request.

Ah understood - thank you for the clarification.
It would be helpful for the audience to have the article as reference.
We can add that at anytime.
Thank you for the clarification - we'll go ahead an get the article ready to publish 👍

Great work 👍
@sardug10
cc @LinusMuema


text:
[Question] Testing Fedora 40 With SecureBlue

Is it possible to test Fedora 40 Beta with secure blue? I noticed there is a br-f40-40 image: https://github.com/secureblue/secureblue/pkgs/container/silverblue-main-userns-hardened/200236139?tag=br-f40-40
Is this the image to try?

Yes

Hi, I was wondering why the naming is this unintuitive. I think on the upstream it is just called 40: https://github.com/ublue-os/main/pkgs/container/silverblue-main/199137971?tag=40

Upstream doesn't use bluebuild, secureblue does. Bluebuild doesn't support multi-versioned base images, so we use a branch tag.

https://github.com/blue-build/cli/issues/140

Thanks!

repo: secureblue/secureblue


text:
Error in playback

You're not including the full stack trace, these information are not really helpful.

sorry :(

authors: Shadorc SuperKali

repo: sedmelluq/lavaplayer

license_source: bigquery


text:
节点不居中

请问一下这个怎么解决啊

relation-graph有一个选项moveToCenterWhenRefresh,设置为true就可以在初始化时居中。https://www.relation-graph.com/#/docs/graph
或者你也可以在任何时候通过以下方法让图谱居中并缩放到和合适比例：
graphInstance.setZoom(100);
graphInstance.moveToCenter();
graphInstance.zoomToFit();

如果还是不能满意，你可以通过设置画布偏移量，让图谱显示到你认为居中的位置：
https://www.relation-graph.com/#/options-tools

authors: VVVLZ seeksdream

repo: seeksdream/relation-graph


text:
feat: update sources and docs for v1.2.0 release

Overview

Bumped the package versions under setup.py and
seekcamera/version.py
Updated the CHANGELOG with high-level release notes.
Updated the minimum compatibility matrix in the README.

Manual Checks
$ python -m pip install -U build twine
$ python -m build
...
$ twine check dist/*
Checking dist/seekcamera_python-1.2.0-py3-none-any.whl: PASSED
Checking dist/seekcamera-python-1.2.0.tar.gz: PASSED

DCO
Signed-off-by: Michael Mead mmead.developer@gmail.com

Overriding the merge warning

authors: m-mead swengseekthermal

repo: seekthermal/seekcamera-python


text:
[v4] Consider flexShrink={0} for Avatar component by default

See title.

Already implemented.

authors: jeroenransijn mshwery

repo: segmentio/evergreen


text:
"pattern:" does not work in CLI

Somehow i can only add files to my collection by setting the metadata collection in the file.
I can not select any files with the pattern attribute like following:
"metalsmith-collections": {
    "articles": {
        "pattern": "*.md"
    }
}

or
"metalsmith-collections": {
    "articles": "*.md"
}

This will only give me an empty collection in the template

I only had one collection and the CLI didn't work for me either.

Something to watch out for, that I just see. The order of where the metalsmith-collections in the metalsmith.json file matter. If you move it after metalsmith-markdown the files which are being sent to metalsmith-collections will have a .html extension, and will not match *.md
$ DEBUG=metalsmith-collections metalsmith, will show which files are actually being matched.

* disclosure: I use grunt-metalsmith, not the pure metalsmith.json and CLI approach

nlundquist, did you get this fixed? All the 'not working' posts in this thread have little info and follow-up. This feature does and has always worked for me in metalsmith, but I've had a few frustrating hours with some of the other plugins that needed a specific setup to work.
The plugin nature of Metalsmith clearly opens up opportunities, but it also seems to present issues due to the linear nature when parsing the plugins (so one thing must be before another, but after something else, and therefore certain combinations might not work).
If it helps, In my build.js, the first plugin is collections, setup like this:
Metalsmith(__dirname)
.use(collections({
pages: {
pattern: 'pages/.md'
},
posts: {
pattern: 'posts/.md',
sortBy: 'date',
reverse: true
}
})
The folders pags and posts are in an src folder.

@simplyeffectiveweb :+1:

I have run into the same issue. The pattern matching simply would not work via the CLI. I tried using every available example to see if it was just something I was doing wrong but nothing worked. Once I changed to use the metadata, it worked right away.

I am currently using the CLI with this plugin, and it works just fine. As mentioned previously, metalsmith-collections is the very first plugin I invoke:
  "plugins": {
    "metalsmith-collections": {
      "static": {
        "pattern": {"*.{html,xml,txt,png,ico}", },
        "refer": false
      },
      "error": {
        "pattern": "{403,404}.md",
        "refer": false
      },
      "articles": {
        "pattern": "content/articles/*.md ",
        "reverse": true
      },
      "recent-articles": {
        "pattern": "content/articles/*.md",
        "reverse": true,
        "limit": 5
      },
      "rollups": {
        "pattern": ":rollup"
      }
    },
    ...

The bug looks like already fixed. The pattern works both via CLI and metadata. The only pitfall is that pattern's path is relative to source folder. So if .source('./src'), then pattern: '*.md', not pattern: './src/*.md'

This pitfall could be better documented as I suppose I've kind of obvious once you already know it. However my pattern ./*.md doesn't work if have to lose the current folder prefix ./ then it works.

authors: BigSisl GRUBES Jackbennett constantx nlundquist remotesynth romaklimenko simplyeffectiveweb

repo: segmentio/metalsmith-collections


text:
（テトリスアート用）色調整用コンフィグファイルの分離

・色調整用コンフィグファイルの分離
・落ちてくるブロックを簡単に調整できる機構
・色調整用コンフィグファイルの分離
（テトリスアート用）色調整用コンフィグファイルの分離
${root}/config/color_config.yaml
--color_config color_config.yaml
みたいな指定ができると便利なはず
・落ちてくるブロックを簡単に調整できる機構
今は、1-->2-->3-->4-->5-->6--->7の順番（と周期）だがこれを調整できると便利？？

案
・コンフィグファイルの分離
${root}/config/tetris_art_config_sample.yaml
・色調整用コンフィグファイルの分離
・落ちてくるブロックを簡単に調整できる機構
使い方案
python start.py -l 1 -m art --art_config config/tetris_art_config_sample.yaml
色：tetris_art_config_sample.yaml 記載のもの（書いていない場合はdefault）
落ちてくる順番：tetris_art_config_sample.yaml 記載のもの（書いていない場合はdefault）

python start.py -l1 -m art --art_config_filepath config/art_config_sample.json

repo: seigot/tetris


text:
rewrite pipeline evaluation

drop support error propagation of pipeline

add new redirection api in commit ce56480229445be436f00b4f3193505dd7c9617d

add new command api in commit 5463f314515cce3dc7fb65ab3bf37e85ed9cc944

change builtin command behavior in commit e4fe137d1e553152cbe3b12edf3b9cf46e197e83

repo: sekiguchi-nagisa/ydsh


text:
Post-crop tiny image top left inside larger black space?

Hi, this is new, and seems to be an edge case of some sort (it's happened only twice that we've seen, and both recently, after using this library for a few years), but there is a situation where users crop an image, and then the image is super tiny in the top left of an otherwise black canvas.
https://d3k9p5zq72yv95.cloudfront.net/users/user/dDn7EL4_TnahHFov2_fqxA.jpeg
What the user cropped for their profile photo was what was ultimately in the top left of this canvas.  I have a Clarity recording of the user's session, and can see they did nothing out of the ordinary, and the user saw a full crop of the image they selected, as was expected, but what was saved is the image you see linked above.
We are using 8.6.5.
This user was on iOS Safari:
{"os": "iOS", "ua": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6,2 Mobile/15E148 Safari/604.1", "model": "iPhone", "vendor": "Apple", "isMobile": true, "osVersion": "15.7"}
Thanks!
Mike

Hi Mike, did you find a solution for this? Seeing this same behavior now.

authors: mikemarian tylerjbainbridge

repo: sekoyo/react-image-crop

license: ISC


text:
second select don't work on resize

create two select2 items
Open first select and do nothing(must be opened) and then open second select. Try resize window
Actual result: second select didn't resize
Expected: i think it must be resized

example here
http://jsbin.com/qimitusapa/1/edit?html,css,js,output

If it can help
when initiated second select2, previous is visible and then call "close" event for previous and delete events for second also.
I think better will be first of all delete previous and then showDropdown for second


text:
templateSelection executes again after triggering change, wiping the custom attributes set by it earlier.

Hi,
I'm using select2-4.0.13. My goal is to display the selected options with colors assigned to them by an id from elsewhere. My code works manually, during browsing the page, but fails after loading, populating the select programmatically, setting the selected ones and triggering a change event.
I found out that the 'templateSelection' code block executes first, then the 'change', and for some reason after that the 'templateSelection' again, this time resetting all my previously added formatting.
I've condensed down the code and added console.log messages and an alert message for blocking, to visualize what's happening. It's all fine up until the alert, but clicking ok lets the templateSelection function run again. I experience this behaviour only after page load, then it's fine manually.
You can see a demo here: http://dev.rage.xyz/select2issue/
My only solution was to create and reset a timer in the templateSelection function to color the tags after the last iteration of the function call is finished.
This doesn't feel like desired behaviour to me. Is there something I'm missing or is this a bug? Any help would be welcome.
Thank you!

If you're looking to add templating and styling to your elements, that's exactly what templateSelection is for. Don't try to add it on after the fact, you're doing twice the work for no extra gain.

Thank you for your time!
I agree with you that it's not a nice approach. My reason for that is I could only set a background color for the added span and not it's parent li from there, which leads to a colored box around the text. My solution is to assign ids to the options in templateSelection and then look up the rendered li elements containing those ids after in the onChange to set the backgrounds.
But that does not work well for some reason, given that it executes twice and resets my changes.
Could you point me in the direction where I can find info about how to color the displayed select options' backgrounds entirely, individually, like the yellow in my original post's screenshot?  Can't seem to find anything on it, neither a way to accomplish this from templateSelection.
My goal would be to have them colored by their category id in the database. Won't bother you again with this, thanks a lot again.

Could you point me in the direction where I can find info about how to color the displayed select options' backgrounds entirely, individually, like the yellow in my original post's screenshot? Can't seem to find anything on it, neither a way to accomplish this from templateSelection.

I believe there is a second parameter passed into templateSelection which contains a reference to the <li> that you're looking to style. This is probably the best way to do what you're trying to do.
https://github.com/select2/select2/blob/5c38f186c98d793c7d396442986191ca05634d0a/src/js/select2/selection/multiple.js#L83

There indeed is - works like a charm! I didn't get into browsing the source, sorry for missing that. My only remaining question is where is the donate link to get you a beer, because I can't seem to find that either :D
Thanks again for everything.

authors: github-rage kevin-brown


text:
Feature request: Add headers to remote wd http client

The problem
While using basic auth in Configuration.remote = http://username:pass@myawesomehub.io/wd/hub following problem detected:
POST request to /session is sent without “Authorization” header. Hub returns empty request with 401 Status code. The next request is sent with Authorization header.
This issue reproduces during all http requests and doubles load for hub.
Details
We don’t really want to get rid of selenide web driver auto management
Code To Reproduce Issue [ Good To Have ]
Please remember that with sample code it's easier to reproduce the bug.

Launch any interceptor and start selenide with basic auth
Notice no Auth headers

@andrey-ryoo
It is not related to selenide. It is selenium issue. see https://github.com/aerokube/ggr/issues/254#issue-383486829

Wait, selenide is a wrapper for selenium and I haven’t reported bug, but asked for a feature for selenium wrapper to add headers. That was just an use case

but asked for a feature
seems such feature leads to rewrite internal selenium command executor or\and change http client - because as I know "adds authorization headers only after receiving 401 response" is known okhttp lib behavior. So I don't think it is reasonable change in "wrapper" codebase.

or maybe I am wrong and there is tiny patch to implement this feature. If you have PoC feel free create PR to discuss such changes.

authors: BorisOsipov andrey-ryoo

repo: selenide/selenide


text:
Wiki: Please update custom conditions

Hi folks,
the Wiki page on custom conditions is not up-to-date with the API changes in the Condition class introduced with 6.0.1. Can you please update these useful examples?
Best regards,
Frank

@flange-ipb Thank you, I have updated the wiki page https://github.com/selenide/selenide/wiki/Custom-conditions

Thanks @asolntsev
One objection for the method signature, it should be public CheckResult check(Driver driver, WebElement element).
I played with the child condition before and ended up with more or less the same implementation (note: condition.name is private and has to be substituted with condition.getName()). What buggs me is that the fail message is not very helpful.
Example:
open("https://github.com/selenide/selenide/wiki/Custom-conditions");
$(".markdown-body > h1").shouldHave(child("a", attribute("aria-hidden", "true"))); // pass
$(".markdown-body > h1").shouldHave(child("a", attribute("aria-hidden", "false"))); // fails

The fail message is
Element should have child a has attribute {.markdown-body > h1}
Element: '
List of custom conditions, created by Selenide community
'

It would be better to have some additional information on the expected attribute.

@flange-ipb What Selenide version are you using?
I have tried child condition with latest Selenide 6.3.3, and it shows the expected attribute as well:
Element should have child a has attribute aria-hidden=false {.markdown-body > h1}

Anyway,  I have rewritten child implementation so that it doesn't use static method $ and adds Actual value to the error message:
Element should have child a with attribute aria-hidden=false {.markdown-body > h1}
Element: '
List of custom conditions, created by Selenide community
'
Actual value: aria-hidden="true"

@asolntsev Very good, thanks for your great support!

authors: asolntsev flange-ipb


text:
Deadlock in static initialization

The problem
I can see that a very few times my test suite becomes totally locked for an unlimited time until I abort it.
The test suite opens several threads in parallel. Looking at a thread dump:
"ForkJoinPool-1-worker-1" #53 [2764313] daemon prio=5 os_prio=0 cpu=929.57ms elapsed=224.82s tid=0x00007faaf1967000 nid=2764313 waiting on condition  [0x00007faac554c000]
 java.lang.Thread.State: RUNNABLE
at com.codeborne.selenide.Condition.<clinit>(Condition.java:149)
**- waiting on the Class initialization monitor for com.codeborne.selenide.conditions.And**
at com.tr2.test.endtoend.selenium.base.SeleniumUtils.loginAndGoTo(SeleniumUtils.java:95)
....
"ForkJoinPool-1-worker-2" #59 [2764520] daemon prio=5 os_prio=0 cpu=614.29ms elapsed=212.44s tid=0x00007faa1c4a1610 nid=2764520 waiting on condition  [0x00007faac7068000]
 java.lang.Thread.State: RUNNABLE
at com.codeborne.selenide.impl.WebElementSource.findAndAssertElementIsClickable(WebElementSource.java:173)
**- waiting on the Class initialization monitor for com.codeborne.selenide.Condition**
at com.codeborne.selenide.commands.Click.findElement(Click.java:46)
at com.codeborne.selenide.commands.Click.execute(Click.java:28)
at com.codeborne.selenide.commands.Click.execute(Click.java:21)
at com.codeborne.selenide.commands.Commands.execute(Commands.java:162)
at com.codeborne.selenide.impl.SelenideElementProxy.dispatchAndRetry(SelenideElementProxy.java:132)
at com.codeborne.selenide.impl.SelenideElementProxy.invoke(SelenideElementProxy.java:84)
at jdk.proxy2.$Proxy24.click(jdk.proxy2/Unknown Source)
at com.tr2.test.endtoend.selenium.page.HomePage.lambda$start$54(HomePage.java:640)
...
"ForkJoinPool-1-worker-4" #61 [2764522] daemon prio=5 os_prio=0 cpu=518.60ms elapsed=212.44s tid=0x00007faa8001d6f0 nid=2764522 waiting on condition  [0x00007faac6058000]
 java.lang.Thread.State: RUNNABLE
at com.tr2.test.endtoend.selenium.page.DestinationsPage.checkArrival(DestinationsPage.java:76)
**- waiting on the Class initialization monitor for com.codeborne.selenide.Condition**
at com.tr2.test.endtoend.selenium.page.DestinationsPage.checkArrival(DestinationsPage.java:68)

So, they are locked at some point in selenide, I don't really know where or why.
I think I can workaround doing some static initialization myself, before the multithreading kicks in, but I'm not sure.
Do you have any clue at where I can look? It only happened two times
Tell us about your environment

Selenide Version:  6.16.0
Chrome\Firefox\IE Version:  111.0
Selenium Version: selenium/standalone-chrome:4.8.3-20230404
OS Version: Ubuntu

I think I know what's the reason.
It's called "Static initialization deadlock" or "Class Initialization Deadlock".
I never experienced it with Selenide, but got it once in Play1 framework.
The reason is that classes Condition and And depend on each other, and some static fields of Condition do use class And.
The right solution would be to move all static fields from Condition to some other class - say, Conditions.
But it would cause a huge backward incompatibility. :)
Not sure if it's worth it.

I haven't seen the error since I put this in our ChromeDriverProvider class, wich is executed before multithread kicks in.
    static {
        Condition.and("avoid static initialization deadlock", Condition.cssClass("whatever"), Condition.attribute("whatever", "whatever")); //workaround for static initizaliations deadlock https://github.com/selenide/selenide/issues/2372
    }

It's a bit dirty, but...

@cocorossello I am not sure it really solves the problem. At least I don't see a reasonable explanation why it should solve.
I rather think that this problem is so hard to reproduce that you never know if your change helped, or it's just a coincidence.

Great!
I'm not aware of using directly those, the selenium codebase is more than 200 kotlin/java classes right now.
I have some custom conditions like:
public class CssClasses extends Condition {
    private final String[] expectedCssClasses;

    public CssClasses(String... expectedCssClasses) {
        super("css classes");
        this.expectedCssClasses = expectedCssClasses;
    }

    public static Condition cssClasses(String... cssClasses) {
        return new CssClasses(cssClasses);
    }

    @Override
    public boolean apply(Driver driver, WebElement element) {
        String actualCssClasses = element.getAttribute("class");
        return actualCssClasses != null && contains(actualCssClasses.split(" "), expectedCssClasses);
    }
...

(BTW, this one just doesn't make sense, I just deleted it).
The deadlock may come from this kind of custom conditions

It will be fixed in https://github.com/selenide/selenide/pull/2453,
but I think we will release it as Selenide 7.0.0 in November 2023 (since it's a remarkable backward-incompatible change).

authors: asolntsev cocorossello


text:
Added Taskade

Please consider including Taskade, thanks!

Thanks, accidentally made a 2nd PR for the productivity yaml file fix, hope that is ok.

Add [Taskade] --> [Productivity]

authors: johnxie selfishprimate

repo: selfishprimate/curated-design-resources


text:
add R-Podcast link

Now that my R-Podcast site is finally powered by blogdown I'd like to list it here.

Great to have you on board! :)

authors: sellorm thercast

repo: sellorm/awesome-blogdown


text:
Broken link at gistStyleGuide.md

Maybe you could replace [1] by [2] at "The notion of rigid classes originates in OntoClean" [3] because [1] throws "{"message":"Token is required"}".
[1] https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.99.7618&rep=rep1&type=pdf
[2] https://scholar.archive.org/work/na4kfdl4hfczjgbwwnportg46y
[3] https://github.com/semanticarts/gist/blob/develop/docs/gistStyleGuide.md

Thanks for pointing this out, @larisa1995. We will get it corrected in the next release.

repo: semanticarts/gist


text:
docs: Cleanup proofs.

Cleanup verify proofs.
Add trusted setup files glossary entry.
Alphabetize glossary.

@cedoor Please review and merge.

repo: semaphore-protocol/website


text:
Support for including files in a secret

At the moment, this can be achieved with one of the following options:

Store the file in the repository
Store the file as a base64 encoded environment variable and decode to a file with commands

Succeeding example describes how we can add a private SSH key to a Semaphore 2.0 project at the moment. The same steps could be applied when adding any arbitrary file.
Steps for creating a secret

Encode private key

cat ~/.ssh/id_rsa_example_repo | base64  -w 0

Create a Semaphore secret yaml file and add include encoded content in secret

$ cat secret_with_private_ssh_key.yml
apiVersion: v1alpha
kind: Secret
metadata:
  name: ssh-key-example-repo
data:
  env_vars:
    - name: SSH_KEY
      value: [encoded data, 4324 characters]

Value is long output of command shared in the previous step (without trailing %)

Push secret to Semaphore
sem create -f secret_with_private_ssh_key.yml

Verify that secret is in place
sem get secrets
sem describe secrets ssh-key-example-repo

Adjust Semaphore commands

Decode secret with the following command in Semaphore yaml
echo $SSH_KEY | base64 --decode > ~/.ssh/id_rsa_example_repo

Add key to agent with the following commands in the Semaphore yaml file
chmod 600 ~/.ssh/id_rsa_example_repo
ssh-add ~/.ssh/id_rsa_example_repo

Load secret in job by adding the following lines to yaml file
secrets:
  - name: ssh-key-example-repo

This is supported with: https://docs.semaphoreci.com/article/66-environment-variables-and-secrets#a-shortcut-for-creating-file-based-secrets

@bmarkons please link (for future reference) the minimal CLI version that supports this option, and close the issue.

authors: bmarkons mimimalizam shiroyasha

repo: semaphoreci/semaphore


text:
Log file request

I am requesting the access log file for a SendGrid account that was deleted on March 5th.  This request is due to a security related issue.
I also need to request a SendGrid contact for my legal team so they can determine what may be available, such as forensic testing.
The account was owned by EXOS, I am the CISO, Tom Glaser.
SendGrid User name:  cdimeler@teamexos.com
Expected content
Actual content
Link to page:

Hello @tglaser67  ,
We're sorry you're having this issue! Since this is not a docs-related issue, please contact our Support team directly and they can help you out. You can access support contact options by logging into https://support.sendgrid.com.
If the deleted account is keeping you from logging in, you can reach support by clicking "Trouble Logging in?". From there, you can tell us a little more about your problem without having to log in, and one of our fantastic support people will get back to you. Hope this helps!
SendGrid Docs Team

repo: sendgrid/docs


text:
Support Port

The json submitted by ttn contains the LoRa port.
Users should be able to specify to listen only to a certain port or if the port value should be ignored.

e744f8eb100aa83b5dd2db32da0e9aaab8c65cd6
the first box matching the port for a given dev_id and app_id is used for the request.
if no box is matched, and a box matches the IDs but has no port specified, this box is used.
possible TODO: submit measurements to all matching boxes. OR: ensure that dev_id, app_id and port combinations are unique?

authors: noerw ubergesundheit

repo: sensebox/ttn-osem-application


text:
Questions

Hi Folks!
I have a few questions as I look at this plugin to monitor a new graylog 2.2 install

I don't see a huge reason for the python scripts, is there a technical reason for them?  I'd be interested in porting them to ruby to reduce surface area.
Due to proxy/LB issues I have my API/transport mounted on the same port as the front end, therefore API calls are mounted at "proto://host:port/api/" -- This corresponds with the "rest_transport_uri" setting.  I'd like to add a path prefix setting to allow for this.
I don't see any support for using Access Tokens instead of username/password.  I would like to add this support.
The metrics scripts only monitor a few metrics from the now available huge pile.  I haven't looked though to see what would be most useful but generally capturing more metrics is better than capturing less.  Any reason not to spit out most everything?

Are these changes things the maintainers would be interested in seeing?
Thanks!
-n

Hi! There's no reason the checks have to be python and porting to ruby would be fine as long as the ruby provides at least the same functionality and output as the python. Your other proposed changes look reasonable including collecting more metrics.

Sounds great, thanks!  I hope to have some PR's later next week.

authors: eheydrick nathanhruby

repo: sensu-plugins/sensu-plugins-graylog

license: mit


text:
Chef attribute access re-factor

Greetings!
This PR changes all instances (I hope) of method based node attribute access due to a bug that cropped up for me in #330 which I have tracked down to the Chef DSL conflicting with an attribute. My hunch is that this has something to do with other DSL enhancement systems such as chef-vault which mix in enhancements to data bag access.
I went with double quotes everywhere (by recommendation of @portertech) and single quotes where applicable, but please look over it to make sure I didn't miss anything.

Confirming this PR fixes the issue I mentioned in #330 after testing locally.

Isn't the standard to surround literals with ' ' instead of " " ?

@jhmartin is there a document? I'm fine either way, as long as the use is consistent.

@portertech https://github.com/bbatsov/ruby-style-guide  which is codified by RuboCop http://batsov.com/rubocop/, which in many cases can auto-correct most of the issues.

I have corrected the strings per your note @jhmartin

If you end up making a rubocop rule I can run that against this branch @portertech

I've caught up my branch to latest master to make merging possible again. @portertech

Any chance to merge this @portertech  please ? Otherwise @martinisoft gonna be running behind and have to rebase against master all the time.
Thanks in advance!

Merged :+1:

Thanks a lot!

authors: jhmartin martinisoft portertech scalp42

repo: sensu/sensu-chef


text:
upgrade pillow version to fix issues running on docker

After running 'roslaunch launch/styx.launch' from the Docker image while the simulator is running and the connection is established, then once I click on the camera check box, I get thse errors in ros (the errors are repetitive as long as there's a connection):
message handler error
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/engineio/server.py", line 405, in _trigger_event
    return self.handlers[event](*args)
  File "/usr/local/lib/python2.7/dist-packages/socketio/server.py", line 509, in _handle_eio_message
    self._handle_event(sid, pkt.namespace, pkt.id, pkt.data)
  File "/usr/local/lib/python2.7/dist-packages/socketio/server.py", line 448, in _handle_event
    self._handle_event_internal(self, sid, data, namespace, id)
  File "/usr/local/lib/python2.7/dist-packages/socketio/server.py", line 451, in _handle_event_internal
    r = server._trigger_event(data[0], namespace, sid, *data[1:])
  File "/usr/local/lib/python2.7/dist-packages/socketio/server.py", line 480, in _trigger_event
    return self.handlers[namespace][event](*args)
  File "/capstone/ros/src/styx/server.py", line 60, in image
    bridge.publish_camera(data)
  File "/capstone/ros/src/styx/bridge.py", line 182, in publish_camera
    image_message = self.bridge.cv2_to_imgmsg(image_array, encoding="rgb8")
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/cv_bridge/core.py", line 248, in cv2_to_imgmsg
    img_msg.height = cvim.shape[0]
IndexError: tuple index out of range

Fix is to upgrade Pillow version. Mentioned here:
https://github.com/udacity/CarND-Capstone/issues/147

@thejerrytan, are you planning to merge this PR? If yes, please, take actions to get it approved. If not, please, close this PR.

Hang on let me switch to CMD and we can merge it in


text:
impl Expected for &str seems not to work as intended

I get an error I don't understand when trying to use a &'static str as &dyn Expected:
error[E0277]: the trait bound `str: serde::de::Visitor<'_>` is not satisfied
  --> src/lib.rs:15:21
   |
15 |                     "non-printing character",
   |                     ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `serde::de::Visitor<'_>` is not implemented for `str`
   |
   = note: required because of the requirements on the impl of `serde::de::Expected` for `str`
   = note: required for the cast to the object type `dyn serde::de::Expected`

Just realized that it needs to be &"string" after looking at the docs again. More or a rustc error message issue then...

repo: serde-rs/serde


text:
Deserializing external key into a struct's field

Assume that we have following data file and want to deserialize it into rusty data structure.
[example1]
number = 1
string = "spam"

[example2]
number = 2
string = "egg"

Thanks to serde, following definition can do that. But I wonder if I can put the keys such as "example1" and "example2" to the structs' fields of entries like the second code. What do you think about it?
#[derive(Deserialize)]
struct Entry {
    number: i32,
    string: String,
}

#[derive(Deserialize)]
struct Config {
    #[serde(flatten)]
    entries: HashMap<String, Entry>,
}

#[derive(Deserialize)]
struct Entry {
    // how can i tell to serde to bring this field from the external key?
    name: String,

    number: i32,
    string: String,
}

#[derive(Deserialize)]
struct Config {
    #[serde(flatten)]
    entries: Vec<Entry>,
}

Hi @takagiy, sorry that no one was able to provide help here. If this is still an issue, you could try taking this question to any of the resources shown in https://github.com/serde-rs/serde#getting-help.

authors: dtolnay takagiy


text:
turn project into an installable pip package

Hi,
Thanks for the project. I re-arranged the directory structure, added a setup.py file so that you can merge this pull request and release it on pypi with twine. Hope you find this useful.

Hi,
That is what I need. Thank you so much.

authors: nurettin serengil

repo: serengil/chefboost


text:
DeepFace Facial Recognition

i installed your program DeepFace but can Deepface be used of sending out a picture of someones face and it using a catelog of faces exact or similar to this picture to try and fiture out who the person is? aka reverse image search of finding other images of the exact same person to find out who they are
Because im getting the idea through your videos and the info on github that that is not one of its capabilities?

Please check out read me of the repo. Find function is for this.

authors: olstice serengil

repo: serengil/deepface


text:
Set active schema by deafult on openning SQL editor using selection from database navigator

Feature request:
If database, Tables tree or table name is selected, then opening a new sql editor should set the current database scope for the selection from database navigator.

Not sure about that. This will explicitly change current schema for whole connection - such behavior might be unexpected for users.
I think schema change always should be done by users. You can do it right in navigator tree (right click -> Set active).

authors: bsienn serge-rider

repo: serge-rider/dbeaver


text:
KEY, SECRET, TAG, COUNTRY.....

good morning, but where do I insert the KEY, SECRET, TAG, COUNTRY ?? thank you

Start here:
Create a file for example test.py.
Add this code:
from amazon_paapi import AmazonApi
KEY = "your API key from amazon"
SECRET = "the corresponding secret to the API key"
TAG = "your-tag-xx"
COUNTRY = "your country code (DE=germany, IT=italy, GB=Great Britain and so on"
amazon = AmazonApi(KEY, SECRET, TAG, COUNTRY)
item = amazon.get_items('fill in an ASIN from your local amazon store')[0]
print(item.item_info.title.display_value) # Item title

Greetings

I've followed your basic tutorial with my credentials and am getting this error: amazon_paapi.errors.exceptions.TooManyRequests: Requests limit reached, try increasing throttling or wait before trying again. Curous if anyone else fixed that. Thanks in advance.

I've followed your basic tutorial with my credentials and am getting this error: amazon_paapi.errors.exceptions.TooManyRequests: Requests limit reached, try increasing throttling or wait before trying again. Curous if anyone else fixed that. Thanks in advance.

Also getting this, did you find a solution?

I ran into the same error when I activated PAAPI. It started working the next day, it may be that it takes some time to initialize the request limit after the API is enabled.

I had the same Issue and like @losomo said it was gone the second day. But recently it reappeared. Did anyone else encounter that?

authors: adambanana hardcore losomo michael7245 nickkkkkkkkkkkkkkkkkk noah-bedano

repo: sergioteula/python-amazon-paapi


text:
COM1 does not open for BUILT app; no issue in Windows VS Code Electron dev environment

Problem introduction
This issue was first alluded to here: https://stackoverflow.com/questions/66479424/what-diagnostics-does-windows-provide-to-assist-with-electron-app-failure-to-exe. In the absence of response, the following provides explicit definition of the problem hindering progress with app build/beta test process.
Having coded and debugged an Electron app using serialport for PTZ camera control, I need advice to identify why the port used by the app  - once built and installed on this Windows 10 platform - does not open/communicate, causing the app (as coded) to report comms timeout.
It is confirmed that the app executes as expected in the VS Code/npm development environment, after working around this issue: https://stackoverflow.com/questions/66605483/why-does-node-serialport-fail-when-package-json-includes-postinstall-script.
Including use of serialport.parsers.Delimiter in the JS code (for main, not renderer), the only issue now preventing progress is lack of understanding to debug the failure of the port to open in the built app context.
Summary of Problem

What are you trying to do? Open COM1 under built app serialport 9.0.7 control
What happens? Electron app opens renderer window, button functions perform as expected, but camera communication fails with timeout, evidently due to port failure to open. There is no evidence of built app/OS exception reporting (app execution authorized in AVG firewall settings). Although I don't have a sniffer to hand, scripting Python to monitor the port is likely to confirm the failure; testing with another brand camera confirmed absence of serial comms.
What should have happened? COM1 should open (as in VS Code dev environment), to enable camera comms and avoid timeout.

Code to Reproduce the Issue
serialport-related code:
let cmdPacket = new Uint8Array(15)
let recordTerminator = new Uint8Array(1)
recordTerminator[0] = 0xff
....
const port = new serialport('COM1',
                            { autoOpen: true,
                              baudRate: 9600,
                              stopBits: 1}//,
                            //((err) => {if (err){console.log('Error:', err)}else{console.log('COM1 opened!')}})
                            )
...
const Delimiter = serialport.parsers.Delimiter
const parser = port.pipe(new Delimiter({delimiter: recordTerminator}))
...
port.write(cmdPacket)
...
parser.on('data', (data) => {  ...}

package.json (same failure with alternate build script "electron-builder -w zip"):
    {
      "name": "alfatron",
      "version": "1.0.0",
      "description": "Proof of Concept",
      "main": "main.js",
      "scripts": {
         "start": "electron .",
         "watch": "nodemon --exec electron .",
         "reset": "git reset --hard",
         "build": "electron-builder -w nsis",
        "install": "electron-rebuild"
      },
     "repository": "https://bitbucket.org/hwylie_dev/alfatroncontroller1/src/main/",
     "keywords": [
     "Electron",
     "Alfatron",
     "prototype"
     ],
     "author": "H Wylie",
     "license": "CC0-1.0",
     "devDependencies": {
         "electron": "^11.2.0",
         "electron-builder": "^22.9.1",
         "electron-rebuild": "^2.3.5",
         "nodemon": "^2.0.0"
      },
      "dependencies": {
      "electron-window-state": "^5.0.3",
      "help": "^3.0.2",
      "serialport": "^9.0.7"
      }
    }

Build log:
    > alfatron@1.0.0 build
    > electron-builder -w nsis

      • electron-builder  version=22.10.5 os=10.0.19041
      • electron-rebuild not required if you use electron-builder, please consider to remove excess dependency from
        devDependencies

    To ensure your native dependencies are always matched electron version, simply add script `"postinstall": "electron-
    builder install-app-deps" to your `package.json`
      • rebuilding native dependencies  dependencies=@serialport/bindings@9.0.7 platform=win32 arch=x64
      • install prebuilt binary  name=@serialport/bindings version=9.0.7 platform=win32 arch=x64
      • packaging       platform=win32 arch=x64 electron=11.3.0 appOutDir=dist\win-unpacked
      • Unpacking electron zip  zipPath=undefined
      • default Electron icon is used  reason=application icon is not set
      • building        target=nsis file=dist\alfatron Setup 1.0.0.exe archs=x64 oneClick=true perMachine=false
      • building block map  blockMapFile=dist\alfatron Setup 1.0.0.exe.blockmap

Versions, Operating System and Hardware

SerialPort@9.0.7

Node.js v12.18.3

Windows Version 10.0.19041

others: refer package.json above

Hardware and chipset: Gigabyte GA-B75M-D3H Intel® B75 Express Chipset (COM1 motherboard header)
Processor	Intel(R) Core(TM) i5-3450 CPU @ 3.10GHz, 3501 Mhz, 4 Core(s), 4 Logical Processor(s)

Please advise steps recommended to identify and overcome this issue.
In particular, to confirm the fault lies with port.open() as opposed to port.write()/on.parser() in the built context.

It's caused by electron-rebuild rebuilding the binaries: add "npmRebuild": "false" to your package.json, it should fix it.

Inserting as recommended (at end of package.json) has no effect.
Deploying https://www.npmjs.com/package/electron-log to trace the built app (having inserted "log.info('About to open COM1')" and replaced console.log with log.info in the port constructor call, the log file is as follows:
    [2021-03-16 21:16:08.590] [info]  About to open COM1
    [2021-03-16 21:16:08.600] [info]  Error: Third argument must be a function

It's noted that the install script in package.json is essential, with or without "npmRebuild" insertion; without automatic rebuild invocation by 'npm i' results in dev (pre-build) 'npm run start' failure:
npmRunStartLog.txt

You should check this issue #2191

Confirmed that forced rebuild of serialport@9.0.7 (@TonyStark106 advice of https://github.com/serialport/node-serialport/issues/2191) eliminated the error (npm v7.6.2).

repo: serialport/node-serialport


text:
Bug fix: Retain Serilog event timestamp rather than time sent to Loggly

Issue
Events sent to Loggly via this sink have incorrect timestamps within Loggly - the time they (actually their whole batch) were sent to Loggly, rather than the time they were actually logged. With large batches or event queues, this can be quite a problematic data loss.
Cause
Currently, the Serilog=>Loggly event translation drops the event's actual timestamp by omission - the Loggly event keeps its constructor-default of DateTimeOffset.UtcNow. Since the translation isn't done until a batch is ready to send, this effectively re-timestamps events (actually whole batches of events) with their sending time.
Fix
The fix is trivial - explicitly set the Loggly event timestamp, using the Serilog event timestamp.

Nice catch, thanks!

authors: mattc-lh mivano

repo: serilog/serilog-sinks-loggly


text:
No persistent volumes for sqlite version ?

Config is lost when rebuilding the stack using sqlite, maybe since no persistent volumes are used ?

Was possible before, but now its easier. Just add volumes with the path to your compose.
Make sure to use v2.2.2 once the image is builded.


text:
Landing page hotfix

Padding is a little different, but it looks good. Closes #499

Good for 👀 ?

I don't know why, but the diff shown in "Files changed" is wrong, as most of this is already merged into master. The only change is removing the div at line 198 as discussed in #499

Yep, the first two commits are already deployed

Please rebase on master so this PR is easier to review

nvm I thought it's more code ;D

authors: JonasBley Knorrke arekkas


text:
Allow browser usage

What would you like to be added:
Browser usage support. (Either avoid nodejs/browser specific APIs or have two versions if not possible otherwise)
Why is this needed:
Allow use on the client-side
Related to #66
Related to #70

👍

@JBBianchi is this one duplicated with #70 ?
I mean, ones #70 is done this functionality will be supported, isn't it?

@antmendoza yes and no, #70 suggests to 'at least add' a method, but indeed a refactor of the existing one will be a huge step in that direction. #66 is also a step as isYAML and isJSON either need to be removed or to be based on the content rather than the file extension. On the middle/long term, it also means either avoid environement specific APIs or having two versions of the same element adapted to each environement if possible.

authors: JBBianchi antmendoza

repo: serverlessworkflow/sdk-typescript


text:
Streaming connections should have auto-reopen option

Right now you can auto-close the streaming connection by providing a connectivity monitor when the client is created. It closes the connection when connectivity is lost.
However, there is no way to auto-reopen the websocket if you try to send something to it, when the streaming connection is closed. _sendRawWebSocketMessage just throws an exception if the socket is not open:
  Future<void> _sendRawWebSocketMessage(String message) async {
    if (_webSocket == null) {
      throw const ServerpodClientException('WebSocket is not connected', 0);
    }
    _webSocket!.sink.add(message);
  }

This means that if there is any chance a user's network connection can drop out, suddenly streaming calls will start to fail once the user gets back online.
It is possible to set up a listener to the connectivity monitor to reopen the streaming connection when the client is back online, but it seems like that should be done automatically.
Basically I wonder if _sendRawWebSocketMessage should call openStreamingConnection before every attempt to send a message, so that the websocket is reopened whenever it is closed.

Yes, there is already a class for handling reconnecting automatically StreamingConnectionHandler. Check Pixorama for an example of how to use it: https://github.com/serverpod/pixorama

Thanks, although there are problems with it: #1687

authors: lukehutch vlidholt

repo: serverpod/serverpod


text:
Support commands for home dir & login shell on darwin

This change adds the following 3 methods for darwin:

check_has_home_directory
check_has_login_shell
get_home_directory

Because there is no getent command on darwin, we use finger command instead. Here is an example output of finger command in my environment (Mac OS X 10.9.5)
$ finger r7kamura
Login: r7kamura       			Name: r7kamura
Directory: /Users/r7kamura          	Shell: /bin/zsh
On since 土  5  2 15:06 (JST) on console, idle 9 days 8:46 (messages off)
On since 土  5  2 15:06 (JST) on tty?? (messages off)
On since 月  5 11 16:00 (JST) on ttys000, idle 4:15
On since 木  5  7 06:55 (JST) on ttys001, idle 6:06
On since 木  5  7 06:45 (JST) on ttys002, idle 3 days 5:35
On since 木  5  7 06:56 (JST) on ttys003, idle 0:23
On since 日  5 10 18:18 (JST) on ttys004, idle 0:23
On since 月  5 11 23:18 (JST) on ttys005, idle 0:06
On since 土  5  9 05:44 (JST) on ttys006, idle 0:06
On since 月  5 11 23:19 (JST) on ttys007
On since 月  5 11 23:36 (JST) on ttys008, idle 0:05
On since 月  5 11 23:36 (JST) on ttys009 (messages off)
No Mail.
No Plan.
$ finger r7kamura | grep -E '^Directory' | awk '{ print $2 }' | grep -E '^/Users/r7kamura$'
/Users/r7kamura
$ finger r7kamura | grep -E '^Directory' | awk '{ print $4 }' | grep -E '^/bin/zsh$'
/bin/zsh

Thanks!

Released as v2.31.1.

:congratulations:

repo: serverspec/specinfra


text:
🛑 cax.serverssh.net is down

In 02bb9fc, cax.serverssh.net (http://cax.serverssh.net:10000/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: cax.serverssh.net is back up in 0cfdf19.

repo: serversshnet/server-status


text:
🛑 id1go.ipservers.xyz is down

In 238a0db, id1go.ipservers.xyz (id1go.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: id1go.ipservers.xyz is back up in f192bc4.

repo: serversshnet/uptime


text:
🛑 id2go.ipservers.xyz is down

In 769527b, id2go.ipservers.xyz (id2go.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: id2go.ipservers.xyz is back up in 4301bdf after 2 hours, 2 minutes.


text:
🛑 idx1vpn.jagoanssh.com is down

In af00d73, idx1vpn.jagoanssh.com (idx1vpn.jagoanssh.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: idx1vpn.jagoanssh.com is back up in 80d51e0 after 11 days, 5 hours, 1 minute.


text:
🛑 id2go.ipservers.xyz is down

In 70c3676, id2go.ipservers.xyz (id2go.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: id2go.ipservers.xyz is back up in d550284 after 1 day, 11 hours, 25 minutes.


text:
🛑 ustro.ipservers.xyz is down

In c59de2d, ustro.ipservers.xyz (ustro.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ustro.ipservers.xyz is back up in 0709198.


text:
Add PodSpec-able resource definition to terminology

Signed-off-by: Baiju Muthukadan baiju.m.mail@gmail.com

@baijum Can you please amend/rebase this so that there’s a sign-off on all the commits?

@baijum Can you please amend/rebase this so that there’s a sign-off on all the commits?

Done.

authors: baijum nebhale

repo: servicebinding/spec


text:
Replace script passwords in VMWare debug log - Suzana

This change is

[Current coverage][cc-pull] is 57.98%

Merging [#218][cc-pull] into [master][cc-base-branch] will not change coverage

@@             master       #218   diff @@
==========================================
  Files          1911       1911
  Lines         97598      97598
  Methods           0          0
  Messages          0          0
  Branches      12123      12123
==========================================
  Hits          56593      56593
  Misses        38008      38008
  Partials       2997       2997

[][cc-pull]

Powered by Codecov. Last updated by [e2f59c4...567d6f6][cc-compare]
[cc-base-branch]: https://codecov.io/gh/servicecatalog/development/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/servicecatalog/development/compare/e2f59c4f47bf918df1c5a05cdc245ee5a3ece8c0...567d6f6ccfc4e255a72102057a7062c86f6373af?src=pr
[cc-pull]: https://codecov.io/gh/servicecatalog/development/pull/218?src=pr

authors: StavrevaS codecov-io

repo: servicecatalog/development


text:
Swagger module

In this pull request:

Integrate with Swagger UI. (no more fetch error / network error)
Add Swagger UI to the repository
Fix wrong Since annotation placements
Add script to substitute oscm-ip to use in the CD pipelines later.

This change is

Codecov Report

:exclamation: No coverage uploaded for pull request head (swagger-module@675835b). Click here to learn what that means.
The diff coverage is n/a.

authors: Crystalzord codecov-io

repo: servicecatalog/oscm-rest-api


text:
Part 1: Rate Limiting: A Useful Tool with Distributed Systems

翻译的文档的 Issue 编号是：#30

fixed

repo: servicemesher/trans


text:
🛑 Newport Repairs is down

In b43cfc5, Newport Repairs (https://newportrepairs.co.uk) was down:

HTTP code: 500
Response time: 3117 ms

Resolved: Newport Repairs is back up in 29ed82e.

repo: servicesite/upptime


text:
Is it always necessary to put every function definition in a separate extern block?

Here is a diff of regenerating some bindings with servo/rust-bindgen over the old Yamakaky/rust-bindgen: https://github.com/jeremyletang/rust-sfml/commit/ed4ecd7d48d756bf2d51d85f928c3c736c780625#diff-1e7d161ae38b44ab3fb4c32f7c2bdf19R371
It adds a lot of extra noise with all those extern blocks.

So this is done this way because after the rewrite, each parsed item is conceptually independent and can generate a rust ast::Item. The way to do this for functions is generating an extern block.
I don't think coalescing them is a priority, but I'd be happy to take a patch that does it as long as it's not a maintenance burden.

This should IMO be a top priority to fix.

I've read lots of reports from users on IRC and that was their main complaint about it.

This should IMO be a top priority to fix.

Its purely astheatics of machine generated code that people aren't maintaining by hand... That doesn't scream "top priority" to me, but patches are ofc very welcome.

Its purely aesthetics of machine generated code that people aren't maintaining by hand...

Aesthetics matter, and changes to generated bindings are more confusing to review with all the noise.

authors: crumblingstatue emilio fitzgen nox

repo: servo/rust-bindgen


text:
Automatically generate migration checklist

Often PRs require one-time manual intervention, which cannot or should not be encapsulated into a Salt state. Currently, these are recorded in an ad-hoc fashion and can be easily forgotten, especially with a remote team. I'd like to make this better in a few parts with more consistent communciation:

Any commit requiring a migration task should use a 'saltfs-migration: ' tag in the commit message, e.g. https://github.com/servo/saltfs/pull/483/commits/520adf237c4270a9de323471820cbdcea27fee5d
Automation (homu? A saltfs-specific bot? Something existing?) will check for these tags in the commit messages on a PR; if any are found, then after merging add a comment to the PR containing a todo list with each tag as an item. It should also add a new S-needs-migration tag
Whoever runs the Salt highstate with those changes should check off the migration items when they are done, and then remove the tag (manually? via bot?).

cc @larsbergstrom @edunham

We should make sure to support sub-checklists, like in https://github.com/servo/saltfs/pull/483/commits/339a2d3774992c912e675ff8dc4f240af6ff28b8.

I agree that this is an excellent idea.

authors: aneeshusa edunham

repo: servo/saltfs


text:
Model load issue

I tried to load a saved model but it gave System.TypeLoadException-Cannot find type numl.Tests.Data.Iris on JsonReader.ReadJson

var data = Iris.Load();
var description = Descriptor.Create();
var generator = new DecisionTreeGenerator(50);
var model = generator.Generate(description, data) as DecisionTreeModel;
model.Save(AppDomain.CurrentDomain.BaseDirectory + "/model_cache/test.json");
var learntmodel = JsonReader.ReadJson(System.IO.File.ReadAllText(AppDomain.CurrentDomain.BaseDirectory + "/model_cache/test.json"));

Looks like numl isn't aware of the type. Try making sure the assembly is registered:
Register.Assembly(GetType().GetTypeInfo().Assembly);

Let me know if this works!

It works now! Thank you very much.

Awesome!!!

authors: hkcsser sethjuarez

repo: sethjuarez/numl


text:
Bug: Missing sign Up in client side and server side

Should actually behave:-
The sign up page must be implemented in frontend and must send body to the backend then after sign up sign page should be rendered ..
Please assign me this issue under gssoc'24

@Arghadip-Chatterjee Please assign me this issue

@sethshivam11 please assign me this issue

@Sibam-Paul It is not implemented because this project is made for a college or school in which only admin and teacher need to sign in. By default, there are two admins created by us further the admin can register any teacher/admin.

Ok


text:
Aligner output before optimization produces incorrect and large displacements at boundary

Here's an example training sample from FAFB.
Target

Predicted target (with optimizer)

Predicted target (without optimizer)

Warped source

It's very likely this issue was caused by the incorrect pixel identities being used in the rigidity calculation that @supersergiy corrected in this commit. Let's keep an eye to see if this issue is still present.

repo: seung-lab/metroem


text:
Add password encryption

When user provides password via BasicAuth, use an encryption library to hash the password and compare the password to the stored (hashed) password.

Addressed in 454185d.

repo: sevanspowell/issue-tracker


text:
An error occurred: Direct chat failed: Chat request failed: Connection error.

The lastest version

Hmmmm I'm not sure why you wouldn't be able to connect. The provider routing is using the OpenAI framework and exposing it for OpenAI compatibility, so it should be able to connect you to any base URL. I've really only tested it using local LLM set-ups though myself

Hmmmm I'm not sure why you wouldn't be able to connect. The provider routing is using the OpenAI framework and exposing it for OpenAI compatibility, so it should be able to connect you to any base URL. I've really only tested it using local LLM set-ups though myself

Get the model is okay

But chat is wrong

sudo ufw allow 11434
solved my problem


text:
jumplist seems to be broken

While I have the minimap visible, neither ''/`` nor <C-I>/<C-O> properly move through the jump list.

Same here for
w
j
k
h
l

repo: severin-lemaignan/vim-minimap


text:
Drop explicit partitioning

Drop Partitioning and Repartition operator. This is prerequisite of #152

Closed via #164

repo: seznam/euphoria


text:
Returning connection from a pool without pool explicitly in scope

I'm not very experienced in rust yet, so I'm sorry for potential misunderstanding ;)
I ran into an issue where I'd like to abstract returning a connection from a pool into a function. Basically the original code in Iron request handler is:
fn front_page_handler(req: &mut Request) -> IronResult<Response> {
    let pool = req.get::<Read<Database>>().ok().expect("database component not initialised");
    let connection = pool.get().unwrap();
    ...

and I wanted to make the first two lines just let connection = get_pool_connection(req);. This however is not possible unless pool is returned along with the connection so it can live for the same time.
I was hoping this could be improved by storing an Rc<Pool> somewhere in the connection itself. Or maybe there are other ways to allow a function like this to exist:
fn get_pool_connection(req: &mut Request) -> PooledConnection<T> {
    let pool = req.get::<Read<Database>>().ok().expect("database component not initialised");
    pool.get().unwrap()
}

Related SO with the question and answer here: https://stackoverflow.com/questions/30252054/refactoring-messes-up-mutable-borrow-why

You can do this with a small amount of trickiness:
struct SelfContainedConnection<M, T> {
    // must be in this order to ensure the connection drops before the pool
    conn: PooledConnection<'static, T>,
    pool: Arc<Pool<M>>,
}

impl<M, T> SelfContainedConnection<M, T> where M: ConnectionManager, T: ConnectionManager::Connection {
    pub fn new(pool: &Arc<Pool>) -> Result<SelfContainedConnection, GetTimeout> {
        let conn = try!(pool.get());
        let pool = pool.clone();
        Ok(SelfContainedConnection {
            conn: unsafe { mem::transmute(conn) },
            pool: pool
        })
    }
}

impl<M, T> Deref for SelfContainedConnection<M, T> {
    type Target = T;

    fn deref(&self) -> &T {
        &*self.conn
    }
}

We define a new smart pointer that holds both the original PooledConnection pointer as well as a reference to the pool to make sure it stays alive.

Which version of rust does that work on @sfackler? On nightly I get:
src/db_pool.rs:38:73: 38:102 error: `ConnectionManager::Connection` is not a trait
src/db_pool.rs:38 impl<M, T> SelfContainedConnection<M, T> where M: ConnectionManager, T: ConnectionManager::Connection {

I rewrote that with explicit Connection where needed and dropped T:
pub struct SelfContainedConnection<M> where M: ConnectionManager {
    // must be in this order to ensure the connection drops before the pool
    conn: PooledConnection<'static, M>,
    pool: Arc<Pool<M>>,
}

impl<M> SelfContainedConnection<M> where M: ConnectionManager {
    pub fn new(pool: &Arc<Pool<M>>) ⟶  Result<SelfContainedConnection<M>, GetTimeout> {
        let conn = try!(pool.get());
        let pool = pool.clone();
        Ok(SelfContainedConnection {
            conn: unsafe { mem::transmute(conn) },
            pool: pool
        })
    }
}

impl<M> Deref for SelfContainedConnection<M> where M: ConnectionManager {
    type Target = M::Connection;

    fn deref(&self) ⟶  &M::Connection {
        &*self.conn
    }
}

But that still fails with:
src/db_pool.rs:43:28: 43:42 error: cannot transmute to or from a type that contains type parameters in its interior [E0139]
src/db_pool.rs:43             conn: unsafe { mem::transmute(conn) },

I'm not sure it works on any version - I wrote it from memory. That transmute error can be worked around, but it requires more unsafe hackery than I'm really comfortable with.
The request for a lifetime-unrestricted PooledConnection has come up before (maybe from @alexcrichton?). It might make sense to completely drop the lifetime parameter from PooledConnection, but I'm not sure how I feel about that. In the meantime, I've added a Pool::get_mut function that acts like the one in the code snippet above but avoids unsafe code if you're storing the Pool in an Arc:
let pool: &Arc<Pool<M>> = my_pool;
let conn = Pool::get_arc(pool.clone()).unwrap(); // conn has a 'static lifetime

I can publish the update to crates.io if this seems reasonable to you.

If I try to implement the example above with PostgresConnectionManager I just get:
src/db.rs:38:1: 40:2 error: the trait `r2d2::ConnectionManager` is not implemented for the type `r2d2_postgres::PostgresConnectionManager` [E0277]
src/db.rs:38 struct DbPool {
src/db.rs:39     shared_pool: SelfContainedConnection<PostgresConnectionManager>
src/db.rs:40 }

Any ideas?

@sfackler yeah crates.io currently has similar code to get a PooledConnnection<'static>

Published v0.5.8 with get_arc: http://sfackler.github.io/r2d2/doc/v0.5.8/r2d2/struct.Pool.html#method.get_arc

cc me, this is an important API consideration for iron

PooledConnection is currently set up with a reference to the pool since that seems like the more "Rustic" thing to do, but it seems like it's more of a pain than it's worth. Pool already has an internal Arc that it shares with its worker threads, so it'd be easy to remove the lifetime constraint on PooledConnection. It does make it a bit more unclear of when the pool will actually clean itself up, but I'd imagine it lives indefinitely anyway in basically all use cases.
Thoughts?

I suspect that the "overhead" from using an Arc here is negligible due to a DB connection being such a heavyweight object, and I wouldn't personally be too surprised by the lifetime semantics here. I would never shut down a pool of connections until the entire app dies anyway, so it's already super long lasting and unlikely to hit weird scoping problems.
This pattern is in use elsewhere, though, for example in Servo's work stealing deque. The BufferPool is used to create Stealers and Workers, both of which have have a strong reference to the internal pool. Basically the original buffer pool can disappear but won't actually get deallocated until all stealers/workers are gone. (just a data point)

A somewhat related question is how sharing across threads should be handled. Right now, you put the Pool into an Arc, but Pool could impl Clone itself. This seems a bit weird to me, but it does appear to be what Servo's BufferedPool does.

Just tested get_arc() and it's exactly what I needed. Thanks!
I'm not sure what the last comment meant. Something like pool.get_arc() where it does Pool::get_arc(self.clone())? That would be nice too.

Right now, if you want to share a Pool between threads, you have to stick it into an Arc and then clone that:
let pool = Arc::new(Pool::new(...));
let pool2 = pool.clone();
thread::spawn(move || {
    let pool = pool2;
    // use the pool
});
// use the other pool

We could change Pool so that it acts like an Arc on its own:
let pool = Pool::new(...);
let pool2 = pool.clone();
thread::spawn(move || {
    let pool = pool2;
    // use the pool
});
// use the other pool

Pool itself is just a bare wrapper around an Arc internally, so there's something to be said for removing a level of indirection: https://github.com/sfackler/r2d2/blob/master/src/lib.rs#L114-L116. It's an unrelated idea to the PooledConnection lifetime issue.

I've made the changes discussed: PooledConnection no longer has a lifetime bound and Pool directly implements clone.
I'll be releasing those changes and some others as v0.6 in a couple days probably.

v0.6.0's been released.

authors: alexcrichton excepttheweasel reem sfackler viraptor


text:
about iOS support

To enable security-framework working on iOS :  https://github.com/sfackler/rust-native-tls/pull/30
unfortunately, this commit https://github.com/sfackler/rust-native-tls/commit/304b00ee0151b5a2d60dbb491582d5dc40b46587 breaks for iOS because of:
use self::security_framework::os::macos::keychain::{self, KeychainSettings};
which is only available on macOS.
So I created a PR: https://github.com/sfackler/rust-security-framework/pull/41 to make rust-native-tls working on iOS.
There seems a lack of concern for iOS in rust-native-tls, I wonder the status of support for iOS in both rust-native-tls and rust-security-framework. I hope we can make iOS a first-class citizen that is supported.
And I don't know the difference between security-framework on iOS and macOS, but only found a macOS module here: https://github.com/sfackler/rust-security-framework/tree/master/security-framework/src/os
Thanks 😃

We are currently using rust-native-tls on ios through our own fork, as it's pretty important to us that this continues to work so we don't have to use OpenSSL and argue with the app store.
The biggest difference between ios and macos seems to be is the lack of keychain support in ios. (See: https://github.com/azdlowry/rust-native-tls/commit/a0a3967e576265ad685e3015aa60b1ad750cd6e4)

As I said on #30, I'd be happy to support iOS, but that needs to include CI testing on Travis.

I've managed to get cargo build to work with an ios target through travis. Running the tests will be a bit harder, but it's a start.

I now have the tests running on the ios simulator from travis.  See https://github.com/azdlowry/rust-native-tls.
It's not the prettiest solution, as it uses https://github.com/SSheldon/rust-test-ios which has some issues, but it's a start. I can submit a PR if your happy with this approach?

Yes, please do!

#50 Added ios support and and ios ci.

authors: azdlowry king6cong sfackler

repo: sfackler/rust-native-tls


text:
Memory leak

I'm using rails-admin for a while, in the last couple of weeks i started to suffer from a memory leak.
I use Skylight (Code profiler) and I saw that rails_admin require allot of memory.
Then I opened up heroku metrics before and affter use on rails_admin, he is the results:
http://prntscr.com/bvcvkd
The memory usage raises from 160MB to 317MB. The graph is becoming stable only after i stopped using the admin panel

I'm seeing similar behaviour here. It's been a long time in my case.

+1 Same here..

I suspect the same for me!

next to the pretty graphs, are there further details you can provide? any suspects?

Same here, on my side, it happens on a CSV export where it needs at least 300MB of RAM to generate the file (which is around 20MB). I didn't have the time to investigate further, so I'm using Monit right now to restart nginx when the memory goes too high.

If anyone is interested, I've found a better workaround for my use case. At first, I'm able to reproduce the memory leak with Passenger and a table with around 10K rows (no less). Basically, I export the table as a CSV file and then everything that was built within @objects stay in memory forever, as long as the worker is running (I'm suspecting the closure which defines the export action to keep the reference longer than expected).
In main_controller.rb, I've added an after_action to mark the mem ready to gc:
    def mark_for_garbage_collect
      if action_name == 'export' && request.method == 'POST'
        ObjectSpace.garbage_collect
      end

      if Rails.env.development?
        current_class = @abstract_model.model_name.constantize
        logger.debug "#{current_class}: #{ObjectSpace.each_object(current_class).count}"
      end
    end

I also encountered significant memory increases using rails admin on our site (the uptick in our heroku memory graphs looks very similar to the one posted by @rotem443).
The memory usage is exacerbated since we use puma with 3 workers (recently decreased to 2 workers to alleviate our R14 warnings in heroku).
From locally testing a few times, it seems that loading the admin index/dashboard for the first time (after loading our site's home page) increases the memory of a single rails process by 20-60MB. Our dashboard has about 40 models.
With each additional worker, I see a similar uptick. Here are a couple of samples:
==========
Single rails process:
206MB - startup and loading homepage
247MB - load admin index (increase 39MB)
252MB - load admin index (increase 5MB)
263MB - load admin index (increase 11MB)
268MB - load admin index (increase 5MB)
268MB - load admin index 5 times sequentially (no increase)
272MB - load admin index (increase 5MB)
272MB - load admin index (no increase)
282MB - load admin index 10 times sequentially (increase 10MB)
==========
puma 2 workers, 1 thread each
190MB - start up
361MB - load home page (increase due to activating worker A)
536MB - load home page (increase due to activating worker B)
566MB - load admin index (increase 30MB for worker “A”)
579MB - load admin index (increase 13MB for worker “A”)
591MB - load admin index (increase 12MB for worker “A”)
658MB - load admin index (5 times sequentially, increase 67MB for worker “B” - first time worker B received admin request)
668MB - load admin index (5 times sequentially, increase 10MB across A and B)
==========
puma, 2 workers, 1 thread:
545MB - after booting and loading homepage multiple times so that both workers have been activated and have received requests
563MB - load admin index (increase 18MB for worker A)
590MB - load admin index (increase 27MB for worker A)
621MB - load admin index (increase 31MB for worker A)
617MB - load admin index (decrease 4MB for worker A)
621MB - load admin index (increase 4MB for worker A)

I also had this using puma. it dont have logs, but i can pretty well remember tha i was swapping a lot on a 4 gig machine using puma, 4 workers.
moving to passenger standalone (and therefore also with system-nginx), i only have a overall consumtion of 1.7GB, and the app was growing meanwhile.
just in case it helps. cheers

using puma and rails 5.0.1 had a problem when tried to search for admin dashboard; memory went to 6.5 gb from 2 gb

+1 using railsAdmin 1.1.1

I am also facing them same problem. The memory raise very fast and eventually puma crashed.

Was this using pundit? Maybe this helps? https://github.com/sferik/rails_admin/issues/2575#issuecomment-270688893

I'm facing this issue as well, very often when I try to edit a record In Heroku it throws a memory issue.

authors: Fattouh92 galharth jipiboily kaiomagalhaes nancyhuynh patleb rotem443 sebfie sedubois thedanielhanke tscung volkerholloh


text:
f.select

is there a way i can use - 	<%= f.select :make_name, [["Visa", "visa"], ["MasterCard", "master"], ["Discover", "discover"], ["American Express", "american_express"]] %> in rails admin?

Yes, just use enumeration.

where can i do this?

i can't find the file to put it in, i don't seem to have the rails admins views?

https://github.com/sferik/rails_admin/wiki/Enumeration

thanks, working now ;)


text:
🛑 Tu Decision is down

In 204404b, Tu Decision (https://tudecision.catamarcacapital.gob.ar) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Tu Decision is back up in 9863267.

repo: sfvc/upptime


text:
🛑 SGUG Forums is down

In 747eaf8, SGUG Forums (https://forums.sgi.sh) was down:

HTTP code: 0
Response time: 0 ms

Resolved: SGUG Forums is back up in 763bd0a after 14 minutes.

repo: sgidevnet/statuspage


text:
Add LineHandled and LineFound output to lcov reporter

lcov parsers look for the lines handled and lines found to calculate coverage. This pull-request provides these standard lines in the report output.

nice - LGTM
thanks @petey

authors: jschilli petey

repo: sglanzer/ember-cli-blanket


text:
Move mobile to atomic design

Use atomic design and move to aliased imports

Done in #321

repo: shabados/mobile


text:
fix(cli): alias prefix can be longer than 1 character

Situation
I'm using /shadcn as alias prefix with below configurations.
components.json includes
"aliases": {
    "components": "/shadcn/components",
    "utils": "/shadcn/lib/utils",
    "ui": "/shadcn/components/ui",
    "lib": "/shadcn/lib",
    "hooks": "/shadcn/hooks"
  }

tsconfig.json includes
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "/shadcn/*": ["./shadcn/*"]
    },

It worked fine for me with former version.
Bug with new cli version
When I added new component with npx shadcn@latest add radio-group, what I was expected was import line of
import { cn } from "/shadcn/lib/utils"

But what I got was import line of
import { cn } from "//lib/utils"

I guess this is the same issue that #4691 describes
What I did

[x] Added new test case with alias /shadcn
[x] Run test with pnpm test as contributing guidelines says and checked it fails
[x] Edit the getsTsConfigAliasPrefix function in "packages/cli" directory
[x] Run test again with pnpm test and checked it passed

I thought I already added the test for it in the commit 1cc35ac in pull request.

project folder for the testcase packages/cli/test/fixtures/general-alis (which contains tsconfig.json only)
and I added the testcase in packages/cli/test/utils/get-ts-config-alias-prefix.test.ts
and check it fails in main branch
and check it passes in my branch

If I have misunderstood something, can you explain more details about "adding a test for it" please?
It will help for me to make appropriate changes.

@shadcn As I read your comment on #4733, I figured out that new cli package directory is packages/shadcn, not packages/cli.
So I made these changes

New test project directory for it in packages/shadcn/test/fixtures/frameworks/general-alias by copying and paste packages/shadcn/test/fixtures/frameworks/next-app and change its tsconfig.json
New test code in packages/shadcn/test/utils/get-project-info.test.ts
Same fix in packages/shadcn/src/utils/get-project-info.ts
Change CONTRIBUTING.md so that it specify packages/shadcn as "any changes to the CLI should be made" and updated Structure section.

same issue
#4737

@seanyasno I'm using npx shadcn-ui@0.8.0 add SOMETHING for temporary solution.
@shadcn Can you give any feedback please?

repo: shadcn-ui/ui


text:
🛑 Tarek ist doof is down

In 62d707f, Tarek ist doof (https://bielefeldt.berlin) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Tarek ist doof is back up in 13cc2a6 after 32 minutes.


text:
Don't translate HLSL/Slang const to GLSL const

Most uses of const in GLSL code mean something close to C++ constexpr, while HLSL/Slang const is supposed to mean something closer to C/C++ const ("this variable is immutable"). Right now Slang translates uses of const in HLSL/Slang code over to GLSL const, which doesn't seem right.
My understanding of the GLSL spec is that since version 4.20, it is okay to have a const variable with an initializer that is not a compile-time constant (or a const function parameter, etc.) and that this means something close to the C const semantics. However, on code that had used const pervasively. we saw issues when blinding translating that over to GLSL const (on a single target platform - see #144).
In any case, Slang should be better about this, and recognize that the const keyword means very different things in the different input/output languages we have to deal with. They should not all be represented by the same modifier class.

This issue should be resolved once cross-compilation is entirely based on the IR, since we would then only output an AST again if we are in "rewrite" mode.

Closing this since the IR will hopefully make it a non-issue.

authors: tangent-vector tfoleyNV

repo: shader-slang/slang


text:
gcc 10 caused build to fail

My compiler (gcc -v) is "gcc version 10.2.1 20210110 (Debian 10.2.1-6)"
And because of that I'm hitting this problem:
https://lore.kernel.org/lkml/20200124181811.4780-1-hjl.tools@gmail.com/
When I run "make bzImage -j$(nproc)"
...
  CC      arch/x86/boot/compressed/acpi.o
  LD      arch/x86/boot/compressed/vmlinux
ld: arch/x86/boot/compressed/pgtable_64.o:(.bss+0x0): multiple definition of `__force_order'; arch/x86/boot/compressed/kaslr_64.o:(.bss+0x0): first defined here
ld: arch/x86/boot/compressed/head_64.o: warning: relocation in read-only section `.head.text'
ld: warning: creating DT_TEXTREL in a PIE
make[2]: *** [arch/x86/boot/compressed/Makefile:118: arch/x86/boot/compressed/vmlinux] Error 1
make[1]: *** [arch/x86/boot/Makefile:112: arch/x86/boot/compressed/vmlinux] Error 2
make: *** [arch/x86/Makefile:284: bzImage] Error 2

So the solution for me was to do exactly what was in the submitted patch
edit $STAGING/linux-${KERNEL_VERSION}/arch/x86/boot/compressed/kaslr_64.c and delete the line "unsigned long __force_order"
I'm just posting this here in case it helps others.

Thanks! @martin-zs


text:
Populated data into visits and owners

Hi Reviewer, this is @shafiuyushawu and @edubew
Below is an updated version of the database to be optimized for performance and audits.
Changes introduced ♻

Populated the vistits and owners table with chunk data ✔
Used an indexing approach to optimize the performance of the queries. ✔

1. Using EXPLAIN ANALYZE on the previous queries to check what is happening.

1.1 SELECT COUNT(*) FROM visits where animal_id = 4;

1.2 SELECT * FROM visits where vet_id = 2;

1.3 SELECT * FROM owners where email = 'owner_18327@mail.com';

2. Decreasing the execution time of the first query.

2. Decreasing the execution time of the second query.

4. Decreasing the execution time of the third query.

Hello @Tufahel,
Thank you for the approval. Appreciate it.

repo: shafiuyushawu/vet-clinic-db


text:
Add the Pedantic Dependency rules through GitHub actions/CI tools

Describe the feature you'd like to add

Sometimes breaking Pedantic rules can result in a poor quality code which over time grows out to be messy. We can take advantage of linting and static analysis to check whether the written code adheres to our code styling rule. This can be automated using GitHub Actions.
In this project, we added the Pedantic Dependency rules. If we enable it to GitHub, we can enable check to follow code guidelines/rules to pass the PR.
Now when someone raising the PR, that person should follow all the rules of Pedantic dependency, then that person's all checks will successful while making the PR.
And also our code will always clean and proper after adding the GitHub actions.

Describe how you will do it
I will create the ci.yml file in the .github/workflows/ directory in the project.
Additional context
After adding the GitHub actions to Pedantic dependency, output will be same like this:

If that person doesn't follow all the rules of Pedantic dependency.
For Example:

@hiashutoshsingh Please assign me this issue!